[*] Binary protection state of usage-statistics
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function system tear down of usage-statistics
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/usage-statistics @ 0x1510 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 6944 named .text */
0x00001510 lui gp, 2 |
0x00001514 addiu gp, gp, -0x5500 |
0x00001518 addu gp, gp, t9 | gp += t9;
0x0000151c lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00001520 addiu sp, sp, -0x98 |
0x00001524 addiu v0, v0, 0x385c | v0 += str.mode;
0x00001528 sw v0, 0x44(sp) | *(var_44h) = v0;
0x0000152c addiu v0, zero, 0x6d | v0 = 0x6d;
0x00001530 sw s1, 0x88(sp) | *(var_88h) = s1;
0x00001534 sb v0, 0x48(sp) | *(var_48h) = v0;
0x00001538 lw s1, -0x7f48(gp) | s1 = *((gp - 8146));
0x0000153c addiu v0, zero, 1 | v0 = 1;
0x00001540 sw v0, 0x50(sp) | *(var_50h) = v0;
0x00001544 addiu v0, sp, 0x34 | v0 = sp + 0x34;
0x00001548 sw v0, 0x54(sp) | *(var_54h) = v0;
0x0000154c lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00001550 lw v1, (s1) | v1 = *(s1);
0x00001554 lw t9, -0x7eb0(gp) | t9 = sym.imp.ax_log_stdout;
0x00001558 addiu v0, v0, 0x3864 | v0 += str.mode_update_usage_timeincrement_boot_countincrement_reboot_count_;
0x0000155c sw ra, 0x94(sp) | *(var_94h) = ra;
0x00001560 sw v1, 0x7c(sp) | *(var_7ch) = v1;
0x00001564 sw gp, 0x20(sp) | *(var_20h) = gp;
0x00001568 sw a1, 0x2c(sp) | *(var_2ch) = a1;
0x0000156c sw s2, 0x8c(sp) | *(var_8ch) = s2;
0x00001570 sw s0, 0x84(sp) | *(var_84h) = s0;
0x00001574 sw v0, 0x58(sp) | *(var_58h) = v0;
0x00001578 sw a0, 0x98(sp) | *(arg_98h) = a0;
0x0000157c sw s3, 0x90(sp) | *(var_90h) = s3;
0x00001580 sw zero, 0x4c(sp) | *(var_4ch) = 0;
0x00001584 sw zero, 0x5c(sp) | *(var_5ch) = 0;
0x00001588 sw zero, 0x60(sp) | *(var_60h) = 0;
0x0000158c sb zero, 0x64(sp) | *(var_64h) = 0;
0x00001590 sw zero, 0x68(sp) | *(var_68h) = 0;
0x00001594 sw zero, 0x6c(sp) | *(var_6ch) = 0;
0x00001598 sw zero, 0x70(sp) | *(var_70h) = 0;
0x0000159c sw zero, 0x74(sp) | *(var_74h) = 0;
0x000015a0 sw zero, 0x78(sp) | *(var_78h) = 0;
0x000015a4 sw zero, 0x34(sp) | *(var_34h) = 0;
0x000015a8 sw zero, 0x38(sp) | *(var_38h) = 0;
0x000015ac lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x000015b0 jalr t9 | t9 ();
0x000015b4 nop |
0x000015b8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000015bc lw t9, -0x7f7c(gp) | t9 = sym.imp.g_option_context_new;
0x000015c0 addiu a0, s2, 0x35d4 | a0 = s2 + 0x35d4;
0x000015c4 jalr t9 | t9 ();
0x000015c8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000015cc move a0, v0 | a0 = v0;
0x000015d0 move a2, zero | a2 = 0;
0x000015d4 lw t9, -0x7ee0(gp) | t9 = sym.imp.g_option_context_add_main_entries;
0x000015d8 addiu a1, sp, 0x44 | a1 = sp + 0x44;
0x000015dc move s0, v0 | s0 = v0;
0x000015e0 jalr t9 | t9 ();
0x000015e4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000015e8 addiu a3, sp, 0x38 | a3 = sp + 0x38;
0x000015ec addiu a2, sp, 0x2c | a2 = sp + 0x2c;
0x000015f0 lw t9, -0x7f2c(gp) | t9 = sym.imp.g_option_context_parse;
0x000015f4 addiu a1, sp, 0x98 | a1 = sp + 0x98;
0x000015f8 move a0, s0 | a0 = s0;
0x000015fc jalr t9 | t9 ();
0x00001600 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001604 beqz v0, 0x19cc | goto label_2;
| }
0x00001608 lw t9, -0x7eb4(gp) | t9 = sym.imp.g_option_context_free;
0x0000160c move a0, s0 | a0 = s0;
0x00001610 jalr t9 | t9 ();
0x00001614 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00001618 lw gp, 0x20(sp) | gp = *(var_20h);
| if (a0 == 0) {
0x0000161c beqz a0, 0x1710 | goto label_3;
| }
0x00001620 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001624 lw t9, -0x7ebc(gp) | t9 = sym.imp.g_strcmp0;
0x00001628 addiu a1, a1, 0x39d4 | a1 += str.update_usage_time;
0x0000162c jalr t9 | t9 ();
0x00001630 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001634 beqz v0, 0x16a4 | goto label_4;
| }
0x00001638 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x0000163c lw t9, -0x7ebc(gp) | t9 = sym.imp.g_strcmp0;
0x00001640 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00001644 addiu a1, a1, 0x39e8 | a1 += str.increment_boot_count;
0x00001648 jalr t9 | t9 ();
0x0000164c move s0, v0 | s0 = v0;
0x00001650 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001654 beqz v0, 0x16c0 | goto label_5;
| }
0x00001658 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x0000165c lw t9, -0x7ebc(gp) | t9 = sym.imp.g_strcmp0;
0x00001660 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00001664 addiu a1, a1, 0x3a20 | a1 += str.increment_reboot_count;
0x00001668 jalr t9 | t9 ();
0x0000166c move s0, v0 | s0 = v0;
0x00001670 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x00001674 beqz v0, 0x182c | goto label_6;
| }
0x00001678 move v0, zero | v0 = 0;
| do {
| label_0:
0x0000167c lw a0, 0x7c(sp) | a0 = *(var_7ch);
0x00001680 lw v1, (s1) | v1 = *(s1);
0x00001684 lw ra, 0x94(sp) | ra = *(var_94h);
| if (a0 != v1) {
0x00001688 bne a0, v1, 0x1a38 | goto label_7;
| }
0x0000168c lw s3, 0x90(sp) | s3 = *(var_90h);
0x00001690 lw s2, 0x8c(sp) | s2 = *(var_8ch);
0x00001694 lw s1, 0x88(sp) | s1 = *(var_88h);
0x00001698 lw s0, 0x84(sp) | s0 = *(var_84h);
0x0000169c addiu sp, sp, 0x98 |
0x000016a0 jr ra | return v0;
| label_4:
0x000016a4 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x000016a8 addiu t9, t9, 0x2704 | t9 += fcn.00002704;
0x000016ac move a0, zero | a0 = 0;
0x000016b0 bal 0x2704 | fcn_00002704 ();
0x000016b4 srl v0, v0, 0x1f | v0 >>= 0x1f;
0x000016b8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000016bc b 0x167c |
| } while (1);
| label_5:
0x000016c0 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x000016c4 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x000016c8 addiu a1, sp, 0x40 | a1 = sp + 0x40;
0x000016cc addiu a0, s3, 0x3500 | a0 = s3 + str._lib_persistent_var_lib_system_system_status_boot_count
0x000016d0 addiu t9, t9, 0x1ca8 | t9 += fcn.00001ca8;
0x000016d4 sw zero, 0x40(sp) | *(var_40h) = 0;
0x000016d8 bal 0x1ca8 | fcn_00001ca8 ();
0x000016dc lw gp, 0x20(sp) | gp = *(var_20h);
0x000016e0 lw v0, 0x40(sp) | v0 = *(var_40h);
0x000016e4 addiu a0, s3, 0x3500 | a0 = s3 + str._lib_persistent_var_lib_system_system_status_boot_count
0x000016e8 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x000016ec addiu v0, v0, 1 | v0++;
0x000016f0 move a1, v0 | a1 = v0;
0x000016f4 addiu t9, t9, 0x256c | t9 += fcn.0000256c;
0x000016f8 sw v0, 0x40(sp) | *(var_40h) = v0;
0x000016fc bal 0x256c | fcn_0000256c ();
0x00001700 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x00001704 bltz v0, 0x1888 | goto label_8;
| }
| do {
0x00001708 srl v0, s0, 0x1f | v0 = s0 >> 0x1f;
0x0000170c b 0x167c | goto label_0;
| label_3:
0x00001710 lw t9, -0x7f30(gp) | t9 = sym.imp.sd_event_default;
0x00001714 addiu a0, sp, 0x40 | a0 = sp + 0x40;
0x00001718 sw zero, 0x3c(sp) | *(var_3ch) = 0;
0x0000171c sw zero, 0x40(sp) | *(var_40h) = 0;
0x00001720 jalr t9 | t9 ();
0x00001724 move s0, v0 | s0 = v0;
0x00001728 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x0000172c bltz v0, 0x18ec | goto label_9;
| }
0x00001730 lw t9, -0x7f38(gp) | t9 = sym.imp.sd_bus_open_system
0x00001734 addiu a0, sp, 0x3c | a0 = sp + 0x3c;
0x00001738 jalr t9 | t9 ();
0x0000173c move s0, v0 | s0 = v0;
0x00001740 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x00001744 bltz v0, 0x1924 | goto label_10;
| }
0x00001748 lw v0, -0x7fd4(gp) | v0 = *((gp - 8181));
0x0000174c lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00001750 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001754 lw t9, -0x7f84(gp) | t9 = sym.imp.sd_bus_add_object_vtable;
| /* section..data.rel.ro */
0x00001758 addiu v0, v0, 0x3f40 | v0 += 0x3f40;
0x0000175c lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x00001760 sw zero, 0x14(sp) | *(var_14h_2) = 0;
0x00001764 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00001768 addiu a3, s3, 0x3900 | a3 = s3 + str.com.axis.UsageStatistics1;
0x0000176c addiu a2, a2, 0x391c | a2 += str._com_axis_UsageStatistics1;
0x00001770 move a1, zero | a1 = 0;
0x00001774 jalr t9 | t9 ();
0x00001778 move s0, v0 | s0 = v0;
0x0000177c lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x00001780 bltz v0, 0x195c | goto label_11;
| }
0x00001784 lw t9, -0x7f6c(gp) | t9 = sym.imp.sd_bus_request_name;
0x00001788 lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x0000178c move a2, zero | a2 = 0;
0x00001790 move a3, zero | a3 = 0;
0x00001794 addiu a1, s3, 0x3900 | a1 = s3 + str.com.axis.UsageStatistics1;
0x00001798 jalr t9 | t9 ();
0x0000179c move s0, v0 | s0 = v0;
0x000017a0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x000017a4 bltz v0, 0x1994 | goto label_12;
| }
0x000017a8 lw t9, -0x7f64(gp) | t9 = sym.imp.sd_bus_attach_event;
0x000017ac lw a1, 0x40(sp) | a1 = *(var_40h);
0x000017b0 lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x000017b4 move a2, zero | a2 = 0;
0x000017b8 jalr t9 | t9 ();
0x000017bc move s0, v0 | s0 = v0;
0x000017c0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x000017c4 bltz v0, 0x18b4 | goto label_13;
| }
0x000017c8 lui v0, 0x393 | v0 = 0x3930000;
0x000017cc lw t9, -0x7fd0(gp) | t9 = sym.bus_event_loop_with_idle;
0x000017d0 ori v0, v0, 0x8700 | v0 |= 0x8700;
0x000017d4 move v1, zero | v1 = 0;
0x000017d8 lw a1, 0x3c(sp) | a1 = *(var_3ch);
0x000017dc lw a0, 0x40(sp) | a0 = *(var_40h);
0x000017e0 sw zero, 0x1c(sp) | *(var_1ch) = 0;
0x000017e4 sw zero, 0x18(sp) | *(var_18h_2) = 0;
0x000017e8 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x000017ec sw v1, 0x14(sp) | *(var_14h_2) = v1;
0x000017f0 addiu a2, s3, 0x3900 | a2 = s3 + str.com.axis.UsageStatistics1;
0x000017f4 bal 0x2cec | sym_bus_event_loop_with_idle ();
0x000017f8 move s0, v0 | s0 = v0;
0x000017fc lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x00001800 bltz v0, 0x1a00 | goto label_14;
| }
| label_1:
0x00001804 lw t9, -0x7f54(gp) | t9 = sym.imp.sd_bus_unref;
0x00001808 lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x0000180c jalr t9 | t9 ();
0x00001810 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001814 lw t9, -0x7fa4(gp) | t9 = sym.imp.sd_event_unref;
0x00001818 lw a0, 0x40(sp) | a0 = *(var_40h);
0x0000181c jalr t9 | t9 ();
0x00001820 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001824 srl v0, s0, 0x1f | v0 = s0 >> 0x1f;
0x00001828 b 0x167c | goto label_0;
| label_6:
0x0000182c lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00001830 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00001834 addiu a1, sp, 0x40 | a1 = sp + 0x40;
0x00001838 addiu a0, s3, 0x3538 | a0 = s3 + str._lib_persistent_var_lib_system_system_status_reboot_count
0x0000183c addiu t9, t9, 0x1ca8 | t9 += fcn.00001ca8;
0x00001840 sw zero, 0x40(sp) | *(var_40h) = 0;
0x00001844 bal 0x1ca8 | fcn_00001ca8 ();
0x00001848 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000184c lw v0, 0x40(sp) | v0 = *(var_40h);
0x00001850 addiu a0, s3, 0x3538 | a0 = s3 + str._lib_persistent_var_lib_system_system_status_reboot_count
0x00001854 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00001858 addiu v0, v0, 1 | v0++;
0x0000185c move a1, v0 | a1 = v0;
0x00001860 addiu t9, t9, 0x256c | t9 += fcn.0000256c;
0x00001864 sw v0, 0x40(sp) | *(var_40h) = v0;
0x00001868 bal 0x256c | fcn_0000256c ();
0x0000186c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001870 bgez v0, 0x1708 |
| } while (v0 >= 0);
0x00001874 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001878 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x0000187c addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x00001880 addiu a2, a2, 0x3a38 | a2 += str._sFailed_to_update_reboot_count;
0x00001884 b 0x1898 | goto label_15;
| label_8:
0x00001888 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x0000188c lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x00001890 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x00001894 addiu a2, a2, 0x3a00 | a2 += str._sFailed_to_update_boot_count;
| label_15:
0x00001898 move s0, v0 | s0 = v0;
0x0000189c addiu a1, zero, 0x100 | a1 = 0x100;
0x000018a0 move a0, zero | a0 = 0;
0x000018a4 jalr t9 | t9 ();
0x000018a8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018ac srl v0, s0, 0x1f | v0 = s0 >> 0x1f;
0x000018b0 b 0x167c | goto label_0;
| label_13:
0x000018b4 lw t9, -0x7ea8(gp) | t9 = sym.imp.strerror;
0x000018b8 negu a0, v0 | __asm ("negu a0, v0");
0x000018bc jalr t9 | t9 ();
0x000018c0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018c4 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x000018c8 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x000018cc lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000018d0 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x000018d4 addiu a2, a2, 0x3984 | a2 += str._sFailed_to_attach_bus_to_event_loop:__s;
0x000018d8 addiu a1, zero, 0x100 | a1 = 0x100;
0x000018dc move a0, zero | a0 = 0;
0x000018e0 jalr t9 | t9 ();
0x000018e4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018e8 b 0x1804 | goto label_1;
| label_9:
0x000018ec lw t9, -0x7ea8(gp) | t9 = sym.imp.strerror;
0x000018f0 negu a0, v0 | __asm ("negu a0, v0");
0x000018f4 jalr t9 | t9 ();
0x000018f8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000018fc sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00001900 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x00001904 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001908 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x0000190c addiu a2, a2, 0x38b0 | a2 += str._sFailed_to_allocate_event_loop:__s;
0x00001910 addiu a1, zero, 0x100 | a1 = 0x100;
0x00001914 move a0, zero | a0 = 0;
0x00001918 jalr t9 | t9 ();
0x0000191c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001920 b 0x1804 | goto label_1;
| label_10:
0x00001924 lw t9, -0x7ea8(gp) | t9 = sym.imp.strerror;
0x00001928 negu a0, v0 | __asm ("negu a0, v0");
0x0000192c jalr t9 | t9 ();
0x00001930 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001934 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00001938 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x0000193c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001940 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x00001944 addiu a2, a2, 0x38d4 | a2 += str._sFailed_to_connect_to_the_system_bus:__s
0x00001948 addiu a1, zero, 0x100 | a1 = 0x100;
0x0000194c move a0, zero | a0 = 0;
0x00001950 jalr t9 | t9 ();
0x00001954 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001958 b 0x1804 | goto label_1;
| label_11:
0x0000195c lw t9, -0x7ea8(gp) | t9 = sym.imp.strerror;
0x00001960 negu a0, v0 | __asm ("negu a0, v0");
0x00001964 jalr t9 | t9 ();
0x00001968 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000196c sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00001970 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x00001974 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001978 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x0000197c addiu a2, a2, 0x3938 | a2 += str._sFailed_to_register_bus_object:__s;
0x00001980 addiu a1, zero, 0x100 | a1 = 0x100;
0x00001984 move a0, zero | a0 = 0;
0x00001988 jalr t9 | t9 ();
0x0000198c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001990 b 0x1804 | goto label_1;
| label_12:
0x00001994 lw t9, -0x7ea8(gp) | t9 = sym.imp.strerror;
0x00001998 negu a0, v0 | __asm ("negu a0, v0");
0x0000199c jalr t9 | t9 ();
0x000019a0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000019a4 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x000019a8 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x000019ac lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000019b0 lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x000019b4 addiu a2, a2, 0x395c | a2 += str._sFailed_to_acquire_service_name:__s;
0x000019b8 addiu a1, zero, 0x100 | a1 = 0x100;
0x000019bc move a0, zero | a0 = 0;
0x000019c0 jalr t9 | t9 ();
0x000019c4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000019c8 b 0x1804 | goto label_1;
| label_2:
0x000019cc lw v0, 0x38(sp) | v0 = *(var_38h);
0x000019d0 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x000019d4 lw t9, -0x7ec8(gp) | t9 = sym.imp.g_printerr;
0x000019d8 lw a1, 8(v0) | a1 = *((v0 + 2));
0x000019dc addiu a0, a0, 0x38ac | a0 += 0x38ac;
0x000019e0 jalr t9 | t9 ();
0x000019e4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000019e8 lw t9, -0x7f80(gp) | t9 = sym.imp.g_error_free;
0x000019ec lw a0, 0x38(sp) | a0 = *(var_38h);
0x000019f0 jalr t9 | t9 ();
0x000019f4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000019f8 addiu v0, zero, -1 | v0 = -1;
0x000019fc b 0x167c | goto label_0;
| label_14:
0x00001a00 lw t9, -0x7ea8(gp) | t9 = sym.imp.strerror;
0x00001a04 negu a0, v0 | __asm ("negu a0, v0");
0x00001a08 jalr t9 | t9 ();
0x00001a0c lw gp, 0x20(sp) | gp = *(var_20h);
0x00001a10 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00001a14 addiu a3, s2, 0x35d4 | a3 = s2 + 0x35d4;
0x00001a18 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001a1c lw t9, -0x7f9c(gp) | t9 = sym.imp.g_log;
0x00001a20 addiu a2, a2, 0x39b0 | a2 += str._sFailed_to_run_the_event_loop:__s;
0x00001a24 addiu a1, zero, 0x100 | a1 = 0x100;
0x00001a28 move a0, zero | a0 = 0;
0x00001a2c jalr t9 | t9 ();
0x00001a30 lw gp, 0x20(sp) | gp = *(var_20h);
0x00001a34 b 0x1804 | goto label_1;
| label_7:
0x00001a38 lw t9, -0x7f60(gp) | t9 = sym.imp.__stack_chk_fail;
0x00001a3c jalr t9 | t9 ();
0x00001a40 nop |
0x00001a44 nop |
0x00001a48 nop |
0x00001a4c nop |
| }
[*] Function system used 7 times usage-statistics