[*] Binary protection state of ctod
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of ctod
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ctod @ 0x2d5c */
| #include <stdint.h>
|
; (fcn) sym.ctod_rotate_sensor () | void ctod_rotate_sensor () {
0x00002d5c lui gp, 2 |
0x00002d60 addiu gp, gp, -0x5d3c |
0x00002d64 addu gp, gp, t9 | gp += t9;
0x00002d68 addiu sp, sp, -0x50 |
0x00002d6c lw t9, -0x7fac(gp) | t9 = sym.ctod_read_hwid;
0x00002d70 sw s0, 0x3c(sp) | *(var_3ch_3) = s0;
0x00002d74 lw s0, -0x7eb8(gp) | s0 = *((gp - 8110));
0x00002d78 sw gp, 0x18(sp) | *(var_18h) = gp;
0x00002d7c sw s1, 0x40(sp) | *(var_40h_2) = s1;
0x00002d80 lw v0, (s0) | v0 = *(s0);
0x00002d84 addiu a1, sp, 0x28 | a1 = sp + 0x28;
0x00002d88 sw v0, 0x34(sp) | *(var_34h_2) = v0;
0x00002d8c sw ra, 0x4c(sp) | *(var_4ch_2) = ra;
0x00002d90 sw s3, 0x48(sp) | *(var_48h_2) = s3;
0x00002d94 sw s2, 0x44(sp) | *(var_44h_2) = s2;
0x00002d98 move s1, a0 | s1 = a0;
0x00002d9c sw zero, 0x24(sp) | *(var_24h_2) = 0;
0x00002da0 sw zero, 0x28(sp) | *(var_28h) = 0;
0x00002da4 addiu a0, sp, 0x24 | a0 = sp + 0x24;
0x00002da8 bal 0x24a0 | sym_ctod_read_hwid ();
0x00002dac lw a1, 0x24(sp) | a1 = *(var_24h_2);
0x00002db0 addiu v0, zero, 0x7bd | v0 = 0x7bd;
0x00002db4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (a1 == v0) {
0x00002db8 beq a1, v0, 0x2f3c | goto label_12;
| }
0x00002dbc slti v0, a1, 0x7be | v0 = (a1 < 0x7be) ? 1 : 0;
0x00002dc0 addiu v0, zero, 0x715 | v0 = 0x715;
| if (v0 == 0) {
0x00002dc4 beqz v0, 0x2e70 | goto label_13;
| }
0x00002dc8 slti v0, a1, 0x716 | v0 = (a1 < 0x716) ? 1 : 0;
| if (a1 == v0) {
0x00002dcc beq a1, v0, 0x2fd8 | goto label_14;
| }
0x00002dd0 addiu v0, zero, 0x1f4 | v0 = 0x1f4;
| if (v0 == 0) {
0x00002dd4 beqz v0, 0x2e14 | goto label_15;
| }
0x00002dd8 addiu v0, zero, 0x700 | v0 = 0x700;
| if (a1 != v0) {
0x00002ddc beq a1, v0, 0x2de8 |
0x00002de0 lw a3, (s1) | a3 = *(s1);
| if (a1 == v0) {
0x00002de4 bnel a1, v0, 0x2e34 | goto label_0;
| }
| }
0x00002de8 addiu v0, zero, 1 | v0 = 1;
| do {
| label_1:
0x00002dec lw a0, 0x34(sp) | a0 = *(var_34h_2);
0x00002df0 lw v1, (s0) | v1 = *(s0);
0x00002df4 lw ra, 0x4c(sp) | ra = *(var_4ch_2);
| if (a0 != v1) {
0x00002df8 bne a0, v1, 0x3220 | goto label_16;
| }
0x00002dfc lw s3, 0x48(sp) | s3 = *(var_48h_2);
0x00002e00 lw s2, 0x44(sp) | s2 = *(var_44h_2);
0x00002e04 lw s1, 0x40(sp) | s1 = *(var_40h_2);
0x00002e08 lw s0, 0x3c(sp) | s0 = *(var_3ch_3);
0x00002e0c addiu sp, sp, 0x50 |
0x00002e10 jr ra | return v0;
| label_15:
0x00002e14 addiu v0, zero, 0x779 | v0 = 0x779;
0x00002e18 addiu v0, zero, 0x7a6 | v0 = 0x7a6;
| if (a1 == v0) {
0x00002e1c beq a1, v0, 0x2fd8 | goto label_14;
| }
0x00002e20 addiu v0, zero, 0x753 | v0 = 0x753;
| if (a1 == v0) {
0x00002e24 beq a1, v0, 0x2fd8 | goto label_14;
| }
0x00002e28 addiu v0, zero, 0x7bd | v0 = 0x7bd;
| if (a1 == v0) {
0x00002e2c beq a1, v0, 0x2f3c | goto label_12;
| }
| label_2:
0x00002e30 lw a3, (s1) | a3 = *(s1);
| label_0:
0x00002e34 addiu v0, zero, 0x5a | v0 = 0x5a;
| if (a3 == 0) {
0x00002e38 beqz a3, 0x3050 | goto label_17;
| }
0x00002e3c addiu v0, zero, -0x5a | v0 = -0x5a;
| if (a3 == v0) {
0x00002e40 beq a3, v0, 0x3050 | goto label_17;
| }
0x00002e44 addiu s3, zero, 2 | s3 = 2;
| if (a3 == v0) {
0x00002e48 beq a3, v0, 0x2ff0 | goto label_7;
| }
0x00002e4c lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
| label_6:
0x00002e50 lw t9, -0x7f40(gp) | t9 = sym.imp.__syslog_chk;
0x00002e54 addiu a2, a2, 0x3ea8 | a2 += str.Unknown_CameraTiltOrientation__d_n;
0x00002e58 addiu a1, zero, 1 | a1 = 1;
0x00002e5c addiu a0, zero, 4 | a0 = 4;
0x00002e60 jalr t9 | t9 ();
0x00002e64 lw gp, 0x18(sp) | gp = *(var_18h);
0x00002e68 move v0, zero | v0 = 0;
0x00002e6c b 0x2dec |
| } while (1);
| label_13:
0x00002e70 addiu v0, zero, 0x7e6 | v0 = 0x7e6;
0x00002e74 slti v0, a1, 0x7e7 | v0 = (a1 < 0x7e7) ? 1 : 0;
| if (a1 == v0) {
0x00002e78 beq a1, v0, 0x2fd8 | goto label_14;
| }
0x00002e7c addiu v0, zero, 0x803 | v0 = 0x803;
| if (v0 == 0) {
0x00002e80 beqz v0, 0x2f1c | goto label_18;
| }
0x00002e84 addiu v0, zero, 0x7c0 | v0 = 0x7c0;
0x00002e88 addiu v0, zero, 0x7e5 | v0 = 0x7e5;
| if (a1 == v0) {
0x00002e8c beq a1, v0, 0x2f38 | goto label_19;
| }
0x00002e90 lw a3, (s1) | a3 = *(s1);
| if (a1 == v0) {
0x00002e94 bnel a1, v0, 0x2e34 | goto label_0;
| }
0x00002e98 addiu v0, zero, 0x7bd | v0 = 0x7bd;
0x00002e9c lw t9, -0x7fcc(gp) | t9 = *((gp - 8179));
| if (a1 == v0) {
0x00002ea0 beq a1, v0, 0x2f48 | goto label_20;
| }
0x00002ea4 addiu v0, zero, 0x7c0 | v0 = 0x7c0;
| label_3:
0x00002ea8 addiu v0, zero, 0x7e5 | v0 = 0x7e5;
| if (a1 == v0) {
0x00002eac beq a1, v0, 0x315c | goto label_21;
| }
0x00002eb0 addiu v0, zero, 0x991 | v0 = 0x991;
| if (a1 == v0) {
0x00002eb4 beq a1, v0, 0x3058 | goto label_22;
| }
0x00002eb8 addiu v0, zero, 0x992 | v0 = 0x992;
| if (a1 == v0) {
0x00002ebc beq a1, v0, 0x3058 | goto label_22;
| }
0x00002ec0 lw t9, -0x7fa8(gp) | t9 = sym.ctod_artpec_m305x_enable_disable_channels;
| if (a1 == v0) {
0x00002ec4 bne a1, v0, 0x2f08 |
0x00002ec8 lw t9, -0x7fcc(gp) | t9 = *((gp - 8179));
0x00002ecc addiu s2, sp, 0x2c | s2 = sp + 0x2c;
0x00002ed0 move a1, s2 | a1 = s2;
0x00002ed4 addiu a0, sp, 0x30 | a0 = sp + 0x30;
0x00002ed8 sw zero, 0x2c(sp) | *(var_2ch_2) = 0;
0x00002edc addiu t9, t9, 0x25e0 | t9 += fcn.000025e0;
0x00002ee0 sw zero, 0x30(sp) | *(var_30h_4) = 0;
0x00002ee4 bal 0x25e0 | fcn_000025e0 ();
0x00002ee8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00002eec beqz v0, 0x3080 | goto label_23;
| }
0x00002ef0 lw v1, 0x30(sp) | v1 = *(var_30h_4);
| label_10:
0x00002ef4 addiu v0, zero, 2 | v0 = 2;
0x00002ef8 lw s3, -0x7fcc(gp) | s3 = *((gp - 8179));
| if (v1 == v0) {
0x00002efc beq v1, v0, 0x2f80 | goto label_24;
| }
| label_5:
0x00002f00 lw a1, 0x24(sp) | a1 = *(var_24h_2);
| label_4:
0x00002f04 lw t9, -0x7fa8(gp) | t9 = sym.ctod_artpec_m305x_enable_disable_channels;
| }
0x00002f08 lw a0, (s1) | a0 = *(s1);
0x00002f0c bal 0x27ac | sym_ctod_artpec_m305x_enable_disable_channels ();
0x00002f10 lw gp, 0x18(sp) | gp = *(var_18h);
0x00002f14 addiu v0, zero, 1 | v0 = 1;
0x00002f18 b 0x2dec | goto label_1;
| label_18:
0x00002f1c slti v0, a1, 0x803 | v0 = (a1 < 0x803) ? 1 : 0;
| if (a1 == v0) {
0x00002f20 beq a1, v0, 0x2fd8 | goto label_14;
| }
0x00002f24 addiu v0, a1, -0x991 | v0 = a1 + -0x991;
| if (v0 != 0) {
0x00002f28 bnez v0, 0x2e30 | goto label_2;
| }
0x00002f2c sltiu v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
| if (v0 == 0) {
0x00002f30 beql v0, zero, 0x2e34 | goto label_0;
| }
0x00002f34 lw a3, (s1) | a3 = *(s1);
| label_19:
0x00002f38 addiu v0, zero, 0x7bd | v0 = 0x7bd;
| label_12:
0x00002f3c addiu v0, zero, 0x7c0 | v0 = 0x7c0;
| if (a1 != v0) {
0x00002f40 bne a1, v0, 0x2ea8 | goto label_3;
| }
0x00002f44 lw t9, -0x7fcc(gp) | t9 = *((gp - 8179));
| label_20:
0x00002f48 addiu s2, sp, 0x2c | s2 = sp + 0x2c;
0x00002f4c move a1, s2 | a1 = s2;
0x00002f50 addiu a0, sp, 0x30 | a0 = sp + 0x30;
0x00002f54 sw zero, 0x2c(sp) | *(var_2ch_2) = 0;
0x00002f58 addiu t9, t9, 0x25e0 | t9 += fcn.000025e0;
0x00002f5c sw zero, 0x30(sp) | *(var_30h_4) = 0;
0x00002f60 bal 0x25e0 | fcn_000025e0 ();
0x00002f64 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00002f68 beqz v0, 0x3080 | goto label_23;
| }
| label_8:
0x00002f6c lw v1, 0x30(sp) | v1 = *(var_30h_4);
0x00002f70 addiu v0, zero, 1 | v0 = 1;
0x00002f74 lw a1, 0x24(sp) | a1 = *(var_24h_2);
| if (v1 != v0) {
0x00002f78 bne v1, v0, 0x2f04 | goto label_4;
| }
0x00002f7c lw s3, -0x7fcc(gp) | s3 = *((gp - 8179));
| label_24:
0x00002f80 lw a1, -0x7fcc(gp) | a1 = *((gp - 8179));
0x00002f84 lw t9, -0x7ea4(gp) | t9 = sym.imp.fopen;
0x00002f88 addiu a1, a1, 0x3e28 | a1 += 0x3e28;
0x00002f8c addiu a0, s3, 0x3e2c | a0 = s3 + str._sys_class_flexnoc_qos_VIP1_VDMA1_bandwidth;
0x00002f90 jalr t9 | t9 ();
0x00002f94 move s2, v0 | s2 = v0;
0x00002f98 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00002f9c beqz v0, 0x318c | goto label_25;
| }
0x00002fa0 lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
0x00002fa4 lw t9, -0x7f78(gp) | t9 = sym.imp.__fprintf_chk
0x00002fa8 addiu a3, zero, 0x57e | a3 = 0x57e;
0x00002fac addiu a2, a2, 0x3e78 | a2 += 0x3e78;
0x00002fb0 addiu a1, zero, 1 | a1 = 1;
0x00002fb4 move a0, v0 | a0 = v0;
0x00002fb8 jalr t9 | t9 ();
0x00002fbc lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00002fc0 bltz v0, 0x31d4 | goto label_26;
| }
| label_11:
0x00002fc4 lw t9, -0x7f5c(gp) | t9 = sym.imp.fclose;
0x00002fc8 move a0, s2 | a0 = s2;
0x00002fcc jalr t9 | t9 ();
0x00002fd0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00002fd4 b 0x2f00 | goto label_5;
| label_14:
0x00002fd8 lw a3, (s1) | a3 = *(s1);
0x00002fdc addiu v0, zero, 0x5a | v0 = 0x5a;
| if (a3 != 0) {
0x00002fe0 beqz a3, 0x2fec |
0x00002fe4 addiu v0, zero, -0x5a | v0 = -0x5a;
| if (a3 != v0) {
0x00002fe8 bne a3, v0, 0x3048 | goto label_27;
| }
| }
0x00002fec addiu s3, zero, 2 | s3 = 2;
| label_7:
0x00002ff0 lw s2, -0x7fcc(gp) | s2 = *((gp - 8179));
0x00002ff4 lw t9, -0x7f08(gp) | t9 = sym.imp.open;
0x00002ff8 addiu a1, zero, 2 | a1 = 2;
0x00002ffc addiu a0, s2, 0x3ecc | a0 = s2 + str._dev_cam0;
0x00003000 jalr t9 | t9 ();
0x00003004 move s1, v0 | s1 = v0;
0x00003008 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x0000300c bltz v0, 0x30cc | goto label_28;
| }
0x00003010 lw t9, -0x7ee0(gp) | t9 = sym.imp.ioctl;
0x00003014 lui a1, 0x4004 | a1 = 0x40040000;
0x00003018 move a2, s3 | a2 = s3;
0x0000301c addiu a1, a1, 0x2a1e | a1 += 0x2a1e;
0x00003020 move a0, v0 | a0 = v0;
0x00003024 jalr t9 | t9 ();
0x00003028 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x0000302c bltz v0, 0x3118 | goto label_29;
| }
| label_9:
0x00003030 lw t9, -0x7f8c(gp) | t9 = sym.imp.close;
0x00003034 move a0, s1 | a0 = s1;
0x00003038 jalr t9 | t9 ();
0x0000303c lw gp, 0x18(sp) | gp = *(var_18h);
0x00003040 addiu v0, zero, 1 | v0 = 1;
0x00003044 b 0x2dec | goto label_1;
| label_27:
0x00003048 lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
| if (a3 != v0) {
0x0000304c bne a3, v0, 0x2e50 | goto label_6;
| }
| label_17:
0x00003050 move s3, zero | s3 = 0;
0x00003054 b 0x2ff0 | goto label_7;
| label_22:
0x00003058 lw t9, -0x7fcc(gp) | t9 = *((gp - 8179));
0x0000305c addiu s2, sp, 0x2c | s2 = sp + 0x2c;
0x00003060 move a1, s2 | a1 = s2;
0x00003064 addiu a0, sp, 0x30 | a0 = sp + 0x30;
0x00003068 sw zero, 0x2c(sp) | *(var_2ch_2) = 0;
0x0000306c addiu t9, t9, 0x25e0 | t9 += fcn.000025e0;
0x00003070 sw zero, 0x30(sp) | *(var_30h_4) = 0;
0x00003074 bal 0x25e0 | fcn_000025e0 ();
0x00003078 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x0000307c bnez v0, 0x2f6c | goto label_8;
| }
| do {
| label_23:
0x00003080 lw v0, 0x2c(sp) | v0 = *(var_2ch_2);
| if (v0 != 0) {
0x00003084 beql v0, zero, 0x3090 |
0x00003088 move v0, zero | v0 = 0;
0x0000308c lw v0, 8(v0) | v0 = *((v0 + 2));
| }
0x00003090 lw a3, -0x7fcc(gp) | a3 = *((gp - 8179));
0x00003094 lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
0x00003098 lw t9, -0x7f40(gp) | t9 = sym.imp.__syslog_chk;
0x0000309c addiu a3, a3, 0x3f20 | a3 += str.ctod_artpec_m306x_limit_vip1;
0x000030a0 addiu a2, a2, 0x3d6c | a2 += str._s:__s_n;
0x000030a4 addiu a1, zero, 1 | a1 = 1;
0x000030a8 addiu a0, zero, 3 | a0 = 3;
0x000030ac sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000030b0 jalr t9 | t9 ();
0x000030b4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000030b8 lw t9, -0x7f64(gp) | t9 = sym.imp.g_clear_error;
0x000030bc move a0, s2 | a0 = s2;
0x000030c0 jalr t9 | t9 ();
0x000030c4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000030c8 b 0x2f00 | goto label_5;
| label_28:
0x000030cc lw t9, -0x7f28(gp) | t9 = sym.imp.__errno_location;
0x000030d0 jalr t9 | t9 ();
0x000030d4 nop |
0x000030d8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000030dc lw t9, -0x7f00(gp) | t9 = sym.imp.strerror;
0x000030e0 lw a0, (v0) | a0 = *(v0);
0x000030e4 jalr t9 | t9 ();
0x000030e8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000030ec sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000030f0 addiu a3, s2, 0x3ecc | a3 = s2 + str._dev_cam0;
0x000030f4 lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
0x000030f8 lw t9, -0x7f40(gp) | t9 = sym.imp.__syslog_chk;
0x000030fc addiu a2, a2, 0x3ed8 | a2 += str.Failed_to_open_device__s:__s;
0x00003100 addiu a1, zero, 1 | a1 = 1;
0x00003104 addiu a0, zero, 3 | a0 = 3;
0x00003108 jalr t9 | t9 ();
0x0000310c lw gp, 0x18(sp) | gp = *(var_18h);
0x00003110 move v0, zero | v0 = 0;
0x00003114 b 0x2dec | goto label_1;
| label_29:
0x00003118 lw t9, -0x7f28(gp) | t9 = sym.imp.__errno_location;
0x0000311c jalr t9 | t9 ();
0x00003120 nop |
0x00003124 lw gp, 0x18(sp) | gp = *(var_18h);
0x00003128 lw t9, -0x7f00(gp) | t9 = sym.imp.strerror;
0x0000312c lw a0, (v0) | a0 = *(v0);
0x00003130 jalr t9 | t9 ();
0x00003134 lw gp, 0x18(sp) | gp = *(var_18h);
0x00003138 move a3, v0 | a3 = v0;
0x0000313c addiu a1, zero, 1 | a1 = 1;
0x00003140 lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
0x00003144 lw t9, -0x7f40(gp) | t9 = sym.imp.__syslog_chk;
0x00003148 addiu a2, a2, 0x3ef8 | a2 += str.Failed_to_rotate_sensor__s;
0x0000314c addiu a0, zero, 3 | a0 = 3;
0x00003150 jalr t9 | t9 ();
0x00003154 lw gp, 0x18(sp) | gp = *(var_18h);
0x00003158 b 0x3030 | goto label_9;
| label_21:
0x0000315c lw t9, -0x7fcc(gp) | t9 = *((gp - 8179));
0x00003160 addiu s2, sp, 0x2c | s2 = sp + 0x2c;
0x00003164 move a1, s2 | a1 = s2;
0x00003168 addiu a0, sp, 0x30 | a0 = sp + 0x30;
0x0000316c sw zero, 0x2c(sp) | *(var_2ch_2) = 0;
0x00003170 addiu t9, t9, 0x25e0 | t9 += fcn.000025e0;
0x00003174 sw zero, 0x30(sp) | *(var_30h_4) = 0;
0x00003178 bal 0x25e0 | fcn_000025e0 ();
0x0000317c lw gp, 0x18(sp) | gp = *(var_18h);
0x00003180 beqz v0, 0x3080 |
| } while (v0 == 0);
0x00003184 lw v1, 0x30(sp) | v1 = *(var_30h_4);
0x00003188 b 0x2ef4 | goto label_10;
| label_25:
0x0000318c lw t9, -0x7f28(gp) | t9 = sym.imp.__errno_location;
0x00003190 jalr t9 | t9 ();
0x00003194 nop |
0x00003198 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000319c lw t9, -0x7f00(gp) | t9 = sym.imp.strerror;
0x000031a0 lw a0, (v0) | a0 = *(v0);
0x000031a4 jalr t9 | t9 ();
0x000031a8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000031ac sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000031b0 addiu a3, s3, 0x3e2c | a3 = s3 + str._sys_class_flexnoc_qos_VIP1_VDMA1_bandwidth;
0x000031b4 lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
0x000031b8 lw t9, -0x7f40(gp) | t9 = sym.imp.__syslog_chk;
0x000031bc addiu a2, a2, 0x3e58 | a2 += str.failed_to_open__s_due_to__s;
0x000031c0 addiu a1, zero, 1 | a1 = 1;
0x000031c4 addiu a0, zero, 3 | a0 = 3;
0x000031c8 jalr t9 | t9 ();
0x000031cc lw gp, 0x18(sp) | gp = *(var_18h);
0x000031d0 b 0x2f00 | goto label_5;
| label_26:
0x000031d4 lw t9, -0x7f28(gp) | t9 = sym.imp.__errno_location;
0x000031d8 addiu s3, s3, 0x3e2c | s3 += str._sys_class_flexnoc_qos_VIP1_VDMA1_bandwidth;
0x000031dc jalr t9 | t9 ();
0x000031e0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000031e4 lw t9, -0x7f00(gp) | t9 = sym.imp.strerror;
0x000031e8 lw a0, (v0) | a0 = *(v0);
0x000031ec jalr t9 | t9 ();
0x000031f0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000031f4 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000031f8 sw s3, 0x10(sp) | *(var_10h_3) = s3;
0x000031fc lw a2, -0x7fcc(gp) | a2 = *((gp - 8179));
0x00003200 lw t9, -0x7f40(gp) | t9 = sym.imp.__syslog_chk;
0x00003204 addiu a3, zero, 0x57e | a3 = 0x57e;
0x00003208 addiu a2, a2, 0x3e7c | a2 += str.failed_to_write__d_to__s_due_to__s;
0x0000320c addiu a1, zero, 1 | a1 = 1;
0x00003210 addiu a0, zero, 3 | a0 = 3;
0x00003214 jalr t9 | t9 ();
0x00003218 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000321c b 0x2fc4 | goto label_11;
| label_16:
0x00003220 lw t9, -0x7ed0(gp) | t9 = sym.imp.__stack_chk_fail;
0x00003224 jalr t9 | t9 ();
0x00003228 nop |
| }
[*] Function printf used 2 times ctod