[*] Binary protection state of loggen
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of loggen
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/loggen @ 0x4a38 */
| #include <stdint.h>
|
; (fcn) sym.generate_log_line () | void generate_log_line () {
0x00004a38 lui gp, 2 |
0x00004a3c addiu gp, gp, -0x47b8 |
0x00004a40 addu gp, gp, t9 | gp += t9;
0x00004a44 addiu sp, sp, -0xb0 |
0x00004a48 sw s2, 0x9c(sp) | *(var_9ch) = s2;
0x00004a4c lw s2, -0x7ef4(gp) | s2 = *((gp - 8125));
0x00004a50 sw gp, 0x18(sp) | *(var_18h_2) = gp;
0x00004a54 sw ra, 0xac(sp) | *(var_ach) = ra;
0x00004a58 lw v0, (s2) | v0 = *(s2);
0x00004a5c sw s5, 0xa8(sp) | *(var_a8h) = s5;
0x00004a60 sw s4, 0xa4(sp) | *(var_a4h) = s4;
0x00004a64 sw s3, 0xa0(sp) | *(var_a0h) = s3;
0x00004a68 sw s1, 0x98(sp) | *(var_98h) = s1;
0x00004a6c sw s0, 0x94(sp) | *(var_94h) = s0;
0x00004a70 sw v0, 0x8c(sp) | *(var_8ch) = v0;
0x00004a74 move s5, a2 | s5 = a2;
| if (a0 == 0) {
0x00004a78 beqz a0, 0x4c58 | goto label_1;
| }
0x00004a7c addiu v0, zero, 0x2000 | v0 = 0x2000;
0x00004a80 slti a2, a1, 0x2001 | a2 = (a1 < 0x2001) ? 1 : 0;
| if (a2 == 0) {
0x00004a84 movn v0, a1, a2 | v0 = a1;
| }
0x00004a88 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00004a8c lw t9, -0x7ed8(gp) | t9 = sym.imp.memcpy;
0x00004a90 move a2, v0 | a2 = v0;
0x00004a94 addiu a1, a1, -0x7b30 | a1 += -0x7b30;
0x00004a98 move s3, a3 | s3 = a3;
0x00004a9c move s0, a0 | s0 = a0;
0x00004aa0 jalr t9 | t9 ();
0x00004aa4 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004aa8 addiu s1, sp, 0x20 | s1 = sp + 0x20;
0x00004aac move a0, s1 | a0 = s1;
0x00004ab0 lw t9, -0x7eb0(gp) | t9 = sym.imp.gettimeofday;
0x00004ab4 move a1, zero | a1 = 0;
0x00004ab8 jalr t9 | t9 ();
0x00004abc lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004ac0 addiu s4, sp, 0x28 | s4 = sp + 0x28;
0x00004ac4 move a0, s1 | a0 = s1;
0x00004ac8 lw t9, -0x7e58(gp) | t9 = sym.imp.localtime_r;
0x00004acc move a1, s4 | a1 = s4;
0x00004ad0 jalr t9 | t9 ();
0x00004ad4 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004ad8 addiu s1, sp, 0x6c | s1 = sp + 0x6c;
0x00004adc move a3, s4 | a3 = s4;
0x00004ae0 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004ae4 lw t9, -0x7f60(gp) | t9 = sym.imp.strftime;
0x00004ae8 addiu a2, a2, 0x775c | a2 += str._Y__m__dT_H:_M:_S;
0x00004aec addiu a1, zero, 0x20 | a1 = 0x20;
0x00004af0 move a0, s1 | a0 = s1;
0x00004af4 jalr t9 | t9 ();
0x00004af8 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004afc move a2, v0 | a2 = v0;
0x00004b00 move a1, s1 | a1 = s1;
0x00004b04 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004b08 lw t9, -0x7ed8(gp) | t9 = sym.imp.memcpy;
0x00004b0c lw a0, -0x7b38(v0) | a0 = *((v0 - 7886));
0x00004b10 addu a0, s0, a0 | a0 = s0 + a0;
0x00004b14 jalr t9 | t9 ();
0x00004b18 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004b1c bnez s5, 0x4c3c |
| while (1) {
0x00004b20 lw t9, -0x7edc(gp) | t9 = sym.imp.strlen;
0x00004b24 move a0, s1 | a0 = s1;
0x00004b28 jalr t9 | t9 ();
0x00004b2c lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004b30 move a2, v0 | a2 = v0;
0x00004b34 move a1, s1 | a1 = s1;
0x00004b38 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004b3c lw t9, -0x7ed8(gp) | t9 = sym.imp.memcpy;
0x00004b40 addiu s1, sp, 0x5c | s1 = sp + 0x5c;
0x00004b44 lw a0, -0x7b34(v0) | a0 = *((v0 - 7885));
0x00004b48 addu a0, s0, a0 | a0 = s0 + a0;
0x00004b4c jalr t9 | t9 ();
0x00004b50 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004b54 lw v0, 0xc0(sp) | v0 = *(var_10h);
0x00004b58 addiu a3, zero, 0x10 | a3 = 0x10;
0x00004b5c sw v0, 0x14(sp) | *(var_14h_2) = v0;
0x00004b60 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004b64 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x00004b68 addiu v0, v0, 0x7770 | v0 += str._010ld;
0x00004b6c addiu a2, zero, 1 | a2 = 1;
0x00004b70 addiu a1, zero, 0x10 | a1 = 0x10;
0x00004b74 move a0, s1 | a0 = s1;
0x00004b78 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00004b7c jalr t9 | t9 ();
0x00004b80 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004b84 lw a0, 0x5c(sp) | a0 = *(var_5ch_2);
0x00004b88 lw v1, 4(s1) | v1 = *((s1 + 1));
0x00004b8c lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004b90 lbu a1, 8(s1) | a1 = *((s1 + 8));
0x00004b94 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x00004b98 lw v0, -0x7b3c(v0) | v0 = *((v0 - 7887));
0x00004b9c addiu a3, zero, 5 | a3 = 5;
0x00004ba0 addu v0, s0, v0 | v0 = s0 + v0;
0x00004ba4 addiu a2, zero, 1 | a2 = 1;
0x00004ba8 swl a0, 3(v0) | __asm ("swl a0, 3(v0)");
0x00004bac swr a0, (v0) | __asm ("swr a0, (v0)");
0x00004bb0 lbu a0, 9(s1) | a0 = *((s1 + 9));
0x00004bb4 swl v1, 7(v0) | __asm ("swl v1, 7(v0)");
0x00004bb8 swr v1, 4(v0) | __asm ("swr v1, 4(v0)");
0x00004bbc sb a1, 8(v0) | *((v0 + 8)) = a1;
0x00004bc0 sb a0, 9(v0) | *((v0 + 9)) = a0;
0x00004bc4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004bc8 addiu a1, zero, 5 | a1 = 5;
0x00004bcc addiu v0, v0, 0x7778 | v0 += str._04d;
0x00004bd0 addiu a0, sp, 0x54 | a0 = sp + 0x54;
0x00004bd4 sw s3, 0x14(sp) | *(var_14h_2) = s3;
0x00004bd8 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00004bdc jalr t9 | t9 ();
0x00004be0 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004be4 lw v0, 0x54(sp) | v0 = *(var_54h_2);
0x00004be8 move a0, s0 | a0 = s0;
0x00004bec lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x00004bf0 lw t9, -0x7edc(gp) | t9 = sym.imp.strlen;
0x00004bf4 lw v1, -0x7b40(v1) | v1 = *((v1 - 7888));
0x00004bf8 addu s0, s0, v1 | s0 += v1;
0x00004bfc swl v0, 3(s0) | __asm ("swl v0, 3(s0)");
0x00004c00 swr v0, (s0) | __asm ("swr v0, (s0)");
0x00004c04 jalr t9 | t9 ();
0x00004c08 lw gp, 0x18(sp) | gp = *(var_18h_2);
| label_0:
0x00004c0c lw a0, 0x8c(sp) | a0 = *(var_8ch);
0x00004c10 lw v1, (s2) | v1 = *(s2);
0x00004c14 lw ra, 0xac(sp) | ra = *(var_ach);
| if (a0 != v1) {
0x00004c18 bne a0, v1, 0x4cd0 | goto label_2;
| }
0x00004c1c lw s5, 0xa8(sp) | s5 = *(var_a8h);
0x00004c20 lw s4, 0xa4(sp) | s4 = *(var_a4h);
0x00004c24 lw s3, 0xa0(sp) | s3 = *(var_a0h);
0x00004c28 lw s2, 0x9c(sp) | s2 = *(var_9ch);
0x00004c2c lw s1, 0x98(sp) | s1 = *(var_98h);
0x00004c30 lw s0, 0x94(sp) | s0 = *(var_94h);
0x00004c34 addiu sp, sp, 0xb0 |
0x00004c38 jr ra | return v0;
0x00004c3c lw t9, -0x7e88(gp) | t9 = sym.imp.format_timezone_offset_with_colon;
0x00004c40 move a2, s4 | a2 = s4;
0x00004c44 addiu a1, zero, 0x20 | a1 = 0x20;
0x00004c48 move a0, s1 | a0 = s1;
0x00004c4c jalr t9 | t9 ();
0x00004c50 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004c54 b 0x4b20 |
| }
| label_1:
0x00004c58 lw s0, -0x7ed4(gp) | s0 = *((gp - 8117));
0x00004c5c lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00004c60 lw t9, -0x7ee8(gp) | t9 = sym.imp.__xpg_basename;
0x00004c64 addiu a0, a0, 0x76d4 | a0 += str..._syslog_ng_3.19.1_tests_loggen_logline_generator.c;
0x00004c68 lw s1, (s0) | s1 = *(s0);
0x00004c6c jalr t9 | t9 ();
0x00004c70 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004c74 move a3, v0 | a3 = v0;
0x00004c78 addiu v0, zero, 0x68 | v0 = 0x68;
0x00004c7c sw v0, 0x14(sp) | *(var_14h_2) = v0;
0x00004c80 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004c84 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004c88 addiu v0, v0, 0x7780 | v0 += str.generate_log_line;
0x00004c8c lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x00004c90 addiu a2, a2, 0x6810 | a2 += str.error___s:_s:_d__;
0x00004c94 addiu a1, zero, 1 | a1 = 1;
0x00004c98 move a0, s1 | a0 = s1;
0x00004c9c sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00004ca0 jalr t9 | t9 ();
0x00004ca4 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004ca8 lw a3, (s0) | a3 = *(s0);
0x00004cac addiu a2, zero, 0xf | a2 = 0xf;
0x00004cb0 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00004cb4 lw t9, -0x7f00(gp) | t9 = sym.imp.fwrite;
0x00004cb8 addiu a1, zero, 1 | a1 = 1;
0x00004cbc addiu a0, a0, 0x774c | a0 += str.invalid_buffer_n;
0x00004cc0 jalr t9 | t9 ();
0x00004cc4 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x00004cc8 addiu v0, zero, -1 | v0 = -1;
0x00004ccc b 0x4c0c | goto label_0;
| label_2:
0x00004cd0 lw t9, -0x7f0c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00004cd4 jalr t9 | t9 ();
0x00004cd8 nop |
0x00004cdc nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/loggen @ 0x4720 */
| #include <stdint.h>
|
; (fcn) sym.prepare_log_line_template () | void prepare_log_line_template () {
0x00004720 lui gp, 2 |
0x00004724 addiu gp, gp, -0x44a0 |
0x00004728 addu gp, gp, t9 | gp += t9;
0x0000472c addiu sp, sp, -0x78 |
0x00004730 lw t9, -0x7eb0(gp) | t9 = sym.imp.gettimeofday;
0x00004734 sw s2, 0x5c(sp) | *(var_5ch) = s2;
0x00004738 lw s2, -0x7ef4(gp) | s2 = *((gp - 8125));
0x0000473c sw gp, 0x30(sp) | *(var_30h) = gp;
0x00004740 sw s7, 0x70(sp) | *(var_70h_2) = s7;
0x00004744 lw v0, (s2) | v0 = *(s2);
0x00004748 sw s6, 0x6c(sp) | *(var_6ch_2) = s6;
0x0000474c sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x00004750 lui v0, 0x4444 | v0 = 0x44444150;
0x00004754 addiu v0, v0, 0x4150 |
0x00004758 sw s4, 0x64(sp) | *(var_64h) = s4;
0x0000475c sw s3, 0x60(sp) | *(var_60h) = s3;
0x00004760 sw s1, 0x58(sp) | *(var_58h) = s1;
0x00004764 sw s0, 0x54(sp) | *(var_54h) = s0;
0x00004768 sw ra, 0x74(sp) | *(var_74h) = ra;
0x0000476c sw s5, 0x68(sp) | *(var_68h) = s5;
0x00004770 move s6, a0 | s6 = a0;
0x00004774 move s3, a1 | s3 = a1;
0x00004778 addiu a0, sp, 0x3c | a0 = sp + 0x3c;
0x0000477c move a1, zero | a1 = 0;
0x00004780 sw v0, 0x44(sp) | *(var_44h) = v0;
0x00004784 sb zero, 0x48(sp) | *(var_48h) = 0;
0x00004788 move s1, a2 | s1 = a2;
0x0000478c move s4, a3 | s4 = a3;
0x00004790 jalr t9 | t9 ();
0x00004794 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004798 lw s7, 0x3c(sp) | s7 = *(var_3ch);
0x0000479c lw s0, -0x7fdc(gp) | s0 = *((gp - 8183));
| if (s3 != 0) {
0x000047a0 bnez s3, 0x49e4 | goto label_4;
| }
0x000047a4 addiu s0, s0, -0x7b30 | s0 += -0x7b30;
0x000047a8 addiu a1, zero, 0x2001 | a1 = 0x2001;
0x000047ac move a0, s0 | a0 = s0;
0x000047b0 move s5, zero | s5 = 0;
| label_3:
0x000047b4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
| if (s6 == 0) {
0x000047b8 beqz s6, 0x48f4 | goto label_5;
| }
| if (s4 == 0) {
0x000047bc beql s4, zero, 0x48ec | goto label_6;
| }
0x000047c0 lw s4, -0x7fd0(gp) | s4 = *((gp - 8180));
| label_0:
0x000047c4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047c8 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x000047cc addiu v0, v0, 0x6cd0 | v0 += 0x6cd0;
0x000047d0 sw v0, 0x28(sp) | *(var_28h_2) = v0;
0x000047d4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047d8 addiu a3, zero, -1 | a3 = -1;
0x000047dc addiu v0, v0, 0x75f4 | v0 += str._38_1_2007_12_24T12:28:5102:00_localhost_prg_05d_1234____s_;
0x000047e0 addiu a2, zero, 1 | a2 = 1;
0x000047e4 sw s4, 0x18(sp) | *(var_18h) = s4;
0x000047e8 sw s7, 0x24(sp) | *(var_24h) = s7;
0x000047ec sw zero, 0x20(sp) | *(var_20h) = 0;
0x000047f0 sw zero, 0x1c(sp) | *(var_1ch) = 0;
0x000047f4 sw zero, 0x14(sp) | *(var_14h) = 0;
0x000047f8 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000047fc jalr t9 | t9 ();
0x00004800 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004804 move a0, s4 | a0 = s4;
0x00004808 move s4, v0 | s4 = v0;
0x0000480c lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004810 addiu v1, s3, 6 | v1 = s3 + 6;
0x00004814 lw t9, -0x7edc(gp) | t9 = sym.imp.strlen;
0x00004818 sw v1, -0x7b34(v0) | *((v0 - 7885)) = v1;
0x0000481c jalr t9 | t9 ();
0x00004820 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004824 addu v1, v0, s5 | v1 = v0 + s5;
0x00004828 addiu s5, s5, 0x77 | s5 += 0x77;
0x0000482c addu s5, s5, v0 | s5 += v0;
0x00004830 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004834 addiu a0, v1, 0x43 | a0 = v1 + 0x43;
0x00004838 addiu v1, v1, 0x57 | v1 += 0x57;
0x0000483c sw a0, -0x7b3c(v0) | *((v0 - 7887)) = a0;
0x00004840 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004844 sw v1, -0x7b40(v0) | *((v0 - 7888)) = v1;
0x00004848 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x0000484c sw s5, -0x7b38(v0) | *((v0 - 7886)) = s5;
0x00004850 slt v0, s1, s4 | v0 = (s1 < s4) ? 1 : 0;
0x00004854 lw s0, -0x7ed4(gp) | s0 = *((gp - 8117));
| if (v0 == 0) {
0x00004858 bnel v0, zero, 0x4970 | goto label_7;
| }
0x0000485c addiu a1, s1, -1 | a1 = s1 + -1;
| label_1:
0x00004860 slt v0, s4, a1 | v0 = (s4 < a1) ? 1 : 0;
| if (v0 == 0) {
0x00004864 beql v0, zero, 0x48a0 | goto label_8;
| }
0x00004868 addu s1, s3, s1 | s1 = s3 + s1;
0x0000486c subu a1, a1, s4 | __asm ("subu a1, a1, s4");
0x00004870 move v0, zero | v0 = 0;
0x00004874 addu a2, s3, s4 | a2 = s3 + s4;
| do {
0x00004878 andi a0, v0, 3 | a0 = v0 & 3;
0x0000487c addiu v1, sp, 0x50 | v1 = sp + 0x50;
0x00004880 addu a0, v1, a0 | a0 = v1 + a0;
0x00004884 addu v1, a2, v0 | v1 = a2 + v0;
0x00004888 addu v1, s0, v1 | v1 = s0 + v1;
0x0000488c lbu a0, -0xc(a0) | a0 = *((a0 - 12));
0x00004890 addiu v0, v0, 1 | v0++;
0x00004894 sb a0, (v1) | *(v1) = a0;
0x00004898 bne a1, v0, 0x4878 |
| } while (a1 != v0);
0x0000489c addu s1, s3, s1 | s1 = s3 + s1;
| label_8:
0x000048a0 addu s0, s0, s1 | s0 += s1;
0x000048a4 addiu v0, zero, 0xa | v0 = 0xa;
0x000048a8 sb v0, -1(s0) | *((s0 - 1)) = v0;
0x000048ac sb zero, (s0) | *(s0) = 0;
| label_2:
0x000048b0 lw a0, 0x4c(sp) | a0 = *(var_4ch);
0x000048b4 lw v1, (s2) | v1 = *(s2);
0x000048b8 move v0, s4 | v0 = s4;
| if (a0 != v1) {
0x000048bc bne a0, v1, 0x4a2c | goto label_9;
| }
0x000048c0 lw ra, 0x74(sp) | ra = *(var_74h);
0x000048c4 lw s7, 0x70(sp) | s7 = *(var_70h_2);
0x000048c8 lw s6, 0x6c(sp) | s6 = *(var_6ch_2);
0x000048cc lw s5, 0x68(sp) | s5 = *(var_68h);
0x000048d0 lw s4, 0x64(sp) | s4 = *(var_64h);
0x000048d4 lw s3, 0x60(sp) | s3 = *(var_60h);
0x000048d8 lw s2, 0x5c(sp) | s2 = *(var_5ch);
0x000048dc lw s1, 0x58(sp) | s1 = *(var_58h);
0x000048e0 lw s0, 0x54(sp) | s0 = *(var_54h);
0x000048e4 addiu sp, sp, 0x78 |
0x000048e8 jr ra | return v0;
| label_6:
0x000048ec addiu s4, s4, 0x7238 | s4 += 0x7238;
0x000048f0 b 0x47c4 | goto label_0;
| label_5:
0x000048f4 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x000048f8 addiu v0, v0, 0x6cd0 | v0 += 0x6cd0;
0x000048fc sw v0, 0x24(sp) | *(var_24h) = v0;
0x00004900 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004904 addiu a2, zero, 1 | a2 = 1;
0x00004908 addiu v0, v0, 0x766c | v0 += str._38_2007_12_24T12:28:51_localhost_prg_05d_1234_:_seq:__010d__thread:__04d__runid:___10d__stamp:___19s_;
0x0000490c sw s7, 0x20(sp) | *(var_20h) = s7;
0x00004910 sw zero, 0x1c(sp) | *(var_1ch) = 0;
0x00004914 sw zero, 0x18(sp) | *(var_18h) = 0;
0x00004918 sw zero, 0x14(sp) | *(var_14h) = 0;
0x0000491c sw v0, 0x10(sp) | *(var_10h) = v0;
0x00004920 addiu a3, zero, -1 | a3 = -1;
0x00004924 jalr t9 | t9 ();
0x00004928 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000492c move s4, v0 | s4 = v0;
0x00004930 addiu a2, s3, 4 | a2 = s3 + 4;
0x00004934 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004938 addiu a1, s3, 0x37 | a1 = s3 + 0x37;
0x0000493c addiu a0, s3, 0x4b | a0 = s3 + 0x4b;
0x00004940 sw a2, -0x7b34(v0) | *((v0 - 7885)) = a2;
0x00004944 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004948 addiu v1, s3, 0x6b | v1 = s3 + 0x6b;
0x0000494c sw a1, -0x7b3c(v0) | *((v0 - 7887)) = a1;
0x00004950 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00004954 sw a0, -0x7b40(v0) | *((v0 - 7888)) = a0;
0x00004958 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x0000495c sw v1, -0x7b38(v0) | *((v0 - 7886)) = v1;
0x00004960 slt v0, s1, s4 | v0 = (s1 < s4) ? 1 : 0;
| if (v0 == 0) {
0x00004964 beql v0, zero, 0x4860 | goto label_1;
| }
0x00004968 addiu a1, s1, -1 | a1 = s1 + -1;
0x0000496c lw s0, -0x7ed4(gp) | s0 = *((gp - 8117));
| label_7:
0x00004970 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00004974 lw t9, -0x7ee8(gp) | t9 = sym.imp.__xpg_basename;
0x00004978 addiu a0, a0, 0x76d4 | a0 += str..._syslog_ng_3.19.1_tests_loggen_logline_generator.c;
0x0000497c lw s1, (s0) | s1 = *(s0);
0x00004980 jalr t9 | t9 ();
0x00004984 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004988 move a3, v0 | a3 = v0;
0x0000498c addiu v0, zero, 0x54 | v0 = 0x54;
0x00004990 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00004994 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004998 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x0000499c addiu v0, v0, 0x7794 | v0 += str.prepare_log_line_template;
0x000049a0 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x000049a4 addiu a2, a2, 0x6810 | a2 += str.error___s:_s:_d__;
0x000049a8 addiu a1, zero, 1 | a1 = 1;
0x000049ac move a0, s1 | a0 = s1;
0x000049b0 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000049b4 jalr t9 | t9 ();
0x000049b8 lw gp, 0x30(sp) | gp = *(var_30h);
0x000049bc lw a0, (s0) | a0 = *(s0);
0x000049c0 move a3, s4 | a3 = s4;
0x000049c4 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x000049c8 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x000049cc addiu a2, a2, 0x770c | a2 += str.warning:_message_length_is_too_small__the_minimum_is__d_bytes_n;
0x000049d0 addiu a1, zero, 1 | a1 = 1;
0x000049d4 jalr t9 | t9 ();
0x000049d8 move s4, zero | s4 = 0;
0x000049dc lw gp, 0x30(sp) | gp = *(var_30h);
0x000049e0 b 0x48b0 | goto label_2;
| label_4:
0x000049e4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000049e8 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x000049ec addiu v0, v0, 0x75f0 | v0 += 0x75f0;
0x000049f0 addiu a0, s0, -0x7b30 | a0 = s0 + -0x7b30;
0x000049f4 addiu a1, zero, 0x2001 | a1 = 0x2001;
0x000049f8 sw s1, 0x14(sp) | *(var_14h) = s1;
0x000049fc sw v0, 0x10(sp) | *(var_10h) = v0;
0x00004a00 addiu a3, zero, 0x2001 | a3 = 0x2001;
0x00004a04 addiu a2, zero, 1 | a2 = 1;
0x00004a08 jalr t9 | t9 ();
0x00004a0c addiu s0, s0, -0x7b30 | s0 += -0x7b30;
0x00004a10 addiu a1, zero, 0x2001 | a1 = 0x2001;
0x00004a14 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004a18 move s3, v0 | s3 = v0;
0x00004a1c move s5, v0 | s5 = v0;
0x00004a20 addu a0, s0, v0 | a0 = s0 + v0;
0x00004a24 subu a1, a1, v0 | __asm ("subu a1, a1, v0");
0x00004a28 b 0x47b4 | goto label_3;
| label_9:
0x00004a2c lw t9, -0x7f0c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00004a30 jalr t9 | t9 ();
0x00004a34 nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/loggen @ 0x3a1c */
| #include <stdint.h>
|
; (fcn) sym.read_next_message_from_file () | void read_next_message_from_file () {
0x00003a1c lui gp, 2 |
0x00003a20 addiu gp, gp, -0x379c |
0x00003a24 addu gp, gp, t9 | gp += t9;
0x00003a28 lw v0, -0x7ef4(gp) | v0 = *((gp - 8125));
0x00003a2c addiu sp, sp, -0x1728 |
0x00003a30 lw t9, -0x7e94(gp) | t9 = sym.imp.memset;
0x00003a34 sw s1, 0x1704(sp) | *(var_1704h) = s1;
0x00003a38 sw v0, 0x6c(sp) | *(var_6ch) = v0;
0x00003a3c lw s1, -0x7f94(gp) | s1 = *(gp);
0x00003a40 lw v0, (v0) | v0 = *(v0);
0x00003a44 addiu v1, sp, 0x70 | v1 = sp + 0x70;
0x00003a48 sw gp, 0x40(sp) | *(var_40h) = gp;
0x00003a4c sw s4, 0x1710(sp) | *(var_1710h) = s4;
0x00003a50 sw s2, 0x1708(sp) | *(var_1708h) = s2;
0x00003a54 sw s0, 0x1700(sp) | *(var_1700h) = s0;
0x00003a58 sw a2, 0x1730(sp) | *(arg_1730h) = a2;
0x00003a5c sw ra, 0x1724(sp) | *(var_1724h) = ra;
0x00003a60 sw fp, 0x1720(sp) | *(var_1720h) = fp;
0x00003a64 sw s7, 0x171c(sp) | *(var_171ch) = s7;
0x00003a68 sw s6, 0x1718(sp) | *(var_1718h) = s6;
0x00003a6c sw s5, 0x1714(sp) | *(var_1714h) = s5;
0x00003a70 sw s3, 0x170c(sp) | *(var_170ch) = s3;
0x00003a74 sw v1, 0x50(sp) | *(var_50h) = v1;
0x00003a78 move s2, a0 | s2 = a0;
0x00003a7c move s4, a1 | s4 = a1;
0x00003a80 move a0, v1 | a0 = v1;
0x00003a84 move a1, zero | a1 = 0;
0x00003a88 addiu a2, zero, 0x165d | a2 = 0x165d;
0x00003a8c sw v0, 0x16fc(sp) | *(var_16fch) = v0;
0x00003a90 move s0, a3 | s0 = a3;
0x00003a94 jalr t9 | t9 ();
0x00003a98 lw a0, (s1) | a0 = *(s1);
0x00003a9c sll s0, s0, 2 | s0 <<= 2;
0x00003aa0 lwx a0, s0(a0) | __asm ("lwx a0, s0(a0)");
0x00003aa4 lw gp, 0x40(sp) | gp = *(var_40h);
| if (a0 == 0) {
0x00003aa8 beqz a0, 0x46b4 | goto label_10;
| }
0x00003aac lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00003ab0 lw s5, -0x7fd0(gp) | s5 = *((gp - 8180));
0x00003ab4 addiu v0, v0, 0x75c4 | v0 += str.parse_line;
0x00003ab8 sw v0, 0x60(sp) | *(var_60h_2) = v0;
0x00003abc addiu v0, s5, 0x3578 | v0 = s5 + fcn.00003578;
0x00003ac0 sw v0, 0x4c(sp) | *(var_4ch_2) = v0;
0x00003ac4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00003ac8 lw fp, -0x7fdc(gp) | fp = *((gp - 8183));
0x00003acc addiu v0, v0, 0x7570 | v0 += str.parse_line_rfc3164;
0x00003ad0 lw s6, -0x7fdc(gp) | s6 = *((gp - 8183));
0x00003ad4 sw v0, 0x64(sp) | *(var_64h_2) = v0;
| label_0:
0x00003ad8 lw t9, -0x7eec(gp) | t9 = sym.imp.feof;
0x00003adc jalr t9 | t9 ();
0x00003ae0 nop |
0x00003ae4 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 != 0) {
0x00003ae8 beqz v0, 0x3b08 |
0x00003aec lw v0, -0x7b50(fp) | v0 = *(var_7b50h);
0x00003af0 lw t9, -0x7e78(gp) | t9 = sym.imp.rewind;
| if (v0 == 0) {
0x00003af4 beqz v0, 0x4640 | goto label_11;
| }
0x00003af8 lw a0, (s1) | a0 = *(s1);
0x00003afc lwx a0, s0(a0) | __asm ("lwx a0, s0(a0)");
0x00003b00 jalr t9 | t9 ();
0x00003b04 lw gp, 0x40(sp) | gp = *(var_40h);
| }
0x00003b08 lw a2, (s1) | a2 = *(s1);
0x00003b0c lw t9, -0x7e90(gp) | t9 = sym.imp.fgets;
0x00003b10 move a1, s4 | a1 = s4;
0x00003b14 lwx a2, s0(a2) | __asm ("lwx a2, s0(a2)");
0x00003b18 move a0, s2 | a0 = s2;
0x00003b1c jalr t9 | t9 ();
0x00003b20 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 == 0) {
0x00003b24 beqz v0, 0x4004 | goto label_12;
| }
0x00003b28 lw v0, -0x7b54(s6) | v0 = *((s6 - 7893));
0x00003b2c lw t9, -0x7f14(gp) | t9 = sym.imp.strnlen;
| if (v0 != 0) {
0x00003b30 bnez v0, 0x4048 | goto label_13;
| }
| label_3:
0x00003b34 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00003b38 lw s3, -0x7b58(v0) | s3 = *((v0 - 7894));
0x00003b3c move s5, s2 | s5 = s2;
| if (s3 != 0) {
0x00003b40 bnez s3, 0x3b58 | goto label_14;
| }
0x00003b44 b 0x3bb0 | goto label_15;
0x00003b48 nop |
| do {
0x00003b4c addiu s3, s3, -1 | s3 += -1;
0x00003b50 addiu s5, v0, 1 | s5 = v0 + 1;
| if (s3 == 0) {
0x00003b54 beqz s3, 0x3bb0 | goto label_15;
| }
| label_14:
0x00003b58 lw t9, -0x7e80(gp) | t9 = sym.imp.strchr;
0x00003b5c addiu a1, zero, 0x20 | a1 = 0x20;
0x00003b60 move a0, s5 | a0 = s5;
0x00003b64 jalr t9 | t9 ();
0x00003b68 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003b6c bnez v0, 0x3b4c |
| } while (v0 != 0);
| do {
| label_1:
0x00003b70 lw s7, -0x7ed4(gp) | s7 = *((gp - 8117));
| label_2:
0x00003b74 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x00003b78 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00003b7c lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x00003b80 lw v0, -0x7b60(v1) | v0 = *((v1 - 7896));
0x00003b84 lw a0, (s7) | a0 = *(s7);
0x00003b88 addiu v0, v0, 1 | v0++;
0x00003b8c move a3, v0 | a3 = v0;
0x00003b90 addiu a2, a2, 0x7350 | a2 += str.Invalid_line__d_n;
0x00003b94 addiu a1, zero, 1 | a1 = 1;
0x00003b98 sw v0, -0x7b60(v1) | *((v1 - 7896)) = v0;
0x00003b9c jalr t9 | t9 ();
0x00003ba0 lw a0, (s1) | a0 = *(s1);
0x00003ba4 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003ba8 lwx a0, s0(a0) | __asm ("lwx a0, s0(a0)");
0x00003bac b 0x3ad8 | goto label_0;
| label_15:
0x00003bb0 lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00003bb4 beqz s5, 0x3b70 |
| } while (s5 == 0);
0x00003bb8 lw s3, -0x7fd0(gp) | s3 = *((gp - 8180));
0x00003bbc addiu a2, s3, 0x6db4 | a2 = s3 + 0x6db4;
0x00003bc0 addiu a1, zero, 5 | a1 = 5;
0x00003bc4 move a0, s5 | a0 = s5;
0x00003bc8 jalr t9 | t9 ();
0x00003bcc lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 != 0) {
0x00003bd0 beqz v0, 0x3f7c |
0x00003bd4 lbu v0, 1(v0) | v0 = *((v0 + 1));
0x00003bd8 addiu a0, v0, -0x41 | a0 = v0 + -0x41;
0x00003bdc sltiu a0, a0, 0x1a | a0 = (a0 < 0x1a) ? 1 : 0;
0x00003be0 addiu v0, v0, -0x30 | v0 += -0x30;
| if (a0 != 0) {
0x00003be4 bnez a0, 0x4098 | goto label_16;
| }
0x00003be8 sltiu v0, v0, 0xa | v0 = (v0 < 0xa) ? 1 : 0;
0x00003bec lw t9, -0x7ee4(gp) | t9 = sym.imp.get_debug_level;
| if (v0 == 0) {
0x00003bf0 beqz v0, 0x3f80 | goto label_17;
| }
0x00003bf4 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00003bf8 lw t9, -0x7f04(gp) | t9 = sym.imp.g_str_has_prefix;
0x00003bfc addiu a1, a1, 0x723c | a1 += 0x723c;
0x00003c00 move a0, s5 | a0 = s5;
0x00003c04 jalr t9 | t9 ();
0x00003c08 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 != 0) {
0x00003c0c beqz v0, 0x3c14 |
0x00003c10 addiu s5, s5, 1 | s5++;
| }
0x00003c14 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00003c18 lw t9, -0x7e60(gp) | t9 = sym.imp.g_strsplit_set;
0x00003c1c addiu a2, zero, 8 | a2 = 8;
0x00003c20 addiu a1, a1, 0x7250 | a1 += 0x7250;
0x00003c24 move a0, s5 | a0 = s5;
0x00003c28 jalr t9 | t9 ();
0x00003c2c lw gp, 0x40(sp) | gp = *(var_40h);
0x00003c30 move a0, v0 | a0 = v0;
0x00003c34 lw t9, -0x7ea8(gp) | t9 = sym.imp.g_strv_length;
0x00003c38 move s3, v0 | s3 = v0;
0x00003c3c jalr t9 | t9 ();
0x00003c40 sltiu v0, v0, 8 | v0 = (v0 < 8) ? 1 : 0;
0x00003c44 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 != 0) {
0x00003c48 bnez v0, 0x4310 | goto label_18;
| }
0x00003c4c lw s1, -0x7fd0(gp) | s1 = *((gp - 8180));
0x00003c50 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003c54 addiu s1, s1, 0x3578 | s1 += fcn.00003578;
0x00003c58 lw a1, (s3) | a1 = *(s3);
0x00003c5c lw a0, 0x50(sp) | a0 = *(var_50h);
0x00003c60 addiu a3, a3, 0x7288 | a3 += str.priority;
0x00003c64 move t9, s1 | t9 = s1;
0x00003c68 addiu a2, zero, 4 | a2 = 4;
0x00003c6c bal 0x3578 | fcn_00003578 ();
0x00003c70 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003c74 addiu v0, sp, 0x74 | v0 = sp + 0x74;
0x00003c78 lw a1, 4(s3) | a1 = *((s3 + 1));
0x00003c7c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003c80 addiu a2, zero, 3 | a2 = 3;
0x00003c84 addiu a3, a3, 0x7240 | a3 += 0x7240;
0x00003c88 move a0, v0 | a0 = v0;
0x00003c8c move t9, s1 | t9 = s1;
0x00003c90 sw v0, 0x54(sp) | *(var_54h_3) = v0;
0x00003c94 bal 0x3578 | fcn_00003578 ();
0x00003c98 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003c9c lw a1, 8(s3) | a1 = *((s3 + 2));
0x00003ca0 addiu a2, zero, 0x81 | a2 = 0x81;
0x00003ca4 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003ca8 addiu a0, sp, 0x77 | a0 = sp + 0x77;
0x00003cac move t9, s1 | t9 = s1;
0x00003cb0 addiu a3, a3, 0x7294 | a3 += str.time_stamp;
0x00003cb4 bal 0x3578 | fcn_00003578 ();
0x00003cb8 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003cbc addiu v0, sp, 0xf8 | v0 = sp + 0xf8;
0x00003cc0 lw a1, 0xc(s3) | a1 = *((s3 + 3));
0x00003cc4 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003cc8 addiu a2, zero, 0x100 | a2 = 0x100;
0x00003ccc addiu a3, a3, 0x72a0 | a3 += str.host;
0x00003cd0 move a0, v0 | a0 = v0;
0x00003cd4 move t9, s1 | t9 = s1;
0x00003cd8 sw v0, 0x60(sp) | *(var_60h_2) = v0;
0x00003cdc bal 0x3578 | fcn_00003578 ();
0x00003ce0 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003ce4 addiu v0, sp, 0x1f8 | v0 = sp + segment.DYNAMIC;
0x00003ce8 lw a1, 0x10(s3) | a1 = *((s3 + 4));
0x00003cec lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003cf0 addiu a2, zero, 0x31 | a2 = 0x31;
0x00003cf4 addiu a3, a3, 0x72a8 | a3 += 0x72a8;
0x00003cf8 move a0, v0 | a0 = v0;
0x00003cfc move t9, s1 | t9 = s1;
0x00003d00 sw v0, 0x64(sp) | *(var_64h_2) = v0;
0x00003d04 bal 0x3578 | fcn_00003578 ();
0x00003d08 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003d0c addiu v0, sp, 0x229 | v0 = sp + 0x229;
0x00003d10 lw a1, 0x14(s3) | a1 = *((s3 + 5));
0x00003d14 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003d18 addiu a2, zero, 0x81 | a2 = 0x81;
0x00003d1c addiu a3, a3, 0x72ac | a3 += 0x72ac;
0x00003d20 move a0, v0 | a0 = v0;
0x00003d24 move t9, s1 | t9 = s1;
0x00003d28 sw v0, 0x68(sp) | *(var_68h_2) = v0;
0x00003d2c bal 0x3578 | fcn_00003578 ();
0x00003d30 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003d34 addiu v0, sp, 0x2aa | v0 = sp + 0x2aa;
0x00003d38 lw a1, 0x18(s3) | a1 = *((s3 + 6));
0x00003d3c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003d40 addiu a2, zero, 0x21 | a2 = 0x21;
0x00003d44 addiu a3, a3, 0x72b0 | a3 += str.msgid;
0x00003d48 move a0, v0 | a0 = v0;
0x00003d4c move t9, s1 | t9 = s1;
0x00003d50 sw v0, 0x58(sp) | *(var_58h_2) = v0;
0x00003d54 bal 0x3578 | fcn_00003578 ();
0x00003d58 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003d5c lw s0, 0x1c(s3) | s0 = *((s3 + 7));
0x00003d60 addiu a1, zero, 0x401 | a1 = 0x401;
0x00003d64 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00003d68 lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00003d6c addiu a2, a2, 0x72b8 | a2 += 0x72b8;
0x00003d70 move a0, s0 | a0 = s0;
0x00003d74 jalr t9 | t9 ();
0x00003d78 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003d7c addiu a1, zero, 0x401 | a1 = 0x401;
0x00003d80 move a0, s0 | a0 = s0;
0x00003d84 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00003d88 lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00003d8c addiu a2, a2, 0x72bc | a2 += 0x72bc;
0x00003d90 move s7, v0 | s7 = v0;
0x00003d94 jalr t9 | t9 ();
0x00003d98 move s5, v0 | s5 = v0;
0x00003d9c lw gp, 0x40(sp) | gp = *(var_40h);
| if (s7 != 0) {
0x00003da0 beqz s7, 0x3db4 |
0x00003da4 addiu v0, v0, -1 | v0 += -1;
| if (v0 == 0) {
0x00003da8 beqz v0, 0x3db4 | goto label_19;
| }
0x00003dac lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
| if (v0 != s7) {
0x00003db0 bne v0, s7, 0x43e0 | goto label_20;
| }
| }
| label_19:
0x00003db4 lw t9, -0x7ee4(gp) | t9 = sym.imp.get_debug_level;
0x00003db8 jalr t9 | t9 ();
0x00003dbc nop |
0x00003dc0 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 != 0) {
0x00003dc4 bnez v0, 0x44b0 | goto label_21;
| }
| label_6:
0x00003dc8 lw s5, -0x7fd0(gp) | s5 = *((gp - 8180));
0x00003dcc lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003dd0 addiu v0, sp, 0x2cb | v0 = sp + 0x2cb;
0x00003dd4 addiu a3, a3, 0x6e34 | a3 += str.sdata;
0x00003dd8 addiu a2, zero, 0x401 | a2 = 0x401;
0x00003ddc addiu a1, s5, 0x7238 | a1 = s5 + 0x7238;
0x00003de0 move a0, v0 | a0 = v0;
0x00003de4 move t9, s1 | t9 = s1;
0x00003de8 sw v0, 0x5c(sp) | *(var_5ch_3) = v0;
0x00003dec bal 0x3578 | fcn_00003578 ();
0x00003df0 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003df4 addiu a2, s5, 0x7238 | a2 = s5 + 0x7238;
0x00003df8 move a0, s0 | a0 = s0;
0x00003dfc lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00003e00 addiu a1, zero, 0x401 | a1 = 0x401;
0x00003e04 jalr t9 | t9 ();
0x00003e08 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003e0c addiu s0, sp, 0x6cc | s0 = sp + 0x6cc;
0x00003e10 addiu a2, zero, 0x1001 | a2 = 0x1001;
0x00003e14 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00003e18 addiu a3, a3, 0x72e8 | a3 += 0x72e8;
| if (v0 == 0) {
0x00003e1c beqz v0, 0x45bc | goto label_22;
| }
0x00003e20 addiu a1, v0, 1 | a1 = v0 + 1;
0x00003e24 move t9, s1 | t9 = s1;
0x00003e28 move a0, s0 | a0 = s0;
0x00003e2c bal 0x3578 | fcn_00003578 ();
0x00003e30 lw gp, 0x40(sp) | gp = *(var_40h);
| label_7:
0x00003e34 lw t9, -0x7f08(gp) | t9 = sym.imp.g_strchug;
0x00003e38 move a0, s0 | a0 = s0;
0x00003e3c jalr t9 | t9 ();
0x00003e40 lw gp, 0x40(sp) | gp = *(var_40h);
| label_5:
0x00003e44 lw t9, -0x7f54(gp) | t9 = sym.imp.g_strfreev;
0x00003e48 move a0, s3 | a0 = s3;
0x00003e4c jalr t9 | t9 ();
0x00003e50 lw gp, 0x40(sp) | gp = *(var_40h);
| label_4:
0x00003e54 lw v0, -0x7b54(s6) | v0 = *((s6 - 7893));
0x00003e58 lw v0, 0x1730(sp) | v0 = *(arg_1730h);
| if (v0 != 0) {
0x00003e5c bnez v0, 0x4044 | goto label_23;
| }
0x00003e60 lw t9, -0x7f6c(gp) | t9 = sym.imp.get_now_timestamp_bsd;
| if (v0 == 0) {
0x00003e64 beqz v0, 0x4648 | goto label_24;
| }
0x00003e68 lw t9, -0x7f10(gp) | t9 = sym.imp.get_now_timestamp;
0x00003e6c addiu s1, sp, 0x16dc | s1 = sp + 0x16dc;
0x00003e70 addiu a1, zero, 0x20 | a1 = 0x20;
0x00003e74 move a0, s1 | a0 = s1;
0x00003e78 jalr t9 | t9 ();
0x00003e7c lb v1, 0x229(sp) | v1 = *(var_229h);
0x00003e80 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003e84 addiu a0, s2, 0xa | a0 = s2 + 0xa;
0x00003e88 addiu a1, s4, -0xa | a1 = s4 + -0xa;
| if (v1 != 0) {
0x00003e8c bnez v1, 0x4700 | goto label_25;
| }
0x00003e90 lw t1, -0x7fd0(gp) | t1 = *((gp - 8180));
0x00003e94 addiu t1, t1, 0x7238 | t1 += 0x7238;
| label_9:
0x00003e98 lb v1, 0x2aa(sp) | v1 = *(var_2aah);
0x00003e9c lw t0, 0x58(sp) | t0 = *(var_58h_2);
| if (v1 == 0) {
0x00003ea0 bnez v1, 0x3eac |
0x00003ea4 lw t0, -0x7fd0(gp) | t0 = *((gp - 8180));
0x00003ea8 addiu t0, t0, 0x7238 | t0 += 0x7238;
| }
0x00003eac lb v1, 0x2cb(sp) | v1 = *(var_2cbh);
0x00003eb0 lw v1, 0x5c(sp) | v1 = *(var_5ch_3);
| if (v1 == 0) {
0x00003eb4 bnez v1, 0x3ec0 |
0x00003eb8 lw v1, -0x7fd0(gp) | v1 = *((gp - 8180));
0x00003ebc addiu v1, v1, 0x7238 | v1 += 0x7238;
| }
0x00003ec0 sw v0, 0x1c(sp) | *(var_1ch_2) = v0;
0x00003ec4 lw v0, 0x54(sp) | v0 = *(var_54h_3);
0x00003ec8 sw v1, 0x34(sp) | *(var_34h) = v1;
0x00003ecc sw v0, 0x18(sp) | *(var_18h_3) = v0;
0x00003ed0 lw v0, 0x50(sp) | v0 = *(var_50h);
0x00003ed4 lw v1, 0x64(sp) | v1 = *(var_64h_2);
0x00003ed8 sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x00003edc lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00003ee0 sw v1, 0x28(sp) | *(var_28h_3) = v1;
0x00003ee4 lw v1, 0x60(sp) | v1 = *(var_60h_2);
0x00003ee8 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x00003eec addiu v0, v0, 0x7364 | v0 += str.__s__s__.s__s__s__s__s__s_;
0x00003ef0 sw s1, 0x20(sp) | *(var_20h_3) = s1;
0x00003ef4 sw v1, 0x24(sp) | *(var_24h_2) = v1;
0x00003ef8 addiu a3, zero, -1 | a3 = -1;
0x00003efc addiu a2, zero, 1 | a2 = 1;
0x00003f00 sw s0, 0x38(sp) | *(var_38h) = s0;
0x00003f04 sw t0, 0x30(sp) | *(var_30h_2) = t0;
0x00003f08 sw t1, 0x2c(sp) | *(var_2ch) = t1;
0x00003f0c sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x00003f10 jalr t9 | t9 ();
0x00003f14 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003f18 move s0, v0 | s0 = v0;
0x00003f1c sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x00003f20 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00003f24 addiu s1, sp, 0x16d0 | s1 = sp + 0x16d0;
0x00003f28 addiu v0, v0, 0x7388 | v0 += str._09d_;
0x00003f2c lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
0x00003f30 move a0, s1 | a0 = s1;
0x00003f34 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x00003f38 addiu a3, zero, 0xb | a3 = 0xb;
0x00003f3c addiu a2, zero, 1 | a2 = 1;
0x00003f40 addiu a1, zero, 0xb | a1 = 0xb;
0x00003f44 jalr t9 | t9 ();
0x00003f48 lw v1, 0x16d0(sp) | v1 = *(var_16d0h);
0x00003f4c lw gp, 0x40(sp) | gp = *(var_40h);
0x00003f50 lw v0, 4(s1) | v0 = *((s1 + 1));
0x00003f54 swl v1, 3(s2) | __asm ("swl v1, 3(s2)");
0x00003f58 swr v1, (s2) | __asm ("swr v1, (s2)");
0x00003f5c lbu a0, 8(s1) | a0 = *((s1 + 8));
0x00003f60 lbu v1, 9(s1) | v1 = *((s1 + 9));
0x00003f64 swl v0, 7(s2) | __asm ("swl v0, 7(s2)");
0x00003f68 swr v0, 4(s2) | __asm ("swr v0, 4(s2)");
0x00003f6c sb a0, 8(s2) | *((s2 + 8)) = a0;
0x00003f70 sb v1, 9(s2) | *((s2 + 9)) = v1;
0x00003f74 addiu v0, s0, 0xa | v0 = s0 + 0xa;
0x00003f78 b 0x4058 | goto label_8;
| }
0x00003f7c lw t9, -0x7ee4(gp) | t9 = sym.imp.get_debug_level;
| label_17:
0x00003f80 jalr t9 | t9 ();
0x00003f84 nop |
0x00003f88 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 == 0) {
0x00003f8c beqz v0, 0x3b70 | goto label_1;
| }
0x00003f90 lw s3, -0x7f2c(gp) | s3 = *((gp - 8139));
0x00003f94 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00003f98 lw t9, -0x7ee8(gp) | t9 = sym.imp.__xpg_basename;
0x00003f9c addiu a0, a0, 0x70e0 | a0 += 0x70e0;
0x00003fa0 lw s7, (s3) | s7 = *(s3);
0x00003fa4 jalr t9 | t9 ();
0x00003fa8 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003fac move a3, v0 | a3 = v0;
0x00003fb0 addiu v0, zero, 0x149 | v0 = 0x149;
0x00003fb4 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00003fb8 sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x00003fbc lw v0, 0x60(sp) | v0 = *(var_60h_2);
0x00003fc0 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x00003fc4 move a0, s7 | a0 = s7;
0x00003fc8 addiu a2, a2, 0x697c | a2 += str.debug___s:_s:_d__;
0x00003fcc addiu a1, zero, 1 | a1 = 1;
0x00003fd0 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x00003fd4 jalr t9 | t9 ();
0x00003fd8 lw gp, 0x40(sp) | gp = *(var_40h);
0x00003fdc lw a0, (s3) | a0 = *(s3);
0x00003fe0 move a3, s5 | a3 = s5;
0x00003fe4 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00003fe8 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x00003fec addiu a2, a2, 0x7330 | a2 += 0x7330;
0x00003ff0 lw s7, -0x7ed4(gp) | s7 = *((gp - 8117));
0x00003ff4 addiu a1, zero, 1 | a1 = 1;
0x00003ff8 jalr t9 | t9 ();
0x00003ffc lw gp, 0x40(sp) | gp = *(var_40h);
0x00004000 b 0x3b74 | goto label_2;
| label_12:
0x00004004 lw v0, -0x7b50(fp) | v0 = *(var_7b50h);
0x00004008 lw t9, -0x7e78(gp) | t9 = sym.imp.rewind;
| if (v0 == 0) {
0x0000400c beqz v0, 0x4640 | goto label_11;
| }
0x00004010 lw a0, (s1) | a0 = *(s1);
0x00004014 lwx a0, s0(a0) | __asm ("lwx a0, s0(a0)");
0x00004018 jalr t9 | t9 ();
0x0000401c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004020 lw a2, (s1) | a2 = *(s1);
0x00004024 move a1, s4 | a1 = s4;
0x00004028 lw t9, -0x7e90(gp) | t9 = sym.imp.fgets;
0x0000402c lwx a2, s0(a2) | __asm ("lwx a2, s0(a2)");
0x00004030 move a0, s2 | a0 = s2;
0x00004034 jalr t9 | t9 ();
0x00004038 lw v0, -0x7b54(s6) | v0 = *((s6 - 7893));
0x0000403c lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 == 0) {
0x00004040 beqz v0, 0x3b34 | goto label_3;
| }
| label_23:
0x00004044 lw t9, -0x7f14(gp) | t9 = sym.imp.strnlen;
| label_13:
0x00004048 move a1, s4 | a1 = s4;
0x0000404c move a0, s2 | a0 = s2;
0x00004050 jalr t9 | t9 ();
0x00004054 lw gp, 0x40(sp) | gp = *(var_40h);
| label_8:
0x00004058 lw v1, 0x6c(sp) | v1 = *(var_6ch);
0x0000405c lw a0, 0x16fc(sp) | a0 = *(var_16fch);
0x00004060 lw v1, (v1) | v1 = *(v1);
0x00004064 lw ra, 0x1724(sp) | ra = *(var_1724h);
| if (a0 != v1) {
0x00004068 bne a0, v1, 0x4708 | goto label_26;
| }
0x0000406c lw fp, 0x1720(sp) | fp = *(var_1720h);
0x00004070 lw s7, 0x171c(sp) | s7 = *(var_171ch);
0x00004074 lw s6, 0x1718(sp) | s6 = *(var_1718h);
0x00004078 lw s5, 0x1714(sp) | s5 = *(var_1714h);
0x0000407c lw s4, 0x1710(sp) | s4 = *(var_1710h);
0x00004080 lw s3, 0x170c(sp) | s3 = *(var_170ch);
0x00004084 lw s2, 0x1708(sp) | s2 = *(var_1708h);
0x00004088 lw s1, 0x1704(sp) | s1 = *(var_1704h);
0x0000408c lw s0, 0x1700(sp) | s0 = *(var_1700h);
0x00004090 addiu sp, sp, 0x1728 |
0x00004094 jr ra | return v0;
| label_16:
0x00004098 lw s7, -0x7fd0(gp) | s7 = *((gp - 8180));
0x0000409c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000040a0 addiu v0, sp, 0x74 | v0 = sp + 0x74;
0x000040a4 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000040a8 addiu a3, a3, 0x7240 | a3 += 0x7240;
0x000040ac addiu a2, zero, 3 | a2 = 3;
0x000040b0 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x000040b4 move a0, v0 | a0 = v0;
0x000040b8 sw v0, 0x54(sp) | *(var_54h_3) = v0;
0x000040bc jalr t9 | t9 ();
0x000040c0 lw gp, 0x40(sp) | gp = *(var_40h);
0x000040c4 addiu v0, sp, 0x2aa | v0 = sp + 0x2aa;
0x000040c8 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000040cc lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000040d0 addiu a2, zero, 0x21 | a2 = 0x21;
0x000040d4 addiu a3, a3, 0x7248 | a3 += str.msg_id;
0x000040d8 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x000040dc move a0, v0 | a0 = v0;
0x000040e0 sw v0, 0x58(sp) | *(var_58h_2) = v0;
0x000040e4 jalr t9 | t9 ();
0x000040e8 lw gp, 0x40(sp) | gp = *(var_40h);
0x000040ec addiu v0, sp, 0x2cb | v0 = sp + 0x2cb;
0x000040f0 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000040f4 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000040f8 addiu a2, zero, 0x401 | a2 = 0x401;
0x000040fc addiu a3, a3, 0x6e34 | a3 += str.sdata;
0x00004100 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x00004104 move a0, v0 | a0 = v0;
0x00004108 sw v0, 0x5c(sp) | *(var_5ch_3) = v0;
0x0000410c jalr t9 | t9 ();
0x00004110 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004114 move a0, s5 | a0 = s5;
0x00004118 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x0000411c lw t9, -0x7f04(gp) | t9 = sym.imp.g_str_has_prefix;
0x00004120 addiu a1, a1, 0x723c | a1 += 0x723c;
0x00004124 jalr t9 | t9 ();
0x00004128 lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 != 0) {
0x0000412c beqz v0, 0x4134 |
0x00004130 addiu s5, s5, 1 | s5++;
| }
0x00004134 lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00004138 addiu a2, s3, 0x6db4 | a2 = s3 + 0x6db4;
0x0000413c addiu a1, zero, 0x1001 | a1 = 0x1001;
0x00004140 move a0, s5 | a0 = s5;
0x00004144 jalr t9 | t9 ();
0x00004148 move s3, v0 | s3 = v0;
0x0000414c lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 == 0) {
0x00004150 beqz v0, 0x4440 | goto label_27;
| }
0x00004154 subu a2, v0, s5 | __asm ("subu a2, v0, s5");
0x00004158 lw fp, -0x7fd0(gp) | fp = *((gp - 8180));
0x0000415c lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004160 lw a0, 0x50(sp) | a0 = *(var_50h);
0x00004164 addiu fp, fp, 0x33e0 | fp += fcn.000033e0;
0x00004168 addiu v0, v0, 0x7318 | v0 += 0x7318;
0x0000416c addiu a3, zero, 4 | a3 = 4;
0x00004170 move a1, s5 | a1 = s5;
0x00004174 move t9, fp | t9 = fp;
0x00004178 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x0000417c bal 0x33e0 | fcn_000033e0 ();
0x00004180 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004184 addiu a1, s3, 1 | a1 = s3 + 1;
0x00004188 addiu a3, zero, 0x81 | a3 = 0x81;
0x0000418c lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004190 addiu a2, zero, 0xf | a2 = 0xf;
0x00004194 addiu v0, v0, 0x731c | v0 += str.timestamp;
0x00004198 addiu a0, sp, 0x77 | a0 = sp + 0x77;
0x0000419c move t9, fp | t9 = fp;
0x000041a0 lw s0, -0x7fd0(gp) | s0 = *((gp - 8180));
0x000041a4 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000041a8 bal 0x33e0 | fcn_000033e0 ();
0x000041ac lw gp, 0x40(sp) | gp = *(var_40h);
0x000041b0 addiu s3, s3, 0x11 | s3 += 0x11;
0x000041b4 addiu a2, s0, 0x698c | a2 = s0 + 0x698c;
0x000041b8 lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x000041bc addiu a1, zero, 0x1001 | a1 = 0x1001;
0x000041c0 move a0, s3 | a0 = s3;
0x000041c4 jalr t9 | t9 ();
0x000041c8 move s1, v0 | s1 = v0;
0x000041cc addiu v0, sp, 0xf8 | v0 = sp + 0xf8;
0x000041d0 lw gp, 0x40(sp) | gp = *(var_40h);
0x000041d4 sw v0, 0x60(sp) | *(var_60h_2) = v0;
| if (s1 == 0) {
0x000041d8 beqz s1, 0x4524 | goto label_28;
| }
0x000041dc move a0, v0 | a0 = v0;
0x000041e0 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000041e4 subu a2, s1, s3 | __asm ("subu a2, s1, s3");
0x000041e8 addiu v0, v0, 0x72a0 | v0 += str.host;
0x000041ec addiu a3, zero, 0x100 | a3 = 0x100;
0x000041f0 move a1, s3 | a1 = s3;
0x000041f4 move t9, fp | t9 = fp;
0x000041f8 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000041fc bal 0x33e0 | fcn_000033e0 ();
0x00004200 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004204 addiu s1, s1, 1 | s1++;
0x00004208 addiu a2, s0, 0x698c | a2 = s0 + 0x698c;
0x0000420c lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00004210 addiu a1, zero, 0x1001 | a1 = 0x1001;
0x00004214 move a0, s1 | a0 = s1;
0x00004218 jalr t9 | t9 ();
0x0000421c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004220 addiu a1, zero, 0x31 | a1 = 0x31;
0x00004224 move a0, s1 | a0 = s1;
0x00004228 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x0000422c lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00004230 addiu a2, a2, 0x7328 | a2 += 0x7328;
0x00004234 move s3, v0 | s3 = v0;
0x00004238 jalr t9 | t9 ();
0x0000423c lw gp, 0x40(sp) | gp = *(var_40h);
| if (v0 == 0) {
0x00004240 beqz v0, 0x45d8 | goto label_29;
| }
0x00004244 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004248 lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x0000424c addiu a2, a2, 0x72b8 | a2 += 0x72b8;
0x00004250 addiu a1, zero, 0x31 | a1 = 0x31;
0x00004254 move a0, s1 | a0 = s1;
0x00004258 jalr t9 | t9 ();
0x0000425c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004260 addiu a1, zero, 0x31 | a1 = 0x31;
0x00004264 move a0, s1 | a0 = s1;
0x00004268 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x0000426c lw t9, -0x7ec0(gp) | t9 = sym.imp.g_strstr_len;
0x00004270 addiu a2, a2, 0x732c | a2 += 0x732c;
0x00004274 move s0, v0 | s0 = v0;
0x00004278 jalr t9 | t9 ();
0x0000427c lw gp, 0x40(sp) | gp = *(var_40h);
| if (s0 == 0) {
0x00004280 beqz s0, 0x4394 | goto label_30;
| }
0x00004284 subu v0, v0, s0 | __asm ("subu v0, v0, s0");
| if (v0 == 0) {
0x00004288 beqz v0, 0x4394 | goto label_30;
| }
0x0000428c addiu a2, v0, -1 | a2 = v0 + -1;
0x00004290 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00004294 addiu v1, sp, 0x229 | v1 = sp + 0x229;
0x00004298 addiu v0, v0, 0x72ac | v0 += 0x72ac;
0x0000429c addiu a3, zero, 0x81 | a3 = 0x81;
0x000042a0 move a0, v1 | a0 = v1;
0x000042a4 sw v1, 0x68(sp) | *(var_68h_2) = v1;
0x000042a8 addiu a1, s0, 1 | a1 = s0 + 1;
0x000042ac move t9, fp | t9 = fp;
0x000042b0 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000042b4 bal 0x33e0 | fcn_000033e0 ();
0x000042b8 lw gp, 0x40(sp) | gp = *(var_40h);
0x000042bc addiu a0, sp, 0x1f8 | a0 = sp + segment.DYNAMIC;
0x000042c0 sw a0, 0x64(sp) | *(var_64h_2) = a0;
0x000042c4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000042c8 addiu a3, zero, 0x31 | a3 = 0x31;
0x000042cc addiu v0, v0, 0x72a8 | v0 += 0x72a8;
0x000042d0 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000042d4 subu a2, s0, s1 | __asm ("subu a2, s0, s1");
| do {
0x000042d8 move t9, fp | t9 = fp;
0x000042dc move a1, s1 | a1 = s1;
0x000042e0 bal 0x33e0 | fcn_000033e0 ();
0x000042e4 lw gp, 0x40(sp) | gp = *(var_40h);
0x000042e8 addiu s0, sp, 0x6cc | s0 = sp + 0x6cc;
0x000042ec lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000042f0 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000042f4 addiu a2, zero, 0x1001 | a2 = 0x1001;
0x000042f8 addiu a3, a3, 0x72e8 | a3 += 0x72e8;
0x000042fc addiu a1, s3, 1 | a1 = s3 + 1;
0x00004300 move a0, s0 | a0 = s0;
0x00004304 jalr t9 | t9 ();
0x00004308 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000430c b 0x3e54 | goto label_4;
| label_18:
0x00004310 lw s7, -0x7ed4(gp) | s7 = *((gp - 8117));
0x00004314 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00004318 lw t9, -0x7ee8(gp) | t9 = sym.imp.__xpg_basename;
0x0000431c addiu a0, a0, 0x70e0 | a0 += 0x70e0;
0x00004320 lw s5, (s7) | s5 = *(s7);
0x00004324 jalr t9 | t9 ();
0x00004328 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000432c move a3, v0 | a3 = v0;
0x00004330 addiu v0, zero, 0xcc | v0 = 0xcc;
0x00004334 sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x00004338 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x0000433c lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004340 addiu v0, v0, 0x75b0 | v0 += str.parse_line_rfc5424;
0x00004344 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x00004348 addiu a2, a2, 0x6810 | a2 += str.error___s:_s:_d__;
0x0000434c addiu a1, zero, 1 | a1 = 1;
0x00004350 move a0, s5 | a0 = s5;
0x00004354 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x00004358 jalr t9 | t9 ();
0x0000435c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004360 lw a3, (s7) | a3 = *(s7);
0x00004364 addiu a2, zero, 0x31 | a2 = 0x31;
0x00004368 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x0000436c lw t9, -0x7f00(gp) | t9 = sym.imp.fwrite;
0x00004370 addiu a1, zero, 1 | a1 = 1;
0x00004374 addiu a0, a0, 0x7254 | a0 += str.Invalid_rfc5424_log_format._Header_is_too_short._n;
0x00004378 jalr t9 | t9 ();
0x0000437c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004380 lw t9, -0x7f54(gp) | t9 = sym.imp.g_strfreev;
0x00004384 move a0, s3 | a0 = s3;
0x00004388 jalr t9 | t9 ();
0x0000438c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004390 b 0x3b74 | goto label_2;
| label_30:
0x00004394 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004398 addiu v0, sp, 0x229 | v0 = sp + 0x229;
0x0000439c lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000043a0 addiu a3, a3, 0x72ac | a3 += 0x72ac;
0x000043a4 addiu a2, zero, 0x81 | a2 = 0x81;
0x000043a8 move a0, v0 | a0 = v0;
0x000043ac sw v0, 0x68(sp) | *(var_68h_2) = v0;
0x000043b0 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x000043b4 jalr t9 | t9 ();
0x000043b8 lw gp, 0x40(sp) | gp = *(var_40h);
0x000043bc subu a2, s3, s1 | __asm ("subu a2, s3, s1");
0x000043c0 addiu a0, sp, 0x1f8 | a0 = sp + segment.DYNAMIC;
0x000043c4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000043c8 sw a0, 0x64(sp) | *(var_64h_2) = a0;
0x000043cc addiu v0, v0, 0x72a8 | v0 += 0x72a8;
0x000043d0 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000043d4 addiu a3, zero, 0x31 | a3 = 0x31;
0x000043d8 addiu a2, a2, -1 | a2 += -1;
0x000043dc b 0x42d8 |
| } while (1);
| label_20:
0x000043e0 addiu s0, sp, 0x2cb | s0 = sp + 0x2cb;
0x000043e4 addiu a3, a3, 0x6e34 | a3 += str.sdata;
0x000043e8 addiu a2, zero, 0x401 | a2 = 0x401;
0x000043ec move a1, s7 | a1 = s7;
0x000043f0 move a0, s0 | a0 = s0;
0x000043f4 sw s0, 0x5c(sp) | *(var_5ch_3) = s0;
0x000043f8 move t9, s1 | t9 = s1;
0x000043fc sb zero, (s5) | *(s5) = 0;
0x00004400 bal 0x3578 | fcn_00003578 ();
0x00004404 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004408 move a0, s0 | a0 = s0;
0x0000440c lw t9, -0x7efc(gp) | t9 = sym.imp.g_strchomp;
0x00004410 addiu s0, sp, 0x6cc | s0 = sp + 0x6cc;
0x00004414 jalr t9 | t9 ();
0x00004418 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000441c addiu a2, zero, 0x1001 | a2 = 0x1001;
0x00004420 addiu a1, s5, 3 | a1 = s5 + 3;
0x00004424 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004428 move a0, s0 | a0 = s0;
0x0000442c move t9, s1 | t9 = s1;
0x00004430 addiu a3, a3, 0x72e8 | a3 += 0x72e8;
0x00004434 bal 0x3578 | fcn_00003578 ();
0x00004438 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000443c b 0x3e44 | goto label_5;
| label_27:
0x00004440 lw s7, -0x7ed4(gp) | s7 = *((gp - 8117));
0x00004444 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00004448 lw t9, -0x7ee8(gp) | t9 = sym.imp.__xpg_basename;
0x0000444c addiu a0, a0, 0x70e0 | a0 += 0x70e0;
0x00004450 lw s3, (s7) | s3 = *(s7);
0x00004454 jalr t9 | t9 ();
0x00004458 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000445c move a3, v0 | a3 = v0;
0x00004460 addiu v0, zero, 0xf0 | v0 = 0xf0;
0x00004464 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004468 sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x0000446c lw v0, 0x64(sp) | v0 = *(var_64h_2);
0x00004470 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x00004474 addiu a2, a2, 0x6810 | a2 += str.error___s:_s:_d__;
0x00004478 addiu a1, zero, 1 | a1 = 1;
0x0000447c move a0, s3 | a0 = s3;
0x00004480 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x00004484 jalr t9 | t9 ();
0x00004488 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000448c lw a3, (s7) | a3 = *(s7);
0x00004490 addiu a2, zero, 0x2a | a2 = 0x2a;
0x00004494 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00004498 lw t9, -0x7f00(gp) | t9 = sym.imp.fwrite;
0x0000449c addiu a1, zero, 1 | a1 = 1;
0x000044a0 addiu a0, a0, 0x72ec | a0 += str.Invalid_rfc3164_log_format._No___found._n;
0x000044a4 jalr t9 | t9 ();
0x000044a8 lw gp, 0x40(sp) | gp = *(var_40h);
0x000044ac b 0x3b74 | goto label_2;
| label_21:
0x000044b0 lw s5, -0x7f2c(gp) | s5 = *((gp - 8139));
0x000044b4 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x000044b8 lw t9, -0x7ee8(gp) | t9 = sym.imp.__xpg_basename;
0x000044bc addiu a0, a0, 0x70e0 | a0 += 0x70e0;
0x000044c0 lw s7, (s5) | s7 = *(s5);
0x000044c4 jalr t9 | t9 ();
0x000044c8 lw gp, 0x40(sp) | gp = *(var_40h);
0x000044cc move a3, v0 | a3 = v0;
0x000044d0 addiu v0, zero, 0xa9 | v0 = 0xa9;
0x000044d4 sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x000044d8 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000044dc lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x000044e0 addiu v0, v0, 0x7584 | v0 += str.parse_sdata_and_message;
0x000044e4 lw t9, -0x7e68(gp) | t9 = sym.imp.__fprintf_chk
0x000044e8 addiu a2, a2, 0x697c | a2 += str.debug___s:_s:_d__;
0x000044ec addiu a1, zero, 1 | a1 = 1;
0x000044f0 move a0, s7 | a0 = s7;
0x000044f4 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000044f8 jalr t9 | t9 ();
0x000044fc lw gp, 0x40(sp) | gp = *(var_40h);
0x00004500 lw a3, (s5) | a3 = *(s5);
0x00004504 addiu a2, zero, 0x27 | a2 = 0x27;
0x00004508 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x0000450c lw t9, -0x7f00(gp) | t9 = sym.imp.fwrite;
0x00004510 addiu a1, zero, 1 | a1 = 1;
0x00004514 addiu a0, a0, 0x72c0 | a0 += str.no_valid_sdata_found._use_____as_sdata_n;
0x00004518 jalr t9 | t9 ();
0x0000451c lw gp, 0x40(sp) | gp = *(var_40h);
0x00004520 b 0x3dc8 | goto label_6;
| label_28:
0x00004524 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004528 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x0000452c addiu a3, a3, 0x72a0 | a3 += str.host;
0x00004530 addiu a2, zero, 0x100 | a2 = 0x100;
0x00004534 move a1, s3 | a1 = s3;
0x00004538 move a0, v0 | a0 = v0;
0x0000453c jalr t9 | t9 ();
0x00004540 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004544 addiu v0, sp, 0x229 | v0 = sp + 0x229;
0x00004548 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x0000454c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004550 addiu a2, zero, 0x81 | a2 = 0x81;
0x00004554 addiu a3, a3, 0x72ac | a3 += 0x72ac;
0x00004558 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x0000455c move a0, v0 | a0 = v0;
0x00004560 sw v0, 0x68(sp) | *(var_68h_2) = v0;
0x00004564 jalr t9 | t9 ();
0x00004568 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000456c addiu v0, sp, 0x1f8 | v0 = sp + segment.DYNAMIC;
0x00004570 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x00004574 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004578 addiu a2, zero, 0x31 | a2 = 0x31;
0x0000457c addiu a3, a3, 0x72a8 | a3 += 0x72a8;
0x00004580 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x00004584 sw v0, 0x64(sp) | *(var_64h_2) = v0;
0x00004588 move a0, v0 | a0 = v0;
0x0000458c jalr t9 | t9 ();
0x00004590 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004594 addiu s0, sp, 0x6cc | s0 = sp + 0x6cc;
0x00004598 addiu a2, zero, 0x1001 | a2 = 0x1001;
0x0000459c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000045a0 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x000045a4 addiu a3, a3, 0x72e8 | a3 += 0x72e8;
| do {
0x000045a8 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000045ac move a0, s0 | a0 = s0;
0x000045b0 jalr t9 | t9 ();
0x000045b4 lw gp, 0x40(sp) | gp = *(var_40h);
0x000045b8 b 0x3e54 | goto label_4;
| label_22:
0x000045bc lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x000045c0 move a0, s0 | a0 = s0;
0x000045c4 move t9, s1 | t9 = s1;
0x000045c8 addiu a1, a1, 0x6cd0 | a1 += 0x6cd0;
0x000045cc bal 0x3578 | fcn_00003578 ();
0x000045d0 lw gp, 0x40(sp) | gp = *(var_40h);
0x000045d4 b 0x3e34 | goto label_7;
| label_29:
0x000045d8 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000045dc addiu v0, sp, 0x229 | v0 = sp + 0x229;
0x000045e0 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x000045e4 addiu a3, a3, 0x72ac | a3 += 0x72ac;
0x000045e8 addiu a2, zero, 0x81 | a2 = 0x81;
0x000045ec addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x000045f0 move a0, v0 | a0 = v0;
0x000045f4 sw v0, 0x68(sp) | *(var_68h_2) = v0;
0x000045f8 jalr t9 | t9 ();
0x000045fc lw gp, 0x40(sp) | gp = *(var_40h);
0x00004600 addiu v0, sp, 0x1f8 | v0 = sp + segment.DYNAMIC;
0x00004604 lw t9, 0x4c(sp) | t9 = *(var_4ch_2);
0x00004608 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x0000460c addiu a2, zero, 0x31 | a2 = 0x31;
0x00004610 addiu a3, a3, 0x72a8 | a3 += 0x72a8;
0x00004614 addiu a1, s7, 0x6cd0 | a1 = s7 + 0x6cd0;
0x00004618 sw v0, 0x64(sp) | *(var_64h_2) = v0;
0x0000461c move a0, v0 | a0 = v0;
0x00004620 jalr t9 | t9 ();
0x00004624 lw gp, 0x40(sp) | gp = *(var_40h);
0x00004628 addiu s0, sp, 0x6cc | s0 = sp + 0x6cc;
0x0000462c addiu a2, zero, 0x1001 | a2 = 0x1001;
0x00004630 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004634 move a1, s1 | a1 = s1;
0x00004638 addiu a3, a3, 0x72e8 | a3 += 0x72e8;
0x0000463c b 0x45a8 |
| } while (1);
| label_11:
0x00004640 addiu v0, zero, -1 | v0 = -1;
0x00004644 b 0x4058 | goto label_8;
| label_24:
0x00004648 addiu s1, sp, 0x16dc | s1 = sp + 0x16dc;
0x0000464c addiu a1, zero, 0x20 | a1 = 0x20;
0x00004650 move a0, s1 | a0 = s1;
0x00004654 jalr t9 | t9 ();
0x00004658 lw gp, 0x40(sp) | gp = *(var_40h);
0x0000465c lb v1, 0x229(sp) | v1 = *(var_229h);
0x00004660 lw t9, -0x7f4c(gp) | t9 = sym.imp.__snprintf_chk
| if (v1 != 0) {
0x00004664 beqz v1, 0x46bc |
0x00004668 lw v1, 0x68(sp) | v1 = *(var_68h_2);
0x0000466c sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x00004670 sw v1, 0x24(sp) | *(var_24h_2) = v1;
0x00004674 lw v1, 0x64(sp) | v1 = *(var_64h_2);
0x00004678 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x0000467c sw v1, 0x20(sp) | *(var_20h_3) = v1;
0x00004680 lw v1, 0x60(sp) | v1 = *(var_60h_2);
0x00004684 addiu v0, v0, 0x7390 | v0 += str._38__.s__s__s__s_:__s;
0x00004688 sw s0, 0x28(sp) | *(var_28h_3) = s0;
0x0000468c sw v1, 0x1c(sp) | *(var_1ch_2) = v1;
0x00004690 sw s1, 0x18(sp) | *(var_18h_3) = s1;
0x00004694 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x00004698 addiu a3, zero, -1 | a3 = -1;
0x0000469c addiu a2, zero, 1 | a2 = 1;
0x000046a0 move a1, s4 | a1 = s4;
0x000046a4 move a0, s2 | a0 = s2;
0x000046a8 jalr t9 | t9 ();
0x000046ac lw gp, 0x40(sp) | gp = *(var_40h);
0x000046b0 b 0x4058 | goto label_8;
| label_10:
0x000046b4 move v0, zero | v0 = 0;
0x000046b8 b 0x4058 | goto label_8;
| }
0x000046bc lw v1, 0x64(sp) | v1 = *(var_64h_2);
0x000046c0 sw v0, 0x14(sp) | *(var_14h_3) = v0;
0x000046c4 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000046c8 sw v1, 0x20(sp) | *(var_20h_3) = v1;
0x000046cc lw v1, 0x60(sp) | v1 = *(var_60h_2);
0x000046d0 addiu v0, v0, 0x73a8 | v0 += str._38__.s__s__s:__s;
0x000046d4 sw s0, 0x24(sp) | *(var_24h_2) = s0;
0x000046d8 sw v1, 0x1c(sp) | *(var_1ch_2) = v1;
0x000046dc sw s1, 0x18(sp) | *(var_18h_3) = s1;
0x000046e0 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x000046e4 addiu a3, zero, -1 | a3 = -1;
0x000046e8 addiu a2, zero, 1 | a2 = 1;
0x000046ec move a1, s4 | a1 = s4;
0x000046f0 move a0, s2 | a0 = s2;
0x000046f4 jalr t9 | t9 ();
0x000046f8 lw gp, 0x40(sp) | gp = *(var_40h);
0x000046fc b 0x4058 | goto label_8;
| label_25:
0x00004700 lw t1, 0x68(sp) | t1 = *(var_68h_2);
0x00004704 b 0x3e98 | goto label_9;
| label_26:
0x00004708 lw t9, -0x7f0c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0000470c jalr t9 | t9 ();
0x00004710 nop |
0x00004714 nop |
0x00004718 nop |
0x0000471c nop |
| }
[*] Function printf used 18 times loggen