[*] Binary protection state of libavutil.so.56.31.100

  
  	Full RELRO     Canary found      NX enabled   DSO          No RPATH     No RUNPATH   No Symbols


[*] Function system tear down of libavutil.so.56.31.100

    ; assembly                               | /* r2dec pseudo code output */
                                             | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libavutil.so.56.31.100 @ 0x289bc */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) sym.av_image_alloc ()            | void av_image_alloc () {
    0x000289bc lui gp, 9                     |     
    0x000289c0 addiu gp, gp, 0x4704          |     
    0x000289c4 addu gp, gp, t9               |     gp += t9;
    0x000289c8 addiu sp, sp, -0x40           |     
    0x000289cc lw t9, -0x7da4(gp)            |     t9 = *((gp - 8041));
    0x000289d0 sw s5, 0x34(sp)               |     *(var_34h) = s5;
    0x000289d4 move s5, a0                   |     s5 = a0;
    0x000289d8 lw a0, 0x50(sp)               |     a0 = *(arg_50h);
    0x000289dc sw gp, 0x18(sp)               |     *(var_18h) = gp;
    0x000289e0 sw s6, 0x38(sp)               |     *(var_38h) = s6;
    0x000289e4 sw s3, 0x2c(sp)               |     *(var_2ch) = s3;
    0x000289e8 sw s2, 0x28(sp)               |     *(var_28h) = s2;
    0x000289ec sw s0, 0x20(sp)               |     *(var_20h) = s0;
    0x000289f0 sw ra, 0x3c(sp)               |     *(var_3ch) = ra;
    0x000289f4 sw s4, 0x30(sp)               |     *(var_30h) = s4;
    0x000289f8 sw s1, 0x24(sp)               |     *(var_24h) = s1;
    0x000289fc move s0, a1                   |     s0 = a1;
    0x00028a00 move s6, a2                   |     s6 = a2;
    0x00028a04 move s3, a3                   |     s3 = a3;
    0x00028a08 lw s2, 0x54(sp)               |     s2 = *(arg_54h);
    0x00028a0c bal 0x3c698                   |     sym_av_pix_fmt_desc_get ();
    0x00028a10 lw gp, 0x18(sp)               |     gp = *(var_18h);
                                             |     if (v0 == 0) {
    0x00028a14 beqz v0, 0x28c08              |         goto label_3;
                                             |     }
    0x00028a18 lw t9, -0x7da0(gp)            |     t9 = *((gp - 8040));
    0x00028a1c move a3, zero                 |     a3 = 0;
    0x00028a20 move a2, zero                 |     a2 = 0;
    0x00028a24 move a1, s3                   |     a1 = s3;
    0x00028a28 move a0, s6                   |     a0 = s6;
    0x00028a2c move s4, v0                   |     s4 = v0;
    0x00028a30 bal 0x28974                   |     sym_av_image_check_size ();
    0x00028a34 move s1, v0                   |     s1 = v0;
    0x00028a38 lw gp, 0x18(sp)               |     gp = *(var_18h);
                                             |     if (v0 < 0) {
    0x00028a3c bltz v0, 0x28b9c              |         goto label_2;
                                             |     }
    0x00028a40 slti v0, s2, 8                |     v0 = (s2 < 8) ? 1 : 0;
                                             |     if (v0 == 0) {
    0x00028a44 beql v0, zero, 0x28bc8        |         goto label_4;
                                             |     }
    0x00028a48 addiu s6, s6, 7               |     s6 += 7;
                                             |     do {
    0x00028a4c lw t9, -0x7d9c(gp)            |         t9 = *((gp - 8039));
    0x00028a50 lw a1, 0x50(sp)               |         a1 = *(arg_50h);
    0x00028a54 move a2, s6                   |         a2 = s6;
    0x00028a58 move a0, s0                   |         a0 = s0;
    0x00028a5c bal 0x280e4                   |         sym_av_image_fill_linesizes ();
    0x00028a60 move s1, v0                   |         s1 = v0;
    0x00028a64 lw gp, 0x18(sp)               |         gp = *(var_18h);
                                             |         if (v0 >= 0) {
    0x00028a68 bltz v0, 0x28b9c              |             
    0x00028a6c lw a1, (s0)                   |             a1 = *(s0);
    0x00028a70 lw a0, 4(s0)                  |             a0 = *((s0 + 1));
    0x00028a74 lw v1, 8(s0)                  |             v1 = *((s0 + 2));
    0x00028a78 lw v0, 0xc(s0)                |             v0 = *((s0 + 3));
    0x00028a7c addu a1, s2, a1               |             a1 = s2 + a1;
    0x00028a80 negu a2, s2                   |             __asm ("negu a2, s2");
    0x00028a84 addu a0, s2, a0               |             a0 = s2 + a0;
    0x00028a88 addu v1, s2, v1               |             v1 = s2 + v1;
    0x00028a8c addu v0, s2, v0               |             v0 = s2 + v0;
    0x00028a90 addiu a1, a1, -1              |             a1 += -1;
    0x00028a94 and a1, a1, a2                |             a1 &= a2;
    0x00028a98 addiu a0, a0, -1              |             a0 += -1;
    0x00028a9c addiu v1, v1, -1              |             v1 += -1;
    0x00028aa0 addiu v0, v0, -1              |             v0 += -1;
    0x00028aa4 and a0, a0, a2                |             a0 &= a2;
    0x00028aa8 and v1, v1, a2                |             v1 &= a2;
    0x00028aac and v0, v0, a2                |             v0 &= a2;
    0x00028ab0 lw t9, -0x7d98(gp)            |             t9 = *((gp - 8038));
    0x00028ab4 sw a1, (s0)                   |             *(s0) = a1;
    0x00028ab8 lw a1, 0x50(sp)               |             a1 = *(arg_50h);
    0x00028abc sw a0, 4(s0)                  |             *((s0 + 1)) = a0;
    0x00028ac0 sw v1, 8(s0)                  |             *((s0 + 2)) = v1;
    0x00028ac4 sw v0, 0xc(s0)                |             *((s0 + 3)) = v0;
    0x00028ac8 move a3, zero                 |             a3 = 0;
    0x00028acc sw s0, 0x10(sp)               |             *(var_10h) = s0;
    0x00028ad0 move a2, s3                   |             a2 = s3;
    0x00028ad4 move a0, s5                   |             a0 = s5;
    0x00028ad8 bal 0x283f4                   |             sym_av_image_fill_pointers ();
    0x00028adc move s1, v0                   |             s1 = v0;
    0x00028ae0 lw gp, 0x18(sp)               |             gp = *(var_18h);
                                             |             if (v0 < 0) {
    0x00028ae4 bltz v0, 0x28b9c              |                 goto label_2;
                                             |             }
    0x00028ae8 lw t9, -0x7f04(gp)            |             t9 = *((gp - 8129));
    0x00028aec addu a0, s2, v0               |             a0 = s2 + v0;
    0x00028af0 bal 0x2fec4                   |             sym_av_malloc ();
    0x00028af4 move s6, v0                   |             s6 = v0;
    0x00028af8 lw gp, 0x18(sp)               |             gp = *(var_18h);
                                             |             if (v0 == 0) {
    0x00028afc beqz v0, 0x28c10              |                 goto label_5;
                                             |             }
    0x00028b00 lw t9, -0x7d98(gp)            |             t9 = *((gp - 8038));
    0x00028b04 lw a1, 0x50(sp)               |             a1 = *(arg_50h);
    0x00028b08 sw s0, 0x10(sp)               |             *(var_10h) = s0;
    0x00028b0c move a3, v0                   |             a3 = v0;
    0x00028b10 move a2, s3                   |             a2 = s3;
    0x00028b14 move a0, s5                   |             a0 = s5;
    0x00028b18 bal 0x283f4                   |             sym_av_image_fill_pointers ();
    0x00028b1c move s1, v0                   |             s1 = v0;
    0x00028b20 lw gp, 0x18(sp)               |             gp = *(var_18h);
                                             |             if (v0 < 0) {
    0x00028b24 bltz v0, 0x28bf4              |                 goto label_6;
                                             |             }
    0x00028b28 lw v0, 8(s4)                  |             v0 = *((s4 + 2));
    0x00028b2c andi v1, v0, 2                |             v1 = v0 & 2;
    0x00028b30 andi v1, v0, 0x40             |             v1 = v0 & 0x40;
                                             |             if (v1 != 0) {
    0x00028b34 bnez v1, 0x28bd4              |                 goto label_7;
                                             |             }
    0x00028b38 andi v0, v0, 0x42             |             v0 &= 0x42;
                                             |             if (v1 != 0) {
    0x00028b3c beqz v1, 0x28b6c              |                 
    0x00028b40 lw a0, 4(s5)                  |                 a0 = *((s5 + 1));
    0x00028b44 lw ra, 0x3c(sp)               |                 ra = *(var_3ch);
                                             |                 if (a0 == 0) {
    0x00028b48 beqz a0, 0x28ba0              |                     goto label_1;
                                             |                 }
                                             | label_0:
    0x00028b4c lw t9, -0x7cf4(gp)            |                 t9 = *((gp - 7997));
    0x00028b50 lw a1, 0x50(sp)               |                 a1 = *(arg_50h);
    0x00028b54 slti s2, s2, 4                |                 s2 = (s2 < 4) ? 1 : 0;
    0x00028b58 bal 0x28644                   |                 sym_avpriv_set_systematic_pal2 ()
    0x00028b5c lw gp, 0x18(sp)               |                 gp = *(var_18h);
                                             |                 if (s2 != 0) {
    0x00028b60 bnez s2, 0x28c18              |                     goto label_8;
                                             |                 }
    0x00028b64 lw v0, 8(s4)                  |                 v0 = *((s4 + 2));
    0x00028b68 andi v0, v0, 0x42             |                 v0 &= 0x42;
                                             |             }
    0x00028b6c lw ra, 0x3c(sp)               |             ra = *(var_3ch);
                                             |             if (v0 == 0) {
    0x00028b70 beqz v0, 0x28ba0              |                 goto label_1;
                                             |             }
    0x00028b74 lw a2, 4(s5)                  |             a2 = *((s5 + 1));
    0x00028b78 move v0, s1                   |             v0 = s1;
                                             |             if (a2 == 0) {
    0x00028b7c beqz a2, 0x28ba4              |                 goto label_9;
                                             |             }
    0x00028b80 lw v0, (s0)                   |             v0 = *(s0);
    0x00028b84 lw a0, (s5)                   |             a0 = *(s5);
    0x00028b88 mul s3, s3, v0                |             __asm ("mul s3, s3, v0");
    0x00028b8c subu a2, a2, a0               |             __asm ("subu a2, a2, a0");
    0x00028b90 slt v0, s3, a2                |             v0 = (s3 < a2) ? 1 : 0;
    0x00028b94 lw t9, -0x7b1c(gp)            |             t9 = *((gp - 7879));
                                             |             if (v0 != 0) {
    0x00028b98 bnez v0, 0x28bdc              |                 goto label_10;
                                             |             }
                                             |         }
                                             | label_2:
    0x00028b9c lw ra, 0x3c(sp)               |         ra = *(var_3ch);
                                             | label_1:
    0x00028ba0 move v0, s1                   |         v0 = s1;
                                             | label_9:
    0x00028ba4 lw s6, 0x38(sp)               |         s6 = *(var_38h);
    0x00028ba8 lw s5, 0x34(sp)               |         s5 = *(var_34h);
    0x00028bac lw s4, 0x30(sp)               |         s4 = *(var_30h);
    0x00028bb0 lw s3, 0x2c(sp)               |         s3 = *(var_2ch);
    0x00028bb4 lw s2, 0x28(sp)               |         s2 = *(var_28h);
    0x00028bb8 lw s1, 0x24(sp)               |         s1 = *(var_24h);
    0x00028bbc lw s0, 0x20(sp)               |         s0 = *(var_20h);
    0x00028bc0 addiu sp, sp, 0x40            |         
    0x00028bc4 jr ra                         |         return v0;
                                             | label_4:
    0x00028bc8 addiu v0, zero, -8            |         v0 = -8;
    0x00028bcc and s6, s6, v0                |         s6 &= v0;
    0x00028bd0 b 0x28a4c                     |         
                                             |     } while (1);
                                             | label_7:
    0x00028bd4 lw a0, 4(s5)                  |     a0 = *((s5 + 1));
    0x00028bd8 b 0x28b4c                     |     goto label_0;
                                             | label_10:
    0x00028bdc subu a2, a2, s3               |     __asm ("subu a2, a2, s3");
    0x00028be0 move a1, zero                 |     a1 = 0;
    0x00028be4 addu a0, a0, s3               |     a0 += s3;
    0x00028be8 jalr t9                       |     t9 ();
    0x00028bec lw ra, 0x3c(sp)               |     ra = *(var_3ch);
    0x00028bf0 b 0x28ba0                     |     goto label_1;
                                             | label_6:
    0x00028bf4 lw t9, -0x7fa0(gp)            |     t9 = *((gp - 8168));
    0x00028bf8 move a0, s6                   |     a0 = s6;
    0x00028bfc bal 0x30030                   |     sym_av_free ();
    0x00028c00 lw ra, 0x3c(sp)               |     ra = *(var_3ch);
    0x00028c04 b 0x28ba0                     |     goto label_1;
                                             | label_3:
    0x00028c08 addiu s1, zero, -0x16         |     s1 = -0x16;
    0x00028c0c b 0x28b9c                     |     goto label_2;
                                             | label_5:
    0x00028c10 addiu s1, zero, -0xc          |     s1 = -0xc;
    0x00028c14 b 0x28b9c                     |     goto label_2;
                                             | label_8:
    0x00028c18 lw a2, -0x7fe0(gp)            |     a2 = *((gp - 8184));
    0x00028c1c lw t9, -0x7f08(gp)            |     t9 = *((gp - 8130));
    0x00028c20 addiu a2, a2, 0x6a00          |     a2 += 0x6a00;
    0x00028c24 addiu a1, zero, 0x10          |     a1 = 0x10;
    0x00028c28 move a0, zero                 |     a0 = 0;
    0x00028c2c bal 0x2cd14                   |     sym_av_log ();
    0x00028c30 addiu s1, zero, -0x16         |     s1 = -0x16;
    0x00028c34 b 0x28b9c                     |     goto label_2;
                                             | }

[*] Function system used 2 times libavutil.so.56.31.100