[*] Binary protection state of ldconfig

  
  	Partial RELRO  No Canary found   NX disabled  No PIE       No RPATH     No RUNPATH   No Symbols


[*] Function sprintf tear down of ldconfig

    ; assembly                                   | /* r2dec pseudo code output */
                                                 | /* /logs/firmware/unblob_extracted/firmware_extract/56048-12514271.gzip_extract/gzip.uncompressed_extract/5243916-15068666.gzip_extract/gzip.uncompressed_extract/sbin/ldconfig @ 0x11168 */
                                                 | #include <stdint.h>
                                                 |  
    ; (fcn) fcn.00011168 ()                      | void fcn_00011168 (char * arg_1080h, int32_t arg_2080h, char * filename, int32_t arg1, int32_t arg2) {
                                                 |     int32_t var_0h;
                                                 |     int32_t var_ch;
                                                 |     void * buf;
                                                 |     int32_t var_64h;
                                                 |     int32_t var_68h;
                                                 |     char * s;
                                                 |     r0 = arg1;
                                                 |     r1 = arg2;
    0x00011168 push {r4, r5, r6, r7, r8, lr}     |     
    0x0001116c sub sp, sp, 0x4000                |     
    0x00011170 sub sp, sp, 0xb0                  |     
    0x00011174 mov r4, r0                        |     r4 = r0;
    0x00011178 mov r3, r1                        |     r3 = r1;
    0x0001117c mov r8, r2                        |     r8 = r2;
    0x00011180 mov r5, r1                        |     r5 = r1;
    0x00011184 mov r2, r0                        |     r2 = r0;
    0x00011188 ldr r1, [pc, 0x1d0]               |     r1 = *(0x1135c);
    0x0001118c add r0, sp, 0xb0                  |     r0 += s;
    0x00011190 bl 0x10c74                        |     sprintf (r0, r1, r2)
    0x00011194 mov r2, r4                        |     r2 = r4;
    0x00011198 add r0, sp, 0x1080                |     r0 += arg_1080h;
    0x0001119c ldr r4, [pc, 0x1c0]               |     r4 = "_s__s";
    0x000111a0 mov r3, r8                        |     r3 = r8;
    0x000111a4 ldr r1, [pc, 0x1b4]               |     r1 = *(0x1135c);
    0x000111a8 add r0, r0, 0x30                  |     r0 += 0x30;
    0x000111ac bl 0x10c74                        |     sprintf (r0, r1, r2)
    0x000111b0 add r2, sp, 0x2080                |     r2 += arg_2080h;
    0x000111b4 add r2, r2, 0x30                  |     r2 += 0x30;
    0x000111b8 add r1, sp, 0xb0                  |     r1 += s;
    0x000111bc ldr r0, [r4]                      |     r0 = "_s__s";
    0x000111c0 bl 0x12138                        |     r0 = fcn_00012138 ("_s__s", r1, r2, r3);
    0x000111c4 cmp r0, 0                         |     
                                                 |     if (r0 == 0) {
    0x000111c8 bne 0x111dc                       |         
    0x000111cc ldr r2, [r4]                      |         r2 = *(r4);
    0x000111d0 add r1, sp, 0xb0                  |         r1 += s;
    0x000111d4 ldr r0, [pc, 0x18c]               |         r0 = *(0x11364);
    0x000111d8 bl 0x10cd4                        |         warn (r0);
                                                 |     }
    0x000111dc add r2, sp, 0x3080                |     r2 += filename;
    0x000111e0 add r1, sp, 0x1080                |     r1 += arg_1080h;
    0x000111e4 add r2, r2, 0x30                  |     r2 += 0x30;
    0x000111e8 add r1, r1, 0x30                  |     r1 += 0x30;
    0x000111ec ldr r0, [r4]                      |     r0 = *(r4);
    0x000111f0 bl 0x12138                        |     r0 = fcn_00012138 (r0, r1, r2, r3);
    0x000111f4 cmp r0, 0                         |     
                                                 |     if (r0 == 0) {
    0x000111f8 bne 0x11210                       |         
    0x000111fc add r1, sp, 0x1080                |         r1 += arg_1080h;
    0x00011200 ldr r2, [r4]                      |         r2 = *(r4);
    0x00011204 add r1, r1, 0x30                  |         r1 += 0x30;
    0x00011208 ldr r0, [pc, 0x158]               |         r0 = *(0x11364);
    0x0001120c bl 0x10cd4                        |         warn (r0);
                                                 |     }
    0x00011210 add r0, sp, 0x3080                |     r0 += filename;
    0x00011214 add r1, sp, 0x58                  |     r1 += buf;
    0x00011218 add r0, r0, 0x30                  |     r0 += 0x30;
    0x0001121c bl 0x10c80                        |     r0 = stat ();
    0x00011220 cmp r0, 0                         |     
                                                 |     if (r0 != 0) {
    0x00011224 bne 0x1124c                       |         goto label_0;
                                                 |     }
    0x00011228 add r0, sp, 0x2080                |     r0 += arg_2080h;
    0x0001122c mov r1, sp                        |     r1 = sp;
    0x00011230 add r0, r0, 0x30                  |     r0 += 0x30;
    0x00011234 bl 0x10c80                        |     r0 = stat ();
    0x00011238 cmp r0, 0                         |     
                                                 |     if (r0 == 0) {
    0x0001123c beq 0x11260                       |         goto label_3;
                                                 |     }
    0x00011240 add r1, sp, 0xb0                  |     r1 += s;
    0x00011244 ldr r0, [pc, 0x120]               |     r0 = "cant_resolve__s_in_chroot__s";
    0x00011248 bl 0x10cd4                        |     warn ("cant_resolve__s_in_chroot__s");
                                                 |     do {
                                                 | label_0:
    0x0001124c ldr r3, [r4, 4]                   |         r3 = *((r4 + 4));
    0x00011250 cmp r3, 0                         |         
                                                 |         if (r3 == 0) {
    0x00011254 beq 0x112c8                       |             goto label_4;
                                                 |         }
                                                 | label_2:
    0x00011258 mov r0, 1                         |         r0 = 1;
    0x0001125c b 0x11284                         |         goto label_5;
                                                 | label_3:
    0x00011260 ldrd r6, r7, [sp]                 |         __asm ("ldrd r6, r7, [sp]");
    0x00011264 ldrd r2, r3, [sp, 0x58]           |         __asm ("ldrd r2, r3, [buf]");
    0x00011268 cmp r7, r3                        |         
    0x0001126c cmpeq r6, r2                      |         __asm ("cmpeq r6, r2");
    0x00011270 bne 0x1124c                       |         
                                                 |     } while (r7 != r3);
    0x00011274 ldr r2, [sp, 0xc]                 |     r2 = var_ch;
    0x00011278 ldr r3, [sp, 0x64]                |     r3 = var_64h;
    0x0001127c cmp r2, r3                        |     
                                                 |     if (r2 != r3) {
    0x00011280 bne 0x1124c                       |         goto label_0;
                                                 |     }
                                                 |     do {
                                                 | label_5:
    0x00011284 ldr r3, [r4, 8]                   |         r3 = *((r4 + 8));
    0x00011288 cmp r3, 0                         |         
                                                 |         if (r3 > 0) {
    0x0001128c ble 0x112bc                       |             
    0x00011290 cmn r0, 1                         |             
                                                 |             if (r0 != 1) {
    0x00011294 ldreq r3, [pc, 0xd4]              |                 r3 = "_SKIPPED_";
                                                 |             }
                                                 |             if (r0 != 1) {
    0x00011298 beq 0x112ac                       |                 
    0x0001129c ldr r2, [pc, 0xd0]                |                 r2 = "_SKIPPED_";
    0x000112a0 cmp r0, 1                         |                 
    0x000112a4 ldr r3, [pc, 0xcc]                |                 r3 = *(0x11374);
                                                 |                 if (r0 != 1) {
    0x000112a8 movne r3, r2                      |                     r3 = r2;
                                                 |                     goto label_6;
                                                 |                 }
                                                 |             }
                                                 | label_6:
    0x000112ac mov r2, r5                        |             r2 = r5;
    0x000112b0 mov r1, r8                        |             r1 = r8;
    0x000112b4 ldr r0, [pc, 0xc0]                |             r0 = " (changed)";
    0x000112b8 bl 0x10af4                        |             printf (r0, r1, "_SKIPPED_", r3);
                                                 |         }
    0x000112bc add sp, sp, 0x4000                |         
    0x000112c0 add sp, sp, 0xb0                  |         
    0x000112c4 pop {r4, r5, r6, r7, r8, pc}      |         
                                                 | label_4:
    0x000112c8 add r0, sp, 0x3080                |         r0 += filename;
    0x000112cc add r1, sp, 0x58                  |         r1 += buf;
    0x000112d0 add r0, r0, 0x30                  |         r0 += 0x30;
    0x000112d4 bl 0x10bcc                        |         r0 = lstat (r0, r1);
    0x000112d8 cmp r0, 0                         |         
                                                 |         if (r0 != 0) {
    0x000112dc bne 0x11330                       |             goto label_7;
                                                 |         }
    0x000112e0 ldr r3, [sp, 0x68]                |         r3 = var_68h;
    0x000112e4 and r3, r3, 0xf000                |         r3 &= 0xf000;
    0x000112e8 cmp r3, 0xa000                    |         
                                                 |         if (r3 == 0xa000) {
    0x000112ec beq 0x11308                       |             goto label_8;
                                                 |         }
    0x000112f0 add r1, sp, 0x1080                |         r1 += arg_1080h;
    0x000112f4 add r1, r1, 0x30                  |         r1 += 0x30;
    0x000112f8 ldr r0, [pc, 0x80]                |         r0 = "_s____s_s";
    0x000112fc bl 0x10ae8                        |         warnx ("_s____s_s");
                                                 | label_1:
    0x00011300 mvn r0, 0                         |         r0 = ~0;
    0x00011304 b 0x11284                         |         
                                                 |     } while (1);
                                                 | label_8:
    0x00011308 add r0, sp, 0x3080                |     r0 += filename;
    0x0001130c add r0, r0, 0x30                  |     r0 += 0x30;
    0x00011310 bl 0x10b48                        |     r0 = remove (r0);
    0x00011314 cmp r0, 0                         |     
                                                 |     if (r0 != 0) {
    0x00011318 beq 0x11330                       |         
    0x0001131c add r1, sp, 0x1080                |         r1 += arg_1080h;
    0x00011320 add r1, r1, 0x30                  |         r1 += 0x30;
    0x00011324 ldr r0, [pc, 0x58]                |         r0 = "_s_is_not_a_symlink";
    0x00011328 bl 0x10cd4                        |         warn ("_s_is_not_a_symlink");
    0x0001132c b 0x11300                         |         goto label_1;
                                                 |     }
                                                 | label_7:
    0x00011330 add r1, sp, 0x3080                |     r1 += filename;
    0x00011334 add r1, r1, 0x30                  |     r1 += 0x30;
    0x00011338 mov r0, r5                        |     r0 = r5;
    0x0001133c bl 0x10c20                        |     r0 = symlink (r0, r1);
    0x00011340 cmp r0, 0                         |     
                                                 |     if (r0 == 0) {
    0x00011344 beq 0x11258                       |         goto label_2;
                                                 |     }
    0x00011348 add r1, sp, 0x1080                |     r1 += arg_1080h;
    0x0001134c mov r2, r5                        |     r2 = r5;
    0x00011350 add r1, r1, 0x30                  |     r1 += 0x30;
    0x00011354 ldr r0, [pc, 0x2c]                |     r0 = "cant_unlink__s";
    0x00011358 bl 0x10cd4                        |     warn ("cant_unlink__s");
    0x0001135c b 0x11300                         |     goto label_1;
                                                 | }
    ; assembly                                               | /* r2dec pseudo code output */
                                                             | /* /logs/firmware/unblob_extracted/firmware_extract/56048-12514271.gzip_extract/gzip.uncompressed_extract/5243916-15068666.gzip_extract/gzip.uncompressed_extract/sbin/ldconfig @ 0x113a0 */
                                                             | #include <stdint.h>
                                                             |  
                                                             | #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
                                                             |  
    ; (fcn) fcn.000113a0 ()                                  | void fcn_000113a0 (int32_t arg_30h, int32_t arg_34h, char * ptr, char * s1, int32_t arg_3ch, void * buf, int32_t arg_68h, void * arg_b0h, size_t length, char * arg_108h, char * filename, int32_t arg1, char * s) {
                                                             |     int32_t var_0h;
                                                             |     FILE * stream;
                                                             |     int32_t var_ch;
                                                             |     int32_t var_10h;
                                                             |     int32_t var_18h;
                                                             |     int32_t var_20h;
                                                             |     int32_t var_24h;
                                                             |     int32_t var_28h;
                                                             |     int32_t var_2ch;
                                                             |     r0 = arg1;
                                                             |     r1 = s;
    0x000113a0 push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x000113a4 sub sp, sp, 0x2100                            |     
    0x000113a8 sub sp, sp, 0xc                               |     
    0x000113ac mov r7, r0                                    |     r7 = r0;
    0x000113b0 mov r0, r1                                    |     r0 = r1;
    0x000113b4 mov r6, r1                                    |     r6 = r1;
    0x000113b8 str r3, [sp, 0x2c]                            |     var_2ch = r3;
    0x000113bc str r2, [sp, 0xc]                             |     var_ch = r2;
    0x000113c0 bl 0x10cb0                                    |     r0 = strlen (r0);
    0x000113c4 add r0, r6, r0                                |     r0 = r6 + r0;
    0x000113c8 ldrb r3, [r0, -1]                             |     r3 = *((r0 - 1));
    0x000113cc cmp r3, 0x7e                                  |     
                                                             |     if (r3 == 0x7e) {
    0x000113d0 beq 0x114a4                                   |         goto label_13;
                                                             |     }
    0x000113d4 ldr r1, [pc, 0x9d8]                           |     r1 = *(0x11db0);
    0x000113d8 mov r0, r6                                    |     r0 = r6;
    0x000113dc bl 0x10bd8                                    |     r0 = strstr (r0, r1);
    0x000113e0 subs r4, r0, 0                                |     r4 = r0 - 0;
                                                             |     if (r4 == r0) {
    0x000113e4 beq 0x114cc                                   |         goto label_0;
                                                             |     }
    0x000113e8 ldrb r1, [r4, 3]                              |     r1 = *((r4 + 3));
    0x000113ec cmp r1, 0x2e                                  |     
                                                             |     if (r1 == 0x2e) {
    0x000113f0 bne 0x11404                                   |         
    0x000113f4 add r0, r4, 4                                 |         r0 = r4 + 4;
    0x000113f8 bl 0x10cbc                                    |         r0 = strchr (r0, r1);
    0x000113fc subs r5, r0, 0                                |         r5 = r0 - 0;
                                                             |         if (r5 != r0) {
    0x00011400 bne 0x11410                                   |             goto label_14;
                                                             |         }
                                                             |     }
    0x00011404 mov r0, r4                                    |     r0 = r4;
    0x00011408 bl 0x10cb0                                    |     r0 = strlen (r0);
    0x0001140c add r5, r4, r0                                |     r5 = r4 + r0;
                                                             | label_14:
    0x00011410 ldrb r3, [r7]                                 |     r3 = *(r7);
    0x00011414 cmp r3, 0                                     |     
                                                             |     if (r3 != 0) {
    0x00011418 ldreq r3, [pc, 0x998]                         |         r3 = *((pc + 0x998));
                                                             |     }
                                                             |     if (r3 != 0) {
    0x0001141c beq 0x1143c                                   |         
    0x00011420 ldr r1, [pc, 0x994]                           |         r1 = *(0x11db8);
    0x00011424 mov r0, r7                                    |         r0 = r7;
    0x00011428 bl 0x10c68                                    |         strcmp (r0, r1);
    0x0001142c ldr r2, [pc, 0x988]                           |         r2 = *(0x11db8);
    0x00011430 ldr r3, [pc, 0x980]                           |         r3 = *(0x11db4);
    0x00011434 cmp r0, 0                                     |         
                                                             |         if (r0 != 0) {
    0x00011438 movne r3, r2                                  |             r3 = r2;
                                                             |             goto label_15;
                                                             |         }
                                                             |     }
                                                             | label_15:
    0x0001143c mov r2, r7                                    |     r2 = r7;
    0x00011440 ldr r7, [pc, 0x978]                           |     r7 = *(0x11dbc);
    0x00011444 ldr r1, [pc, 0x978]                           |     r1 = *(0x11dc0);
    0x00011448 str r6, [sp]                                  |     *(sp) = r6;
    0x0001144c add r0, sp, 0x108                             |     r0 += arg_108h;
    0x00011450 bl 0x10c74                                    |     sprintf (r0, r1, r2)
    0x00011454 add r2, sp, 0x1100                            |     r2 += filename;
    0x00011458 add r2, r2, 8                                 |     r2 += 8;
    0x0001145c add r1, sp, 0x108                             |     r1 += arg_108h;
    0x00011460 ldr r0, [r7]                                  |     r0 = *(0x11dbc);
    0x00011464 bl 0x12138                                    |     r0 = fcn_00012138 (r0, r1, r2, r3);
    0x00011468 cmp r0, 0                                     |     
                                                             |     if (r0 == 0) {
    0x0001146c bne 0x11480                                   |         
    0x00011470 ldr r2, [r7]                                  |         r2 = *(r7);
    0x00011474 add r1, sp, 0x108                             |         r1 += arg_108h;
    0x00011478 ldr r0, [pc, 0x948]                           |         r0 = "%s%s%s";
    0x0001147c bl 0x10cd4                                    |         warn ("%s%s%s");
                                                             |     }
    0x00011480 add r0, sp, 0x1100                            |     r0 += filename;
    0x00011484 add r1, sp, 0x58                              |     r1 += buf;
    0x00011488 add r0, r0, 8                                 |     r0 += 8;
    0x0001148c bl 0x10bcc                                    |     r0 = lstat (r0, r1);
    0x00011490 subs r4, r0, 0                                |     r4 = r0 - 0;
    0x00011494 beq 0x114ac                                   |     
                                                             |     while (r3 == r0) {
    0x00011498 add r1, sp, 0x108                             |         r1 += arg_108h;
    0x0001149c ldr r0, [pc, 0x928]                           |         r0 = "cant_resolve__s_in_chroot__s";
    0x000114a0 bl 0x10cd4                                    |         warn ("cant_resolve__s_in_chroot__s");
                                                             | label_13:
    0x000114a4 mov r4, 0                                     |         r4 = 0;
    0x000114a8 b 0x114cc                                     |         goto label_0;
    0x000114ac ldr r3, [sp, 0x68]                            |         r3 = *(arg_68h);
    0x000114b0 and r2, r3, 0xf000                            |         r2 = r3 & 0xf000;
    0x000114b4 and r3, r3, 0xd000                            |         r3 &= 0xd000;
    0x000114b8 cmp r3, 0x8000                                |         
                                                             |         if (r3 != 0x8000) {
    0x000114bc beq 0x114dc                                   |             
    0x000114c0 add r1, sp, 0x108                             |             r1 += arg_108h;
    0x000114c4 ldr r0, [pc, 0x904]                           |             r0 = "skipping__s";
    0x000114c8 bl 0x10ae8                                    |             warnx ("skipping__s");
                                                             | label_0:
    0x000114cc mov r0, r4                                    |             r0 = r4;
    0x000114d0 add sp, sp, 0x2100                            |             
    0x000114d4 add sp, sp, 0xc                               |             
    0x000114d8 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |             
                                                             |         }
    0x000114dc sub r3, r2, 0xa000                            |         r3 = r2 - 0xa000;
    0x000114e0 ldr r2, [sp, 0x2c]                            |         r2 = var_2ch;
    0x000114e4 clz r3, r3                                    |         r3 &= r3;
    0x000114e8 add r0, sp, 0x1100                            |         r0 += filename;
    0x000114ec lsr r3, r3, 5                                 |         r3 >>= 5;
    0x000114f0 str r3, [r2]                                  |         *(r2) = r3;
    0x000114f4 ldr r1, [pc, 0x8d8]                           |         r1 = "_s_is_not_a_regular_file_or_symlink__skipping";
    0x000114f8 add r0, r0, 8                                 |         r0 += 8;
    0x000114fc bl 0x10c2c                                    |         r0 = fopen (r0, "_s_is_not_a_regular_file_or_symlink__skipping");
    0x00011500 subs r3, r0, 0                                |         r3 = r0 - 0;
    0x00011504 str r3, [sp, 8]                               |         stream = r3;
    0x00011508 beq 0x11498                                   |         
                                                             |     }
    0x0001150c mov r2, 1                                     |     r2 = 1;
    0x00011510 mov r1, 0x20                                  |     r1 = 0x20;
    0x00011514 add r0, sp, 0x38                              |     r0 += ptr;
    0x00011518 bl 0x10bfc                                    |     r0 = fread (r0, r1, r2, r3);
    0x0001151c subs r4, r0, 0                                |     r4 = r0 - 0;
                                                             |     if (r4 != r0) {
    0x00011520 bne 0x11580                                   |         goto label_16;
                                                             |     }
    0x00011524 add r1, sp, 0x108                             |     r1 += arg_108h;
    0x00011528 ldr r0, [pc, 0x8a8]                           |     r0 = "rb";
    0x0001152c bl 0x10ae8                                    |     warnx ("rb");
                                                             |     do {
                                                             | label_1:
    0x00011530 ldr r5, [pc, 0x8a4]                           |         r5 = "can't read header from %s, skipping";
    0x00011534 ldr r0, [sp, 8]                               |         r0 = stream;
    0x00011538 bl 0x10c50                                    |         fclose (r0);
    0x0001153c ldr r3, [r5, 0x50]                            |         r3 = *(0x11e28);
    0x00011540 cmp r3, 0                                     |         
                                                             |         if (r3 >= 0) {
    0x00011544 blt 0x11568                                   |             
    0x00011548 ldr r2, [pc, 0x870]                           |             
    0x0001154c ldr r2, [r2, 0xc]                             |             r2 = "cant_resolve__s_in_chroot__s";
    0x00011550 cmp r3, r2                                    |             
                                                             |             if (r3 == r2) {
    0x00011554 beq 0x11568                                   |                 goto label_17;
                                                             |             }
    0x00011558 mvn r3, 1                                     |             r3 = ~1;
    0x0001155c ldr r0, [pc, 0x87c]                           |             r0 = "libc.so.0";
    0x00011560 str r3, [r5, 0x50]                            |             *((r5 + 0x50)) = r3;
    0x00011564 bl 0x10ae8                                    |             warnx (r0);
                                                             |         }
                                                             | label_17:
    0x00011568 ldr r3, [r5, 0x50]                            |         r3 = *((r5 + 0x50));
    0x0001156c cmn r3, 2                                     |         
                                                             |         if (r3 != 2) {
    0x00011570 ldreq r3, [pc, 0x848]                         |             r3 = *(0x00011dc0);
                                                             |         }
                                                             |         if (r3 != 2) {
    0x00011574 moveq r2, 0                                   |             r2 = 0;
                                                             |         }
                                                             |         if (r3 != 2) {
    0x00011578 streq r2, [r3, 0xc]                           |             *((r3 + 0xc)) = r2;
                                                             |         }
    0x0001157c b 0x114cc                                     |         goto label_0;
                                                             | label_16:
    0x00011580 ldr r0, [sp, 0x38]                            |         r0 = *(ptr);
    0x00011584 ldr r8, [pc, 0x858]                           |         r8 = "mixed byte-order detected, using host byte-order...";
    0x00011588 ldr sb, [pc, 0x858]                           |         sb = *(0x00011de8);
    0x0001158c and r4, r0, r8                                |         r4 = r0 & r8;
    0x00011590 cmp r4, sb                                    |         
    0x00011594 cmpne r4, 0xcc                                |         __asm ("cmpne r4, 0xcc");
                                                             |         if (r4 == sb) {
    0x00011598 movne r4, 1                                   |             r4 = 1;
                                                             |         }
                                                             |         if (r4 != sb) {
    0x0001159c moveq r4, 0                                   |             r4 = 0;
                                                             |         }
                                                             |         if (r4 == sb) {
    0x000115a0 beq 0x11d48                                   |             goto label_18;
                                                             |         }
    0x000115a4 bl 0x12400                                    |         r0 = fcn_00012400 (r0);
    0x000115a8 and r0, r0, r8                                |         r0 &= r8;
    0x000115ac cmp r0, sb                                    |         
    0x000115b0 cmpne r0, 0xcc                                |         __asm ("cmpne r0, 0xcc");
                                                             |         if (r0 == sb) {
    0x000115b4 beq 0x11d48                                   |             goto label_18;
                                                             |         }
    0x000115b8 ldrb r3, [sp, 0x38]                           |         r3 = *(ptr);
    0x000115bc cmp r3, 0x7f                                  |         
                                                             |         if (r3 == 0x7f) {
    0x000115c0 bne 0x115dc                                   |             
    0x000115c4 mov r2, 3                                     |             r2 = 3;
    0x000115c8 ldr r1, [pc, 0x81c]                           |             r1 = *(0x11de8);
    0x000115cc add r0, sp, 0x39                              |             r0 += s1;
    0x000115d0 bl 0x10be4                                    |             r0 = strncmp (r0, r1, r2);
    0x000115d4 cmp r0, 0                                     |             
                                                             |             if (r0 == 0) {
    0x000115d8 beq 0x11608                                   |                 goto label_19;
                                                             |             }
                                                             |         }
    0x000115dc mov r2, 9                                     |         r2 = 9;
    0x000115e0 ldr r1, [pc, 0x808]                           |         r1 = *(0x11dec);
    0x000115e4 add r0, sp, 0x38                              |         r0 += ptr;
    0x000115e8 bl 0x10be4                                    |         r0 = strncmp (r0, r1, r2);
    0x000115ec subs r4, r0, 0                                |         r4 = r0 - 0;
    0x000115f0 beq 0x11530                                   |         
                                                             |     } while (r4 == r0);
    0x000115f4 add r1, sp, 0x108                             |     r1 += arg_108h;
    0x000115f8 ldr r0, [pc, 0x7f4]                           |     r0 = "/* GNU ld";
    0x000115fc bl 0x10ae8                                    |     warnx ("/* GNU ld");
    0x00011600 mov r4, 0                                     |     r4 = 0;
    0x00011604 b 0x11530                                     |     goto label_1;
                                                             | label_19:
    0x00011608 ldr r2, [sp, 0xc]                             |     r2 = var_ch;
    0x0001160c mov r3, 1                                     |     r3 = 1;
    0x00011610 str r3, [r2]                                  |     *(r2) = r3;
    0x00011614 bl 0x10b24                                    |     getpagesize ();
    0x00011618 ldrb r4, [sp, 0x3c]                           |     r4 = *(arg_3ch);
    0x0001161c cmp r4, 1                                     |     
    0x00011620 str r0, [sp, 0x30]                            |     *(arg_30h) = r0;
    0x00011624 ldr r0, [sp, 8]                               |     r0 = stream;
                                                             |     if (r4 != 1) {
    0x00011628 bne 0x11964                                   |         goto label_20;
                                                             |     }
    0x0001162c bl 0x10ca4                                    |     fileno (r0);
    0x00011630 add r1, sp, 0xb0                              |     r1 += arg_b0h;
    0x00011634 bl 0x10b90                                    |     r0 = fstat (r0, r1);
    0x00011638 subs r3, r0, 0                                |     r3 = r0 - 0;
    0x0001163c str r3, [sp, 0x10]                            |     var_10h = r3;
    0x00011640 beq 0x11690                                   |     
                                                             |     while (r0 == 1) {
                                                             | label_8:
    0x00011644 mov r4, 0                                     |         r4 = 0;
                                                             | label_2:
    0x00011648 ldr r3, [pc, 0x78c]                           |         r3 = "can't read header from %s, skipping";
    0x0001164c ldr r2, [r3, 0x50]                            |         r2 = *(0x11e28);
    0x00011650 cmn r2, 1                                     |         
                                                             |         if (r2 != 1) {
    0x00011654 ldreq r2, [pc, 0x764]                         |             r2 = *(0x00011dc0);
                                                             |         }
                                                             |         if (r2 != 1) {
    0x00011658 ldreq r2, [r2, 0xc]                           |             r2 = *((r2 + 0xc));
                                                             |         }
                                                             |         if (r2 != 1) {
    0x0001165c streq r2, [r3, 0x50]                          |             *((r3 + 0x50)) = r2;
                                                             |         }
    0x00011660 cmp r4, 0                                     |         
                                                             |         if (r4 != 0) {
    0x00011664 beq 0x11680                                   |             
    0x00011668 ldr r3, [sp, 0x2c]                            |             r3 = var_2ch;
    0x0001166c mov r0, r4                                    |             r0 = r4;
    0x00011670 ldr r3, [r3]                                  |             r3 = *(r3);
    0x00011674 cmp r3, 0                                     |             
                                                             |             if (r3 == 0) {
    0x00011678 beq 0x11cf4                                   |                 goto label_21;
                                                             |             }
    0x0001167c bl 0x10cec                                    |             free (r0);
                                                             |         }
    0x00011680 mov r0, r6                                    |         r0 = r6;
    0x00011684 bl 0x1138c                                    |         r0 = fcn_0001138c (r0);
    0x00011688 mov r4, r0                                    |         r4 = r0;
    0x0001168c b 0x11530                                     |         goto label_1;
    0x00011690 ldr r0, [sp, 8]                               |         r0 = stream;
    0x00011694 ldr r4, [sp, 0xdc]                            |         r4 = *(length);
    0x00011698 bl 0x10ca4                                    |         fileno (r0);
    0x0001169c mov ip, 0                                     |         
    0x000116a0 mov r3, 2                                     |         r3 = 2;
    0x000116a4 mov r2, 3                                     |         r2 = 3;
    0x000116a8 mov r1, r4                                    |         r1 = r4;
    0x000116ac stm sp, {r0, ip}                              |         *(sp) = r0;
                                                             |         *((sp + 4)) = ip;
    0x000116b0 mov r0, ip                                    |         r0 = ip;
    0x000116b4 bl 0x10b6c                                    |         r0 = mmap (r0, r1, r2, r3, r4, r5);
    0x000116b8 cmn r0, 1                                     |         
    0x000116bc mov r5, r0                                    |         r5 = r0;
    0x000116c0 beq 0x11644                                   |         
                                                             |     }
    0x000116c4 ldr r2, [sp, 0xdc]                            |     r2 = *(length);
    0x000116c8 add r3, r0, 0x34                              |     r3 = r0 + 0x34;
    0x000116cc add fp, r0, r2                                |     
    0x000116d0 cmp fp, r3                                    |     
    0x000116d4 bhs 0x116ec                                   |     
                                                             |     while (r4 >= r5) {
                                                             | label_3:
    0x000116d8 mov r4, 0                                     |         r4 = 0;
                                                             | label_4:
    0x000116dc ldr r1, [sp, 0xdc]                            |         r1 = *(length);
    0x000116e0 mov r0, r5                                    |         r0 = r5;
    0x000116e4 bl 0x10b18                                    |         munmap (r0, r1);
    0x000116e8 b 0x11648                                     |         goto label_2;
    0x000116ec ldrb sl, [r0, 5]                              |         sl = *((r0 + 5));
    0x000116f0 cmp sl, 2                                     |         
                                                             |         if (sl != 2) {
    0x000116f4 moveq r3, 1                                   |             r3 = 1;
                                                             |         }
                                                             |         if (sl == 2) {
    0x000116f8 movne r3, 0                                   |             r3 = 0;
                                                             |         }
    0x000116fc str r3, [r7, 0xc]                             |         *((r7 + 0xc)) = r3;
                                                             |         if (sl == 2) {
    0x00011700 bne 0x11720                                   |             
    0x00011704 ldr r0, [r0, 0x1c]                            |             r0 = *((r0 + 0x1c));
    0x00011708 bl 0x12400                                    |             fcn_00012400 (r0);
    0x0001170c ldrh r1, [r5, 0x2c]                           |             r1 = *((r5 + 0x2c));
    0x00011710 lsr r3, r1, 8                                 |             r3 = r1 >> 8;
    0x00011714 orr r3, r3, r1, lsl 8                         |             r3 |= (r1 << 8);
    0x00011718 strh r3, [r5, 0x2c]                           |             *((r5 + 0x2c)) = r3;
    0x0001171c str r0, [r5, 0x1c]                            |             *((r5 + 0x1c)) = r0;
                                                             |         }
    0x00011720 ldr r4, [r5, 0x1c]                            |         r4 = *((r5 + 0x1c));
    0x00011724 adds r4, r5, r4                               |         r4 = r5 + r4;
    0x00011728 bhs 0x116d8                                   |         
                                                             |     }
    0x0001172c ldrh r1, [r5, 0x2c]                           |     r1 = *((r5 + 0x2c));
    0x00011730 add r3, r4, r1, lsl 5                         |     r3 = r4 + (r1 << 5);
    0x00011734 cmp fp, r3                                    |     
                                                             |     if (fp <= r3) {
    0x00011738 blo 0x116d8                                   |         goto label_3;
                                                             |     }
    0x0001173c ldr r2, [sp, 0x30]                            |     r2 = *(arg_30h);
    0x00011740 mov sb, 0                                     |     sb = 0;
    0x00011744 add r4, r4, 0x20                              |     r4 += 0x20;
    0x00011748 mvn r7, 0                                     |     r7 = ~0;
    0x0001174c mov r8, sb                                    |     r8 = sb;
    0x00011750 mov r3, sb                                    |     r3 = sb;
    0x00011754 rsb r2, r2, 0                                 |     r2 -= ;
                                                             | label_5:
    0x00011758 cmp r1, r3                                    |     
                                                             |     if (r1 > r3) {
    0x0001175c bhi 0x117ec                                   |         goto label_22;
                                                             |     }
    0x00011760 adds r8, r5, r8                               |     r8 = r5 + r8;
                                                             |     if (r8 >= r5) {
    0x00011764 bhs 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011768 bic sb, sb, 7                                 |     sb = BIT_MASK (sb, 7);
    0x0001176c add sb, r8, sb                                |     sb = r8 + sb;
    0x00011770 cmp fp, sb                                    |     
                                                             |     if (fp <= sb) {
    0x00011774 blo 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011778 cmp sl, 2                                     |     
                                                             |     if (sl == 2) {
    0x0001177c bne 0x11798                                   |         
    0x00011780 ldr r0, [r8]                                  |         r0 = *(r8);
    0x00011784 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011788 str r0, [r8]                                  |         *(r8) = r0;
    0x0001178c ldr r0, [r8, 4]                               |         r0 = *((r8 + 4));
    0x00011790 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011794 str r0, [r8, 4]                               |         *((r8 + 4)) = r0;
                                                             |     }
    0x00011798 add fp, r8, 8                                 |     
    0x0001179c mov r8, fp                                    |     r8 = fp;
    0x000117a0 mov sb, 0                                     |     sb = 0;
                                                             | label_6:
    0x000117a4 ldr r4, [r8, -8]                              |     r4 = *((r8 - 8));
    0x000117a8 cmp r4, 0                                     |     
                                                             |     if (r4 != 0) {
    0x000117ac bne 0x11880                                   |         goto label_23;
                                                             |     }
    0x000117b0 cmp sb, 0                                     |     
                                                             |     if (sb == 0) {
    0x000117b4 beq 0x116d8                                   |         goto label_3;
                                                             |     }
    0x000117b8 ldr sl, [pc, 0x61c]                           |     sl = "libc.so.0";
    0x000117bc sub r3, sb, r7                                |     r3 = sb - r7;
    0x000117c0 str r3, [sp, 0x18]                            |     var_18h = r3;
                                                             | label_7:
    0x000117c4 ldr r2, [fp, -8]                              |     r2 = var_28h;
    0x000117c8 cmp r2, 0                                     |     
                                                             |     if (r2 != 0) {
    0x000117cc bne 0x118b0                                   |         goto label_24;
                                                             |     }
    0x000117d0 ldr r3, [sp, 0x10]                            |     r3 = var_10h;
                                                             | label_9:
    0x000117d4 cmp r3, 0                                     |     
                                                             |     if (r3 == 0) {
    0x000117d8 beq 0x116dc                                   |         goto label_4;
                                                             |     }
    0x000117dc add r1, sp, 0x108                             |     r1 += arg_108h;
    0x000117e0 ldr r0, [pc, 0x610]                           |     r0 = "%s is not a shared library, skipping";
    0x000117e4 bl 0x10cd4                                    |     warn ("%s is not a shared library, skipping");
    0x000117e8 b 0x116dc                                     |     goto label_4;
                                                             | label_22:
    0x000117ec cmp sl, 2                                     |     
                                                             |     if (sl == 2) {
    0x000117f0 bne 0x1183c                                   |         
    0x000117f4 ldr r0, [r4, -0x20]                           |         r0 = *((r4 - 0x20));
    0x000117f8 str r2, [sp, 0x28]                            |         var_28h = r2;
    0x000117fc str r3, [sp, 0x20]                            |         var_20h = r3;
    0x00011800 str r1, [sp, 0x18]                            |         var_18h = r1;
    0x00011804 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011808 str r0, [r4, -0x20]                           |         *((r4 - 0x20)) = r0;
    0x0001180c ldr r0, [r4, -0x18]                           |         r0 = *((r4 - 0x18));
    0x00011810 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011814 str r0, [r4, -0x18]                           |         *((r4 - 0x18)) = r0;
    0x00011818 ldr r0, [r4, -0x1c]                           |         r0 = *((r4 - 0x1c));
    0x0001181c bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011820 str r0, [r4, -0x1c]                           |         *((r4 - 0x1c)) = r0;
    0x00011824 ldr r0, [r4, -0x10]                           |         r0 = *((r4 - 0x10));
    0x00011828 bl 0x12400                                    |         fcn_00012400 (r0);
    0x0001182c ldr r2, [sp, 0x28]                            |         r2 = var_28h;
    0x00011830 ldr r3, [sp, 0x20]                            |         r3 = var_20h;
    0x00011834 ldr r1, [sp, 0x18]                            |         r1 = var_18h;
    0x00011838 str r0, [r4, -0x10]                           |         *((r4 - 0x10)) = r0;
                                                             |     }
    0x0001183c cmn r7, 1                                     |     
    0x00011840 ldr r0, [r4, -0x20]                           |     r0 = *((r4 - 0x20));
                                                             |     if (r7 != 1) {
    0x00011844 bne 0x11870                                   |         goto label_25;
                                                             |     }
    0x00011848 cmp r0, 1                                     |     
                                                             |     if (r0 != 1) {
    0x0001184c bne 0x11870                                   |         goto label_25;
                                                             |     }
    0x00011850 ldr r7, [r4, -0x18]                           |     r7 = *((r4 - 0x18));
    0x00011854 ldr r0, [r4, -0x1c]                           |     r0 = *((r4 - 0x1c));
    0x00011858 and r7, r7, r2                                |     r7 &= r2;
    0x0001185c and r0, r0, r2                                |     r0 &= r2;
    0x00011860 sub r7, r7, r0                                |     r7 -= r0;
                                                             |     do {
    0x00011864 add r3, r3, 1                                 |         r3++;
    0x00011868 add r4, r4, 0x20                              |         r4 += 0x20;
    0x0001186c b 0x11758                                     |         goto label_5;
                                                             | label_25:
    0x00011870 cmp r0, 2                                     |         
                                                             |         if (r0 != 2) {
    0x00011874 ldreq r8, [r4, -0x1c]                         |             r8 = *((r4 - 0x1c));
                                                             |         }
                                                             |         if (r0 != 2) {
    0x00011878 ldreq sb, [r4, -0x10]                         |             sb = *((r4 - 0x10));
                                                             |         }
    0x0001187c b 0x11864                                     |         
                                                             |     } while (1);
                                                             | label_23:
    0x00011880 cmp r4, 5                                     |     
                                                             |     if (r4 != 5) {
    0x00011884 ldreq sb, [r8, -4]                            |         sb = *((r8 - 4));
                                                             |     }
    0x00011888 cmp sl, 2                                     |     
                                                             |     if (sl == 2) {
    0x0001188c bne 0x118a8                                   |         
    0x00011890 ldr r0, [r8]                                  |         r0 = *(r8);
    0x00011894 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011898 str r0, [r8]                                  |         *(r8) = r0;
    0x0001189c ldr r0, [r8, 4]                               |         r0 = *((r8 + 4));
    0x000118a0 bl 0x12400                                    |         fcn_00012400 (r0);
    0x000118a4 str r0, [r8, 4]                               |         *((r8 + 4)) = r0;
                                                             |     }
    0x000118a8 add r8, r8, 8                                 |     r8 += 8;
    0x000118ac b 0x117a4                                     |     goto label_6;
                                                             | label_24:
    0x000118b0 cmp r2, 1                                     |     
    0x000118b4 cmpne r2, 0xe                                 |     __asm ("cmpne r2, 0xe");
                                                             |     if (r2 != 1) {
    0x000118b8 bne 0x1190c                                   |         goto label_26;
                                                             |     }
    0x000118bc ldr r8, [fp, -4]                              |     r8 = var_2ch;
    0x000118c0 add r0, r8, sb                                |     r0 = r8 + sb;
    0x000118c4 cmp r7, r0                                    |     
                                                             |     if (r7 >= r0) {
    0x000118c8 bls 0x118dc                                   |         
    0x000118cc ldr r1, [sp, 0xdc]                            |         r1 = *(length);
    0x000118d0 sub r1, r1, r7                                |         r1 -= r7;
    0x000118d4 cmp r0, r1                                    |         
                                                             |         if (r0 >= r1) {
    0x000118d8 bhs 0x1190c                                   |             goto label_26;
                                                             |         }
                                                             |     }
    0x000118dc ldr r3, [sp, 0x18]                            |     r3 = var_18h;
    0x000118e0 cmp r2, 0xe                                   |     
    0x000118e4 add r8, r3, r8                                |     r8 = r3 + r8;
    0x000118e8 add r8, r5, r8                                |     r8 = r5 + r8;
                                                             |     if (r2 == 0xe) {
    0x000118ec bne 0x118fc                                   |         
    0x000118f0 mov r0, r8                                    |         r0 = r8;
    0x000118f4 bl 0x1138c                                    |         r0 = fcn_0001138c (r0);
    0x000118f8 mov r4, r0                                    |         r4 = r0;
                                                             |     }
    0x000118fc mov r2, 0                                     |     r2 = 0;
                                                             |     do {
    0x00011900 ldr r1, [r2, sl]                              |         r1 = *((r2 + sl));
    0x00011904 cmp r1, 0                                     |         
                                                             |         if (r1 == 0) {
    0x00011908 bne 0x11914                                   |             
                                                             | label_26:
    0x0001190c add fp, fp, 8                                 |             
    0x00011910 b 0x117c4                                     |             goto label_7;
                                                             |         }
    0x00011914 mov r0, r8                                    |         r0 = r8;
    0x00011918 str r2, [sp, 0x20]                            |         var_20h = r2;
    0x0001191c bl 0x10c68                                    |         strcmp (r0, r1);
    0x00011920 ldr r2, [sp, 0x20]                            |         r2 = var_20h;
    0x00011924 cmp r0, 0                                     |         
                                                             |         if (r0 == 0) {
    0x00011928 bne 0x1195c                                   |             
    0x0001192c ldr r3, [sp, 0xc]                             |             r3 = var_ch;
    0x00011930 add r1, sl, r2                                |             r1 = sl + r2;
    0x00011934 ldr r0, [r3]                                  |             r0 = *(r3);
    0x00011938 ldr r1, [r1, 4]                               |             r1 = *((r1 + 4));
    0x0001193c cmp r0, 1                                     |             
                                                             |             if (r0 != 1) {
    0x00011940 beq 0x11954                                   |                 
    0x00011944 ldr r3, [sp, 0x10]                            |                 r3 = var_10h;
    0x00011948 cmp r1, r0                                    |                 
                                                             |                 if (r1 == r0) {
    0x0001194c movne r3, 1                                   |                     r3 = 1;
                                                             |                 }
    0x00011950 str r3, [sp, 0x10]                            |                 var_10h = r3;
                                                             |             }
    0x00011954 ldr r3, [sp, 0xc]                             |             r3 = var_ch;
    0x00011958 str r1, [r3]                                  |             *(r3) = r1;
                                                             |         }
    0x0001195c add r2, r2, 8                                 |         r2 += 8;
    0x00011960 b 0x11900                                     |         
                                                             |     } while (1);
                                                             | label_20:
    0x00011964 bl 0x10ca4                                    |     fileno (r0);
    0x00011968 add r1, sp, 0xb0                              |     r1 += arg_b0h;
    0x0001196c bl 0x10b90                                    |     r0 = fstat (r0, r1);
    0x00011970 subs r3, r0, 0                                |     r3 = r0 - 0;
    0x00011974 str r3, [sp, 0x28]                            |     var_28h = r3;
                                                             |     if (r3 != r0) {
    0x00011978 bne 0x11644                                   |         goto label_8;
                                                             |     }
    0x0001197c ldr r0, [sp, 8]                               |     r0 = stream;
    0x00011980 ldr r5, [sp, 0xdc]                            |     r5 = *(length);
    0x00011984 bl 0x10ca4                                    |     fileno (r0);
    0x00011988 mov r4, 0                                     |     r4 = 0;
    0x0001198c mov r1, r5                                    |     r1 = r5;
    0x00011990 mov r3, 2                                     |     r3 = 2;
    0x00011994 mov r2, 3                                     |     r2 = 3;
    0x00011998 stm sp, {r0, r4}                              |     *(sp) = r0;
                                                             |     *((sp + 4)) = r4;
    0x0001199c mov r0, r4                                    |     r0 = r4;
    0x000119a0 bl 0x10b6c                                    |     r0 = mmap (r0, r1, r2, r3, r4, r5);
    0x000119a4 cmn r0, 1                                     |     
    0x000119a8 mov r5, r0                                    |     r5 = r0;
                                                             |     if (r0 == 1) {
    0x000119ac beq 0x11644                                   |         goto label_8;
                                                             |     }
    0x000119b0 ldr r3, [sp, 0xdc]                            |     r3 = *(length);
    0x000119b4 add r2, r0, 0x40                              |     r2 = r0 + 0x40;
    0x000119b8 add r3, r0, r3                                |     r3 = r0 + r3;
    0x000119bc cmp r3, r2                                    |     
    0x000119c0 str r3, [sp, 0x18]                            |     var_18h = r3;
                                                             |     if (r3 <= r2) {
    0x000119c4 blo 0x116d8                                   |         goto label_3;
                                                             |     }
    0x000119c8 ldrb r8, [r0, 5]                              |     r8 = *((r0 + 5));
    0x000119cc cmp r8, 2                                     |     
                                                             |     if (r8 != 2) {
    0x000119d0 moveq r2, 1                                   |         r2 = 1;
                                                             |     }
                                                             |     if (r8 == 2) {
    0x000119d4 movne r2, 0                                   |         r2 = 0;
                                                             |     }
    0x000119d8 str r2, [r7, 0xc]                             |     *((r7 + 0xc)) = r2;
                                                             |     if (r8 == 2) {
    0x000119dc bne 0x11a00                                   |         
    0x000119e0 ldr r0, [r0, 0x20]                            |         r0 = *((r0 + 0x20));
    0x000119e4 bl 0x12400                                    |         fcn_00012400 (r0);
    0x000119e8 ldrh r1, [r5, 0x38]                           |         r1 = *((r5 + 0x38));
    0x000119ec str r4, [r5, 0x24]                            |         *((r5 + 0x24)) = r4;
    0x000119f0 lsr r2, r1, 8                                 |         r2 = r1 >> 8;
    0x000119f4 orr r2, r2, r1, lsl 8                         |         r2 |= (r1 << 8);
    0x000119f8 strh r2, [r5, 0x38]                           |         *((r5 + 0x38)) = r2;
    0x000119fc str r0, [r5, 0x20]                            |         *((r5 + 0x20)) = r0;
                                                             |     }
    0x00011a00 ldr r4, [r5, 0x20]                            |     r4 = *((r5 + 0x20));
    0x00011a04 adds r4, r5, r4                               |     r4 = r5 + r4;
                                                             |     if (r4 >= r5) {
    0x00011a08 bhs 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011a0c ldrh r3, [r5, 0x38]                           |     r3 = *((r5 + 0x38));
    0x00011a10 mov r1, 0x38                                  |     r1 = 0x38;
    0x00011a14 mla r2, r3, r1, r4                            |     __asm ("mla r2, r3, r1, r4");
    0x00011a18 ldr r1, [sp, 0x18]                            |     r1 = var_18h;
    0x00011a1c cmp r1, r2                                    |     
                                                             |     if (r1 <= r2) {
    0x00011a20 blo 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011a24 mvn r1, 0                                     |     r1 = ~0;
    0x00011a28 mvn r0, 0                                     |     r0 = ~0;
    0x00011a2c strd r0, r1, [sp, 0x10]                       |     __asm ("strd r0, r1, [sp, 0x10]");
    0x00011a30 ldr r1, [sp, 0x30]                            |     r1 = *(arg_30h);
    0x00011a34 mov sb, 0                                     |     sb = 0;
    0x00011a38 rsb r1, r1, 0                                 |     r1 -= ;
    0x00011a3c add r4, r4, 0x38                              |     r4 += 0x38;
    0x00011a40 mov r7, sb                                    |     r7 = sb;
    0x00011a44 mov r2, sb                                    |     r2 = sb;
    0x00011a48 str r1, [sp, 0x20]                            |     var_20h = r1;
    0x00011a4c str sb, [sp, 0x24]                            |     var_24h = sb;
                                                             | label_10:
    0x00011a50 cmp r3, r2                                    |     
                                                             |     if (r3 > r2) {
    0x00011a54 bhi 0x11af8                                   |         goto label_27;
                                                             |     }
    0x00011a58 adds r7, r5, r7                               |     r7 = r5 + r7;
                                                             |     if (r7 >= r5) {
    0x00011a5c bhs 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011a60 ldr r3, [sp, 0x18]                            |     r3 = var_18h;
    0x00011a64 bic sb, sb, 0xf                               |     sb = BIT_MASK (sb, 0xf);
    0x00011a68 add sb, r7, sb                                |     sb = r7 + sb;
    0x00011a6c cmp r3, sb                                    |     
                                                             |     if (r3 <= sb) {
    0x00011a70 blo 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011a74 cmp r8, 2                                     |     
                                                             |     if (r8 == 2) {
    0x00011a78 bne 0x11a9c                                   |         
    0x00011a7c ldr r0, [r7]                                  |         r0 = *(r7);
    0x00011a80 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011a84 mov r4, 0                                     |         r4 = 0;
    0x00011a88 stm r7, {r0, r4}                              |         *(r7) = r0;
                                                             |         *((r7 + 4)) = r4;
    0x00011a8c ldr r0, [r7, 8]                               |         r0 = *((r7 + 8));
    0x00011a90 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011a94 str r4, [r7, 0xc]                             |         *((r7 + 0xc)) = r4;
    0x00011a98 str r0, [r7, 8]                               |         *((r7 + 8)) = r0;
                                                             |     }
    0x00011a9c add r7, r7, 0x10                              |     r7 += 0x10;
    0x00011aa0 mov r2, 0                                     |     r2 = 0;
    0x00011aa4 mov r3, 0                                     |     r3 = 0;
    0x00011aa8 mov sb, r7                                    |     sb = r7;
    0x00011aac mov r4, 0                                     |     r4 = 0;
    0x00011ab0 strd r2, r3, [sp, 0x20]                       |     __asm ("strd r2, r3, [sp, 0x20]");
                                                             | label_11:
    0x00011ab4 ldrd r2, r3, [sb, -0x10]                      |     __asm ("ldrd r2, r3, [sb, -0x10]");
    0x00011ab8 orrs r1, r2, r3                               |     r1 = r2 | r3;
                                                             |     if (r1 != r2) {
    0x00011abc bne 0x11bd0                                   |         goto label_28;
                                                             |     }
    0x00011ac0 ldrd r2, r3, [sp, 0x20]                       |     __asm ("ldrd r2, r3, [var_20h]");
    0x00011ac4 orrs r3, r2, r3                               |     r3 = r2 | r3;
                                                             |     if (r3 == r2) {
    0x00011ac8 beq 0x116d8                                   |         goto label_3;
                                                             |     }
    0x00011acc ldr r3, [sp, 0x20]                            |     r3 = var_20h;
    0x00011ad0 ldr r2, [sp, 0x10]                            |     r2 = var_10h;
    0x00011ad4 ldr sl, [pc, 0x300]                           |     sl = "libc.so.0";
    0x00011ad8 mov r4, 0                                     |     r4 = 0;
    0x00011adc sub fp, r3, r2                                |     
                                                             | label_12:
    0x00011ae0 ldrd r2, r3, [r7, -0x10]                      |     __asm ("ldrd r2, r3, [r7, -0x10]");
    0x00011ae4 strd r2, r3, [sp, 0x18]                       |     __asm ("strd r2, r3, [sp, 0x18]");
    0x00011ae8 orrs r3, r2, r3                               |     r3 = r2 | r3;
                                                             |     if (r3 != r2) {
    0x00011aec bne 0x11c0c                                   |         goto label_29;
                                                             |     }
    0x00011af0 ldr r3, [sp, 0x28]                            |     r3 = var_28h;
    0x00011af4 b 0x117d4                                     |     goto label_9;
                                                             | label_27:
    0x00011af8 cmp r8, 2                                     |     
                                                             |     if (r8 == 2) {
    0x00011afc bne 0x11b54                                   |         
    0x00011b00 ldr r0, [r4, -0x38]                           |         r0 = *((r4 - 0x38));
    0x00011b04 str r2, [sp, 0x34]                            |         *(arg_34h) = r2;
    0x00011b08 str r3, [sp, 0x30]                            |         *(arg_30h) = r3;
    0x00011b0c bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011b10 str r0, [r4, -0x38]                           |         *((r4 - 0x38)) = r0;
    0x00011b14 ldr r0, [r4, -0x28]                           |         r0 = *((r4 - 0x28));
    0x00011b18 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011b1c mov r3, 0                                     |         r3 = 0;
    0x00011b20 str r3, [r4, -0x24]                           |         *((r4 - 0x24)) = r3;
    0x00011b24 mov sl, r3                                    |         sl = r3;
    0x00011b28 str r0, [r4, -0x28]                           |         *((r4 - 0x28)) = r0;
    0x00011b2c ldr r0, [r4, -0x30]                           |         r0 = *((r4 - 0x30));
    0x00011b30 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011b34 str sl, [r4, -0x2c]                           |         *((r4 - 0x2c)) = sl;
    0x00011b38 str r0, [r4, -0x30]                           |         *((r4 - 0x30)) = r0;
    0x00011b3c ldr r0, [r4, -0x18]                           |         r0 = *((r4 - 0x18));
    0x00011b40 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011b44 ldr r2, [sp, 0x34]                            |         r2 = *(arg_34h);
    0x00011b48 ldr r3, [sp, 0x30]                            |         r3 = *(arg_30h);
    0x00011b4c str sl, [r4, -0x14]                           |         *((r4 - 0x14)) = sl;
    0x00011b50 str r0, [r4, -0x18]                           |         *((r4 - 0x18)) = r0;
                                                             |     }
    0x00011b54 ldrd sl, fp, [sp, 0x10]                       |     __asm ("ldrd sl, fp, [var_10h]");
    0x00011b58 ldr ip, [r4, -0x38]                           |     ip = *((r4 - 0x38));
    0x00011b5c mvn r1, 0                                     |     r1 = ~0;
    0x00011b60 mvn r0, 0                                     |     r0 = ~0;
    0x00011b64 cmp fp, r1                                    |     
    0x00011b68 cmpeq sl, r0                                  |     __asm ("cmpeq sl, r0");
                                                             |     if (fp != r1) {
    0x00011b6c bne 0x11bc0                                   |         goto label_30;
                                                             |     }
    0x00011b70 cmp ip, 1                                     |     
                                                             |     if (ip != 1) {
    0x00011b74 bne 0x11bc0                                   |         goto label_30;
                                                             |     }
    0x00011b78 ldrd sl, fp, [r4, -0x28]                      |     __asm ("ldrd sl, fp, [r4, -0x28]");
    0x00011b7c ldrd r0, r1, [sp, 0x20]                       |     __asm ("ldrd r0, r1, [var_20h]");
    0x00011b80 and r0, r0, sl                                |     r0 &= sl;
    0x00011b84 and r1, r1, fp                                |     r1 &= fp;
    0x00011b88 strd r0, r1, [sp, 0x10]                       |     __asm ("strd r0, r1, [sp, 0x10]");
    0x00011b8c ldrd sl, fp, [sp, 0x20]                       |     __asm ("ldrd sl, fp, [var_20h]");
    0x00011b90 ldrd r0, r1, [r4, -0x30]                      |     __asm ("ldrd r0, r1, [r4, -0x30]");
    0x00011b94 and sl, sl, r0                                |     sl &= r0;
    0x00011b98 and fp, fp, r1                                |     
    0x00011b9c mov r0, sl                                    |     r0 = sl;
    0x00011ba0 mov r1, fp                                    |     r1 = fp;
    0x00011ba4 ldrd sl, fp, [sp, 0x10]                       |     __asm ("ldrd sl, fp, [var_10h]");
    0x00011ba8 subs sl, sl, r0                               |     sl -= r0;
    0x00011bac sbc fp, fp, r1                                |     __asm ("sbc fp, fp, r1");
    0x00011bb0 strd sl, fp, [sp, 0x10]                       |     __asm ("strd sl, fp, [var_0hx10]");
                                                             |     do {
    0x00011bb4 add r2, r2, 1                                 |         r2++;
    0x00011bb8 add r4, r4, 0x38                              |         r4 += 0x38;
    0x00011bbc b 0x11a50                                     |         goto label_10;
                                                             | label_30:
    0x00011bc0 cmp ip, 2                                     |         
                                                             |         if (ip != 2) {
    0x00011bc4 ldreq r7, [r4, -0x30]                         |             r7 = *((r4 - 0x30));
                                                             |         }
                                                             |         if (ip != 2) {
    0x00011bc8 ldreq sb, [r4, -0x18]                         |             sb = *((r4 - 0x18));
                                                             |         }
    0x00011bcc b 0x11bb4                                     |         
                                                             |     } while (1);
                                                             | label_28:
    0x00011bd0 cmp r3, 0                                     |     
    0x00011bd4 cmpeq r2, 5                                   |     __asm ("cmpeq r2, 5");
    0x00011bd8 ldrdeq r2, r3, [sb, -8]                       |     __asm ("ldrdeq r2, r3, [sb, -8]");
    0x00011bdc strdeq r2, r3, [sp, 0x20]                     |     __asm ("strdeq r2, r3, [sp, 0x20]");
    0x00011be0 cmp r8, 2                                     |     
                                                             |     if (r8 == 2) {
    0x00011be4 bne 0x11c04                                   |         
    0x00011be8 ldr r0, [sb]                                  |         r0 = *(sb);
    0x00011bec bl 0x12400                                    |         r0 = fcn_00012400 (r0);
    0x00011bf0 stm sb, {r0, r4}                              |         *(sb) = r0;
                                                             |         *((sb + 4)) = r4;
    0x00011bf4 ldr r0, [sb, 8]                               |         r0 = *((sb + 8));
    0x00011bf8 bl 0x12400                                    |         fcn_00012400 (r0);
    0x00011bfc str r4, [sb, 0xc]                             |         *((sb + 0xc)) = r4;
    0x00011c00 str r0, [sb, 8]                               |         *((sb + 8)) = r0;
                                                             |     }
    0x00011c04 add sb, sb, 0x10                              |     sb += 0x10;
    0x00011c08 b 0x11ab4                                     |     goto label_11;
                                                             | label_29:
    0x00011c0c ldrd r2, r3, [sp, 0x18]                       |     __asm ("ldrd r2, r3, [var_18h]");
    0x00011c10 ldrd r0, r1, [sp, 0x18]                       |     __asm ("ldrd r0, r1, [var_18h]");
    0x00011c14 cmp r3, 0                                     |     
    0x00011c18 cmpeq r2, 0xe                                 |     __asm ("cmpeq r2, 0xe");
                                                             |     if (r3 != 0) {
    0x00011c1c moveq r3, 1                                   |         r3 = 1;
                                                             |     }
                                                             |     if (r3 == 0) {
    0x00011c20 movne r3, 0                                   |         r3 = 0;
                                                             |     }
    0x00011c24 cmp r1, 0                                     |     
    0x00011c28 cmpeq r0, 1                                   |     __asm ("cmpeq r0, 1");
                                                             |     if (r1 != 0) {
    0x00011c2c moveq r3, 1                                   |         r3 = 1;
                                                             |     }
    0x00011c30 cmp r3, 0                                     |     
                                                             |     if (r3 == 0) {
    0x00011c34 beq 0x11ca4                                   |         goto label_31;
                                                             |     }
    0x00011c38 ldrd r0, r1, [r7, -8]                         |     __asm ("ldrd r0, r1, [r7, -8]");
    0x00011c3c ldrd r2, r3, [sp, 0x20]                       |     __asm ("ldrd r2, r3, [var_20h]");
    0x00011c40 ldrd r8, sb, [sp, 0x10]                       |     __asm ("ldrd r8, sb, [var_10h]");
    0x00011c44 adds r2, r2, r0                               |     r2 += r0;
    0x00011c48 adc r3, r3, r1                                |     __asm ("adc r3, r3, r1");
    0x00011c4c cmp sb, r3                                    |     
    0x00011c50 cmpeq r8, r2                                  |     __asm ("cmpeq r8, r2");
                                                             |     if (sb >= r3) {
    0x00011c54 bls 0x11c70                                   |         
    0x00011c58 ldr ip, [sp, 0xdc]                            |         ip = *(length);
    0x00011c5c subs r8, ip, r8                               |         r8 = ip - r8;
    0x00011c60 rsc sb, sb, ip, asr 31                        |         __asm ("rsc sb, sb, ip, asr 31");
    0x00011c64 cmp r3, sb                                    |         
    0x00011c68 cmpeq r2, r8                                  |         __asm ("cmpeq r2, r8");
                                                             |         if (r3 >= sb) {
    0x00011c6c bhs 0x11ca4                                   |             goto label_31;
                                                             |         }
                                                             |     }
    0x00011c70 ldrd r2, r3, [sp, 0x18]                       |     __asm ("ldrd r2, r3, [var_18h]");
    0x00011c74 add r0, fp, r0                                |     r0 = fp + r0;
    0x00011c78 cmp r3, 0                                     |     
    0x00011c7c cmpeq r2, 0xe                                 |     __asm ("cmpeq r2, 0xe");
    0x00011c80 add r8, r5, r0                                |     r8 = r5 + r0;
                                                             |     if (r3 == 0) {
    0x00011c84 bne 0x11c94                                   |         
    0x00011c88 mov r0, r8                                    |         r0 = r8;
    0x00011c8c bl 0x1138c                                    |         r0 = fcn_0001138c (r0);
    0x00011c90 mov r4, r0                                    |         r4 = r0;
                                                             |     }
    0x00011c94 mov sb, 0                                     |     sb = 0;
                                                             |     do {
    0x00011c98 ldr r1, [sb, sl]                              |         r1 = *((sb + sl));
    0x00011c9c cmp r1, 0                                     |         
                                                             |         if (r1 == 0) {
    0x00011ca0 bne 0x11cac                                   |             
                                                             | label_31:
    0x00011ca4 add r7, r7, 0x10                              |             r7 += 0x10;
    0x00011ca8 b 0x11ae0                                     |             goto label_12;
                                                             |         }
    0x00011cac mov r0, r8                                    |         r0 = r8;
    0x00011cb0 bl 0x10c68                                    |         r0 = strcmp (r0, r1);
    0x00011cb4 cmp r0, 0                                     |         
                                                             |         if (r0 == 0) {
    0x00011cb8 bne 0x11cec                                   |             
    0x00011cbc ldr r3, [sp, 0xc]                             |             r3 = var_ch;
    0x00011cc0 ldr r2, [r3]                                  |             r2 = *(r3);
    0x00011cc4 add r3, sl, sb                                |             r3 = sl + sb;
    0x00011cc8 cmp r2, 1                                     |             
    0x00011ccc ldr r3, [r3, 4]                               |             r3 = *((r3 + 4));
                                                             |             if (r2 != 1) {
    0x00011cd0 beq 0x11ce4                                   |                 
    0x00011cd4 ldr r1, [sp, 0x28]                            |                 r1 = var_28h;
    0x00011cd8 cmp r3, r2                                    |                 
                                                             |                 if (r3 == r2) {
    0x00011cdc movne r1, 1                                   |                     r1 = 1;
                                                             |                 }
    0x00011ce0 str r1, [sp, 0x28]                            |                 var_28h = r1;
                                                             |             }
    0x00011ce4 ldr r2, [sp, 0xc]                             |             r2 = var_ch;
    0x00011ce8 str r3, [r2]                                  |             *(r2) = r3;
                                                             |         }
    0x00011cec add sb, sb, 8                                 |         sb += 8;
    0x00011cf0 b 0x11c98                                     |         
                                                             |     } while (1);
                                                             | label_21:
    0x00011cf4 bl 0x10cb0                                    |     strlen (r0);
    0x00011cf8 ldr r3, [pc, 0xc0]                            |     
    0x00011cfc ldr r3, [r3, 0x10]                            |     r3 = "skipping__s";
    0x00011d00 cmp r3, 0                                     |     
    0x00011d04 mov r5, r0                                    |     r5 = r0;
                                                             |     if (r3 == 0) {
    0x00011d08 beq 0x11530                                   |         goto label_1;
                                                             |     }
    0x00011d0c mov r2, r0                                    |     r2 = r0;
    0x00011d10 mov r1, r6                                    |     r1 = r6;
    0x00011d14 mov r0, r4                                    |     r0 = r4;
    0x00011d18 bl 0x10be4                                    |     r0 = strncmp (r0, r1, r2);
    0x00011d1c cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00011d20 bne 0x11d34                                   |         goto label_32;
                                                             |     }
    0x00011d24 ldrb r3, [r6, r5]                             |     r3 = *((r6 + r5));
    0x00011d28 cmp r3, 0                                     |     
    0x00011d2c cmpne r3, 0x2e                                |     __asm ("cmpne r3, 0x2e");
                                                             |     if (r3 == 0) {
    0x00011d30 beq 0x11530                                   |         goto label_1;
                                                             |     }
                                                             | label_32:
    0x00011d34 mov r2, r4                                    |     r2 = r4;
    0x00011d38 add r1, sp, 0x108                             |     r1 += arg_108h;
    0x00011d3c ldr r0, [pc, 0xb8]                            |     r0 = "_s_appears_to_be_for_multiple_libcs";
    0x00011d40 bl 0x10ae8                                    |     warnx ("_s_appears_to_be_for_multiple_libcs");
    0x00011d44 b 0x11530                                     |     goto label_1;
                                                             | label_18:
    0x00011d48 ldr r3, [pc, 0x8c]                            |     r3 = "can't read header from %s, skipping";
    0x00011d4c str r4, [r7, 0xc]                             |     *((r7 + 0xc)) = r4;
    0x00011d50 ldr r2, [r3, 0x50]                            |     r2 = *(0x11e28);
    0x00011d54 cmn r2, 1                                     |     
                                                             |     if (r2 != 1) {
    0x00011d58 streq r4, [r3, 0x50]                          |         *((r3 + 0x50)) = r4;
                                                             |     }
    0x00011d5c ldr r3, [sp, 0x2c]                            |     r3 = var_2ch;
    0x00011d60 ldr r7, [r3]                                  |     r7 = "can't read header from %s, skipping";
    0x00011d64 cmp r7, 0                                     |     
                                                             |     if (r7 == 0) {
    0x00011d68 beq 0x11d88                                   |         goto label_33;
                                                             |     }
    0x00011d6c mov r0, r6                                    |     r0 = r6;
    0x00011d70 bl 0x1138c                                    |     r0 = fcn_0001138c (r0);
    0x00011d74 mov r4, r0                                    |     r4 = r0;
                                                             |     do {
    0x00011d78 ldr r2, [sp, 0xc]                             |         r2 = var_ch;
    0x00011d7c mov r3, 0                                     |         r3 = 0;
    0x00011d80 str r3, [r2]                                  |         *(r2) = r3;
    0x00011d84 b 0x11530                                     |         goto label_1;
                                                             | label_33:
    0x00011d88 sub r5, r5, r6                                |         r5 -= r6;
    0x00011d8c add r0, r5, 1                                 |         r0 = r5 + 1;
    0x00011d90 bl 0x10b3c                                    |         r0 = malloc (r0);
    0x00011d94 subs r4, r0, 0                                |         r4 = r0 - 0;
                                                             |         if (r4 == r0) {
    0x00011d98 bne 0x11da0                                   |             
    0x00011d9c bl 0x10cf8                                    |             fcn_00010cf8 ();
                                                             |         }
    0x00011da0 mov r2, r5                                    |         r2 = r5;
    0x00011da4 mov r1, r6                                    |         r1 = r6;
    0x00011da8 bl 0x10bf0                                    |         strncpy (r0, r1, r2);
    0x00011dac strb r7, [r4, r5]                             |         *((r4 + r5)) = r7;
    0x00011db0 b 0x11d78                                     |         
                                                             |     } while (1);
                                                             | }

[*] Function sprintf used 4 times ldconfig