[*] Binary protection state of vdo-encode-client
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of vdo-encode-client
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vdo-encode-client @ 0xdf0 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 2560 named .text */
0x00000df0 lui gp, 2 |
0x00000df4 addiu gp, gp, -0x6de0 |
0x00000df8 addu gp, gp, t9 | gp += t9;
0x00000dfc addiu sp, sp, -0xf0 |
0x00000e00 lw t9, -0x7fb4(gp) | t9 = sym.imp.g_option_context_new;
0x00000e04 sw s2, 0xd0(sp) | *(var_d0h) = s2;
0x00000e08 lw s2, -0x7f98(gp) | s2 = *((gp - 8166));
0x00000e0c sw s5, 0xdc(sp) | *(var_dch) = s5;
0x00000e10 sw s3, 0xd4(sp) | *(var_d4h) = s3;
0x00000e14 lw v0, (s2) | v0 = *(s2);
0x00000e18 lw s3, -0x7fd8(gp) | s3 = *((gp - 8182));
0x00000e1c sw v0, 0xc4(sp) | *(var_c4h) = v0;
0x00000e20 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e24 lw s5, -0x7fd8(gp) | s5 = *((gp - 8182));
0x00000e28 addiu v0, v0, 0x1a64 | v0 += str._dev_null;
0x00000e2c sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x00000e30 addiu v0, zero, 0x74 | v0 = 0x74;
0x00000e34 sb v0, 0x58(sp) | *(var_58h) = v0;
0x00000e38 addiu v0, zero, 1 | v0 = 1;
0x00000e3c sw v0, 0x60(sp) | *(var_60h) = v0;
0x00000e40 addiu v0, sp, 0x44 | v0 = sp + 0x44;
0x00000e44 sw v0, 0x64(sp) | *(var_64h) = v0;
0x00000e48 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e4c sw a0, 0xf0(sp) | *(arg_f0h) = a0;
0x00000e50 addiu v0, v0, 0x1a78 | v0 += str.format__h264__h265__jpeg_;
0x00000e54 sw v0, 0x68(sp) | *(var_68h) = v0;
0x00000e58 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e5c lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00000e60 addiu v0, v0, 0x1a94 | v0 += str.frames;
0x00000e64 sw v0, 0x70(sp) | *(var_70h) = v0;
0x00000e68 addiu v0, zero, 0x6e | v0 = 0x6e;
0x00000e6c sb v0, 0x74(sp) | *(var_74h) = v0;
0x00000e70 addiu v0, zero, 2 | v0 = 2;
0x00000e74 sw v0, 0x7c(sp) | *(var_7ch) = v0;
0x00000e78 addiu v0, sp, 0x48 | v0 = sp + 0x48;
0x00000e7c sw v0, 0x80(sp) | *(var_80h) = v0;
0x00000e80 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e84 sw gp, 0x18(sp) | *(var_18h) = gp;
0x00000e88 addiu v0, v0, 0x1a9c | v0 += str.number_of_frames;
0x00000e8c sw v0, 0x84(sp) | *(var_84h) = v0;
0x00000e90 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e94 addiu s3, s3, 0x1a5c | s3 += str.h264;
0x00000e98 addiu v0, v0, 0x1ab0 | v0 += str.output;
0x00000e9c sw v0, 0x8c(sp) | *(var_8ch) = v0;
0x00000ea0 addiu v0, zero, 0x6f | v0 = 0x6f;
0x00000ea4 sb v0, 0x90(sp) | *(var_90h) = v0;
0x00000ea8 addiu v0, zero, 4 | v0 = 4;
0x00000eac sw v0, 0x98(sp) | *(var_98h) = v0;
0x00000eb0 addiu v0, sp, 0x4c | v0 = sp + 0x4c;
0x00000eb4 sw v0, 0x9c(sp) | *(var_9ch) = v0;
0x00000eb8 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000ebc addiu s5, s5, 0x1a70 | s5 += str.format;
0x00000ec0 addiu v0, v0, 0x1ab8 | v0 += str.output_filename;
0x00000ec4 sw ra, 0xec(sp) | *(var_ech) = ra;
0x00000ec8 sw a1, 0x3c(sp) | *(var_3ch) = a1;
0x00000ecc sw v0, 0xa0(sp) | *(var_a0h) = v0;
0x00000ed0 sw fp, 0xe8(sp) | *(var_e8h) = fp;
0x00000ed4 sw s7, 0xe4(sp) | *(var_e4h) = s7;
0x00000ed8 sw s6, 0xe0(sp) | *(var_e0h) = s6;
0x00000edc sw s4, 0xd8(sp) | *(var_d8h) = s4;
0x00000ee0 sw s1, 0xcc(sp) | *(var_cch) = s1;
0x00000ee4 sw s0, 0xc8(sp) | *(var_c8h) = s0;
0x00000ee8 addiu a0, a0, 0x1a60 | a0 += 0x1a60;
0x00000eec sw zero, 0x40(sp) | *(var_40h) = 0;
0x00000ef0 sw s3, 0x44(sp) | *(var_44h) = s3;
0x00000ef4 sw zero, 0x48(sp) | *(var_48h) = 0;
0x00000ef8 sw s5, 0x54(sp) | *(var_54h) = s5;
0x00000efc sw zero, 0x5c(sp) | *(var_5ch) = 0;
0x00000f00 sw zero, 0x6c(sp) | *(var_6ch) = 0;
0x00000f04 sw zero, 0x78(sp) | *(var_78h) = 0;
0x00000f08 sw zero, 0x88(sp) | *(var_88h) = 0;
0x00000f0c sw zero, 0x94(sp) | *(var_94h) = 0;
0x00000f10 sw zero, 0xa4(sp) | *(var_a4h) = 0;
0x00000f14 sw zero, 0xa8(sp) | *(var_a8h) = 0;
0x00000f18 sb zero, 0xac(sp) | *(var_ach) = 0;
0x00000f1c sw zero, 0xb0(sp) | *(var_b0h) = 0;
0x00000f20 sw zero, 0xb4(sp) | *(var_b4h) = 0;
0x00000f24 sw zero, 0xb8(sp) | *(var_b8h) = 0;
0x00000f28 sw zero, 0xbc(sp) | *(var_bch) = 0;
0x00000f2c sw zero, 0xc0(sp) | *(var_c0h) = 0;
0x00000f30 jalr t9 | t9 ();
0x00000f34 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00000f38 beqz v0, 0x1190 | goto label_10;
| }
0x00000f3c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00000f40 lw t9, -0x7f78(gp) | t9 = sym.imp.g_option_context_set_summary;
0x00000f44 move a0, v0 | a0 = v0;
0x00000f48 addiu a1, a1, 0x1ac8 | a1 += str.Encoded_video_client;
0x00000f4c move s0, v0 | s0 = v0;
0x00000f50 jalr t9 | t9 ();
0x00000f54 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000f58 move a2, zero | a2 = 0;
0x00000f5c addiu a1, sp, 0x54 | a1 = sp + 0x54;
0x00000f60 lw t9, -0x7f58(gp) | t9 = sym.imp.g_option_context_add_main_entries;
0x00000f64 move a0, s0 | a0 = s0;
0x00000f68 jalr t9 | t9 ();
0x00000f6c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000f70 addiu s1, sp, 0x40 | s1 = sp + 0x40;
0x00000f74 move a3, s1 | a3 = s1;
0x00000f78 lw t9, -0x7f84(gp) | t9 = sym.imp.g_option_context_parse;
0x00000f7c addiu a2, sp, 0x3c | a2 = sp + 0x3c;
0x00000f80 addiu a1, sp, 0xf0 | a1 = sp + 0xf0;
0x00000f84 move a0, s0 | a0 = s0;
0x00000f88 jalr t9 | t9 ();
0x00000f8c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000f90 bnez v0, 0x1074 | goto label_11;
| }
0x00000f94 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00000f98 lw s5, -0x7fdc(gp) | s5 = *((gp - 8183));
0x00000f9c move s4, zero | s4 = 0;
| do {
| label_4:
0x00000fa0 lw v0, 0x2110(s5) | v0 = *((s5 + 2116));
| label_6:
0x00000fa4 lw t9, -0x7f3c(gp) | t9 = sym.imp.g_clear_error;
| if (v0 != 0) {
0x00000fa8 bnez v0, 0x1178 | goto label_12;
| }
0x00000fac lw t9, -0x7fa0(gp) | t9 = sym.imp.vdo_error_is_expected;
0x00000fb0 move a0, s1 | a0 = s1;
0x00000fb4 jalr t9 | t9 ();
0x00000fb8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000fbc bnez v0, 0x1174 | goto label_13;
| }
| label_0:
0x00000fc0 lw v0, 0x40(sp) | v0 = *(var_40h);
0x00000fc4 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
| if (v0 == 0) {
0x00000fc8 beqz v0, 0x1188 | goto label_14;
| }
0x00000fcc lw t9, -0x7f64(gp) | t9 = sym.imp.g_printf
0x00000fd0 lw a1, 8(v0) | a1 = *((v0 + 2));
0x00000fd4 addiu a0, a0, 0x1bf0 | a0 += str.vdo_encode_client:__s_n;
0x00000fd8 jalr t9 | t9 ();
0x00000fdc lw gp, 0x18(sp) | gp = *(var_18h);
0x00000fe0 addiu s5, zero, 1 | s5 = 1;
| label_1:
0x00000fe4 lw t9, -0x7f7c(gp) | t9 = sym.imp.fclose;
| if (s4 != 0) {
0x00000fe8 beqz s4, 0xff8 |
0x00000fec move a0, s4 | a0 = s4;
0x00000ff0 jalr t9 | t9 ();
0x00000ff4 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x00000ff8 lw t9, -0x7f3c(gp) | t9 = sym.imp.g_clear_error;
0x00000ffc move a0, s1 | a0 = s1;
0x00001000 jalr t9 | t9 ();
0x00001004 lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001008 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000100c sw zero, 0x2114(s3) | *((s3 + 2117)) = 0;
| if (a0 != 0) {
0x00001010 beqz a0, 0x1024 |
0x00001014 lw t9, -0x7f30(gp) | t9 = sym.imp.g_object_unref;
0x00001018 jalr t9 | t9 ();
0x0000101c nop |
0x00001020 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x00001024 lw t9, -0x7f20(gp) | t9 = sym.imp.g_option_context_free;
0x00001028 move a0, s0 | a0 = s0;
0x0000102c jalr t9 | t9 ();
0x00001030 lw gp, 0x18(sp) | gp = *(var_18h);
| label_2:
0x00001034 lw a0, 0xc4(sp) | a0 = *(var_c4h);
0x00001038 lw v1, (s2) | v1 = *(s2);
0x0000103c move v0, s5 | v0 = s5;
| if (a0 != v1) {
0x00001040 bne a0, v1, 0x159c | goto label_15;
| }
0x00001044 lw ra, 0xec(sp) | ra = *(var_ech);
0x00001048 lw fp, 0xe8(sp) | fp = *(var_e8h);
0x0000104c lw s7, 0xe4(sp) | s7 = *(var_e4h);
0x00001050 lw s6, 0xe0(sp) | s6 = *(var_e0h);
0x00001054 lw s5, 0xdc(sp) | s5 = *(var_dch);
0x00001058 lw s4, 0xd8(sp) | s4 = *(var_d8h);
0x0000105c lw s3, 0xd4(sp) | s3 = *(var_d4h);
0x00001060 lw s2, 0xd0(sp) | s2 = *(var_d0h);
0x00001064 lw s1, 0xcc(sp) | s1 = *(var_cch);
0x00001068 lw s0, 0xc8(sp) | s0 = *(var_c8h);
0x0000106c addiu sp, sp, 0xf0 |
0x00001070 jr ra | return v1;
| label_11:
0x00001074 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001078 lw t9, -0x7fb0(gp) | t9 = sym.imp.fopen;
0x0000107c lw a0, 0x4c(sp) | a0 = *(var_4ch);
0x00001080 addiu a1, a1, 0x1ae0 | a1 += 0x1ae0;
0x00001084 jalr t9 | t9 ();
0x00001088 move s4, v0 | s4 = v0;
0x0000108c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001090 beqz v0, 0x11b4 | goto label_16;
| }
0x00001094 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001098 lw t9, -0x7f24(gp) | t9 = sym.imp.signal;
0x0000109c addiu a1, a1, 0x1720 | a1 += 0x1720;
0x000010a0 addiu a0, zero, 2 | a0 = 2;
0x000010a4 jalr t9 | t9 ();
0x000010a8 addiu v1, zero, -1 | v1 = -1;
0x000010ac lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == v1) {
0x000010b0 beq v0, v1, 0x122c | goto label_17;
| }
0x000010b4 lw t9, -0x7f54(gp) | t9 = sym.imp.vdo_map_new;
0x000010b8 jalr t9 | t9 ();
0x000010bc nop |
0x000010c0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000010c4 lw s7, 0x44(sp) | s7 = *(var_44h);
0x000010c8 move a1, s3 | a1 = s3;
0x000010cc lw t9, -0x7f38(gp) | t9 = sym.imp.g_strcmp0;
0x000010d0 move a0, s7 | a0 = s7;
0x000010d4 move s6, v0 | s6 = v0;
0x000010d8 jalr t9 | t9 ();
0x000010dc lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000010e0 beqz v0, 0x1198 | goto label_18;
| }
0x000010e4 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000010e8 lw t9, -0x7f38(gp) | t9 = sym.imp.g_strcmp0;
0x000010ec addiu a1, a1, 0x1b30 | a1 += str.h265;
0x000010f0 move a0, s7 | a0 = s7;
0x000010f4 jalr t9 | t9 ();
0x000010f8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000010fc bnez v0, 0x11f4 | goto label_19;
| }
0x00001100 lw t9, -0x7f68(gp) | t9 = sym.imp.vdo_map_set_uint32;
0x00001104 addiu a2, zero, 1 | a2 = 1;
0x00001108 move a1, s5 | a1 = s5;
0x0000110c move a0, s6 | a0 = s6;
0x00001110 jalr t9 | t9 ();
0x00001114 lw gp, 0x18(sp) | gp = *(var_18h);
| label_3:
0x00001118 lw t9, -0x7f44(gp) | t9 = sym.imp.vdo_stream_new;
0x0000111c lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00001120 move a2, s1 | a2 = s1;
0x00001124 move a1, zero | a1 = 0;
0x00001128 move a0, s6 | a0 = s6;
0x0000112c jalr t9 | t9 ();
0x00001130 sw v0, 0x2114(s3) | *((s3 + 2117)) = v0;
0x00001134 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s6 != 0) {
0x00001138 beqz s6, 0x114c |
0x0000113c lw t9, -0x7f30(gp) | t9 = sym.imp.g_object_unref;
0x00001140 move a0, s6 | a0 = s6;
0x00001144 jalr t9 | t9 ();
0x00001148 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x0000114c lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001150 lw t9, -0x7f94(gp) | t9 = sym.imp.vdo_stream_attach;
| if (a0 != 0) {
0x00001154 beqz a0, 0x116c |
0x00001158 move a2, s1 | a2 = s1;
0x0000115c move a1, zero | a1 = 0;
0x00001160 jalr t9 | t9 ();
0x00001164 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00001168 bnez v0, 0x1250 | goto label_20;
| }
| }
| label_5:
0x0000116c lw s5, -0x7fdc(gp) | s5 = *((gp - 8183));
0x00001170 b 0xfa0 |
| } while (1);
| label_13:
0x00001174 lw t9, -0x7f3c(gp) | t9 = sym.imp.g_clear_error;
| label_12:
0x00001178 move a0, s1 | a0 = s1;
0x0000117c jalr t9 | t9 ();
0x00001180 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001184 b 0xfc0 | goto label_0;
| label_14:
0x00001188 move s5, zero | s5 = 0;
0x0000118c b 0xfe4 | goto label_1;
| label_10:
0x00001190 addiu s5, zero, -1 | s5 = -1;
0x00001194 b 0x1034 | goto label_2;
| label_18:
0x00001198 lw t9, -0x7f68(gp) | t9 = sym.imp.vdo_map_set_uint32;
0x0000119c move a2, zero | a2 = 0;
0x000011a0 move a1, s5 | a1 = s5;
0x000011a4 move a0, s6 | a0 = s6;
0x000011a8 jalr t9 | t9 ();
0x000011ac lw gp, 0x18(sp) | gp = *(var_18h);
0x000011b0 b 0x1118 | goto label_3;
| label_16:
0x000011b4 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x000011b8 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_quark_from_static_string;
0x000011bc addiu a0, a0, 0x1ae4 | a0 += str.vdo_client_error;
0x000011c0 jalr t9 | t9 ();
0x000011c4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000011c8 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x000011cc lw t9, -0x7f90(gp) | t9 = sym.imp.g_set_error;
0x000011d0 addiu a3, a3, 0x1af8 | a3 += str.open_failed:__m;
| do {
0x000011d4 addiu a2, zero, 8 | a2 = 8;
0x000011d8 move a1, v0 | a1 = v0;
0x000011dc move a0, s1 | a0 = s1;
0x000011e0 jalr t9 | t9 ();
0x000011e4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000011e8 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x000011ec lw s5, -0x7fdc(gp) | s5 = *((gp - 8183));
0x000011f0 b 0xfa0 | goto label_4;
| label_19:
0x000011f4 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000011f8 lw t9, -0x7f38(gp) | t9 = sym.imp.g_strcmp0;
0x000011fc addiu a1, a1, 0x1a54 | a1 += 0x1a54;
0x00001200 move a0, s7 | a0 = s7;
0x00001204 jalr t9 | t9 ();
0x00001208 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x0000120c bnez v0, 0x14bc | goto label_21;
| }
0x00001210 lw t9, -0x7f68(gp) | t9 = sym.imp.vdo_map_set_uint32;
0x00001214 addiu a2, zero, 2 | a2 = 2;
0x00001218 move a1, s5 | a1 = s5;
0x0000121c move a0, s6 | a0 = s6;
0x00001220 jalr t9 | t9 ();
0x00001224 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001228 b 0x1118 | goto label_3;
| label_17:
0x0000122c lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001230 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_quark_from_static_string;
0x00001234 addiu a0, a0, 0x1ae4 | a0 += str.vdo_client_error;
0x00001238 jalr t9 | t9 ();
0x0000123c lw gp, 0x18(sp) | gp = *(var_18h);
0x00001240 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00001244 lw t9, -0x7f90(gp) | t9 = sym.imp.g_set_error;
0x00001248 addiu a3, a3, 0x1b08 | a3 += str.Failed_to_install_signal_handler:__m;
0x0000124c b 0x11d4 |
| } while (1);
| label_20:
0x00001250 lw t9, -0x7f74(gp) | t9 = sym.imp.vdo_stream_get_info;
0x00001254 lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001258 move a1, s1 | a1 = s1;
0x0000125c jalr t9 | t9 ();
0x00001260 move s5, v0 | s5 = v0;
0x00001264 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001268 beqz v0, 0x116c | goto label_5;
| }
0x0000126c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001270 lw t9, -0x7f6c(gp) | t9 = sym.imp.vdo_map_get_uint32;
0x00001274 move a2, zero | a2 = 0;
0x00001278 addiu a1, a1, 0x1b58 | a1 += str.width;
0x0000127c move a0, v0 | a0 = v0;
0x00001280 lw s6, 0x44(sp) | s6 = *(var_44h);
0x00001284 jalr t9 | t9 ();
0x00001288 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000128c move a2, zero | a2 = 0;
0x00001290 move a0, s5 | a0 = s5;
0x00001294 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001298 lw t9, -0x7f6c(gp) | t9 = sym.imp.vdo_map_get_uint32;
0x0000129c addiu a1, a1, 0x1b60 | a1 += str.height;
0x000012a0 move s7, v0 | s7 = v0;
0x000012a4 jalr t9 | t9 ();
0x000012a8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000012ac move a2, zero | a2 = 0;
0x000012b0 move a0, s5 | a0 = s5;
0x000012b4 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000012b8 lw t9, -0x7f6c(gp) | t9 = sym.imp.vdo_map_get_uint32;
0x000012bc addiu a1, a1, 0x1b68 | a1 += str.framerate;
0x000012c0 move fp, v0 | fp = v0;
0x000012c4 jalr t9 | t9 ();
0x000012c8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000012cc sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x000012d0 move a3, fp | a3 = fp;
0x000012d4 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x000012d8 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_print;
0x000012dc move a2, s7 | a2 = s7;
0x000012e0 move a1, s6 | a1 = s6;
0x000012e4 addiu a0, a0, 0x1b74 | a0 += str.Starting_stream:__s___ux_u___u_fps_n;
0x000012e8 jalr t9 | t9 ();
0x000012ec lw gp, 0x18(sp) | gp = *(var_18h);
0x000012f0 lw t9, -0x7f30(gp) | t9 = sym.imp.g_object_unref;
0x000012f4 move a0, s5 | a0 = s5;
0x000012f8 jalr t9 | t9 ();
0x000012fc lw gp, 0x18(sp) | gp = *(var_18h);
0x00001300 lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001304 lw t9, -0x7f48(gp) | t9 = sym.imp.vdo_stream_start;
0x00001308 move a1, s1 | a1 = s1;
0x0000130c jalr t9 | t9 ();
0x00001310 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001314 beqz v0, 0x116c | goto label_5;
| }
0x00001318 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x0000131c move s7, zero | s7 = 0;
0x00001320 sw v0, 0x28(sp) | *(var_28h) = v0;
0x00001324 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001328 lw s5, -0x7fdc(gp) | s5 = *((gp - 8183));
0x0000132c addiu v0, v0, 0x1a48 | v0 += 0x1a48;
0x00001330 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x00001334 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001338 addiu v0, v0, 0x1a50 | v0 += 0x1a50;
0x0000133c sw v0, 0x30(sp) | *(var_30h) = v0;
0x00001340 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001344 addiu v0, v0, 0x1a4c | v0 += 0x1a4c;
0x00001348 sw v0, 0x34(sp) | *(var_34h) = v0;
0x0000134c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001350 sw v0, 0x38(sp) | *(var_38h) = v0;
0x00001354 b 0x143c | goto label_22;
| label_8:
0x00001358 addiu v1, zero, 1 | v1 = 1;
0x0000135c sllv v0, v1, v0 | v0 = v1 << v0;
0x00001360 andi v1, v0, 0x3030 | v1 = v0 & 0x3030;
0x00001364 lw a2, 0x30(sp) | a2 = *(var_30h);
| if (v1 == 0) {
0x00001368 bnez v1, 0x138c |
0x0000136c andi v1, v0, 0x4040 | v1 = v0 & 0x4040;
0x00001370 lw a2, 0x34(sp) | a2 = *(var_34h);
| if (v1 != 0) {
0x00001374 bnez v1, 0x138c | goto label_9;
| }
0x00001378 ext v0, v0, 0x10, 1 | __asm ("ext v0, v0, 0x10, 1");
0x0000137c lw a2, 0x2c(sp) | a2 = *(var_2ch);
| if (v0 == 0) {
0x00001380 beqz v0, 0x138c | goto label_9;
| }
0x00001384 lw v0, 0x38(sp) | v0 = *(var_38h);
0x00001388 addiu a2, v0, 0x1a54 | a2 = v0 + 0x1a54;
| }
| label_9:
0x0000138c lw t9, -0x7f34(gp) | t9 = sym.imp.vdo_frame_get_sequence_nbr;
0x00001390 sw a2, 0x24(sp) | *(var_24h) = a2;
0x00001394 move a0, s6 | a0 = s6;
0x00001398 jalr t9 | t9 ();
0x0000139c lw gp, 0x18(sp) | gp = *(var_18h);
0x000013a0 move a0, s6 | a0 = s6;
0x000013a4 lw t9, -0x7f50(gp) | t9 = sym.imp.vdo_frame_get_size;
0x000013a8 move fp, v0 | fp = v0;
0x000013ac jalr t9 | t9 ();
0x000013b0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000013b4 move a3, v0 | a3 = v0;
0x000013b8 lw v0, 0x28(sp) | v0 = *(var_28h);
0x000013bc lw a2, 0x24(sp) | a2 = *(var_24h);
0x000013c0 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_print;
0x000013c4 move a1, fp | a1 = fp;
0x000013c8 addiu a0, v0, 0x1b98 | a0 = v0 + str.frame___4u__type___s__size___zu_n;
0x000013cc jalr t9 | t9 ();
0x000013d0 lw gp, 0x18(sp) | gp = *(var_18h);
| label_7:
0x000013d4 lw t9, -0x7f8c(gp) | t9 = sym.imp.vdo_buffer_get_data;
0x000013d8 lw a0, 0x50(sp) | a0 = *(var_50h);
0x000013dc jalr t9 | t9 ();
0x000013e0 move fp, v0 | fp = v0;
0x000013e4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000013e8 beqz v0, 0x1508 | goto label_23;
| }
0x000013ec lw t9, -0x7f50(gp) | t9 = sym.imp.vdo_frame_get_size;
0x000013f0 move a0, s6 | a0 = s6;
0x000013f4 jalr t9 | t9 ();
0x000013f8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000013fc move a3, s4 | a3 = s4;
0x00001400 addiu a2, zero, 1 | a2 = 1;
0x00001404 lw t9, -0x7fa4(gp) | t9 = sym.imp.fwrite;
0x00001408 move a1, v0 | a1 = v0;
0x0000140c move a0, fp | a0 = fp;
0x00001410 jalr t9 | t9 ();
0x00001414 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001418 beqz v0, 0x1574 | goto label_24;
| }
0x0000141c lw t9, -0x7f28(gp) | t9 = sym.imp.vdo_stream_buffer_unref;
0x00001420 lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001424 move a2, s1 | a2 = s1;
0x00001428 addiu a1, sp, 0x50 | a1 = sp + 0x50;
0x0000142c jalr t9 | t9 ();
0x00001430 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001434 beqz v0, 0xfa0 | goto label_4;
| }
0x00001438 addiu s7, s7, 1 | s7++;
| label_22:
0x0000143c lw v0, 0x48(sp) | v0 = *(var_48h);
0x00001440 slt v0, s7, v0 | v0 = (s7 < v0) ? 1 : 0;
| if (v0 == 0) {
0x00001444 beqz v0, 0x1450 | goto label_25;
| }
0x00001448 lw v0, 0x2110(s5) | v0 = *((s5 + 2116));
| if (v0 == 0) {
0x0000144c beqz v0, 0xfa4 | goto label_6;
| }
| label_25:
0x00001450 lw t9, -0x7f88(gp) | t9 = sym.imp.vdo_stream_get_buffer;
0x00001454 lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001458 move a1, s1 | a1 = s1;
0x0000145c jalr t9 | t9 ();
0x00001460 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001464 move a0, v0 | a0 = v0;
0x00001468 lw t9, -0x7f40(gp) | t9 = sym.imp.vdo_buffer_get_frame;
0x0000146c sw v0, 0x50(sp) | *(var_50h) = v0;
0x00001470 jalr t9 | t9 ();
0x00001474 move s6, v0 | s6 = v0;
0x00001478 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x0000147c beqz v0, 0xfa0 | goto label_4;
| }
0x00001480 lw v0, 0x2110(s5) | v0 = *((s5 + 2116));
0x00001484 lw t9, -0x7f5c(gp) | t9 = sym.imp.vdo_frame_get_is_last_buffer;
| if (v0 != 0) {
0x00001488 bnez v0, 0x1558 | goto label_26;
| }
0x0000148c move a0, s6 | a0 = s6;
0x00001490 jalr t9 | t9 ();
0x00001494 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001498 beqz v0, 0x13d4 | goto label_7;
| }
0x0000149c lw t9, -0x7fa8(gp) | t9 = sym.imp.vdo_frame_get_frame_type;
0x000014a0 move a0, s6 | a0 = s6;
0x000014a4 jalr t9 | t9 ();
0x000014a8 sltiu v1, v0, 0x11 | v1 = (v0 < 0x11) ? 1 : 0;
0x000014ac lw gp, 0x18(sp) | gp = *(var_18h);
| if (v1 != 0) {
0x000014b0 bnez v1, 0x1358 | goto label_8;
| }
0x000014b4 lw a2, 0x2c(sp) | a2 = *(var_2ch);
0x000014b8 b 0x138c | goto label_9;
| label_21:
0x000014bc lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x000014c0 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_quark_from_static_string;
0x000014c4 addiu a0, a0, 0x1ae4 | a0 += str.vdo_client_error;
0x000014c8 jalr t9 | t9 ();
0x000014cc lw gp, 0x18(sp) | gp = *(var_18h);
0x000014d0 sw s7, 0x10(sp) | *(var_10h_2) = s7;
0x000014d4 addiu a2, zero, 1 | a2 = 1;
0x000014d8 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x000014dc lw t9, -0x7f90(gp) | t9 = sym.imp.g_set_error;
0x000014e0 addiu a3, a3, 0x1b38 | a3 += str.Format___s__is_not_supported_n;
0x000014e4 move a1, v0 | a1 = v0;
0x000014e8 move a0, s1 | a0 = s1;
0x000014ec jalr t9 | t9 ();
0x000014f0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000014f4 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x000014f8 lw s5, -0x7fdc(gp) | s5 = *((gp - 8183));
0x000014fc b 0xfa0 | goto label_4;
| label_23:
0x00001508 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x0000150c lw t9, -0x7f9c(gp) | t9 = sym.imp.g_quark_from_static_string;
0x00001510 addiu a0, a0, 0x1ae4 | a0 += str.vdo_client_error;
0x00001514 jalr t9 | t9 ();
0x00001518 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000151c move a1, v0 | a1 = v0;
0x00001520 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00001524 lw t9, -0x7f90(gp) | t9 = sym.imp.g_set_error;
0x00001528 addiu a3, a3, 0x1bbc | a3 += str.Failed_to_get_data:__m;
| do {
0x0000152c move a2, zero | a2 = 0;
0x00001530 move a0, s1 | a0 = s1;
0x00001534 jalr t9 | t9 ();
0x00001538 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000153c lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001540 move a2, zero | a2 = 0;
0x00001544 lw t9, -0x7f28(gp) | t9 = sym.imp.vdo_stream_buffer_unref;
0x00001548 addiu a1, sp, 0x50 | a1 = sp + 0x50;
0x0000154c jalr t9 | t9 ();
0x00001550 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001554 b 0xfa0 | goto label_4;
| label_26:
0x00001558 lw t9, -0x7f28(gp) | t9 = sym.imp.vdo_stream_buffer_unref;
0x0000155c lw a0, 0x2114(s3) | a0 = *((s3 + 2117));
0x00001560 move a2, zero | a2 = 0;
0x00001564 addiu a1, sp, 0x50 | a1 = sp + 0x50;
0x00001568 jalr t9 | t9 ();
0x0000156c lw gp, 0x18(sp) | gp = *(var_18h);
0x00001570 b 0xfa0 | goto label_4;
| label_24:
0x00001574 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001578 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_quark_from_static_string;
0x0000157c addiu a0, a0, 0x1ae4 | a0 += str.vdo_client_error;
0x00001580 jalr t9 | t9 ();
0x00001584 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001588 move a1, v0 | a1 = v0;
0x0000158c lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00001590 lw t9, -0x7f90(gp) | t9 = sym.imp.g_set_error;
0x00001594 addiu a3, a3, 0x1bd4 | a3 += str.Failed_to_write_frame:__m;
0x00001598 b 0x152c |
| } while (1);
| label_15:
0x0000159c lw t9, -0x7fac(gp) | t9 = sym.imp.__stack_chk_fail;
0x000015a0 jalr t9 | t9 ();
0x000015a4 nop |
0x000015a8 nop |
0x000015ac nop |
| }
[*] Function printf used 2 times vdo-encode-client