[*] Binary protection state of ac_converter
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of ac_converter
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/ac_converter @ 0x10d0 */
| #include <stdint.h>
|
; (fcn) fcn.000010d0 () | void fcn_000010d0 () {
0x000010d0 lui gp, 2 |
0x000010d4 addiu gp, gp, -0x60c0 |
0x000010d8 addu gp, gp, t9 | gp += t9;
0x000010dc lw v0, -0x7f2c(gp) | v0 = *((gp - 8139));
0x000010e0 addiu sp, sp, -0x90 |
0x000010e4 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000010e8 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x000010ec lw v0, (v0) | v0 = *(v0);
0x000010f0 move t0, a1 | t0 = a1;
0x000010f4 lw t9, -0x7f44(gp) | t9 = sym.imp.g_strconcat;
0x000010f8 sw gp, 0x20(sp) | *(var_20h) = gp;
0x000010fc sw ra, 0x8c(sp) | *(var_8ch) = ra;
0x00001100 sw s6, 0x80(sp) | *(var_80h) = s6;
0x00001104 sw v1, 0x3c(sp) | *(var_3ch) = v1;
0x00001108 sw a1, 0x40(sp) | *(var_40h) = a1;
0x0000110c move a3, zero | a3 = 0;
0x00001110 addiu a1, v1, 0x1ebc | a1 = v1 + 0x1ebc;
0x00001114 sw a2, 0x98(sp) | *(arg_98h) = a2;
0x00001118 sw a0, 0x38(sp) | *(var_38h) = a0;
0x0000111c move a2, t0 | a2 = t0;
0x00001120 sw fp, 0x88(sp) | *(var_88h) = fp;
0x00001124 sw s7, 0x84(sp) | *(var_84h) = s7;
0x00001128 sw s5, 0x7c(sp) | *(var_7ch) = s5;
0x0000112c sw s4, 0x78(sp) | *(var_78h) = s4;
0x00001130 sw s3, 0x74(sp) | *(var_74h) = s3;
0x00001134 sw s2, 0x70(sp) | *(var_70h) = s2;
0x00001138 sw s1, 0x6c(sp) | *(var_6ch) = s1;
0x0000113c sw s0, 0x68(sp) | *(var_68h) = s0;
0x00001140 sw v0, 0x64(sp) | *(var_64h) = v0;
0x00001144 sw zero, 0x60(sp) | *(var_60h) = 0;
0x00001148 jalr t9 | t9 ();
0x0000114c nop |
0x00001150 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001154 move a3, zero | a3 = 0;
0x00001158 move a2, zero | a2 = 0;
0x0000115c lw t9, -0x7f24(gp) | t9 = sym.imp.g_file_get_contents;
0x00001160 addiu a1, sp, 0x60 | a1 = sp + 0x60;
0x00001164 move a0, v0 | a0 = v0;
0x00001168 move s6, v0 | s6 = v0;
0x0000116c jalr t9 | t9 ();
0x00001170 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001174 beqz v0, 0x1358 | goto label_11;
| }
0x00001178 lw t9, -0x7f68(gp) | t9 = sym.imp.xmlnode_parse_string;
0x0000117c lw a0, 0x60(sp) | a0 = *(var_60h);
0x00001180 jalr t9 | t9 ();
0x00001184 move s7, v0 | s7 = v0;
0x00001188 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000118c beqz v0, 0x16e8 | goto label_12;
| }
0x00001190 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001194 lw t9, -0x7f74(gp) | t9 = sym.imp.xmlnode_find_tags;
0x00001198 addiu a1, a1, 0x1f04 | a1 += str.keyvalue;
0x0000119c move a0, v0 | a0 = v0;
0x000011a0 jalr t9 | t9 ();
0x000011a4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000011a8 sw v0, 0x28(sp) | *(var_28h) = v0;
0x000011ac lw t9, -0x7f70(gp) | t9 = sym.imp.g_list_first;
0x000011b0 move a0, v0 | a0 = v0;
0x000011b4 jalr t9 | t9 ();
0x000011b8 move fp, v0 | fp = v0;
0x000011bc lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x000011c0 beqz v0, 0x137c | goto label_13;
| }
0x000011c4 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000011c8 lw s4, -0x7fd8(gp) | s4 = *((gp - 8182));
0x000011cc sw v0, 0x50(sp) | *(var_50h) = v0;
0x000011d0 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000011d4 lw s3, -0x7fd8(gp) | s3 = *((gp - 8182));
0x000011d8 sw v0, 0x5c(sp) | *(var_5ch) = v0;
0x000011dc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000011e0 lw s2, -0x7fd8(gp) | s2 = *((gp - 8182));
0x000011e4 addiu v0, v0, 0x1f24 | v0 += str.topic1;
0x000011e8 sw v0, 0x30(sp) | *(var_30h_2) = v0;
0x000011ec lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000011f0 sw zero, 0x54(sp) | *(var_54h) = 0;
0x000011f4 addiu v0, v0, 0x1f2c | v0 += str.topic2;
0x000011f8 sw v0, 0x44(sp) | *(var_44h) = v0;
0x000011fc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001200 sw zero, 0x4c(sp) | *(var_4ch) = 0;
0x00001204 addiu v0, v0, 0x1f3c | v0 += str.removed;
0x00001208 sw zero, 0x48(sp) | *(var_48h) = 0;
0x0000120c sw zero, 0x34(sp) | *(var_34h_2) = 0;
0x00001210 move s5, zero | s5 = 0;
0x00001214 sw v0, 0x58(sp) | *(var_58h) = v0;
0x00001218 b 0x122c |
| while (v0 == 0) {
0x0000121c move s5, s1 | s5 = s1;
| label_1:
0x00001220 lw fp, 4(fp) | fp = *(arg_4h);
0x00001224 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
| if (fp == 0) {
0x00001228 beqz fp, 0x12a0 | goto label_14;
| }
| label_0:
0x0000122c lw s0, (fp) | s0 = *(fp);
0x00001230 lw t9, -0x7f4c(gp) | t9 = sym.imp.xmlnode_get_attribute_value;
0x00001234 move a0, s0 | a0 = s0;
0x00001238 addiu a1, s4, 0x1f10 | a1 = s4 + 0x1f10;
0x0000123c jalr t9 | t9 ();
0x00001240 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001244 move a0, s0 | a0 = s0;
0x00001248 addiu a1, s3, 0x1f14 | a1 = s3 + str.value;
0x0000124c lw t9, -0x7f4c(gp) | t9 = sym.imp.xmlnode_get_attribute_value;
0x00001250 move s0, v0 | s0 = v0;
0x00001254 jalr t9 | t9 ();
0x00001258 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000125c addiu a1, s2, 0x1f1c | a1 = s2 + str.topic0;
0x00001260 move a0, s0 | a0 = s0;
0x00001264 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001268 move s1, v0 | s1 = v0;
0x0000126c jalr t9 | t9 ();
0x00001270 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001274 beqz v0, 0x121c |
| }
0x00001278 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x0000127c lw a1, 0x30(sp) | a1 = *(var_30h_2);
0x00001280 move a0, s0 | a0 = s0;
0x00001284 jalr t9 | t9 ();
0x00001288 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0000128c bnez v0, 0x1338 | goto label_15;
| }
0x00001290 lw fp, 4(fp) | fp = *(arg_4h);
0x00001294 sw s1, 0x34(sp) | *(var_34h_2) = s1;
| if (fp != 0) {
0x00001298 bnez fp, 0x122c | goto label_0;
| }
| label_2:
0x0000129c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
| label_14:
0x000012a0 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x000012a4 addiu a1, a1, 0x1f6c | a1 += str.Storage;
0x000012a8 move a0, s5 | a0 = s5;
0x000012ac jalr t9 | t9 ();
0x000012b0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x000012b4 beqz v0, 0x1394 | goto label_16;
| }
| do {
| label_3:
0x000012b8 lw t9, -0x7f90(gp) | t9 = sym.imp.g_list_free;
0x000012bc lw a0, 0x28(sp) | a0 = *(var_28h);
0x000012c0 jalr t9 | t9 ();
0x000012c4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000012c8 lw t9, -0x7f3c(gp) | t9 = sym.imp.xmlnode_free_tree;
0x000012cc move a0, s7 | a0 = s7;
0x000012d0 jalr t9 | t9 ();
0x000012d4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000012d8 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x000012dc lw a0, 0x60(sp) | a0 = *(var_60h);
0x000012e0 jalr t9 | t9 ();
0x000012e4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000012e8 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x000012ec move a0, s6 | a0 = s6;
0x000012f0 jalr t9 | t9 ();
0x000012f4 lw v0, 0x2c(sp) | v0 = *(var_2ch);
0x000012f8 lw v1, 0x64(sp) | v1 = *(var_64h);
0x000012fc lw gp, 0x20(sp) | gp = *(var_20h);
0x00001300 lw v0, (v0) | v0 = *(v0);
0x00001304 lw ra, 0x8c(sp) | ra = *(var_8ch);
| if (v1 != v0) {
0x00001308 bne v1, v0, 0x1974 | goto label_17;
| }
0x0000130c lw fp, 0x88(sp) | fp = *(var_88h);
0x00001310 lw s7, 0x84(sp) | s7 = *(var_84h);
0x00001314 lw s6, 0x80(sp) | s6 = *(var_80h);
0x00001318 lw s5, 0x7c(sp) | s5 = *(var_7ch);
0x0000131c lw s4, 0x78(sp) | s4 = *(var_78h);
0x00001320 lw s3, 0x74(sp) | s3 = *(var_74h);
0x00001324 lw s2, 0x70(sp) | s2 = *(var_70h);
0x00001328 lw s1, 0x6c(sp) | s1 = *(var_6ch);
0x0000132c lw s0, 0x68(sp) | s0 = *(var_68h);
0x00001330 addiu sp, sp, 0x90 |
0x00001334 jr ra | return v1;
| label_15:
0x00001338 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x0000133c lw a1, 0x44(sp) | a1 = *(var_44h);
0x00001340 move a0, s0 | a0 = s0;
0x00001344 jalr t9 | t9 ();
0x00001348 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0000134c bnez v0, 0x16c4 | goto label_18;
| }
0x00001350 sw s1, 0x48(sp) | *(var_48h) = s1;
0x00001354 b 0x1220 | goto label_1;
| label_11:
0x00001358 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x0000135c lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x00001360 move a1, s6 | a1 = s6;
0x00001364 addiu a0, a0, 0x1ec0 | a0 += str.Failed_to_read_file:__s_n;
0x00001368 jalr t9 | t9 ();
0x0000136c move s7, zero | s7 = 0;
0x00001370 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001374 sw zero, 0x28(sp) | *(var_28h) = 0;
0x00001378 b 0x12b8 |
| } while (1);
| label_13:
0x0000137c sw zero, 0x54(sp) | *(var_54h) = 0;
0x00001380 sw zero, 0x4c(sp) | *(var_4ch) = 0;
0x00001384 sw zero, 0x48(sp) | *(var_48h) = 0;
0x00001388 sw zero, 0x34(sp) | *(var_34h_2) = 0;
0x0000138c move s5, zero | s5 = 0;
0x00001390 b 0x129c | goto label_2;
| label_16:
0x00001394 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001398 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x0000139c lw a0, 0x34(sp) | a0 = *(var_34h_2);
0x000013a0 addiu a1, a1, 0x1f74 | a1 += str.Status;
0x000013a4 jalr t9 | t9 ();
0x000013a8 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x000013ac bnez v0, 0x12b8 | goto label_3;
| }
0x000013b0 lw v0, 0x98(sp) | v0 = *(arg_98h);
0x000013b4 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_strdup;
| if (v0 != 0) {
0x000013b8 bnez v0, 0x1728 | goto label_19;
| }
0x000013bc lw t9, -0x7f30(gp) | t9 = sym.imp.g_key_file_new;
0x000013c0 jalr t9 | t9 ();
0x000013c4 nop |
0x000013c8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000013cc lw s1, 0x40(sp) | s1 = *(var_40h);
0x000013d0 lw v1, 0x3c(sp) | v1 = *(var_3ch);
0x000013d4 lw a0, 0x38(sp) | a0 = *(var_38h);
0x000013d8 lw t9, -0x7f44(gp) | t9 = sym.imp.g_strconcat;
0x000013dc addiu a1, v1, 0x1ebc | a1 = v1 + 0x1ebc;
0x000013e0 move a3, zero | a3 = 0;
0x000013e4 move a2, s1 | a2 = s1;
0x000013e8 move s0, v0 | s0 = v0;
0x000013ec jalr t9 | t9 ();
0x000013f0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000013f4 move a2, zero | a2 = 0;
0x000013f8 move a0, s1 | a0 = s1;
0x000013fc lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001400 lw t9, -0x7f20(gp) | t9 = sym.imp.g_strsplit;
0x00001404 addiu a1, a1, 0x1f7c | a1 += 0x1f7c;
0x00001408 move fp, v0 | fp = v0;
0x0000140c jalr t9 | t9 ();
0x00001410 move s3, v0 | s3 = v0;
0x00001414 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001418 beqz v0, 0x18d0 | goto label_20;
| }
0x0000141c lw s1, (v0) | s1 = *(v0);
0x00001420 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
| if (s1 == 0) {
0x00001424 beqz s1, 0x18d0 | goto label_20;
| }
0x00001428 lw v0, 0x3c(sp) | v0 = *(var_3ch);
0x0000142c lw t9, -0x7f44(gp) | t9 = sym.imp.g_strconcat;
0x00001430 lw a0, 0x38(sp) | a0 = *(var_38h);
0x00001434 addiu a3, a3, 0x1f9c | a3 += str..conf;
0x00001438 move a2, s1 | a2 = s1;
0x0000143c addiu a1, v0, 0x1ebc | a1 = v0 + 0x1ebc;
0x00001440 sw zero, 0x10(sp) | *(var_10h_2) = 0;
0x00001444 jalr t9 | t9 ();
0x00001448 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000144c move a3, zero | a3 = 0;
0x00001450 addiu a2, zero, 1 | a2 = 1;
0x00001454 lw t9, -0x7f6c(gp) | t9 = sym.imp.g_key_file_load_from_file;
0x00001458 move a1, v0 | a1 = v0;
0x0000145c move a0, s0 | a0 = s0;
0x00001460 move s4, v0 | s4 = v0;
0x00001464 jalr t9 | t9 ();
0x00001468 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000146c beqz v0, 0x1908 | goto label_21;
| }
0x00001470 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001474 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00001478 lw t9, -0x7fa8(gp) | t9 = sym.imp.g_key_file_remove_key;
0x0000147c sw v0, 0x40(sp) | *(var_40h) = v0;
0x00001480 move a3, zero | a3 = 0;
0x00001484 addiu a2, a2, 0x1fc0 | a2 += str.event;
0x00001488 addiu a1, v0, 0x1fc8 | a1 = v0 + str.action_rule;
0x0000148c move a0, s0 | a0 = s0;
0x00001490 jalr t9 | t9 ();
0x00001494 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001498 beqz v0, 0x193c | goto label_22;
| }
0x0000149c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000014a0 lw t9, -0x7f8c(gp) | t9 = sym.imp.g_key_file_get_string;
0x000014a4 sw v0, 0x44(sp) | *(var_44h) = v0;
0x000014a8 addiu a2, v0, 0x2000 | a2 = v0 + str.properties;
0x000014ac lw v0, 0x40(sp) | v0 = *(var_40h);
0x000014b0 move a3, zero | a3 = 0;
0x000014b4 addiu a1, v0, 0x1fc8 | a1 = v0 + str.action_rule;
0x000014b8 move a0, s0 | a0 = s0;
0x000014bc jalr t9 | t9 ();
0x000014c0 move s2, v0 | s2 = v0;
0x000014c4 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x000014c8 beqz v0, 0x1950 | goto label_23;
| }
| label_9:
0x000014cc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000014d0 lw t9, -0x7f20(gp) | t9 = sym.imp.g_strsplit;
0x000014d4 move a0, s2 | a0 = s2;
0x000014d8 sw v0, 0x34(sp) | *(var_34h_2) = v0;
0x000014dc move a2, zero | a2 = 0;
0x000014e0 addiu a1, v0, 0x200c | a1 = v0 + 0x200c;
0x000014e4 jalr t9 | t9 ();
0x000014e8 lw a0, (v0) | a0 = *(v0);
0x000014ec lw gp, 0x20(sp) | gp = *(var_20h);
0x000014f0 move s5, v0 | s5 = v0;
0x000014f4 sw v0, 0x30(sp) | *(var_30h_2) = v0;
| if (a0 == 0) {
0x000014f8 beqz a0, 0x196c | goto label_24;
| }
0x000014fc lb v0, (a0) | v0 = *(a0);
0x00001500 lw t9, -0x7fac(gp) | t9 = sym.imp.strtol;
| if (v0 != 0) {
0x00001504 bnez v0, 0x151c | goto label_25;
| }
0x00001508 move a1, zero | a1 = 0;
0x0000150c b 0x153c | goto label_10;
| do {
0x00001510 lb v1, (a0) | v1 = *(a0);
0x00001514 lw t9, -0x7fac(gp) | t9 = sym.imp.strtol;
| if (v1 == 0) {
0x00001518 beqz v1, 0x153c | goto label_10;
| }
| label_25:
0x0000151c addiu s5, s5, 4 | s5 += 4;
0x00001520 move a1, zero | a1 = 0;
0x00001524 addiu a2, zero, 0xa | a2 = 0xa;
0x00001528 jalr t9 | t9 ();
0x0000152c lw a0, (s5) | a0 = *(s5);
0x00001530 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001534 addiu a1, v0, 1 | a1 = v0 + 1;
0x00001538 bnez a0, 0x1510 |
| } while (a0 != 0);
| label_10:
0x0000153c lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001540 lw t9, -0x7f50(gp) | t9 = sym.imp.g_strdup_printf
0x00001544 addiu a0, a0, 0x2010 | a0 += 0x2010;
0x00001548 jalr t9 | t9 ();
0x0000154c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001550 move s5, v0 | s5 = v0;
0x00001554 lw v0, 0x34(sp) | v0 = *(var_34h_2);
0x00001558 lw t9, -0x7f44(gp) | t9 = sym.imp.g_strconcat;
0x0000155c move a3, zero | a3 = 0;
0x00001560 addiu a2, v0, 0x200c | a2 = v0 + 0x200c;
0x00001564 move a1, s5 | a1 = s5;
0x00001568 move a0, s2 | a0 = s2;
0x0000156c jalr t9 | t9 ();
0x00001570 move a3, v0 | a3 = v0;
0x00001574 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001578 sw v0, 0x34(sp) | *(var_34h_2) = v0;
0x0000157c lw v0, 0x44(sp) | v0 = *(var_44h);
0x00001580 lw t9, -0x7f94(gp) | t9 = sym.imp.g_key_file_set_string;
0x00001584 addiu a2, v0, 0x2000 | a2 = v0 + str.properties;
0x00001588 lw v0, 0x40(sp) | v0 = *(var_40h);
0x0000158c move a0, s0 | a0 = s0;
0x00001590 addiu a1, v0, 0x1fc8 | a1 = v0 + str.action_rule;
0x00001594 jalr t9 | t9 ();
0x00001598 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000159c move a2, zero | a2 = 0;
0x000015a0 move a1, zero | a1 = 0;
0x000015a4 lw t9, -0x7fa0(gp) | t9 = sym.imp.g_key_file_to_data;
0x000015a8 move a0, s0 | a0 = s0;
0x000015ac jalr t9 | t9 ();
0x000015b0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000015b4 move a3, zero | a3 = 0;
0x000015b8 addiu a2, zero, -1 | a2 = -1;
0x000015bc lw t9, -0x7f5c(gp) | t9 = sym.imp.g_file_set_contents;
0x000015c0 move a1, v0 | a1 = v0;
0x000015c4 sw v0, 0x40(sp) | *(var_40h) = v0;
0x000015c8 move a0, s4 | a0 = s4;
0x000015cc jalr t9 | t9 ();
0x000015d0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000015d4 lw v1, 0x40(sp) | v1 = *(var_40h);
| if (v0 == 0) {
0x000015d8 beqz v0, 0x18b0 | goto label_26;
| }
| label_7:
0x000015dc lw v0, 0x3c(sp) | v0 = *(var_3ch);
0x000015e0 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x000015e4 addiu a1, v0, 0x1ebc | a1 = v0 + 0x1ebc;
0x000015e8 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000015ec lw t9, -0x7f44(gp) | t9 = sym.imp.g_strconcat;
0x000015f0 lw a0, 0x38(sp) | a0 = *(var_38h);
0x000015f4 addiu v0, v0, 0x2038 | v0 += str..xml;
0x000015f8 sw v1, 0x40(sp) | *(var_40h) = v1;
0x000015fc move a2, s1 | a2 = s1;
0x00001600 addiu a3, a3, 0x202c | a3 += str._property_;
0x00001604 sw zero, 0x18(sp) | *(var_18h) = 0;
0x00001608 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000160c sw s5, 0x10(sp) | *(var_10h_2) = s5;
0x00001610 jalr t9 | t9 ();
0x00001614 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001618 move a0, fp | a0 = fp;
0x0000161c lw t9, -0x7f28(gp) | t9 = sym.imp.g_unlink;
0x00001620 move s1, v0 | s1 = v0;
0x00001624 jalr t9 | t9 ();
0x00001628 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000162c lw v1, 0x40(sp) | v1 = *(var_40h);
| label_8:
0x00001630 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x00001634 move a0, v1 | a0 = v1;
0x00001638 jalr t9 | t9 ();
0x0000163c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001640 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x00001644 lw a0, 0x34(sp) | a0 = *(var_34h_2);
0x00001648 jalr t9 | t9 ();
0x0000164c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001650 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x00001654 move a0, s5 | a0 = s5;
0x00001658 jalr t9 | t9 ();
0x0000165c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001660 lw t9, -0x7f7c(gp) | t9 = sym.imp.g_strfreev;
0x00001664 lw a0, 0x30(sp) | a0 = *(var_30h_2);
0x00001668 jalr t9 | t9 ();
0x0000166c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001670 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x00001674 move a0, s4 | a0 = s4;
0x00001678 jalr t9 | t9 ();
0x0000167c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001680 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x00001684 move a0, s2 | a0 = s2;
0x00001688 jalr t9 | t9 ();
0x0000168c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001690 lw t9, -0x7f7c(gp) | t9 = sym.imp.g_strfreev;
0x00001694 move a0, s3 | a0 = s3;
0x00001698 jalr t9 | t9 ();
0x0000169c lw gp, 0x20(sp) | gp = *(var_20h);
0x000016a0 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x000016a4 move a0, fp | a0 = fp;
0x000016a8 jalr t9 | t9 ();
0x000016ac lw gp, 0x20(sp) | gp = *(var_20h);
0x000016b0 lw t9, -0x7f84(gp) | t9 = sym.imp.g_key_file_free;
0x000016b4 move a0, s0 | a0 = s0;
0x000016b8 jalr t9 | t9 ();
0x000016bc lw gp, 0x20(sp) | gp = *(var_20h);
0x000016c0 b 0x1738 | goto label_27;
| label_18:
0x000016c4 lw v0, 0x50(sp) | v0 = *(var_50h);
0x000016c8 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x000016cc addiu a1, v0, 0x1f34 | a1 = v0 + str.disk_id;
0x000016d0 move a0, s0 | a0 = s0;
0x000016d4 jalr t9 | t9 ();
0x000016d8 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x000016dc bnez v0, 0x1708 |
0x000016e0 sw s1, 0x4c(sp) | *(var_4ch) = s1;
0x000016e4 b 0x1220 | goto label_1;
| label_12:
0x000016e8 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x000016ec lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x000016f0 move a1, s6 | a1 = s6;
0x000016f4 addiu a0, a0, 0x1edc | a0 += str.xmlnode_parse_string___failed_for__s_n;
0x000016f8 jalr t9 | t9 ();
0x000016fc lw gp, 0x20(sp) | gp = *(var_20h);
0x00001700 sw zero, 0x28(sp) | *(var_28h) = 0;
0x00001704 b 0x12b8 | goto label_3;
| }
0x00001708 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x0000170c lw a1, 0x58(sp) | a1 = *(var_58h);
0x00001710 move a0, s0 | a0 = s0;
0x00001714 jalr t9 | t9 ();
0x00001718 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0000171c bnez v0, 0x17f4 | goto label_28;
| }
| label_4:
0x00001720 sw s1, 0x54(sp) | *(var_54h) = s1;
0x00001724 b 0x1220 | goto label_1;
| label_19:
0x00001728 move a0, s6 | a0 = s6;
0x0000172c jalr t9 | t9 ();
0x00001730 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001734 move s1, v0 | s1 = v0;
| label_27:
0x00001738 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
| if (s1 == 0) {
0x0000173c beqz s1, 0x12b8 | goto label_3;
| }
0x00001740 lw s0, 0x48(sp) | s0 = *(var_48h);
0x00001744 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001748 addiu a1, a1, 0x2040 | a1 += str.Removed;
0x0000174c move a0, s0 | a0 = s0;
0x00001750 jalr t9 | t9 ();
0x00001754 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001758 beqz v0, 0x1870 | goto label_29;
| }
0x0000175c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001760 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001764 addiu a1, a1, 0x2048 | a1 += str.Available;
0x00001768 move a0, s0 | a0 = s0;
0x0000176c jalr t9 | t9 ();
0x00001770 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001774 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
| if (v0 != 0) {
0x00001778 bnez v0, 0x1894 | goto label_30;
| }
0x0000177c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001780 lw a0, 0x54(sp) | a0 = *(var_54h);
0x00001784 addiu a1, a1, 0x2054 | a1 += 0x2054;
0x00001788 jalr t9 | t9 ();
0x0000178c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001790 sltiu a2, v0, 1 | a2 = (v0 < 1) ? 1 : 0;
| label_5:
0x00001794 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001798 lw t9, -0x7f50(gp) | t9 = sym.imp.g_strdup_printf
0x0000179c lw a1, 0x4c(sp) | a1 = *(var_4ch);
0x000017a0 addiu a0, a0, 0x205c | a0 += 0x205c;
0x000017a4 jalr t9 | t9 ();
0x000017a8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000017ac move a3, zero | a3 = 0;
0x000017b0 addiu a2, zero, -1 | a2 = -1;
0x000017b4 lw t9, -0x7f5c(gp) | t9 = sym.imp.g_file_set_contents;
0x000017b8 move a1, v0 | a1 = v0;
0x000017bc move a0, s1 | a0 = s1;
0x000017c0 move s0, v0 | s0 = v0;
0x000017c4 jalr t9 | t9 ();
0x000017c8 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x000017cc beqz v0, 0x1878 | goto label_31;
| }
| label_6:
0x000017d0 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x000017d4 move a0, s1 | a0 = s1;
0x000017d8 jalr t9 | t9 ();
0x000017dc lw gp, 0x20(sp) | gp = *(var_20h);
0x000017e0 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_free;
0x000017e4 move a0, s0 | a0 = s0;
0x000017e8 jalr t9 | t9 ();
0x000017ec lw gp, 0x20(sp) | gp = *(var_20h);
0x000017f0 b 0x12b8 | goto label_3;
| label_28:
0x000017f4 lw v0, 0x5c(sp) | v0 = *(var_5ch);
0x000017f8 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x000017fc addiu a1, v0, 0x1f44 | a1 = v0 + str.locked;
0x00001800 move a0, s0 | a0 = s0;
0x00001804 jalr t9 | t9 ();
0x00001808 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0000180c bnez v0, 0x1720 | goto label_4;
| }
0x00001810 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001814 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001818 addiu a1, a1, 0x1f4c | a1 += str.full;
0x0000181c move a0, s0 | a0 = s0;
0x00001820 jalr t9 | t9 ();
0x00001824 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x00001828 bnez v0, 0x1720 | goto label_4;
| }
0x0000182c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001830 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001834 addiu a1, a1, 0x1f54 | a1 += str.readonly;
0x00001838 move a0, s0 | a0 = s0;
0x0000183c jalr t9 | t9 ();
0x00001840 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x00001844 bnez v0, 0x1720 | goto label_4;
| }
0x00001848 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x0000184c lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001850 addiu a1, a1, 0x1f60 | a1 += str.available;
0x00001854 move a0, s0 | a0 = s0;
0x00001858 jalr t9 | t9 ();
0x0000185c lw v1, 0x54(sp) | v1 = *(var_54h);
0x00001860 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x00001864 movz v1, s1, v0 | v1 = s1;
| }
0x00001868 sw v1, 0x54(sp) | *(var_54h) = v1;
0x0000186c b 0x1220 | goto label_1;
| label_29:
0x00001870 addiu a2, zero, 1 | a2 = 1;
0x00001874 b 0x1794 | goto label_5;
| label_31:
0x00001878 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x0000187c lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x00001880 move a1, s1 | a1 = s1;
0x00001884 addiu a0, a0, 0x219c | a0 += str.Failed_to_rewrite__s;
0x00001888 jalr t9 | t9 ();
0x0000188c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001890 b 0x17d0 | goto label_6;
| label_30:
0x00001894 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001898 lw a0, 0x54(sp) | a0 = *(var_54h);
0x0000189c addiu a1, a1, 0x2058 | a1 += 0x2058;
0x000018a0 jalr t9 | t9 ();
0x000018a4 sltiu a2, v0, 1 | a2 = (v0 < 1) ? 1 : 0;
0x000018a8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018ac b 0x1794 | goto label_5;
| label_26:
0x000018b0 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x000018b4 lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x000018b8 move a1, s4 | a1 = s4;
0x000018bc addiu a0, a0, 0x2014 | a0 += str.Failed_to_rewrite__s_n;
0x000018c0 jalr t9 | t9 ();
0x000018c4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018c8 lw v1, 0x40(sp) | v1 = *(var_40h);
0x000018cc b 0x15dc | goto label_7;
| label_20:
0x000018d0 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x000018d4 lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x000018d8 lw a1, 0x40(sp) | a1 = *(var_40h);
0x000018dc addiu a0, a0, 0x1f80 | a0 += str.Failed_to_get_id_from__s_n;
0x000018e0 jalr t9 | t9 ();
0x000018e4 move s5, zero | s5 = 0;
0x000018e8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018ec sw zero, 0x34(sp) | *(var_34h_2) = 0;
0x000018f0 sw zero, 0x30(sp) | *(var_30h_2) = 0;
0x000018f4 move s2, zero | s2 = 0;
0x000018f8 move s4, zero | s4 = 0;
0x000018fc move v1, zero | v1 = 0;
0x00001900 move s1, zero | s1 = 0;
0x00001904 b 0x1630 | goto label_8;
| label_21:
0x00001908 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x0000190c lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x00001910 move a1, s4 | a1 = s4;
0x00001914 addiu a0, a0, 0x1fa4 | a0 += str.Failed_to_load_conf__s;
| do {
0x00001918 move s5, zero | s5 = 0;
0x0000191c jalr t9 | t9 ();
0x00001920 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001924 sw zero, 0x34(sp) | *(var_34h_2) = 0;
0x00001928 sw zero, 0x30(sp) | *(var_30h_2) = 0;
0x0000192c move s2, zero | s2 = 0;
0x00001930 move v1, zero | v1 = 0;
0x00001934 move s1, zero | s1 = 0;
0x00001938 b 0x1630 | goto label_8;
| label_22:
0x0000193c lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001940 lw t9, -0x7f88(gp) | t9 = sym.imp.g_printf
0x00001944 move a1, s4 | a1 = s4;
0x00001948 addiu a0, a0, 0x1fd4 | a0 += str.Failed_to_remove_event_key_from_conf__s;
0x0000194c b 0x1918 |
| } while (1);
| label_23:
0x00001950 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001954 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_strdup;
0x00001958 addiu a0, a0, 0x1fbc | a0 += 0x1fbc;
0x0000195c jalr t9 | t9 ();
0x00001960 move s2, v0 | s2 = v0;
0x00001964 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001968 b 0x14cc | goto label_9;
| label_24:
0x0000196c move a1, zero | a1 = 0;
0x00001970 b 0x153c | goto label_10;
| label_17:
0x00001974 lw t9, -0x7f38(gp) | t9 = sym.imp.__stack_chk_fail;
0x00001978 jalr t9 | t9 ();
0x0000197c nop |
| }
[*] Function printf used 10 times ac_converter