[*] Binary protection state of ptzaurus
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of ptzaurus
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ptzaurus @ 0x12aa0 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 601552 named .text */
0x00012aa0 lui gp, 0xc |
0x00012aa4 addiu gp, gp, 0xd50 |
0x00012aa8 addu gp, gp, t9 | gp += t9;
0x00012aac lw v0, -0x7fd8(gp) | v0 = *(gp);
0x00012ab0 addiu sp, sp, -0xc8 |
| /* str.no_daemon */
0x00012ab4 addiu v0, v0, 0x7904 | v0 += 0x7904;
0x00012ab8 sw fp, 0xc0(sp) | *(var_c0h) = fp;
0x00012abc sw v0, 0x64(sp) | *(var_64h) = v0;
0x00012ac0 lw fp, -0x73dc(gp) | fp = *((gp - 7415));
0x00012ac4 addiu v0, zero, 0x6e | v0 = 0x6e;
0x00012ac8 sb v0, 0x68(sp) | *(var_68h) = v0;
0x00012acc addiu v0, sp, 0x58 | v0 = sp + 0x58;
0x00012ad0 sw v0, 0x74(sp) | *(var_74h) = v0;
0x00012ad4 lw v0, -0x7fd8(gp) | v0 = *(gp);
0x00012ad8 lw v1, (fp) | v1 = *(fp);
0x00012adc lw t9, -0x760c(gp) | t9 = sym.imp.g_option_context_new;
0x00012ae0 sw gp, 0x18(sp) | *(var_18h) = gp;
0x00012ae4 sw a0, 0xc8(sp) | *(arg_0h) = a0;
| /* str.Do_not_daemonize */
0x00012ae8 addiu v0, v0, 0x7910 | v0 += 0x7910;
0x00012aec move a0, zero | a0 = 0;
0x00012af0 sw ra, 0xc4(sp) | *(var_c4h) = ra;
0x00012af4 sw v0, 0x78(sp) | *(var_78h) = v0;
0x00012af8 sw a1, 0x4c(sp) | *(var_4ch) = a1;
0x00012afc sw v1, 0x9c(sp) | *(var_9ch) = v1;
0x00012b00 sw s7, 0xbc(sp) | *(var_bch) = s7;
0x00012b04 sw s6, 0xb8(sp) | *(var_b8h) = s6;
0x00012b08 sw s5, 0xb4(sp) | *(var_b4h) = s5;
0x00012b0c sw s4, 0xb0(sp) | *(var_b0h) = s4;
0x00012b10 sw s3, 0xac(sp) | *(var_ach) = s3;
0x00012b14 sw s2, 0xa8(sp) | *(var_a8h) = s2;
0x00012b18 sw s1, 0xa4(sp) | *(var_a4h) = s1;
0x00012b1c sw s0, 0xa0(sp) | *(var_a0h) = s0;
0x00012b20 sw zero, 0x6c(sp) | *(var_6ch) = 0;
0x00012b24 sw zero, 0x70(sp) | *(var_70h) = 0;
0x00012b28 sw zero, 0x7c(sp) | *(var_7ch) = 0;
0x00012b2c sw zero, 0x80(sp) | *(var_80h) = 0;
0x00012b30 sb zero, 0x84(sp) | *(var_84h) = 0;
0x00012b34 sw zero, 0x88(sp) | *(var_88h) = 0;
0x00012b38 sw zero, 0x8c(sp) | *(var_8ch) = 0;
0x00012b3c sw zero, 0x90(sp) | *(var_90h) = 0;
0x00012b40 sw zero, 0x94(sp) | *(var_94h) = 0;
0x00012b44 sw zero, 0x98(sp) | *(var_98h) = 0;
0x00012b48 sw zero, 0x54(sp) | *(var_54h) = 0;
0x00012b4c sw zero, 0x58(sp) | *(var_58h) = 0;
0x00012b50 jalr t9 | t9 ();
0x00012b54 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012b58 beqz v0, 0x1354c | goto label_11;
| }
0x00012b5c lw t9, -0x7194(gp) | t9 = sym.imp.g_option_context_add_main_entries;
0x00012b60 move a0, v0 | a0 = v0;
0x00012b64 move a2, zero | a2 = 0;
0x00012b68 addiu a1, sp, 0x64 | a1 = sp + 0x64;
0x00012b6c move s0, v0 | s0 = v0;
0x00012b70 jalr t9 | t9 ();
0x00012b74 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012b78 addiu a3, sp, 0x54 | a3 = sp + 0x54;
0x00012b7c addiu a2, sp, 0x4c | a2 = sp + 0x4c;
0x00012b80 lw t9, -0x7344(gp) | t9 = sym.imp.g_option_context_parse;
0x00012b84 addiu a1, sp, 0xc8 | a1 = sp + 0xc8;
0x00012b88 move a0, s0 | a0 = s0;
0x00012b8c jalr t9 | t9 ();
0x00012b90 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012b94 beqz v0, 0x13524 | goto label_12;
| }
0x00012b98 lw t9, -0x7050(gp) | t9 = sym.imp.g_option_context_free;
0x00012b9c move a0, s0 | a0 = s0;
0x00012ba0 jalr t9 | t9 ();
0x00012ba4 lw v0, 0x58(sp) | v0 = *(var_58h);
0x00012ba8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012bac beqz v0, 0x12fb8 | goto label_13;
| }
0x00012bb0 lw v0, 0x4c(sp) | v0 = *(var_4ch);
0x00012bb4 lw t9, -0x702c(gp) | t9 = sym.imp.g_path_get_basename;
0x00012bb8 lw a0, (v0) | a0 = *(v0);
0x00012bbc jalr t9 | t9 ();
0x00012bc0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012bc4 addiu a2, zero, 8 | a2 = 8;
0x00012bc8 addiu a1, zero, 0x21 | a1 = 0x21;
0x00012bcc lw t9, -0x7240(gp) | t9 = sym.imp.openlog;
0x00012bd0 move a0, v0 | a0 = v0;
0x00012bd4 jalr t9 | t9 ();
0x00012bd8 lw gp, 0x18(sp) | gp = *(var_18h);
| label_1:
0x00012bdc lw v0, -0x7fd8(gp) | v0 = *(gp);
0x00012be0 lw t9, -0x7750(gp) | t9 = sym.imp.g_file_test;
0x00012be4 sw v0, 0x20(sp) | *(var_20h) = v0;
0x00012be8 addiu a1, zero, 4 | a1 = 4;
| /* str._usr_share_ptz_gpio.d */
0x00012bec addiu a0, v0, 0x79e8 | a0 = v0 + 0x79e8;
0x00012bf0 sw zero, 0x5c(sp) | *(var_5ch) = 0;
0x00012bf4 jalr t9 | t9 ();
0x00012bf8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012bfc beqz v0, 0x13314 | goto label_14;
| }
0x00012c00 lw v0, 0x20(sp) | v0 = *(var_20h);
0x00012c04 lw t9, -0x774c(gp) | t9 = sym.imp.g_dir_open;
0x00012c08 addiu a2, sp, 0x5c | a2 = sp + 0x5c;
0x00012c0c move a1, zero | a1 = 0;
0x00012c10 addiu a0, v0, 0x79e8 | a0 = v0 + 0x79e8;
0x00012c14 jalr t9 | t9 ();
0x00012c18 lw v1, 0x5c(sp) | v1 = *(var_5ch);
0x00012c1c lw gp, 0x18(sp) | gp = *(var_18h);
0x00012c20 sw v0, 0x2c(sp) | *(var_2ch) = v0;
| if (v1 != 0) {
0x00012c24 bnez v1, 0x1328c | goto label_15;
| }
0x00012c28 lw v0, -0x7fd8(gp) | v0 = *(gp);
0x00012c2c addiu s0, zero, 1 | s0 = 1;
0x00012c30 sw v0, 0x40(sp) | *(var_40h) = v0;
0x00012c34 lw v0, -0x7fd8(gp) | v0 = *(gp);
| /* str.active_low */
0x00012c38 addiu v0, v0, 0x7a70 | v0 += 0x7a70;
0x00012c3c sw v0, 0x44(sp) | *(var_44h) = v0;
0x00012c40 lw v0, -0x7fd4(gp) | v0 = *(gp);
| /* fcn.000138a0 */
0x00012c44 addiu s7, v0, 0x38a0 | s7 = v0 + 0x38a0;
0x00012c48 lw v0, -0x7fd8(gp) | v0 = *(gp);
| /* str.edge */
0x00012c4c addiu v0, v0, 0x7af4 | v0 += 0x7af4;
0x00012c50 sw v0, 0x48(sp) | *(var_48h) = v0;
0x00012c54 b 0x12c78 |
| while (s0 == 0) {
| label_0:
0x00012c58 lw t9, -0x7628(gp) | t9 = sym.imp.g_key_file_free;
0x00012c5c move a0, s3 | a0 = s3;
0x00012c60 jalr t9 | t9 ();
0x00012c64 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012c68 lw t9, -0x6f68(gp) | t9 = *((gp - 7130));
0x00012c6c move a0, s6 | a0 = s6;
0x00012c70 jalr t9 | t9 ();
0x00012c74 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012c78 lw t9, -0x7028(gp) | t9 = sym.imp.g_dir_read_name;
0x00012c7c lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x00012c80 jalr t9 | t9 ();
0x00012c84 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012c88 beqz v0, 0x1305c | goto label_16;
| }
0x00012c8c move a2, v0 | a2 = v0;
| if (s0 == 0) {
0x00012c90 beqz s0, 0x13598 | goto label_17;
| }
0x00012c94 lw v0, 0x20(sp) | v0 = *(var_20h);
0x00012c98 lw t9, -0x7268(gp) | t9 = sym.imp.g_strdup_printf;
0x00012c9c addiu a1, v0, 0x79e8 | a1 = v0 + 0x79e8;
0x00012ca0 lw v0, 0x40(sp) | v0 = *(var_40h);
0x00012ca4 addiu s1, sp, 0x60 | s1 = sp + 0x60;
0x00012ca8 addiu a0, v0, 0x7a28 | a0 = v0 + 0x7a28;
0x00012cac jalr t9 | t9 ();
0x00012cb0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012cb4 sw zero, 0x60(sp) | *(var_60h) = 0;
0x00012cb8 lw t9, -0x70a8(gp) | t9 = sym.imp.g_key_file_new;
0x00012cbc move s6, v0 | s6 = v0;
0x00012cc0 jalr t9 | t9 ();
0x00012cc4 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012cc8 move a3, s1 | a3 = s1;
0x00012ccc move a2, zero | a2 = 0;
0x00012cd0 lw t9, -0x74e8(gp) | t9 = sym.imp.g_key_file_load_from_file;
0x00012cd4 move a1, s6 | a1 = s6;
0x00012cd8 move a0, v0 | a0 = v0;
0x00012cdc move s3, v0 | s3 = v0;
0x00012ce0 jalr t9 | t9 ();
0x00012ce4 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012ce8 move s0, v0 | s0 = v0;
0x00012cec lw t9, -0x70b4(gp) | t9 = sym.imp.g_clear_error;
0x00012cf0 move a0, s1 | a0 = s1;
0x00012cf4 jalr t9 | t9 ();
0x00012cf8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012cfc beqz s0, 0x12c58 |
| }
0x00012d00 lw s0, -0x7fd8(gp) | s0 = *(gp);
0x00012d04 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00012d08 lw t9, -0x704c(gp) | t9 = sym.imp.g_key_file_get_string;
0x00012d0c move a3, s1 | a3 = s1;
| /* str.DRIVER_GPIO */
0x00012d10 addiu a1, s0, 0x7a38 | a1 = s0 + 0x7a38;
| /* str.Pins */
0x00012d14 addiu a2, a2, 0x7a30 | a2 += 0x7a30;
0x00012d18 move a0, s3 | a0 = s3;
0x00012d1c jalr t9 | t9 ();
0x00012d20 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012d24 move a0, s1 | a0 = s1;
0x00012d28 sw v0, 0x30(sp) | *(var_30h) = v0;
0x00012d2c lw t9, -0x70b4(gp) | t9 = sym.imp.g_clear_error;
0x00012d30 move s4, v0 | s4 = v0;
0x00012d34 jalr t9 | t9 ();
0x00012d38 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012d3c move a3, s1 | a3 = s1;
| /* str.DRIVER_GPIO */
0x00012d40 addiu a1, s0, 0x7a38 | a1 = s0 + 0x7a38;
0x00012d44 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00012d48 lw t9, -0x704c(gp) | t9 = sym.imp.g_key_file_get_string;
| /* str.ActiveLow */
0x00012d4c addiu a2, a2, 0x7a44 | a2 += 0x7a44;
0x00012d50 move a0, s3 | a0 = s3;
0x00012d54 jalr t9 | t9 ();
0x00012d58 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012d5c move a0, s1 | a0 = s1;
0x00012d60 sw v0, 0x34(sp) | *(var_34h) = v0;
0x00012d64 lw t9, -0x70b4(gp) | t9 = sym.imp.g_clear_error;
0x00012d68 lw s0, -0x7fd8(gp) | s0 = *(gp);
0x00012d6c move s2, v0 | s2 = v0;
0x00012d70 jalr t9 | t9 ();
0x00012d74 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012d78 addiu a2, zero, -1 | a2 = -1;
| /* esilref: ', ' */
0x00012d7c addiu a1, s0, 0x7a50 | a1 = s0 + 0x7a50;
0x00012d80 lw t9, -0x7004(gp) | t9 = sym.imp.g_strsplit_set;
0x00012d84 move a0, s4 | a0 = s4;
0x00012d88 jalr t9 | t9 ();
0x00012d8c lw gp, 0x18(sp) | gp = *(var_18h);
0x00012d90 move s1, v0 | s1 = v0;
0x00012d94 move a0, s2 | a0 = s2;
0x00012d98 lw t9, -0x7004(gp) | t9 = sym.imp.g_strsplit_set;
0x00012d9c sw v0, 0x38(sp) | *(var_38h) = v0;
0x00012da0 addiu a2, zero, -1 | a2 = -1;
| /* esilref: ', ' */
0x00012da4 addiu a1, s0, 0x7a50 | a1 = s0 + 0x7a50;
0x00012da8 jalr t9 | t9 ();
0x00012dac lw a0, (s1) | a0 = *(s1);
0x00012db0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012db4 sw v0, 0x3c(sp) | *(var_3ch) = v0;
| if (a0 == 0) {
0x00012db8 beqz a0, 0x13590 | goto label_18;
| }
0x00012dbc lw a1, -0x7fd8(gp) | a1 = *(gp);
0x00012dc0 addiu s5, s1, 4 | s5 = s1 + 4;
0x00012dc4 sw a1, 0x24(sp) | *(var_24h) = a1;
0x00012dc8 lw a1, -0x7fd8(gp) | a1 = *(gp);
0x00012dcc move s4, v0 | s4 = v0;
0x00012dd0 sw a1, 0x28(sp) | *(var_28h) = a1;
0x00012dd4 b 0x12f0c |
| while (v0 != 0) {
0x00012dd8 lw a1, 0x44(sp) | a1 = *(var_44h);
0x00012ddc move t9, s7 | t9 = s7;
0x00012de0 move a0, s1 | a0 = s1;
0x00012de4 bal 0x138a0 | fcn_000138a0 ();
0x00012de8 move s0, v0 | s0 = v0;
0x00012dec lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012df0 beqz v0, 0x1334c | goto label_19;
| }
0x00012df4 lw v0, 0x24(sp) | v0 = *(var_24h);
0x00012df8 move a0, s1 | a0 = s1;
0x00012dfc move t9, s7 | t9 = s7;
0x00012e00 addiu a1, v0, 0x7ab4 | a1 = v0 + 0x7ab4;
0x00012e04 bal 0x138a0 | fcn_000138a0 ();
0x00012e08 move s0, v0 | s0 = v0;
0x00012e0c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012e10 beqz v0, 0x13380 | goto label_20;
| }
0x00012e14 lw t9, -0x6fdc(gp) | t9 = sym.imp.ugpio_alterable_edge;
0x00012e18 move a0, s2 | a0 = s2;
0x00012e1c jalr t9 | t9 ();
0x00012e20 lw v0, 0x28(sp) | v0 = *(var_28h);
| if (v0 != 0) {
0x00012e24 beqz v0, 0x12e48 |
0x00012e28 lw a1, 0x48(sp) | a1 = *(var_48h);
0x00012e2c move t9, s7 | t9 = s7;
0x00012e30 move a0, s1 | a0 = s1;
0x00012e34 bal 0x138a0 | fcn_000138a0 ();
0x00012e38 move s0, v0 | s0 = v0;
0x00012e3c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012e40 beqz v0, 0x13468 | goto label_21;
| }
0x00012e44 lw v0, 0x28(sp) | v0 = *(var_28h);
| }
0x00012e48 move a0, s1 | a0 = s1;
0x00012e4c move t9, s7 | t9 = s7;
0x00012e50 addiu a1, v0, 0x7b2c | a1 = v0 + 0x7b2c;
0x00012e54 bal 0x138a0 | fcn_000138a0 ();
0x00012e58 move s0, v0 | s0 = v0;
0x00012e5c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012e60 beqz v0, 0x13394 | goto label_22;
| }
0x00012e64 lw a1, -0x7fd8(gp) | a1 = *(gp);
0x00012e68 move a0, s1 | a0 = s1;
0x00012e6c move t9, s7 | t9 = s7;
| /* str.value */
0x00012e70 addiu a1, a1, 0x7b68 | a1 += 0x7b68;
0x00012e74 bal 0x138a0 | fcn_000138a0 ();
0x00012e78 move s0, v0 | s0 = v0;
0x00012e7c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012e80 beqz v0, 0x133a8 | goto label_23;
| }
0x00012e84 lw a0, (s4) | a0 = *(s4);
0x00012e88 lw a1, -0x7fd8(gp) | a1 = *(gp);
| if (a0 == 0) {
0x00012e8c beqz a0, 0x133bc | goto label_24;
| }
0x00012e90 lw t9, -0x709c(gp) | t9 = sym.imp.g_strcmp0;
| /* str.true */
0x00012e94 addiu a1, a1, 0x7bd4 | a1 += 0x7bd4;
0x00012e98 jalr t9 | t9 ();
0x00012e9c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00012ea0 bnez v0, 0x12ee0 |
0x00012ea4 lw t9, -0x7448(gp) | t9 = sym.imp.ugpio_full_open;
0x00012ea8 move a0, s2 | a0 = s2;
0x00012eac jalr t9 | t9 ();
0x00012eb0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00012eb4 bnez v0, 0x134b8 | goto label_25;
| }
0x00012eb8 lw t9, -0x73ac(gp) | t9 = sym.imp.ugpio_set_activelow;
0x00012ebc addiu a1, zero, 1 | a1 = 1;
0x00012ec0 move a0, s2 | a0 = s2;
0x00012ec4 jalr t9 | t9 ();
0x00012ec8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00012ecc bnez v0, 0x134f0 | goto label_26;
| }
0x00012ed0 lw t9, -0x7700(gp) | t9 = sym.imp.ugpio_close;
0x00012ed4 move a0, s2 | a0 = s2;
0x00012ed8 jalr t9 | t9 ();
0x00012edc lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x00012ee0 lw s1, -0x7fdc(gp) | s1 = *((gp - 8183));
0x00012ee4 lw t9, -0x7450(gp) | t9 = sym.imp.g_list_append;
0x00012ee8 addiu s5, s5, 4 | s5 += 4;
0x00012eec lw a0, -0x3750(s1) | a0 = *((s1 - 3540));
0x00012ef0 move a1, s2 | a1 = s2;
0x00012ef4 jalr t9 | t9 ();
0x00012ef8 lw a0, -4(s5) | a0 = *((s5 - 1));
0x00012efc lw gp, 0x18(sp) | gp = *(var_18h);
0x00012f00 sw v0, -0x3750(s1) | *((s1 - 3540)) = v0;
0x00012f04 addiu s4, s4, 4 | s4 += 4;
| if (a0 == 0) {
0x00012f08 beqz a0, 0x12f74 | goto label_4;
| }
0x00012f0c lw t9, -0x7204(gp) | t9 = sym.imp.strtol;
0x00012f10 addiu a2, zero, 0xa | a2 = 0xa;
0x00012f14 move a1, zero | a1 = 0;
0x00012f18 jalr t9 | t9 ();
0x00012f1c lw gp, 0x18(sp) | gp = *(var_18h);
0x00012f20 move a1, zero | a1 = 0;
0x00012f24 move a0, v0 | a0 = v0;
0x00012f28 lw t9, -0x7738(gp) | t9 = sym.imp.ugpio_request;
0x00012f2c move s1, v0 | s1 = v0;
0x00012f30 jalr t9 | t9 ();
0x00012f34 move s2, v0 | s2 = v0;
0x00012f38 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012f3c bnez v0, 0x12dd8 |
| }
0x00012f40 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00012f44 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x00012f48 move a3, s1 | a3 = s1;
| /* str.Failed_to_export__pin_d */
0x00012f4c addiu a2, a2, 0x7a54 | a2 += 0x7a54;
0x00012f50 addiu a1, zero, 1 | a1 = 1;
0x00012f54 addiu a0, zero, 3 | a0 = 3;
0x00012f58 jalr t9 | t9 ();
0x00012f5c lw gp, 0x18(sp) | gp = *(var_18h);
0x00012f60 move a0, zero | a0 = 0;
0x00012f64 lw t9, -0x75bc(gp) | t9 = sym.imp.ugpio_free;
0x00012f68 move s0, zero | s0 = 0;
0x00012f6c jalr t9 | t9 ();
0x00012f70 lw gp, 0x18(sp) | gp = *(var_18h);
| label_4:
0x00012f74 lw t9, -0x7660(gp) | t9 = sym.imp.g_strfreev;
0x00012f78 lw a0, 0x38(sp) | a0 = *(var_38h);
0x00012f7c jalr t9 | t9 ();
0x00012f80 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012f84 lw t9, -0x7660(gp) | t9 = sym.imp.g_strfreev;
0x00012f88 lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x00012f8c jalr t9 | t9 ();
0x00012f90 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012f94 lw t9, -0x6f68(gp) | t9 = *((gp - 7130));
0x00012f98 lw a0, 0x30(sp) | a0 = *(var_30h);
0x00012f9c jalr t9 | t9 ();
0x00012fa0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012fa4 lw t9, -0x6f68(gp) | t9 = *((gp - 7130));
0x00012fa8 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00012fac jalr t9 | t9 ();
0x00012fb0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012fb4 b 0x12c58 | goto label_0;
| label_13:
0x00012fb8 lw t9, -0x70f8(gp) | t9 = sym.imp.daemon_pid_file_is_running;
0x00012fbc jalr t9 | t9 ();
0x00012fc0 nop |
0x00012fc4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00012fc8 bgez v0, 0x13204 |
0x00012fcc lw t9, -0x76c4(gp) | t9 = sym.imp.daemon_retval_init;
0x00012fd0 jalr t9 | t9 ();
0x00012fd4 nop |
0x00012fd8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012fdc lw t9, -0x7438(gp) | t9 = sym.imp.daemon_fork;
0x00012fe0 jalr t9 | t9 ();
0x00012fe4 nop |
0x00012fe8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00012fec bltz v0, 0x1343c | goto label_27;
| }
0x00012ff0 lw t9, -0x72d8(gp) | t9 = sym.imp.umask;
| if (v0 != 0) {
0x00012ff4 bnez v0, 0x1325c | goto label_28;
| }
0x00012ff8 move a0, zero | a0 = 0;
0x00012ffc jalr t9 | t9 ();
0x00013000 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013004 lw t9, -0x7530(gp) | t9 = sym.imp.daemon_close_all;
0x00013008 addiu a0, zero, -1 | a0 = -1;
0x0001300c jalr t9 | t9 ();
0x00013010 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00013014 bltz v0, 0x1347c | goto label_29;
| }
0x00013018 lw t9, -0x76b0(gp) | t9 = sym.imp.daemon_pid_file_create;
0x0001301c jalr t9 | t9 ();
0x00013020 nop |
0x00013024 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00013028 bltz v0, 0x13554 | goto label_30;
| }
0x0001302c lw v0, 0x4c(sp) | v0 = *(var_4ch);
0x00013030 lw t9, -0x702c(gp) | t9 = sym.imp.g_path_get_basename;
0x00013034 lw a0, (v0) | a0 = *(v0);
0x00013038 jalr t9 | t9 ();
0x0001303c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013040 addiu a2, zero, 0x18 | a2 = 0x18;
0x00013044 addiu a1, zero, 1 | a1 = 1;
0x00013048 lw t9, -0x7240(gp) | t9 = sym.imp.openlog;
0x0001304c move a0, v0 | a0 = v0;
0x00013050 jalr t9 | t9 ();
0x00013054 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013058 b 0x12bdc | goto label_1;
| label_16:
0x0001305c lw t9, -0x6fec(gp) | t9 = sym.imp.g_dir_close;
0x00013060 lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x00013064 jalr t9 | t9 ();
0x00013068 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s0 == 0) {
0x0001306c beqz s0, 0x132bc | goto label_9;
| }
0x00013070 lw s2, -0x7fd8(gp) | s2 = *(gp);
0x00013074 lw t9, -0x7704(gp) | t9 = sym.imp.getpwnam;
| /* str.ptzadm */
0x00013078 addiu a0, s2, 0x7c5c | a0 = s2 + 0x7c5c;
0x0001307c jalr t9 | t9 ();
0x00013080 move s1, v0 | s1 = v0;
0x00013084 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00013088 beqz v0, 0x1364c | goto label_31;
| }
0x0001308c lw t9, -0x70c0(gp) | t9 = sym.imp.getgrnam;
| /* str.ptzadm */
0x00013090 addiu a0, s2, 0x7c5c | a0 = s2 + 0x7c5c;
0x00013094 jalr t9 | t9 ();
0x00013098 move s0, v0 | s0 = v0;
0x0001309c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000130a0 beqz v0, 0x13624 | goto label_32;
| }
0x000130a4 lw t9, -0x76c0(gp) | t9 = sym.imp.setgid;
0x000130a8 lw a0, 8(v0) | a0 = *((v0 + 2));
0x000130ac jalr t9 | t9 ();
0x000130b0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x000130b4 bltz v0, 0x135ac | goto label_33;
| }
0x000130b8 lw t9, -0x7470(gp) | t9 = sym.imp.initgroups;
0x000130bc lw a1, 8(s0) | a1 = *((s0 + 2));
0x000130c0 lw a0, (s1) | a0 = *(s1);
0x000130c4 jalr t9 | t9 ();
0x000130c8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x000130cc bltz v0, 0x135f4 | goto label_34;
| }
0x000130d0 lw t9, -0x72f8(gp) | t9 = sym.imp.setuid;
0x000130d4 lw a0, 8(s1) | a0 = *((s1 + 2));
0x000130d8 jalr t9 | t9 ();
0x000130dc lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x000130e0 bltz v0, 0x13674 | goto label_35;
| }
0x000130e4 lw t9, -0x7058(gp) | t9 = sym.imp.signal;
0x000130e8 addiu a1, zero, 1 | a1 = 1;
0x000130ec addiu a0, zero, 1 | a0 = 1;
0x000130f0 jalr t9 | t9 ();
0x000130f4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000130f8 move a1, zero | a1 = 0;
0x000130fc lw t9, -0x71c4(gp) | t9 = sym.imp.g_main_loop_new;
0x00013100 lw s0, -0x7fdc(gp) | s0 = *((gp - 8183));
0x00013104 move a0, zero | a0 = 0;
0x00013108 jalr t9 | t9 ();
0x0001310c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013110 sw v0, -0x3744(s0) | *((s0 - 3537)) = v0;
| if (v0 == 0) {
0x00013114 beqz v0, 0x1341c | goto label_36;
| }
0x00013118 lw s1, -0x7fd4(gp) | s1 = *(gp);
0x0001311c lw t9, -0x722c(gp) | t9 = sym.imp.g_unix_signal_add;
0x00013120 addiu a1, s1, 0x3820 | a1 = s1 + 0x3820;
0x00013124 move a2, zero | a2 = 0;
0x00013128 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x0001312c addiu a0, zero, 0xf | a0 = 0xf;
0x00013130 jalr t9 | t9 ();
0x00013134 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013138 addiu a1, s1, 0x3820 | a1 = s1 + 0x3820;
0x0001313c move a2, zero | a2 = 0;
0x00013140 lw t9, -0x722c(gp) | t9 = sym.imp.g_unix_signal_add;
0x00013144 addiu a0, zero, 2 | a0 = 2;
0x00013148 lw s1, -0x7fdc(gp) | s1 = *((gp - 8183));
0x0001314c sw v0, -0x3748(s2) | *((s2 - 3538)) = v0;
0x00013150 jalr t9 | t9 ();
0x00013154 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013158 addiu a0, zero, 0x12 | a0 = 0x12;
0x0001315c lw t9, -0x72d8(gp) | t9 = sym.imp.umask;
0x00013160 sw v0, -0x374c(s1) | *((s1 - 3539)) = v0;
0x00013164 jalr t9 | t9 ();
0x00013168 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001316c lw t9, -0x7fd0(gp) | t9 = sym.ptz_coordinator_new;
0x00013170 bal 0x14f10 | sym_ptz_coordinator_new ();
0x00013174 nop |
0x00013178 move s3, v0 | s3 = v0;
0x0001317c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00013180 beqz v0, 0x133fc | goto label_37;
| }
0x00013184 lw t9, -0x70cc(gp) | t9 = sym.imp.daemon_retval_send;
0x00013188 move a0, zero | a0 = 0;
0x0001318c jalr t9 | t9 ();
0x00013190 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013194 lw t9, -0x76f0(gp) | t9 = sym.imp.g_main_loop_run;
0x00013198 lw a0, -0x3744(s0) | a0 = *((s0 - 3537));
0x0001319c jalr t9 | t9 ();
0x000131a0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000131a4 lw t9, -0x7080(gp) | t9 = *((gp - 7200));
0x000131a8 move a0, s3 | a0 = s3;
0x000131ac jalr t9 | t9 ();
0x000131b0 lw a0, -0x3748(s2) | a0 = *((s2 - 3538));
0x000131b4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (a0 != 0) {
0x000131b8 bnez a0, 0x133e4 | goto label_38;
| }
| label_7:
0x000131bc lw a0, -0x374c(s1) | a0 = *((s1 - 3539));
0x000131c0 lw t9, -0x74a0(gp) | t9 = sym.imp.g_source_remove;
| if (a0 != 0) {
0x000131c4 bnez a0, 0x133d0 | goto label_39;
| }
| label_6:
0x000131c8 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000131cc lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000131d0 lw t9, -0x70e8(gp) | t9 = sym.imp.g_list_foreach;
0x000131d4 lw a0, -0x3750(v0) | a0 = *((v0 - 3540));
0x000131d8 move a2, zero | a2 = 0;
0x000131dc addiu a1, a1, 0x385c | a1 += aav.0x0000385c;
0x000131e0 jalr t9 | t9 ();
0x000131e4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000131e8 lw t9, -0x7474(gp) | t9 = sym.imp.daemon_pid_file_remove;
0x000131ec jalr t9 | t9 ();
0x000131f0 nop |
0x000131f4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000131f8 lw t9, -0x7728(gp) | t9 = sym.imp.exit;
0x000131fc move a0, zero | a0 = 0;
0x00013200 jalr t9 | t9 ();
| }
0x00013204 lw a0, -0x7fd8(gp) | a0 = *(gp);
0x00013208 lw t9, -0x7118(gp) | t9 = sym.imp.g_printerr;
0x0001320c move a1, v0 | a1 = v0;
| /* str.Daemon_already_running_on_PID_file__u_n */
0x00013210 addiu a0, a0, 0x7924 | a0 += 0x7924;
0x00013214 jalr t9 | t9 ();
0x00013218 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001321c addiu v0, zero, 1 | v0 = 1;
| do {
| label_2:
0x00013220 lw a0, 0x9c(sp) | a0 = *(var_9ch);
0x00013224 lw v1, (fp) | v1 = *(fp);
0x00013228 lw ra, 0xc4(sp) | ra = *(var_c4h);
| if (a0 != v1) {
0x0001322c bne a0, v1, 0x1369c | goto label_40;
| }
0x00013230 lw fp, 0xc0(sp) | fp = *(var_c0h);
0x00013234 lw s7, 0xbc(sp) | s7 = *(var_bch);
0x00013238 lw s6, 0xb8(sp) | s6 = *(var_b8h);
0x0001323c lw s5, 0xb4(sp) | s5 = *(var_b4h);
0x00013240 lw s4, 0xb0(sp) | s4 = *(var_b0h);
0x00013244 lw s3, 0xac(sp) | s3 = *(var_ach);
0x00013248 lw s2, 0xa8(sp) | s2 = *(var_a8h);
0x0001324c lw s1, 0xa4(sp) | s1 = *(var_a4h);
0x00013250 lw s0, 0xa0(sp) | s0 = *(var_a0h);
0x00013254 addiu sp, sp, 0xc8 |
0x00013258 jr ra | return v0;
| label_28:
0x0001325c lw t9, -0x7224(gp) | t9 = sym.imp.daemon_retval_wait;
0x00013260 addiu a0, zero, 0x1e | a0 = 0x1e;
0x00013264 jalr t9 | t9 ();
0x00013268 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001326c bgez v0, 0x13220 |
| } while (v0 >= 0);
0x00013270 lw a0, -0x7fd8(gp) | a0 = *(gp);
0x00013274 lw t9, -0x7118(gp) | t9 = sym.imp.g_printerr;
| /* str.Could_not_receive_return_value_from_daemon_process_n */
0x00013278 addiu a0, a0, 0x7968 | a0 += 0x7968;
0x0001327c jalr t9 | t9 ();
0x00013280 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013284 addiu v0, zero, 1 | v0 = 1;
0x00013288 b 0x13220 | goto label_2;
| label_15:
0x0001328c lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013290 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x00013294 lw a3, 8(v1) | a3 = *((v1 + 2));
| /* str.Could_not_open_dir_s */
0x00013298 addiu a2, a2, 0x7a10 | a2 += 0x7a10;
0x0001329c addiu a1, zero, 1 | a1 = 1;
0x000132a0 addiu a0, zero, 3 | a0 = 3;
0x000132a4 jalr t9 | t9 ();
0x000132a8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000132ac lw t9, -0x7654(gp) | t9 = sym.imp.g_error_free;
0x000132b0 lw a0, 0x5c(sp) | a0 = *(var_5ch);
0x000132b4 jalr t9 | t9 ();
0x000132b8 lw gp, 0x18(sp) | gp = *(var_18h);
| do {
| label_9:
0x000132bc lw v0, -0x7324(gp) | v0 = *((gp - 7369));
0x000132c0 lw a0, -0x7fd8(gp) | a0 = *(gp);
0x000132c4 lw t9, -0x7460(gp) | t9 = sym.imp.fwrite;
0x000132c8 lw a3, (v0) | a3 = *(v0);
0x000132cc addiu a2, zero, 0x32 | a2 = 0x32;
0x000132d0 addiu a1, zero, 1 | a1 = 1;
| /* str.Failed_setting_reading_and_configuring_gpio_pins._n */
0x000132d4 addiu a0, a0, 0x7c28 | a0 += 0x7c28;
0x000132d8 jalr t9 | t9 ();
0x000132dc lw gp, 0x18(sp) | gp = *(var_18h);
| label_8:
0x000132e0 lw v0, 0x58(sp) | v0 = *(var_58h);
0x000132e4 lw t9, -0x70cc(gp) | t9 = sym.imp.daemon_retval_send;
| if (v0 == 0) {
0x000132e8 beqz v0, 0x1333c | goto label_41;
| }
| label_3:
0x000132ec lw t9, -0x76a0(gp) | t9 = sym.imp.closelog;
0x000132f0 jalr t9 | t9 ();
0x000132f4 nop |
0x000132f8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000132fc lw t9, -0x7474(gp) | t9 = sym.imp.daemon_pid_file_remove;
0x00013300 jalr t9 | t9 ();
0x00013304 nop |
0x00013308 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001330c addiu v0, zero, 1 | v0 = 1;
0x00013310 b 0x13220 | goto label_2;
| label_14:
0x00013314 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013318 lw v0, 0x20(sp) | v0 = *(var_20h);
0x0001331c lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x00013320 addiu a3, v0, 0x79e8 | a3 = v0 + 0x79e8;
| /* str.Missing_dir_s */
0x00013324 addiu a2, a2, 0x7a00 | a2 += 0x7a00;
0x00013328 addiu a1, zero, 1 | a1 = 1;
0x0001332c addiu a0, zero, 3 | a0 = 3;
0x00013330 jalr t9 | t9 ();
0x00013334 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013338 b 0x132bc |
| } while (1);
| label_41:
0x0001333c addiu a0, zero, 1 | a0 = 1;
0x00013340 jalr t9 | t9 ();
0x00013344 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013348 b 0x132ec | goto label_3;
| label_19:
0x0001334c lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013350 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x00013354 move a3, s1 | a3 = s1;
| /* str.Failed_to_set_file_permission_for_active_low__pin_d */
0x00013358 addiu a2, a2, 0x7a7c | a2 += 0x7a7c;
| do {
| label_5:
0x0001335c addiu a1, zero, 1 | a1 = 1;
0x00013360 addiu a0, zero, 3 | a0 = 3;
0x00013364 jalr t9 | t9 ();
0x00013368 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001336c lw t9, -0x75bc(gp) | t9 = sym.imp.ugpio_free;
0x00013370 move a0, s2 | a0 = s2;
0x00013374 jalr t9 | t9 ();
0x00013378 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001337c b 0x12f74 | goto label_4;
| label_20:
0x00013380 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013384 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x00013388 move a3, s1 | a3 = s1;
| /* str.Failed_to_set_file_permission_for_direction__pin_d */
0x0001338c addiu a2, a2, 0x7ac0 | a2 += 0x7ac0;
0x00013390 b 0x1335c |
| } while (1);
| label_22:
0x00013394 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013398 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x0001339c move a3, s1 | a3 = s1;
| /* str.Failed_to_set_file_permission_for_uevent__pin_d */
0x000133a0 addiu a2, a2, 0x7b34 | a2 += 0x7b34;
0x000133a4 b 0x1335c | goto label_5;
| label_23:
0x000133a8 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000133ac lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x000133b0 move a3, s1 | a3 = s1;
| /* str.Failed_to_set_file_permission_for_value__pin_d */
0x000133b4 addiu a2, a2, 0x7b70 | a2 += 0x7b70;
0x000133b8 b 0x1335c | goto label_5;
| label_24:
0x000133bc lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000133c0 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x000133c4 move a3, s1 | a3 = s1;
| /* str.Missing_activelow_value_in_gpio_conf_file__pin_d */
0x000133c8 addiu a2, a2, 0x7ba0 | a2 += 0x7ba0;
0x000133cc b 0x1335c | goto label_5;
| label_39:
0x000133d0 jalr t9 | t9 ();
0x000133d4 nop |
0x000133d8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000133dc sw zero, -0x374c(s1) | *((s1 - 3539)) = 0;
0x000133e0 b 0x131c8 | goto label_6;
| label_38:
0x000133e4 lw t9, -0x74a0(gp) | t9 = sym.imp.g_source_remove;
0x000133e8 jalr t9 | t9 ();
0x000133ec nop |
0x000133f0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000133f4 sw zero, -0x3748(s2) | *((s2 - 3538)) = 0;
0x000133f8 b 0x131bc | goto label_7;
| label_37:
0x000133fc lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013400 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Failed_to_create_coordinator */
0x00013404 addiu a2, a2, 0x7d74 | a2 += 0x7d74;
0x00013408 addiu a1, zero, 1 | a1 = 1;
0x0001340c addiu a0, zero, 3 | a0 = 3;
0x00013410 jalr t9 | t9 ();
0x00013414 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013418 b 0x132e0 | goto label_8;
| label_36:
0x0001341c lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013420 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Failed_to_create_new_mainloop */
0x00013424 addiu a2, a2, 0x7d54 | a2 += 0x7d54;
0x00013428 addiu a1, zero, 1 | a1 = 1;
0x0001342c addiu a0, zero, 3 | a0 = 3;
0x00013430 jalr t9 | t9 ();
0x00013434 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013438 b 0x132e0 | goto label_8;
| label_27:
0x0001343c lw a0, -0x7fd8(gp) | a0 = *(gp);
0x00013440 lw t9, -0x7118(gp) | t9 = sym.imp.g_printerr;
| /* str.could_not_daemonize:__m_n */
0x00013444 addiu a0, a0, 0x794c | a0 += 0x794c;
0x00013448 jalr t9 | t9 ();
0x0001344c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013450 lw t9, -0x76e8(gp) | t9 = sym.imp.daemon_retval_done;
0x00013454 jalr t9 | t9 ();
0x00013458 nop |
0x0001345c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013460 addiu v0, zero, 1 | v0 = 1;
0x00013464 b 0x13220 | goto label_2;
| label_21:
0x00013468 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x0001346c lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x00013470 move a3, s1 | a3 = s1;
| /* str.Failed_to_set_file_permission_for_edge__pin_d */
0x00013474 addiu a2, a2, 0x7afc | a2 += 0x7afc;
0x00013478 b 0x1335c | goto label_5;
| label_29:
0x0001347c lw t9, -0x6f64(gp) | t9 = *(gp);
0x00013480 jalr t9 | t9 ();
0x00013484 nop |
0x00013488 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001348c lw t9, -0x6fb4(gp) | t9 = sym.imp.strerror;
0x00013490 lw a0, (v0) | a0 = *(v0);
0x00013494 jalr t9 | t9 ();
0x00013498 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001349c move a1, v0 | a1 = v0;
0x000134a0 lw a0, -0x7fd8(gp) | a0 = *(gp);
0x000134a4 lw t9, -0x7118(gp) | t9 = sym.imp.g_printerr;
| /* str.Failed_to_close_all_file_descriptors:__s_n */
0x000134a8 addiu a0, a0, 0x799c | a0 += 0x799c;
0x000134ac jalr t9 | t9 ();
0x000134b0 lw gp, 0x18(sp) | gp = *(var_18h);
0x000134b4 b 0x132e0 | goto label_8;
| label_25:
0x000134b8 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000134bc lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x000134c0 move a3, s1 | a3 = s1;
| /* str.Failed_to_open_sysfs_files_for_pin_d */
0x000134c4 addiu a2, a2, 0x7bdc | a2 += 0x7bdc;
0x000134c8 addiu a1, zero, 1 | a1 = 1;
0x000134cc addiu a0, zero, 3 | a0 = 3;
0x000134d0 jalr t9 | t9 ();
0x000134d4 lw gp, 0x18(sp) | gp = *(var_18h);
| do {
0x000134d8 lw t9, -0x75bc(gp) | t9 = sym.imp.ugpio_free;
0x000134dc move a0, s2 | a0 = s2;
0x000134e0 jalr t9 | t9 ();
0x000134e4 move s0, zero | s0 = 0;
0x000134e8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000134ec b 0x12f74 | goto label_4;
| label_26:
0x000134f0 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000134f4 lw t9, -0x7434(gp) | t9 = sym.imp.__syslog_chk;
0x000134f8 move a3, s1 | a3 = s1;
| /* str.Failed_to_set_active_low__pin_d */
0x000134fc addiu a2, a2, 0x7c04 | a2 += 0x7c04;
0x00013500 addiu a1, zero, 1 | a1 = 1;
0x00013504 addiu a0, zero, 3 | a0 = 3;
0x00013508 jalr t9 | t9 ();
0x0001350c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013510 lw t9, -0x7700(gp) | t9 = sym.imp.ugpio_close;
0x00013514 move a0, s2 | a0 = s2;
0x00013518 jalr t9 | t9 ();
0x0001351c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013520 b 0x134d8 |
| } while (1);
| label_12:
0x00013524 lw v0, 0x54(sp) | v0 = *(var_54h);
0x00013528 lw t9, -0x7050(gp) | t9 = sym.imp.g_option_context_free;
| if (v0 != 0) {
0x0001352c beqz v0, 0x1354c |
0x00013530 move a0, s0 | a0 = s0;
0x00013534 jalr t9 | t9 ();
0x00013538 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001353c lw t9, -0x7654(gp) | t9 = sym.imp.g_error_free;
0x00013540 lw a0, 0x54(sp) | a0 = *(var_54h);
0x00013544 jalr t9 | t9 ();
0x00013548 lw gp, 0x18(sp) | gp = *(var_18h);
| }
| label_11:
0x0001354c addiu v0, zero, -1 | v0 = -1;
0x00013550 b 0x13220 | goto label_2;
| label_30:
0x00013554 lw t9, -0x6f64(gp) | t9 = *(gp);
0x00013558 jalr t9 | t9 ();
0x0001355c nop |
0x00013560 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013564 lw t9, -0x6fb4(gp) | t9 = sym.imp.strerror;
0x00013568 lw a0, (v0) | a0 = *(v0);
0x0001356c jalr t9 | t9 ();
0x00013570 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013574 move a1, v0 | a1 = v0;
0x00013578 lw a0, -0x7fd8(gp) | a0 = *(gp);
0x0001357c lw t9, -0x7118(gp) | t9 = sym.imp.g_printerr;
| /* str.Could_not_create_PID_file:__s_n */
0x00013580 addiu a0, a0, 0x79c8 | a0 += 0x79c8;
0x00013584 jalr t9 | t9 ();
0x00013588 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001358c b 0x132e0 | goto label_8;
| label_18:
0x00013590 addiu s0, zero, 1 | s0 = 1;
0x00013594 b 0x12f74 | goto label_4;
| label_17:
0x00013598 lw t9, -0x6fec(gp) | t9 = sym.imp.g_dir_close;
0x0001359c lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x000135a0 jalr t9 | t9 ();
0x000135a4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000135a8 b 0x132bc | goto label_9;
| label_33:
0x000135ac lw s3, -0x7324(gp) | s3 = *((gp - 7369));
0x000135b0 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000135b4 lw t9, -0x7054(gp) | t9 = sym.imp.__fprintf_chk
0x000135b8 lw a3, 8(s0) | a3 = *((s0 + 2));
0x000135bc lw a0, (s3) | a0 = *(s3);
| /* str.Failed_setting_gid_to__d:__m_n */
0x000135c0 addiu a2, a2, 0x7cac | a2 += 0x7cac;
0x000135c4 addiu a1, zero, 1 | a1 = 1;
0x000135c8 jalr t9 | t9 ();
0x000135cc lw gp, 0x18(sp) | gp = *(var_18h);
| do {
| label_10:
0x000135d0 lw a0, -0x7fd8(gp) | a0 = *(gp);
0x000135d4 lw t9, -0x7460(gp) | t9 = sym.imp.fwrite;
0x000135d8 lw a3, (s3) | a3 = *(s3);
0x000135dc addiu a2, zero, 0x2b | a2 = 0x2b;
0x000135e0 addiu a1, zero, 1 | a1 = 1;
| /* str.Failed_setting_uid_and_gid_of_the_process._n */
0x000135e4 addiu a0, a0, 0x7d28 | a0 += 0x7d28;
0x000135e8 jalr t9 | t9 ();
0x000135ec lw gp, 0x18(sp) | gp = *(var_18h);
0x000135f0 b 0x132e0 | goto label_8;
| label_34:
0x000135f4 lw s3, -0x7324(gp) | s3 = *((gp - 7369));
0x000135f8 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000135fc lw v0, 8(s0) | v0 = *((s0 + 2));
0x00013600 lw t9, -0x7054(gp) | t9 = sym.imp.__fprintf_chk
0x00013604 lw a3, (s1) | a3 = *(s1);
0x00013608 lw a0, (s3) | a0 = *(s3);
| /* str.Unable_to_run_initgroups___with_username:__s__gid:__d:__m_n */
0x0001360c addiu a2, a2, 0x7ccc | a2 += 0x7ccc;
0x00013610 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00013614 addiu a1, zero, 1 | a1 = 1;
0x00013618 jalr t9 | t9 ();
0x0001361c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013620 b 0x135d0 |
| } while (1);
| label_32:
0x00013624 lw s3, -0x7324(gp) | s3 = *((gp - 7369));
0x00013628 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x0001362c lw t9, -0x7054(gp) | t9 = sym.imp.__fprintf_chk
0x00013630 lw a0, (s3) | a0 = *(s3);
| /* str.ptzadm */
0x00013634 addiu a3, s2, 0x7c5c | a3 = s2 + 0x7c5c;
| /* str.Couldnt_get_gid_for_group___s_._n */
0x00013638 addiu a2, a2, 0x7c88 | a2 += 0x7c88;
0x0001363c addiu a1, zero, 1 | a1 = 1;
0x00013640 jalr t9 | t9 ();
0x00013644 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013648 b 0x135d0 | goto label_10;
| label_31:
0x0001364c lw s3, -0x7324(gp) | s3 = *((gp - 7369));
0x00013650 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x00013654 lw t9, -0x7054(gp) | t9 = sym.imp.__fprintf_chk
0x00013658 lw a0, (s3) | a0 = *(s3);
| /* str.ptzadm */
0x0001365c addiu a3, s2, 0x7c5c | a3 = s2 + 0x7c5c;
| /* str.Couldnt_get_uid_for_user___s_._n */
0x00013660 addiu a2, a2, 0x7c64 | a2 += 0x7c64;
0x00013664 addiu a1, zero, 1 | a1 = 1;
0x00013668 jalr t9 | t9 ();
0x0001366c lw gp, 0x18(sp) | gp = *(var_18h);
0x00013670 b 0x135d0 | goto label_10;
| label_35:
0x00013674 lw s3, -0x7324(gp) | s3 = *((gp - 7369));
0x00013678 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x0001367c lw t9, -0x7054(gp) | t9 = sym.imp.__fprintf_chk
0x00013680 lw a3, 8(s1) | a3 = *((s1 + 2));
0x00013684 lw a0, (s3) | a0 = *(s3);
| /* str.Failed_setting_uid_to__d:__m_n */
0x00013688 addiu a2, a2, 0x7d08 | a2 += 0x7d08;
0x0001368c addiu a1, zero, 1 | a1 = 1;
0x00013690 jalr t9 | t9 ();
0x00013694 lw gp, 0x18(sp) | gp = *(var_18h);
0x00013698 b 0x135d0 | goto label_10;
| label_40:
0x0001369c lw t9, -0x74ec(gp) | t9 = sym.imp.__stack_chk_fail;
0x000136a0 jalr t9 | t9 ();
0x000136a4 nop |
0x000136a8 nop |
0x000136ac nop |
| }
[*] Function fprintf used 6 times ptzaurus