[*] Binary protection state of ubinfo

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


[*] Function fprintf tear down of ubinfo

    ; 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/usr/sbin/ubinfo @ 0x11230 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) fcn.00011230 ()                  | void fcn_00011230 (int32_t arg1, int32_t arg2) {
                                             |     int32_t var_0h;
                                             |     int32_t var_4h;
                                             |     int32_t var_8h;
                                             |     int32_t var_ch;
                                             |     int32_t var_c4h;
                                             |     r0 = arg1;
                                             |     r1 = arg2;
    0x00011230 push {r4, r5, r6, r7, lr}     |     
    0x00011234 sub sp, sp, 0xc4              |     
    0x00011238 mov r6, r0                    |     r6 = r0;
    0x0001123c mov r5, r1                    |     r5 = r1;
    0x00011240 bl 0x12cd8                    |     r0 = fcn_00012cd8 (r0, r1);
    0x00011244 cmn r0, 1                     |     
    0x00011248 mov r4, r0                    |     r4 = r0;
                                             |     if (r0 != 1) {
    0x0001124c bne 0x112b8                   |         goto label_2;
                                             |     }
    0x00011250 bl 0x10b24                    |     errno_location ();
    0x00011254 ldr r7, [pc, 0x148]           |     r7 = *(0x113a0);
    0x00011258 mov r3, r5                    |     r3 = r5;
    0x0001125c ldr r2, [pc, 0x144]           |     r2 = stderr;
    0x00011260 ldr r6, [r0]                  |     r6 = *(r0);
    0x00011264 ldr r0, [r7]                  |     r0 = *(0x113a0);
    0x00011268 cmp r6, 0x13                  |     
                                             |     if (r6 == 0x13) {
    0x0001126c beq 0x112ac                   |         goto label_3;
                                             |     }
    0x00011270 ldr r1, [pc, 0x134]           |     r1 = "ubinfo";
    0x00011274 bl 0x10a64                    |     fprintf (r0, "ubinfo")
    0x00011278 mov r0, r6                    |     r0 = r6;
    0x0001127c ldr r5, [r7]                  |     r5 = *(r7);
    0x00011280 bl 0x109d4                    |     strerror (r0);
    0x00011284 str r6, [sp]                  |     *(sp) = r6;
    0x00011288 ldr r3, [pc, 0x120]           |     r3 = "_s:_error_:_error_while_probing___s_";
    0x0001128c mov r2, 8                     |     r2 = 8;
    0x00011290 ldr r1, [pc, 0x11c]           |     r1 = *(0x113b0);
    0x00011294 str r0, [sp, 4]               |     var_4h = r0;
    0x00011298 mov r0, r5                    |     r0 = r5;
    0x0001129c bl 0x10a64                    |     fprintf (r0, r1, r2, "_s:_error_:_error_while_probing___s_", r4, r5, r6)
                                             |     do {
                                             | label_0:
    0x000112a0 mov r0, r4                    |         r0 = r4;
    0x000112a4 add sp, sp, 0xc4              |         
    0x000112a8 pop {r4, r5, r6, r7, pc}      |         
                                             | label_3:
    0x000112ac ldr r1, [pc, 0x104]           |         r1 = "_serror__d___s_";
    0x000112b0 bl 0x10a64                    |         fprintf (r0, "_serror__d___s_")
    0x000112b4 b 0x112a0                     |         
                                             |     } while (1);
                                             | label_2:
    0x000112b8 cmp r4, 1                     |     
    0x000112bc add r2, sp, 8                 |     r2 += var_8h;
    0x000112c0 mov r1, r5                    |     r1 = r5;
    0x000112c4 mov r0, r6                    |     r0 = r6;
                                             |     if (r4 != 1) {
    0x000112c8 bne 0x11338                   |         goto label_4;
                                             |     }
    0x000112cc bl 0x1366c                    |     r0 = fcn_0001366c (r0, r1);
    0x000112d0 subs r4, r0, 0                |     r4 = r0 - 0;
                                             |     if (r4 == r0) {
    0x000112d4 beq 0x11328                   |         goto label_5;
                                             |     }
    0x000112d8 bl 0x10b24                    |     errno_location ();
    0x000112dc ldr r6, [pc, 0xc0]            |     r6 = *(0x113a0);
    0x000112e0 ldr r2, [pc, 0xc0]            |     r2 = stderr;
    0x000112e4 ldr r1, [pc, 0xd0]            |     r1 = "_s:_error_:___s__does_not_correspond_to_any_UBI_device_or_volume";
    0x000112e8 mov r3, r5                    |     r3 = r5;
    0x000112ec ldr r4, [r0]                  |     r4 = *(r0);
                                             |     do {
    0x000112f0 ldr r0, [r6]                  |         r0 = *(r6);
    0x000112f4 bl 0x10a64                    |         fprintf (r0, "_s:_error_:___s__does_not_correspond_to_any_UBI_device_or_volume", r2, r3, r4, r5, r6)
    0x000112f8 mov r0, r4                    |         r0 = r4;
    0x000112fc ldr r5, [r6]                  |         r5 = *(r6);
    0x00011300 bl 0x109d4                    |         strerror (r0);
    0x00011304 str r4, [sp]                  |         *(sp) = r4;
    0x00011308 ldr r3, [pc, 0xa0]            |         r3 = "_s:_error_:_error_while_probing___s_";
    0x0001130c mov r2, 8                     |         r2 = 8;
    0x00011310 ldr r1, [pc, 0x9c]            |         r1 = *(0x113b0);
    0x00011314 str r0, [sp, 4]               |         var_4h = r0;
    0x00011318 mov r0, r5                    |         r0 = r5;
    0x0001131c bl 0x10a64                    |         fprintf (r0, r1, r2, "_s:_error_:_error_while_probing___s_", r4)
                                             | label_1:
    0x00011320 mvn r4, 0                     |         r4 = ~0;
    0x00011324 b 0x112a0                     |         goto label_0;
                                             | label_5:
    0x00011328 ldr r3, [pc, 0x90]            |         r3 = "_s:_error_:_cannot_get_information_about_UBI_device___s_";
    0x0001132c ldr r2, [sp, 8]               |         r2 = var_8h;
    0x00011330 str r2, [r3]                  |         *(r3) = r2;
    0x00011334 b 0x112a0                     |         goto label_0;
                                             | label_4:
    0x00011338 bl 0x13ac8                    |         r0 = fcn_00013ac8 (r0, r1);
    0x0001133c subs r4, r0, 0                |         r4 = r0 - 0;
                                             |         if (r4 == r0) {
    0x00011340 beq 0x11360                   |             goto label_6;
                                             |         }
    0x00011344 bl 0x10b24                    |         errno_location ();
    0x00011348 ldr r6, [pc, 0x54]            |         r6 = *(0x113a0);
    0x0001134c mov r3, r5                    |         r3 = r5;
    0x00011350 ldr r2, [pc, 0x50]            |         r2 = stderr;
    0x00011354 ldr r1, [pc, 0x68]            |         r1 = *(0x113c0);
    0x00011358 ldr r4, [r0]                  |         r4 = *(r0);
    0x0001135c b 0x112f0                     |         
                                             |     } while (1);
                                             | label_6:
    0x00011360 ldr r3, [pc, 0x58]            |     r3 = "_s:_error_:_cannot_get_information_about_UBI_device___s_";
    0x00011364 ldr r2, [r3, 4]               |     r2 = *(0x113c0);
    0x00011368 cmn r2, 1                     |     
                                             |     if (r2 != 1) {
    0x0001136c beq 0x11390                   |         
    0x00011370 ldr r0, [pc, 0x2c]            |         
    0x00011374 str r2, [sp]                  |         *(sp) = r2;
    0x00011378 mov r3, r5                    |         r3 = r5;
    0x0001137c ldr r2, [pc, 0x24]            |         r2 = stderr;
    0x00011380 ldr r1, [pc, 0x40]            |         r1 = "_s:_error_:_cannot_get_information_about_UBI_volume___s_";
    0x00011384 ldr r0, [r0]                  |         r0 = *(0x113a0);
    0x00011388 bl 0x10a64                    |         fprintf (r0, "_s:_error_:_cannot_get_information_about_UBI_volume___s_", r2, r3)
    0x0001138c b 0x11320                     |         goto label_1;
                                             |     }
    0x00011390 ldr r2, [sp, 8]               |     r2 = var_8h;
    0x00011394 str r2, [r3]                  |     *(r3) = r2;
    0x00011398 ldr r2, [sp, 0xc]             |     r2 = var_ch;
    0x0001139c str r2, [r3, 4]               |     *((r3 + 4)) = r2;
    0x000113a0 b 0x112a0                     |     goto label_0;
                                             | }
    ; 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/usr/sbin/ubinfo @ 0x113cc */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) fcn.000113cc ()                  | void fcn_000113cc (int32_t arg2) {
                                             |     int32_t var_0h;
                                             |     int32_t var_4h;
                                             |     int32_t var_8h;
                                             |     int32_t var_ch;
                                             |     int32_t var_10h;
                                             |     int32_t var_14h;
                                             |     int32_t var_18h;
                                             |     int32_t var_1ch;
                                             |     int32_t var_20h;
                                             |     int32_t var_20h_2;
                                             |     int32_t var_28h;
                                             |     int32_t var_28h_2;
                                             |     int32_t var_30h;
                                             |     int32_t var_38h;
                                             |     int32_t var_3ch;
                                             |     int32_t var_c4h;
                                             |     r1 = arg2;
    0x000113cc push {r4, r5, r6, r7, lr}     |     
    0x000113d0 sub sp, sp, 0xc4              |     
    0x000113d4 add r3, sp, 8                 |     r3 += var_8h;
    0x000113d8 mov r7, r1                    |     r7 = r1;
    0x000113dc mov r6, r2                    |     r6 = r2;
    0x000113e0 bl 0x1385c                    |     r0 = fcn_0001385c (r0, r1);
    0x000113e4 subs r4, r0, 0                |     r4 = r0 - 0;
                                             |     if (r4 == r0) {
    0x000113e8 beq 0x11448                   |         goto label_0;
                                             |     }
    0x000113ec bl 0x10b24                    |     errno_location ();
    0x000113f0 ldr r5, [pc, 0x114]           |     
    0x000113f4 mov r3, r6                    |     r3 = r6;
    0x000113f8 ldr r2, [pc, 0x110]           |     r2 = stderr;
    0x000113fc ldr r1, [pc, 0x110]           |     r1 = "ubinfo";
    0x00011400 ldr r4, [r0]                  |     r4 = *(r0);
    0x00011404 str r7, [sp]                  |     *(sp) = r7;
    0x00011408 ldr r0, [r5]                  |     r0 = *(0x11508);
    0x0001140c bl 0x10a64                    |     fprintf (r0, "ubinfo", r2, r3, r4, r5)
    0x00011410 mov r0, r4                    |     r0 = r4;
    0x00011414 ldr r5, [r5]                  |     r5 = *(0x11508);
    0x00011418 bl 0x109d4                    |     strerror (r0);
    0x0001141c str r4, [sp]                  |     *(sp) = r4;
    0x00011420 ldr r3, [pc, 0xf0]            |     r3 = "_s:_error_:_cannot_get_information_about_UBI_volume__d_on_ubi_d";
    0x00011424 mov r2, 8                     |     r2 = 8;
    0x00011428 ldr r1, [pc, 0xec]            |     r1 = *(0x11518);
    0x0001142c mvn r4, 0                     |     r4 = ~0;
    0x00011430 str r0, [sp, 4]               |     var_4h = r0;
    0x00011434 mov r0, r5                    |     r0 = r5;
    0x00011438 bl 0x10a64                    |     fprintf (r0, r1, r2, "_s:_error_:_cannot_get_information_about_UBI_volume__d_on_ubi_d", r4)
                                             |     do {
    0x0001143c mov r0, r4                    |         r0 = r4;
    0x00011440 add sp, sp, 0xc4              |         
    0x00011444 pop {r4, r5, r6, r7, pc}      |         
                                             | label_0:
    0x00011448 ldr r2, [sp, 8]               |         r2 = var_8h;
    0x0001144c ldr r1, [sp, 0xc]             |         r1 = var_ch;
    0x00011450 ldr r0, [pc, 0xc8]            |         r0 = "_serror__d___s_";
    0x00011454 bl 0x109c8                    |         printf ("_serror__d___s_", r1, r2);
    0x00011458 ldr r1, [sp, 0x18]            |         r1 = var_18h;
    0x0001145c ldr r3, [pc, 0xc0]            |         r3 = "Volume ID:   %d (on ubi%d)\n";
    0x00011460 ldr r2, [pc, 0xc0]            |         r2 = "static";
    0x00011464 cmp r1, 3                     |         
                                             |         if (r1 != 3) {
    0x00011468 moveq r1, r2                  |             r1 = r2;
                                             |         }
                                             |         if (r1 == 3) {
    0x0001146c movne r1, r3                  |             r1 = r3;
                                             |         }
    0x00011470 ldr r0, [pc, 0xb4]            |         r0 = "dynamic";
    0x00011474 bl 0x109c8                    |         printf ("dynamic", r1, "static", "Volume ID:   %d (on ubi%d)\n");
    0x00011478 ldr r1, [sp, 0x1c]            |         r1 = var_1ch;
    0x0001147c ldr r0, [pc, 0xac]            |         r0 = "Type:        %s\n";
    0x00011480 bl 0x109c8                    |         printf ("Type:        %s\n", r1);
    0x00011484 ldr r1, [sp, 0x30]            |         r1 = var_30h;
    0x00011488 ldr r0, [pc, 0xa4]            |         r0 = "Alignment:____d";
    0x0001148c bl 0x109c8                    |         printf ("Alignment:____d", r1);
    0x00011490 ldrd r0, r1, [sp, 0x28]       |         __asm ("ldrd r0, r1, [var_28h]");
    0x00011494 mov r2, r4                    |         r2 = r4;
    0x00011498 bl 0x11a3c                    |         fcn_00011a3c (r0, r1);
    0x0001149c ldr r0, [pc, 0x94]            |         r0 = "Size:        %d LEBs (";
    0x000114a0 bl 0x10a1c                    |         puts ("Size:        %d LEBs (");
    0x000114a4 ldr r3, [sp, 0x18]            |         r3 = var_18h;
    0x000114a8 cmp r3, 4                     |         
                                             |         if (r3 == 4) {
    0x000114ac bne 0x114cc                   |             
    0x000114b0 ldr r0, [pc, 0x84]            |             r0 = *(0x11538);
    0x000114b4 bl 0x109c8                    |             printf (r0);
    0x000114b8 ldrd r0, r1, [sp, 0x20]       |             __asm ("ldrd r0, r1, [var_20h]");
    0x000114bc mov r2, 1                     |             r2 = 1;
    0x000114c0 bl 0x11a3c                    |             fcn_00011a3c (r0, r1);
    0x000114c4 mov r0, 0xa                   |             r0 = 0xa;
    0x000114c8 bl 0x109b0                    |             putchar (r0);
                                             |         }
    0x000114cc ldr r1, [sp, 0x38]            |         r1 = var_38h;
    0x000114d0 ldr r2, [pc, 0x68]            |         r2 = "Data_bytes:__";
    0x000114d4 ldr r3, [pc, 0x68]            |         r3 = "corrupted";
    0x000114d8 cmp r1, 0                     |         
                                             |         if (r1 == 0) {
    0x000114dc movne r1, r2                  |             r1 = r2;
                                             |         }
                                             |         if (r1 != 0) {
    0x000114e0 moveq r1, r3                  |             r1 = r3;
                                             |         }
    0x000114e4 ldr r0, [pc, 0x5c]            |         r0 = *(0x11544);
    0x000114e8 bl 0x109c8                    |         printf (r0, r1, "Data_bytes:__", "corrupted");
    0x000114ec add r1, sp, 0x3c              |         r1 += var_3ch;
    0x000114f0 ldr r0, [pc, 0x54]            |         r0 = "State:________s";
    0x000114f4 bl 0x109c8                    |         printf ("State:________s", r1);
    0x000114f8 ldr r2, [sp, 0x14]            |         r2 = var_14h;
    0x000114fc ldr r1, [sp, 0x10]            |         r1 = var_10h;
    0x00011500 ldr r0, [pc, 0x48]            |         r0 = "Name:        %s\n";
    0x00011504 bl 0x109c8                    |         printf ("Name:        %s\n", r1, r2);
    0x00011508 b 0x1143c                     |         
                                             |     } while (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/usr/sbin/ubinfo @ 0x11554 */
                                                             | #include <stdint.h>
                                                             |  
    ; (fcn) fcn.00011554 ()                                  | void fcn_00011554 (int32_t arg1, int32_t arg2) {
                                                             |     int32_t var_0h;
                                                             |     int32_t var_4h;
                                                             |     int32_t var_8h;
                                                             |     int32_t var_10h;
                                                             |     int32_t var_14h;
                                                             |     int32_t var_18h;
                                                             |     int32_t var_1ch;
                                                             |     int32_t var_20h;
                                                             |     int32_t var_24h;
                                                             |     int32_t var_28h;
                                                             |     int32_t var_30h;
                                                             |     int32_t var_30h_2;
                                                             |     int32_t var_38h;
                                                             |     int32_t var_38h_2;
                                                             |     int32_t var_40h;
                                                             |     int32_t var_44h;
                                                             |     int32_t var_48h;
                                                             |     int32_t var_48h_2;
                                                             |     int32_t var_50h;
                                                             |     int32_t var_54h;
                                                             |     int32_t var_58h;
                                                             |     int32_t var_60h;
                                                             |     int32_t var_11ch;
                                                             |     r0 = arg1;
                                                             |     r1 = arg2;
    0x00011554 push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x00011558 sub sp, sp, 0x11c                             |     
    0x0001155c mov sb, r2                                    |     sb = r2;
    0x00011560 add r2, sp, 8                                 |     r2 += var_8h;
    0x00011564 mov r6, r0                                    |     r6 = r0;
    0x00011568 mov r7, r1                                    |     r7 = r1;
    0x0001156c bl 0x13334                                    |     r0 = fcn_00013334 (r0, r1);
    0x00011570 subs r4, r0, 0                                |     r4 = r0 - 0;
                                                             |     if (r4 == r0) {
    0x00011574 beq 0x115d0                                   |         goto label_5;
                                                             |     }
    0x00011578 bl 0x10b24                                    |     errno_location ();
    0x0001157c ldr r5, [pc, 0x2d4]                           |     
    0x00011580 mov r3, r7                                    |     r3 = r7;
    0x00011584 ldr r2, [pc, 0x2d0]                           |     r2 = stderr;
    0x00011588 ldr r1, [pc, 0x2d0]                           |     r1 = "ubinfo";
    0x0001158c ldr r4, [r0]                                  |     r4 = *(r0);
    0x00011590 ldr r0, [r5]                                  |     r0 = *(0x11854);
    0x00011594 bl 0x10a64                                    |     fprintf (r0, "ubinfo", r2, r3, r4, r5)
    0x00011598 mov r0, r4                                    |     r0 = r4;
    0x0001159c ldr r5, [r5]                                  |     r5 = *(0x11854);
    0x000115a0 bl 0x109d4                                    |     strerror (r0);
    0x000115a4 ldr r3, [pc, 0x2b8]                           |     r3 = "_s:_error_:_cannot_get_information_about_UBI_device__d";
    0x000115a8 ldr r1, [pc, 0x2b8]                           |     r1 = *(0x11864);
    0x000115ac mov r2, 8                                     |     r2 = 8;
    0x000115b0 str r4, [sp]                                  |     *(sp) = r4;
    0x000115b4 str r0, [sp, 4]                               |     var_4h = r0;
    0x000115b8 mov r0, r5                                    |     r0 = r5;
                                                             | label_1:
    0x000115bc bl 0x10a64                                    |     fprintf (r0, r1, r2, "_s:_error_:_cannot_get_information_about_UBI_device__d", r4)
    0x000115c0 mvn r4, 0                                     |     r4 = ~0;
                                                             |     do {
                                                             | label_2:
    0x000115c4 mov r0, r4                                    |         r0 = r4;
    0x000115c8 add sp, sp, 0x11c                             |         
    0x000115cc pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |         
                                                             | label_5:
    0x000115d0 ldr r1, [sp, 8]                               |         r1 = var_8h;
    0x000115d4 ldr r0, [pc, 0x290]                           |         r0 = "_serror__d___s_";
    0x000115d8 bl 0x109c8                                    |         printf ("_serror__d___s_", r1);
    0x000115dc ldr r1, [sp, 0x10]                            |         r1 = var_10h;
    0x000115e0 ldr r0, [pc, 0x288]                           |         r0 = "ubi_d";
    0x000115e4 bl 0x109c8                                    |         printf ("ubi_d", r1);
    0x000115e8 ldr r0, [pc, 0x284]                           |         r0 = "Volumes_count:____________________________d";
    0x000115ec bl 0x109c8                                    |         printf ("Volumes_count:____________________________d");
    0x000115f0 ldr r0, [sp, 0x44]                            |         r0 = var_44h;
    0x000115f4 mov r2, r4                                    |         r2 = r4;
    0x000115f8 asr r1, r0, 0x1f                              |         r1 = r0 >> 0x1f;
    0x000115fc bl 0x11a3c                                    |         fcn_00011a3c (r0, r1);
    0x00011600 mov r0, 0xa                                   |         r0 = 0xa;
    0x00011604 bl 0x109b0                                    |         putchar (r0);
    0x00011608 ldr r1, [sp, 0x24]                            |         r1 = var_24h;
    0x0001160c ldr r0, [pc, 0x264]                           |         r0 = "Logical eraseblock size:                 ";
    0x00011610 bl 0x109c8                                    |         printf ("Logical eraseblock size:                 ", r1);
    0x00011614 mov r2, r4                                    |         r2 = r4;
    0x00011618 ldrd r0, r1, [sp, 0x30]                       |         __asm ("ldrd r0, r1, [var_30h]");
    0x0001161c bl 0x11a3c                                    |         fcn_00011a3c (r0, r1);
    0x00011620 ldr r0, [pc, 0x254]                           |         r0 = "Total amount of logical eraseblocks:     %d (";
    0x00011624 bl 0x10a1c                                    |         puts ("Total amount of logical eraseblocks:     %d (");
    0x00011628 ldr r1, [sp, 0x28]                            |         r1 = var_28h;
    0x0001162c ldr r0, [pc, 0x24c]                           |         r0 = *(0x1187c);
    0x00011630 bl 0x109c8                                    |         printf (r0, r1);
    0x00011634 mov r2, r4                                    |         r2 = r4;
    0x00011638 ldrd r0, r1, [sp, 0x38]                       |         __asm ("ldrd r0, r1, [var_38h]");
    0x0001163c bl 0x11a3c                                    |         fcn_00011a3c (r0, r1);
    0x00011640 ldr r0, [pc, 0x234]                           |         r0 = "Total amount of logical eraseblocks:     %d (";
    0x00011644 bl 0x10a1c                                    |         puts ("Total amount of logical eraseblocks:     %d (");
    0x00011648 ldr r1, [sp, 0x54]                            |         r1 = var_54h;
    0x0001164c ldr r0, [pc, 0x230]                           |         r0 = "Amount of available logical eraseblocks: %d (";
    0x00011650 bl 0x109c8                                    |         printf ("Amount of available logical eraseblocks: %d (", r1);
    0x00011654 ldr r1, [sp, 0x40]                            |         r1 = var_40h;
    0x00011658 ldr r0, [pc, 0x228]                           |         r0 = "Maximum count of volumes                 %d\n";
    0x0001165c bl 0x109c8                                    |         printf ("Maximum count of volumes                 %d\n", r1);
    0x00011660 ldr r1, [sp, 0x50]                            |         r1 = var_50h;
    0x00011664 ldr r0, [pc, 0x220]                           |         r0 = "Count_of_bad_physical_eraseblocks:________d";
    0x00011668 bl 0x109c8                                    |         printf ("Count_of_bad_physical_eraseblocks:________d", r1);
    0x0001166c ldrd r2, r3, [sp, 0x48]                       |         __asm ("ldrd r2, r3, [var_48h]");
    0x00011670 ldr r0, [pc, 0x218]                           |         r0 = "Count of reserved physical eraseblocks:  %d\n";
    0x00011674 bl 0x109c8                                    |         printf ("Count of reserved physical eraseblocks:  %d\n", r1, r2);
    0x00011678 ldr r1, [sp, 0x58]                            |         r1 = var_58h;
    0x0001167c ldr r3, [pc, 0x210]                           |         r3 = "Current_maximum_erase_counter_value:______lld";
    0x00011680 cmp r1, 1                                     |         
    0x00011684 ldr r2, [pc, 0x20c]                           |         r2 = "byte";
    0x00011688 ldr r0, [pc, 0x20c]                           |         r0 = *(0x11898);
                                                             |         if (r1 > 1) {
    0x0001168c movle r2, r3                                  |             r2 = r3;
                                                             |         }
    0x00011690 bl 0x109c8                                    |         printf (r0, r1, "byte", "Current_maximum_erase_counter_value:______lld");
    0x00011694 ldr r2, [sp, 0x20]                            |         r2 = var_20h;
    0x00011698 ldr r1, [sp, 0x1c]                            |         r1 = var_1ch;
    0x0001169c ldr r0, [pc, 0x1fc]                           |         r0 = "Minimum input/output unit size:          %d %s\n";
    0x000116a0 bl 0x109c8                                    |         printf ("Minimum input/output unit size:          %d %s\n", r1, r2);
    0x000116a4 ldr r3, [sp, 0x10]                            |         r3 = var_10h;
    0x000116a8 cmp r3, 0                                     |         
                                                             |         if (r3 != 0) {
    0x000116ac bne 0x116b8                                   |             goto label_6;
                                                             |         }
                                                             | label_0:
    0x000116b0 mov r4, 0                                     |         r4 = 0;
    0x000116b4 b 0x115c4                                     |         
                                                             |     } while (1);
                                                             | label_6:
    0x000116b8 ldr r0, [pc, 0x1e4]                           |     r0 = "Character device major/minor:            %d:%d\n";
    0x000116bc bl 0x109c8                                    |     printf ("Character device major/minor:            %d:%d\n");
    0x000116c0 ldr sl, [pc, 0x1e0]                           |     sl = "_d";
    0x000116c4 ldr r5, [sp, 0x14]                            |     r5 = var_14h;
    0x000116c8 ldr fp, [pc, 0x1dc]                           |     fp = "___d";
    0x000116cc mov r8, 1                                     |     r8 = 1;
                                                             | label_3:
    0x000116d0 ldr r3, [sp, 0x18]                            |     r3 = var_18h;
    0x000116d4 cmp r3, r5                                    |     
                                                             |     if (r3 >= r5) {
    0x000116d8 bge 0x11790                                   |         goto label_7;
                                                             |     }
    0x000116dc mov r0, 0xa                                   |     r0 = 0xa;
    0x000116e0 bl 0x109b0                                    |     putchar (r0);
    0x000116e4 cmp sb, 0                                     |     
                                                             |     if (sb == 0) {
    0x000116e8 beq 0x116b0                                   |         goto label_0;
                                                             |     }
    0x000116ec mov r0, 0xa                                   |     r0 = 0xa;
    0x000116f0 bl 0x109b0                                    |     putchar (r0);
    0x000116f4 ldr sb, [pc, 0x1b4]                           |     sb = "-----------------------------------";
    0x000116f8 ldr r5, [sp, 0x14]                            |     r5 = var_14h;
    0x000116fc mov r4, 1                                     |     r4 = 1;
                                                             | label_4:
    0x00011700 ldr r3, [sp, 0x18]                            |     r3 = var_18h;
    0x00011704 cmp r3, r5                                    |     
                                                             |     if (r3 < r5) {
    0x00011708 blt 0x116b0                                   |         goto label_0;
                                                             |     }
    0x0001170c cmp r4, 0                                     |     
                                                             |     if (r4 == 0) {
    0x00011710 bne 0x1171c                                   |         
    0x00011714 mov r0, sb                                    |         r0 = sb;
    0x00011718 bl 0x10a1c                                    |         puts (r0);
                                                             |     }
    0x0001171c add r3, sp, 0x60                              |     r3 += var_60h;
    0x00011720 mov r2, r5                                    |     r2 = r5;
    0x00011724 ldr r1, [sp, 8]                               |     r1 = var_8h;
    0x00011728 mov r0, r6                                    |     r0 = r6;
    0x0001172c bl 0x1385c                                    |     r0 = fcn_0001385c (r0, r1);
    0x00011730 cmn r0, 1                                     |     
                                                             |     if (r0 != 1) {
    0x00011734 bne 0x11838                                   |         goto label_8;
                                                             |     }
    0x00011738 bl 0x10b24                                    |     r0 = errno_location ();
    0x0001173c ldr r7, [r0]                                  |     r7 = *(r0);
    0x00011740 cmp r7, 2                                     |     
                                                             |     if (r7 == 2) {
    0x00011744 beq 0x11850                                   |         goto label_9;
                                                             |     }
    0x00011748 ldr r3, [sp, 8]                               |     r3 = var_8h;
    0x0001174c ldr r4, [pc, 0x104]                           |     
    0x00011750 str r3, [sp]                                  |     *(sp) = r3;
    0x00011754 ldr r2, [pc, 0x100]                           |     r2 = stderr;
    0x00011758 mov r3, r5                                    |     r3 = r5;
    0x0001175c ldr r1, [pc, 0x150]                           |     r1 = "-----------------------------------";
    0x00011760 ldr r0, [r4]                                  |     r0 = *(0x11854);
    0x00011764 bl 0x10a64                                    |     fprintf (r0, "-----------------------------------", r2, r3, r4)
    0x00011768 mov r0, r7                                    |     r0 = r7;
    0x0001176c ldr r4, [r4]                                  |     r4 = *(0x11854);
    0x00011770 bl 0x109d4                                    |     strerror (r0);
    0x00011774 str r7, [sp]                                  |     *(sp) = r7;
    0x00011778 ldr r3, [pc, 0xe4]                            |     r3 = "_s:_error_:_cannot_get_information_about_UBI_device__d";
    0x0001177c mov r2, 8                                     |     r2 = 8;
    0x00011780 ldr r1, [pc, 0xe0]                            |     r1 = *(0x11864);
    0x00011784 str r0, [sp, 4]                               |     var_4h = r0;
    0x00011788 mov r0, r4                                    |     r0 = r4;
    0x0001178c b 0x115bc                                     |     goto label_1;
                                                             | label_7:
    0x00011790 add r3, sp, 0x60                              |     r3 += var_60h;
    0x00011794 mov r2, r5                                    |     r2 = r5;
    0x00011798 ldr r1, [sp, 8]                               |     r1 = var_8h;
    0x0001179c mov r0, r6                                    |     r0 = r6;
    0x000117a0 bl 0x1385c                                    |     r0 = fcn_0001385c (r0, r1);
    0x000117a4 cmn r0, 1                                     |     
    0x000117a8 mov r4, r0                                    |     r4 = r0;
                                                             |     if (r0 == 1) {
    0x000117ac bne 0x1180c                                   |         
    0x000117b0 bl 0x10b24                                    |         r0 = errno_location ();
    0x000117b4 ldr r7, [r0]                                  |         r7 = *(r0);
    0x000117b8 cmp r7, 2                                     |         
                                                             |         if (r7 == 2) {
    0x000117bc beq 0x11820                                   |             goto label_10;
                                                             |         }
    0x000117c0 ldr r3, [sp, 8]                               |         r3 = var_8h;
    0x000117c4 ldr r6, [pc, 0x8c]                            |         r6 = *(0x11854);
    0x000117c8 str r3, [sp]                                  |         *(sp) = r3;
    0x000117cc ldr r2, [pc, 0x88]                            |         r2 = stderr;
    0x000117d0 mov r3, r5                                    |         r3 = r5;
    0x000117d4 ldr r1, [pc, 0xd8]                            |         r1 = "-----------------------------------";
    0x000117d8 ldr r0, [r6]                                  |         r0 = *(0x11854);
    0x000117dc bl 0x10a64                                    |         fprintf (r0, "-----------------------------------", r2, r3, r4, r5, r6)
    0x000117e0 mov r0, r7                                    |         r0 = r7;
    0x000117e4 ldr r5, [r6]                                  |         r5 = *(0x11854);
    0x000117e8 bl 0x109d4                                    |         strerror (r0);
    0x000117ec str r7, [sp]                                  |         *(sp) = r7;
    0x000117f0 ldr r3, [pc, 0x6c]                            |         r3 = "_s:_error_:_cannot_get_information_about_UBI_device__d";
    0x000117f4 mov r2, 8                                     |         r2 = 8;
    0x000117f8 ldr r1, [pc, 0x68]                            |         r1 = *(0x11864);
    0x000117fc str r0, [sp, 4]                               |         var_4h = r0;
    0x00011800 mov r0, r5                                    |         r0 = r5;
    0x00011804 bl 0x10a64                                    |         fprintf (r0, r1, r2, "_s:_error_:_cannot_get_information_about_UBI_device__d")
    0x00011808 b 0x115c4                                     |         goto label_2;
                                                             |     }
    0x0001180c cmp r8, 0                                     |     
    0x00011810 mov r1, r5                                    |     r1 = r5;
                                                             |     if (r8 != 0) {
    0x00011814 bne 0x11828                                   |         goto label_11;
                                                             |     }
    0x00011818 mov r0, fp                                    |     r0 = fp;
    0x0001181c bl 0x109c8                                    |     printf (r0);
                                                             |     do {
                                                             | label_10:
    0x00011820 add r5, r5, 1                                 |         r5++;
    0x00011824 b 0x116d0                                     |         goto label_3;
                                                             | label_11:
    0x00011828 mov r0, sl                                    |         r0 = sl;
    0x0001182c bl 0x109c8                                    |         printf (r0);
    0x00011830 mov r8, 0                                     |         r8 = 0;
    0x00011834 b 0x11820                                     |         
                                                             |     } while (1);
                                                             | label_8:
    0x00011838 mov r2, r5                                    |     r2 = r5;
    0x0001183c ldr r1, [sp, 8]                               |     r1 = var_8h;
    0x00011840 mov r0, r6                                    |     r0 = r6;
    0x00011844 bl 0x113cc                                    |     r0 = fcn_000113cc (r0);
    0x00011848 subs r4, r0, 0                                |     r4 = r0 - 0;
                                                             |     if (r4 != r0) {
    0x0001184c bne 0x115c4                                   |         goto label_2;
                                                             |     }
                                                             | label_9:
    0x00011850 add r5, r5, 1                                 |     r5++;
    0x00011854 b 0x11700                                     |     goto label_4;
                                                             | }
    ; 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/usr/sbin/ubinfo @ 0x118b8 */
                                                         | #include <stdint.h>
                                                         |  
    ; (fcn) fcn.000118b8 ()                              | void fcn_000118b8 (int32_t arg1, int32_t arg2) {
                                                         |     int32_t var_0h;
                                                         |     char * * endptr;
                                                         |     int32_t var_10h;
                                                         |     r0 = arg1;
                                                         |     r1 = arg2;
    0x000118b8 push {r0, r1, r2, r3, r4, r5, r6, lr}     |     
    0x000118bc mov r6, r1                                |     r6 = r1;
    0x000118c0 mov r2, 0                                 |     r2 = 0;
    0x000118c4 add r1, sp, 0xc                           |     r1 += endptr;
    0x000118c8 mov r4, r0                                |     r4 = r0;
    0x000118cc bl 0x10a34                                |     strtoul (r0, r1, r2);
    0x000118d0 ldrb r3, [r4]                             |     r3 = *(r4);
    0x000118d4 cmp r3, 0                                 |     
    0x000118d8 mov r5, r0                                |     r5 = r0;
                                                         |     if (r3 != 0) {
    0x000118dc beq 0x118f0                               |         
    0x000118e0 ldr r3, [sp, 0xc]                         |         r3 = endptr;
    0x000118e4 ldrb r3, [r3]                             |         r3 = *(r3);
    0x000118e8 cmp r3, 0                                 |         
                                                         |         if (r3 == 0) {
    0x000118ec beq 0x11914                               |             goto label_0;
                                                         |         }
                                                         |     }
    0x000118f0 ldr r0, [pc, 0x28]                        |     
    0x000118f4 str r4, [sp]                              |     *(sp) = r4;
    0x000118f8 ldr r3, [pc, 0x24]                        |     r3 = stderr;
    0x000118fc ldr r2, [pc, 0x24]                        |     r2 = "strtoul";
    0x00011900 ldr r1, [pc, 0x24]                        |     r1 = "ubinfo";
    0x00011904 ldr r0, [r0]                              |     r0 = *(0x1191c);
    0x00011908 bl 0x10a64                                |     fprintf (r0, "ubinfo", "strtoul", r3, r4)
    0x0001190c mov r3, 1                                 |     r3 = 1;
    0x00011910 str r3, [r6]                              |     *(r6) = r3;
                                                         | label_0:
    0x00011914 mov r0, r5                                |     r0 = r5;
    0x00011918 add sp, sp, 0x10                          |     
    0x0001191c pop {r4, r5, r6, pc}                      |     
                                                         | }
    ; 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/usr/sbin/ubinfo @ 0x11bf4 */
                                                 | #include <stdint.h>
                                                 |  
    ; (fcn) fcn.00011bf4 ()                      | void fcn_00011bf4 (int32_t arg1, int32_t arg2) {
                                                 |     int32_t var_0h;
                                                 |     int32_t var_4h;
                                                 |     int32_t var_8h;
                                                 |     char * buf;
                                                 |     char * s;
                                                 |     int32_t var_4ch;
                                                 |     r0 = arg1;
                                                 |     r1 = arg2;
    0x00011bf4 push {r4, r5, r6, r7, lr}         |     
    0x00011bf8 mov r6, r1                        |     r6 = r1;
    0x00011bfc sub sp, sp, 0x4c                  |     
    0x00011c00 mov r1, 0                         |     r1 = 0;
    0x00011c04 mov r5, r0                        |     r5 = r0;
    0x00011c08 bl 0x10af4                        |     r0 = open64 ();
    0x00011c0c cmn r0, 1                         |     
    0x00011c10 mov r4, r0                        |     r4 = r0;
                                                 |     if (r0 == 1) {
    0x00011c14 beq 0x11d70                       |         goto label_2;
                                                 |     }
    0x00011c18 mov r2, 0x32                      |     r2 = 0x32;
    0x00011c1c add r1, sp, 0x14                  |     r1 += buf;
    0x00011c20 bl 0x10a7c                        |     r0 = read (r0, r1, r2);
    0x00011c24 cmn r0, 1                         |     
                                                 |     if (r0 != 1) {
    0x00011c28 bne 0x11c80                       |         goto label_3;
                                                 |     }
    0x00011c2c bl 0x10b24                        |     errno_location ();
    0x00011c30 ldr r7, [pc, 0x144]               |     r7 = *(0x11d78);
    0x00011c34 mov r3, r5                        |     r3 = r5;
    0x00011c38 ldr r2, [pc, 0x140]               |     r2 = stderr;
    0x00011c3c ldr r1, [pc, 0x140]               |     r1 = "libubi";
    0x00011c40 ldr r6, [r0]                      |     r6 = *(r0);
    0x00011c44 ldr r0, [r7]                      |     r0 = *(0x11d78);
    0x00011c48 bl 0x10a64                        |     fprintf (r0, "libubi", r2, r3, r4, r5, r6)
    0x00011c4c mov r0, r6                        |     r0 = r6;
    0x00011c50 ldr r5, [r7]                      |     r5 = *(0x11d78);
    0x00011c54 bl 0x109d4                        |     strerror (r0);
    0x00011c58 str r6, [sp]                      |     *(sp) = r6;
    0x00011c5c ldr r3, [pc, 0x124]               |     r3 = "_s:_error_:_cannot_read___s_";
    0x00011c60 mov r2, 8                         |     r2 = 8;
    0x00011c64 ldr r1, [pc, 0x120]               |     r1 = *(0x11d88);
    0x00011c68 str r0, [sp, 4]                   |     var_4h = r0;
    0x00011c6c mov r0, r5                        |     r0 = r5;
    0x00011c70 bl 0x10a64                        |     fprintf (r0, r1, r2, "_s:_error_:_cannot_read___s_", r4, r5, r6)
                                                 |     do {
    0x00011c74 mov r0, r4                        |         r0 = r4;
    0x00011c78 bl 0x10b6c                        |         close (r0);
    0x00011c7c b 0x11d6c                         |         goto label_4;
                                                 | label_3:
    0x00011c80 cmp r0, 0x32                      |         
                                                 |         if (r0 != 0x32) {
    0x00011c84 bne 0x11cb0                       |             goto label_5;
                                                 |         }
    0x00011c88 ldr r2, [pc, 0xf0]                |         r2 = stderr;
    0x00011c8c ldr r1, [pc, 0xfc]                |         r1 = "_serror__d___s_";
    0x00011c90 mov r3, r5                        |         r3 = r5;
                                                 | label_0:
    0x00011c94 ldr r0, [pc, 0xe0]                |         
    0x00011c98 ldr r0, [r0]                      |         r0 = *(0x11d78);
    0x00011c9c bl 0x10a64                        |         r0 = fprintf (r0, "_serror__d___s_", r2, r3)
                                                 | label_1:
    0x00011ca0 bl 0x10b24                        |         errno_location ();
    0x00011ca4 mov r3, 0x16                      |         r3 = 0x16;
    0x00011ca8 str r3, [r0]                      |         *(r0) = r3;
    0x00011cac b 0x11c74                         |         
                                                 |     } while (1);
                                                 | label_5:
    0x00011cb0 add r3, sp, 0x48                  |     r3 += s;
    0x00011cb4 add r0, r3, r0                    |     r0 = r3 + r0;
    0x00011cb8 mov r3, 0                         |     r3 = 0;
    0x00011cbc strb r3, [r0, -0x34]              |     buf = r3;
    0x00011cc0 mov r2, r6                        |     r2 = r6;
    0x00011cc4 ldr r1, [pc, 0xc8]                |     r1 = "_s:_error_:_contents_of___s__is_too_long";
    0x00011cc8 add r0, sp, 0x14                  |     r0 += buf;
    0x00011ccc bl 0x10aac                        |     r0 = sscanf (r0, "_s:_error_:_contents_of___s__is_too_long", r2);
    0x00011cd0 cmp r0, 1                         |     
                                                 |     if (r0 == 1) {
    0x00011cd4 movne r3, r5                      |         r3 = r5;
                                                 |     }
                                                 |     if (r0 == 1) {
    0x00011cd8 ldrne r2, [pc, 0xa0]              |         r2 = "libubi";
                                                 |     }
                                                 |     if (r0 != 1) {
    0x00011cdc ldrne r1, [pc, 0xb4]              |         r1 = "_s:_error_:_cannot_read_integer_from___s_";
                                                 |         goto label_6;
                                                 |     }
                                                 |     if (r0 != 1) {
                                                 | label_6:
    0x00011ce0 bne 0x11c94                       |         goto label_0;
                                                 |     }
    0x00011ce4 ldrd r2, r3, [r6]                 |     __asm ("ldrd r2, r3, [r6]");
    0x00011ce8 cmp r2, 0                         |     
    0x00011cec sbcs r1, r3, 0                    |     __asm ("sbcs r1, r3, 0");
                                                 |     if (r2 < 0) {
    0x00011cf0 bge 0x11d14                       |         
    0x00011cf4 strd r2, r3, [sp]                 |         __asm ("strd r2, r3, [sp]");
    0x00011cf8 ldr r3, [pc, 0x7c]                |         r3 = *(0x11d78);
    0x00011cfc str r5, [sp, 8]                   |         var_8h = r5;
    0x00011d00 ldr r2, [pc, 0x78]                |         r2 = stderr;
    0x00011d04 ldr r1, [pc, 0x90]                |         r1 = "_s:_error_:_cannot_read_integer_from___s_";
    0x00011d08 ldr r0, [r3]                      |         r0 = *(0x11d78);
    0x00011d0c bl 0x10a64                        |         fprintf (r0, "_s:_error_:_cannot_read_integer_from___s_", r2, r3, r4, r5)
    0x00011d10 b 0x11ca0                         |         goto label_1;
                                                 |     }
    0x00011d14 mov r0, r4                        |     r0 = r4;
    0x00011d18 bl 0x10b6c                        |     r0 = close (r0);
    0x00011d1c subs r4, r0, 0                    |     r4 = r0 - 0;
                                                 |     if (r4 != r0) {
    0x00011d20 beq 0x11d70                       |         
    0x00011d24 bl 0x10b24                        |         errno_location ();
    0x00011d28 ldr r6, [pc, 0x4c]                |         r6 = *(0x11d78);
    0x00011d2c mov r3, r5                        |         r3 = r5;
    0x00011d30 ldr r2, [pc, 0x48]                |         r2 = stderr;
    0x00011d34 ldr r1, [pc, 0x64]                |         r1 = "_s:_error_:_negative_value__lld_in___s_";
    0x00011d38 ldr r4, [r0]                      |         r4 = *(r0);
    0x00011d3c ldr r0, [r6]                      |         r0 = *(0x11d78);
    0x00011d40 bl 0x10a64                        |         fprintf (r0, "_s:_error_:_negative_value__lld_in___s_", r2, r3, r4, r5, r6)
    0x00011d44 mov r0, r4                        |         r0 = r4;
    0x00011d48 ldr r5, [r6]                      |         r5 = *(0x11d78);
    0x00011d4c bl 0x109d4                        |         strerror (r0);
    0x00011d50 str r4, [sp]                      |         *(sp) = r4;
    0x00011d54 ldr r3, [pc, 0x2c]                |         r3 = "_s:_error_:_cannot_read___s_";
    0x00011d58 mov r2, 8                         |         r2 = 8;
    0x00011d5c ldr r1, [pc, 0x28]                |         r1 = *(0x11d88);
    0x00011d60 str r0, [sp, 4]                   |         var_4h = r0;
    0x00011d64 mov r0, r5                        |         r0 = r5;
    0x00011d68 bl 0x10a64                        |         fprintf (r0, r1, r2, "_s:_error_:_cannot_read___s_", r4)
                                                 | label_4:
    0x00011d6c mvn r4, 0                         |         r4 = ~0;
                                                 |     }
                                                 | label_2:
    0x00011d70 mov r0, r4                        |     r0 = r4;
    0x00011d74 add sp, sp, 0x4c                  |     
    0x00011d78 pop {r4, r5, r6, r7, pc}          |     
                                                 | }
    ; 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/usr/sbin/ubinfo @ 0x11da4 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) fcn.00011da4 ()                  | void fcn_00011da4 (int32_t arg1, int32_t arg2) {
                                             |     int32_t var_0h;
                                             |     int32_t var_0h_2;
                                             |     int32_t var_8h;
                                             |     int32_t var_10h;
                                             |     int32_t var_10h_2;
                                             |     int32_t var_1ch;
                                             |     r0 = arg1;
                                             |     r1 = arg2;
    0x00011da4 push {r4, r5, lr}             |     
    0x00011da8 sub sp, sp, 0x1c              |     
    0x00011dac mov r4, r1                    |     r4 = r1;
    0x00011db0 add r1, sp, 0x10              |     r1 += var_10h;
    0x00011db4 mov r5, r0                    |     r5 = r0;
    0x00011db8 bl 0x11bf4                    |     r0 = fcn_00011bf4 (r0, r1);
    0x00011dbc cmp r0, 0                     |     
                                             |     if (r0 == 0) {
    0x00011dc0 bne 0x11e00                   |         
    0x00011dc4 ldrd r2, r3, [sp, 0x10]       |         __asm ("ldrd r2, r3, [var_10h]");
    0x00011dc8 cmp r2, 0x80000000            |         
    0x00011dcc sbcs r1, r3, 0                |         __asm ("sbcs r1, r3, 0");
                                             |         if (r2 >= 0x80000000) {
    0x00011dd0 strlt r2, [r4]                |             *(r4) = r2;
                                             |         }
                                             |         if (r2 < 0x80000000) {
    0x00011dd4 blt 0x11e04                   |             goto label_0;
                                             |         }
    0x00011dd8 strd r2, r3, [sp]             |         __asm ("strd r2, r3, [sp]");
    0x00011ddc ldr r3, [pc, 0x28]            |         r3 = *(0x11e08);
    0x00011de0 str r5, [sp, 8]               |         var_8h = r5;
    0x00011de4 ldr r2, [pc, 0x24]            |         r2 = stderr;
    0x00011de8 ldr r0, [r3]                  |         r0 = *(0x11e08);
    0x00011dec ldr r1, [pc, 0x20]            |         r1 = "libubi";
    0x00011df0 bl 0x10a64                    |         r0 = fprintf (r0, "libubi", r2, r3, r4, r5)
    0x00011df4 bl 0x10b24                    |         errno_location ();
    0x00011df8 mov r3, 0x16                  |         r3 = 0x16;
    0x00011dfc str r3, [r0]                  |         *(r0) = r3;
                                             |     }
    0x00011e00 mvn r0, 0                     |     r0 = ~0;
                                             | label_0:
    0x00011e04 add sp, sp, 0x1c              |     
    0x00011e08 pop {r4, r5, pc}              |     
                                             | }
    ; 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/usr/sbin/ubinfo @ 0x11eb0 */
                                                                 | #include <stdint.h>
                                                                 |  
    ; (fcn) fcn.00011eb0 ()                                      | void fcn_00011eb0 (int32_t arg1, int32_t arg2) {
                                                                 |     int32_t var_0h;
                                                                 |     int32_t var_4h;
                                                                 |     void * buf;
                                                                 |     int32_t var_10h;
                                                                 |     r0 = arg1;
                                                                 |     r1 = arg2;
    0x00011eb0 push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr}     |     
    0x00011eb4 mov r8, r1                                        |     r8 = r1;
    0x00011eb8 mov r1, 0                                         |     r1 = 0;
    0x00011ebc mov r5, r0                                        |     r5 = r0;
    0x00011ec0 mov r7, r2                                        |     r7 = r2;
    0x00011ec4 bl 0x10af4                                        |     r0 = open64 ();
    0x00011ec8 cmn r0, 1                                         |     
    0x00011ecc mov r4, r0                                        |     r4 = r0;
                                                                 |     if (r0 == 1) {
    0x00011ed0 beq 0x12018                                       |         goto label_2;
                                                                 |     }
    0x00011ed4 mov r2, r7                                        |     r2 = r7;
    0x00011ed8 mov r1, r8                                        |     r1 = r8;
    0x00011edc bl 0x10a7c                                        |     r0 = read (r0, r1, r2);
    0x00011ee0 cmn r0, 1                                         |     
    0x00011ee4 mov r6, r0                                        |     r6 = r0;
                                                                 |     if (r0 != 1) {
    0x00011ee8 bne 0x11f40                                       |         goto label_3;
                                                                 |     }
                                                                 | label_0:
    0x00011eec bl 0x10b24                                        |     errno_location ();
    0x00011ef0 ldr r7, [pc, 0x12c]                               |     r7 = *(0x12020);
    0x00011ef4 mov r3, r5                                        |     r3 = r5;
    0x00011ef8 ldr r2, [pc, 0x128]                               |     r2 = stderr;
    0x00011efc ldr r1, [pc, 0x128]                               |     r1 = "libubi";
    0x00011f00 ldr r6, [r0]                                      |     r6 = *(r0);
    0x00011f04 ldr r0, [r7]                                      |     r0 = *(0x12020);
    0x00011f08 bl 0x10a64                                        |     fprintf (r0, "libubi", r2, r3, r4, r5, r6)
    0x00011f0c mov r0, r6                                        |     r0 = r6;
    0x00011f10 ldr r5, [r7]                                      |     r5 = *(0x12020);
    0x00011f14 bl 0x109d4                                        |     strerror (r0);
    0x00011f18 str r6, [sp]                                      |     *(sp) = r6;
    0x00011f1c ldr r3, [pc, 0x10c]                               |     r3 = "_s:_error_:_cannot_read___s_";
    0x00011f20 mov r2, 8                                         |     r2 = 8;
    0x00011f24 ldr r1, [pc, 0x108]                               |     r1 = *(0x12030);
    0x00011f28 str r0, [sp, 4]                                   |     var_4h = r0;
    0x00011f2c mov r0, r5                                        |     r0 = r5;
    0x00011f30 bl 0x10a64                                        |     fprintf (r0, r1, r2, "_s:_error_:_cannot_read___s_", r4, r5, r6)
                                                                 |     do {
    0x00011f34 mov r0, r4                                        |         r0 = r4;
    0x00011f38 bl 0x10b6c                                        |         close (r0);
    0x00011f3c b 0x12014                                         |         goto label_4;
                                                                 | label_3:
    0x00011f40 cmp r7, r0                                        |         
                                                                 |         if (r7 != r0) {
    0x00011f44 bne 0x11f70                                       |             goto label_5;
                                                                 |         }
    0x00011f48 ldr r0, [pc, 0xd4]                                |         
    0x00011f4c mov r3, r5                                        |         r3 = r5;
    0x00011f50 ldr r2, [pc, 0xd0]                                |         r2 = stderr;
    0x00011f54 ldr r1, [pc, 0xdc]                                |         r1 = "_serror__d___s_";
    0x00011f58 ldr r0, [r0]                                      |         r0 = *(0x12020);
    0x00011f5c bl 0x10a64                                        |         r0 = fprintf (r0, "_serror__d___s_", r2, r3)
                                                                 | label_1:
    0x00011f60 bl 0x10b24                                        |         errno_location ();
    0x00011f64 mov r3, 0x16                                      |         r3 = 0x16;
    0x00011f68 str r3, [r0]                                      |         *(r0) = r3;
    0x00011f6c b 0x11f34                                         |         
                                                                 |     } while (1);
                                                                 | label_5:
    0x00011f70 mov r3, 0                                         |     r3 = 0;
    0x00011f74 strb r3, [r8, r0]                                 |     *((r8 + r0)) = r3;
    0x00011f78 mov r2, 1                                         |     r2 = 1;
    0x00011f7c add r1, sp, 0xc                                   |     r1 += buf;
    0x00011f80 mov r0, r4                                        |     r0 = r4;
    0x00011f84 bl 0x10a7c                                        |     r0 = read (r0, r1, r2);
    0x00011f88 cmp r0, 1                                         |     
                                                                 |     if (r0 == 1) {
    0x00011f8c beq 0x11eec                                       |         goto label_0;
                                                                 |     }
    0x00011f90 cmp r0, 0                                         |     
                                                                 |     if (r0 != 0) {
    0x00011f94 beq 0x11fb8                                       |         
    0x00011f98 ldr r0, [pc, 0x84]                                |         
    0x00011f9c str r7, [sp]                                      |         *(sp) = r7;
    0x00011fa0 mov r3, r5                                        |         r3 = r5;
    0x00011fa4 ldr r2, [pc, 0x7c]                                |         r2 = stderr;
    0x00011fa8 ldr r1, [pc, 0x8c]                                |         r1 = "_s:_error_:_contents_of___s__is_too_long";
    0x00011fac ldr r0, [r0]                                      |         r0 = *(0x12020);
    0x00011fb0 bl 0x10a64                                        |         fprintf (r0, "_s:_error_:_contents_of___s__is_too_long", r2, r3)
    0x00011fb4 b 0x11f60                                         |         goto label_1;
                                                                 |     }
    0x00011fb8 mov r0, r4                                        |     r0 = r4;
    0x00011fbc bl 0x10b6c                                        |     r0 = close (r0);
    0x00011fc0 cmp r0, 0                                         |     
                                                                 |     if (r0 != 0) {
    0x00011fc4 moveq r4, r6                                      |         r4 = r6;
                                                                 |     }
                                                                 |     if (r0 != 0) {
    0x00011fc8 beq 0x12018                                       |         
    0x00011fcc bl 0x10b24                                        |         errno_location ();
    0x00011fd0 ldr r6, [pc, 0x4c]                                |         r6 = *(0x12020);
    0x00011fd4 mov r3, r5                                        |         r3 = r5;
    0x00011fd8 ldr r2, [pc, 0x48]                                |         r2 = stderr;
    0x00011fdc ldr r1, [pc, 0x5c]                                |         r1 = "%s: error!: file \"%s\" contains too much data (> %d bytes)\n";
    0x00011fe0 ldr r4, [r0]                                      |         r4 = *(r0);
    0x00011fe4 ldr r0, [r6]                                      |         r0 = *(0x12020);
    0x00011fe8 bl 0x10a64                                        |         fprintf (r0, "%s: error!: file \"%s\" contains too much data (> %d bytes)\n", r2, r3, r4, r5, r6)
    0x00011fec mov r0, r4                                        |         r0 = r4;
    0x00011ff0 ldr r5, [r6]                                      |         r5 = *(0x12020);
    0x00011ff4 bl 0x109d4                                        |         strerror (r0);
    0x00011ff8 str r4, [sp]                                      |         *(sp) = r4;
    0x00011ffc ldr r3, [pc, 0x2c]                                |         r3 = "_s:_error_:_cannot_read___s_";
    0x00012000 mov r2, 8                                         |         r2 = 8;
    0x00012004 ldr r1, [pc, 0x28]                                |         r1 = *(0x12030);
    0x00012008 str r0, [sp, 4]                                   |         var_4h = r0;
    0x0001200c mov r0, r5                                        |         r0 = r5;
    0x00012010 bl 0x10a64                                        |         fprintf (r0, r1, r2, "_s:_error_:_cannot_read___s_", r4)
                                                                 | label_4:
    0x00012014 mvn r4, 0                                         |         r4 = ~0;
                                                                 |     }
                                                                 | label_2:
    0x00012018 mov r0, r4                                        |     r0 = r4;
    0x0001201c add sp, sp, 0x10                                  |     
    0x00012020 pop {r4, r5, r6, r7, r8, pc}                      |     
                                                                 | }
    ; 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/usr/sbin/ubinfo @ 0x12044 */
                                                                 | #include <stdint.h>
                                                                 |  
    ; (fcn) fcn.00012044 ()                                      | void fcn_00012044 (int32_t arg1, int32_t arg2) {
                                                                 |     int32_t var_0h;
                                                                 |     int32_t var_4h;
                                                                 |     int32_t var_8h;
                                                                 |     r0 = arg1;
                                                                 |     r1 = arg2;
    0x00012044 push {r0, r1, r4, r5, r6, r7, r8, sb, sl, lr}     |     
    0x00012048 mov r7, r1                                        |     r7 = r1;
    0x0001204c mov sl, r0                                        |     sl = r0;
    0x00012050 bl 0x10b3c                                        |     r0 = strlen (r0);
    0x00012054 mov r4, r0                                        |     r4 = r0;
    0x00012058 mov sb, r0                                        |     sb = r0;
    0x0001205c mov r0, r7                                        |     r0 = r7;
    0x00012060 bl 0x10b3c                                        |     r0 = strlen (r0);
    0x00012064 add r6, r4, r0                                    |     r6 = r4 + r0;
    0x00012068 add r6, r6, 2                                     |     r6 += 2;
    0x0001206c mov r8, r0                                        |     r8 = r0;
    0x00012070 mov r0, r6                                        |     r0 = r6;
    0x00012074 bl 0x10a28                                        |     r0 = malloc (r0);
    0x00012078 subs r5, r0, 0                                    |     r5 = r0 - 0;
                                                                 |     if (r5 != r0) {
    0x0001207c bne 0x120d4                                       |         goto label_0;
                                                                 |     }
    0x00012080 bl 0x10b24                                        |     errno_location ();
    0x00012084 ldr r7, [pc, 0x80]                                |     r7 = *(0x12108);
    0x00012088 mov r3, r6                                        |     r3 = r6;
    0x0001208c ldr r2, [pc, 0x7c]                                |     r2 = stderr;
    0x00012090 ldr r1, [pc, 0x7c]                                |     r1 = "libubi";
    0x00012094 ldr r4, [r0]                                      |     r4 = *(r0);
    0x00012098 ldr r0, [r7]                                      |     r0 = *(0x12108);
    0x0001209c bl 0x10a64                                        |     fprintf (r0, "libubi", r2, r3, r4)
    0x000120a0 mov r0, r4                                        |     r0 = r4;
    0x000120a4 ldr r6, [r7]                                      |     r6 = *(0x12108);
    0x000120a8 bl 0x109d4                                        |     strerror (r0);
    0x000120ac str r4, [sp]                                      |     *(sp) = r4;
    0x000120b0 ldr r3, [pc, 0x60]                                |     r3 = "_s:_error_:_cannot_allocate__d_bytes";
    0x000120b4 mov r2, 8                                         |     r2 = 8;
    0x000120b8 ldr r1, [pc, 0x5c]                                |     r1 = *(0x12118);
    0x000120bc str r0, [sp, 4]                                   |     var_4h = r0;
    0x000120c0 mov r0, r6                                        |     r0 = r6;
    0x000120c4 bl 0x10a64                                        |     fprintf (r0, r1, r2, "_s:_error_:_cannot_allocate__d_bytes", r4)
                                                                 |     do {
    0x000120c8 mov r0, r5                                        |         r0 = r5;
    0x000120cc add sp, sp, 8                                     |         
    0x000120d0 pop {r4, r5, r6, r7, r8, sb, sl, pc}              |         
                                                                 | label_0:
    0x000120d4 mov r2, r4                                        |         r2 = r4;
    0x000120d8 mov r1, sl                                        |         r1 = sl;
    0x000120dc bl 0x10a10                                        |         memcpy (r0, r1, r2);
    0x000120e0 add r3, r5, r4                                    |         r3 = r5 + r4;
    0x000120e4 ldrb r3, [r3, -1]                                 |         r3 = *((r3 - 1));
    0x000120e8 add r2, r8, 1                                     |         r2 = r8 + 1;
    0x000120ec cmp r3, 0x2f                                      |         
                                                                 |         if (r3 == 0x2f) {
    0x000120f0 addne r4, r4, 1                                   |             r4++;
                                                                 |         }
                                                                 |         if (r3 == 0x2f) {
    0x000120f4 movne r3, 0x2f                                    |             r3 = 0x2f;
                                                                 |         }
                                                                 |         if (r3 == 0x2f) {
    0x000120f8 strbne r3, [r5, sb]                               |             *((r5 + sb)) = r3;
                                                                 |         }
    0x000120fc mov r1, r7                                        |         r1 = r7;
    0x00012100 add r0, r5, r4                                    |         r0 = r5 + r4;
    0x00012104 bl 0x10a10                                        |         memcpy (r0, r1, r2);
    0x00012108 b 0x120c8                                         |         
                                                                 |     } while (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/usr/sbin/ubinfo @ 0x12120 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) fcn.00012120 ()                  | void fcn_00012120 (int32_t arg1) {
                                             |     int32_t var_0h;
                                             |     int32_t var_4h;
                                             |     int32_t var_8h;
                                             |     int32_t var_18h;
                                             |     int32_t var_28h;
                                             |     int32_t var_28h_2;
                                             |     int32_t var_74h;
                                             |     r0 = arg1;
    0x00012120 push {r4, r5, r6, r7, lr}     |     
    0x00012124 sub sp, sp, 0x74              |     
    0x00012128 add r1, sp, 8                 |     r1 += var_8h;
    0x0001212c mov r5, r0                    |     r5 = r0;
    0x00012130 bl 0x109e0                    |     r0 = stat64 ();
    0x00012134 cmp r0, 0                     |     
                                             |     if (r0 >= 0) {
    0x00012138 bge 0x12190                   |         goto label_2;
                                             |     }
    0x0001213c bl 0x10b24                    |     errno_location ();
    0x00012140 ldr r6, [pc, 0xc8]            |     r6 = *(0x1220c);
    0x00012144 ldr r2, [pc, 0xc8]            |     r2 = stderr;
    0x00012148 ldr r1, [pc, 0xc8]            |     r1 = "libubi";
    0x0001214c mov r3, r5                    |     r3 = r5;
    0x00012150 ldr r4, [r0]                  |     r4 = *(r0);
                                             |     do {
                                             | label_1:
    0x00012154 ldr r0, [r6]                  |         r0 = *(r6);
    0x00012158 bl 0x10a64                    |         fprintf (r0, "libubi", r2, r3, r4, r5, r6)
    0x0001215c mov r0, r4                    |         r0 = r4;
    0x00012160 ldr r5, [r6]                  |         r5 = *(r6);
    0x00012164 bl 0x109d4                    |         strerror (r0);
    0x00012168 str r4, [sp]                  |         *(sp) = r4;
    0x0001216c ldr r3, [pc, 0xa8]            |         r3 = "_s:_error_:_cannot_stat___s_";
    0x00012170 mov r2, 8                     |         r2 = 8;
    0x00012174 ldr r1, [pc, 0xa4]            |         r1 = *(0x1221c);
    0x00012178 str r0, [sp, 4]               |         var_4h = r0;
    0x0001217c mov r0, r5                    |         r0 = r5;
    0x00012180 bl 0x10a64                    |         fprintf (r0, r1, r2, "_s:_error_:_cannot_stat___s_", r4)
    0x00012184 mvn r0, 0                     |         r0 = ~0;
                                             | label_0:
    0x00012188 add sp, sp, 0x74              |         
    0x0001218c pop {r4, r5, r6, r7, pc}      |         
                                             | label_2:
    0x00012190 ldr r3, [sp, 0x18]            |         r3 = var_18h;
    0x00012194 and r3, r3, 0xf000            |         r3 &= 0xf000;
    0x00012198 cmp r3, 0x2000                |         
                                             |         if (r3 == 0x2000) {
    0x0001219c beq 0x121c0                   |             goto label_3;
                                             |         }
    0x000121a0 bl 0x10b24                    |         errno_location ();
    0x000121a4 mov r4, 0x16                  |         r4 = 0x16;
    0x000121a8 ldr r6, [pc, 0x60]            |         r6 = *(0x1220c);
    0x000121ac mov r3, r5                    |         r3 = r5;
    0x000121b0 ldr r2, [pc, 0x5c]            |         r2 = stderr;
    0x000121b4 ldr r1, [pc, 0x68]            |         r1 = "_serror__d___s_";
    0x000121b8 str r4, [r0]                  |         *(r0) = r4;
    0x000121bc b 0x12154                     |         
                                             |     } while (1);
                                             | label_3:
    0x000121c0 ldrd r6, r7, [sp, 0x28]       |     __asm ("ldrd r6, r7, [var_28h]");
    0x000121c4 mov r1, r7                    |     r1 = r7;
    0x000121c8 mov r0, r6                    |     r0 = r6;
    0x000121cc bl 0x10a04                    |     gnu_dev_major ();
    0x000121d0 mov r1, r7                    |     r1 = r7;
    0x000121d4 mov r4, r0                    |     r4 = r0;
    0x000121d8 mov r0, r6                    |     r0 = r6;
    0x000121dc bl 0x10a40                    |     gnu_dev_minor ();
    0x000121e0 cmp r4, 0x5a                  |     
                                             |     if (r4 != 0x5a) {
    0x000121e4 addeq r0, r0, r0, lsr 31      |         r0 += (r0 >> 31);
                                             |     }
    0x000121e8 asreq r0, r0, 1               |     __asm ("asreq r0, r0, 1");
                                             |     if (r4 == 0x5a) {
    0x000121ec beq 0x12188                   |         goto label_0;
                                             |     }
    0x000121f0 bl 0x10b24                    |     errno_location ();
    0x000121f4 mov r4, 0x16                  |     r4 = 0x16;
    0x000121f8 ldr r6, [pc, 0x10]            |     r6 = *(0x1220c);
    0x000121fc mov r3, r5                    |     r3 = r5;
    0x00012200 ldr r2, [pc, 0xc]             |     r2 = stderr;
    0x00012204 ldr r1, [pc, 0x1c]            |     r1 = "_s:_error_:___s__is_not_a_character_device";
    0x00012208 str r4, [r0]                  |     *(r0) = r4;
    0x0001220c b 0x12154                     |     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/usr/sbin/ubinfo @ 0x1222c */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) fcn.0001222c ()              | void fcn_0001222c (int32_t arg1, int32_t arg2) {
                                         |     int32_t var_0h;
                                         |     int32_t var_4h;
                                         |     char * s;
                                         |     int32_t var_40h;
                                         |     r0 = arg1;
                                         |     r1 = arg2;
    0x0001222c push {r4, r5, r6, lr}     |     
    0x00012230 sub sp, sp, 0x40          |     
    0x00012234 mov r4, r1                |     r4 = r1;
    0x00012238 mov r5, r2                |     r5 = r2;
    0x0001223c add r1, sp, 0xc           |     r1 += s;
    0x00012240 mov r2, 0x32              |     r2 = 0x32;
    0x00012244 mov r6, r0                |     r6 = r0;
    0x00012248 bl 0x11eb0                |     r0 = fcn_00011eb0 (r0, r1);
    0x0001224c cmp r0, 0                 |     
                                         |     if (r0 < 0) {
    0x00012250 blt 0x12298               |         goto label_1;
                                         |     }
    0x00012254 mov r3, r5                |     r3 = r5;
    0x00012258 mov r2, r4                |     r2 = r4;
    0x0001225c ldr r1, [pc, 0x8c]        |     r1 = *(0x122ec);
    0x00012260 add r0, sp, 0xc           |     r0 += s;
    0x00012264 bl 0x10aac                |     r0 = sscanf (r0, r1, r2);
    0x00012268 cmp r0, 2                 |     
                                         |     if (r0 == 2) {
    0x0001226c beq 0x122a0               |         goto label_2;
                                         |     }
    0x00012270 bl 0x10b24                |     errno_location ();
    0x00012274 mov r3, 0x16              |     r3 = 0x16;
    0x00012278 ldr r2, [pc, 0x74]        |     r2 = "_d:_d";
    0x0001227c ldr r1, [pc, 0x74]        |     r1 = "libubi";
    0x00012280 str r3, [r0]              |     *(r0) = r3;
    0x00012284 ldr r0, [pc, 0x70]        |     
    0x00012288 mov r3, r6                |     r3 = r6;
    0x0001228c ldr r0, [r0]              |     r0 = "%s: error!: \"%s\" does not have major:minor format\n";
    0x00012290 bl 0x10a64                |     fprintf ("%s: error!: \"%s\" does not have major:minor format\n", "libubi", "_d:_d", r3)
                                         | label_0:
    0x00012294 mvn r0, 0                 |     r0 = ~0;
                                         |     do {
                                         | label_1:
    0x00012298 add sp, sp, 0x40          |         
    0x0001229c pop {r4, r5, r6, pc}      |         
                                         | label_2:
    0x000122a0 ldr r3, [r4]              |         r3 = *(r4);
    0x000122a4 cmp r3, 0                 |         
                                         |         if (r3 < 0) {
    0x000122a8 blt 0x122bc               |             goto label_3;
                                         |         }
    0x000122ac ldr r3, [r5]              |         r3 = *(r5);
    0x000122b0 cmp r3, 0                 |         
                                         |         if (r3 < 0) {
    0x000122b4 movge r0, 0               |             r0 = 0;
                                         |         }
    0x000122b8 bge 0x12298               |         
                                         |     } while (r3 >= 0);
                                         | label_3:
    0x000122bc bl 0x10b24                |     errno_location ();
    0x000122c0 mov r3, 0x16              |     r3 = 0x16;
    0x000122c4 ldr r2, [pc, 0x28]        |     r2 = "_d:_d";
    0x000122c8 ldr r1, [pc, 0x30]        |     r1 = stderr;
    0x000122cc str r3, [r0]              |     *(r0) = r3;
    0x000122d0 ldr r0, [pc, 0x24]        |     
    0x000122d4 ldr r3, [r5]              |     r3 = *(r5);
    0x000122d8 str r6, [sp, 4]           |     var_4h = r6;
    0x000122dc str r3, [sp]              |     *(sp) = r3;
    0x000122e0 ldr r3, [r4]              |     r3 = *(r4);
    0x000122e4 ldr r0, [r0]              |     r0 = "%s: error!: \"%s\" does not have major:minor format\n";
    0x000122e8 bl 0x10a64                |     fprintf ("%s: error!: \"%s\" does not have major:minor format\n", r1, "_d:_d", r3, r4, r5, r6)
    0x000122ec b 0x12294                 |     goto label_0;
                                         | }
    ; 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/usr/sbin/ubinfo @ 0x12358 */
                                                 | #include <stdint.h>
                                                 |  
    ; (fcn) fcn.00012358 ()                      | void fcn_00012358 (int32_t arg1) {
                                                 |     int32_t var_0h;
                                                 |     int32_t var_4h;
                                                 |     r0 = arg1;
    0x00012358 push {r0, r1, r4, r5, r6, lr}     |     
    0x0001235c ldr r5, [pc, 0x50]                |     
    0x00012360 mov r6, r0                        |     r6 = r0;
    0x00012364 bl 0x10b24                        |     errno_location ();
    0x00012368 mov r3, r6                        |     r3 = r6;
    0x0001236c ldr r2, [pc, 0x44]                |     r2 = stderr;
    0x00012370 ldr r1, [pc, 0x44]                |     r1 = "libubi";
    0x00012374 ldr r4, [r0]                      |     r4 = *(r0);
    0x00012378 ldr r0, [r5]                      |     r0 = *(0x123b0);
    0x0001237c bl 0x10a64                        |     fprintf (r0, "libubi", r2, r3, r4)
    0x00012380 mov r0, r4                        |     r0 = r4;
    0x00012384 ldr r5, [r5]                      |     r5 = *(0x123b0);
    0x00012388 bl 0x109d4                        |     strerror (r0);
    0x0001238c str r4, [sp]                      |     *(sp) = r4;
    0x00012390 ldr r3, [pc, 0x28]                |     r3 = "%s: error!: cannot open \"%s\"\n";
    0x00012394 mov r2, 8                         |     r2 = 8;
    0x00012398 ldr r1, [pc, 0x24]                |     r1 = *(0x123c0);
    0x0001239c str r0, [sp, 4]                   |     var_4h = r0;
    0x000123a0 mov r0, r5                        |     r0 = r5;
    0x000123a4 bl 0x10a64                        |     fprintf (r0, r1, r2, "%s: error!: cannot open \"%s\"\n", r4)
    0x000123a8 mvn r0, 0                         |     r0 = ~0;
    0x000123ac add sp, sp, 8                     |     
    0x000123b0 pop {r4, r5, r6, pc}              |     
                                                 | }
    ; 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/usr/sbin/ubinfo @ 0x124ec */
                                                         | #include <stdint.h>
                                                         |  
    ; (fcn) fcn.000124ec ()                              | void fcn_000124ec () {
                                                         |     int32_t var_0h;
                                                         |     int32_t var_4h;
                                                         |     int32_t var_ch;
                                                         |     int32_t var_10h;
    0x000124ec push {r0, r1, r2, r3, r4, r5, r6, lr}     |     
    0x000124f0 mov r1, 0x68                              |     r1 = 0x68;
    0x000124f4 mov r0, 1                                 |     r0 = 1;
    0x000124f8 bl 0x10a58                                |     r0 = calloc (r0, r1);
    0x000124fc subs r4, r0, 0                            |     r4 = r0 - 0;
                                                         |     if (r4 == r0) {
    0x00012500 beq 0x12570                               |         goto label_1;
                                                         |     }
    0x00012504 ldr r1, [pc, 0x2fc]                       |     r1 = *(0x12804);
    0x00012508 ldr r0, [pc, 0x2fc]                       |     r0 = "class/misc/ubi_ctrl/";
    0x0001250c bl 0x12044                                |     r0 = fcn_00012044 ("class/misc/ubi_ctrl/", r1);
    0x00012510 cmp r0, 0                                 |     
    0x00012514 str r0, [r4, 4]                           |     *((r4 + 4)) = r0;
                                                         |     if (r0 == 0) {
    0x00012518 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x0001251c ldr r1, [pc, 0x2ec]                       |     r1 = "_sys";
    0x00012520 bl 0x12044                                |     r0 = fcn_00012044 (r0, "_sys");
    0x00012524 cmp r0, 0                                 |     
    0x00012528 str r0, [r4, 8]                           |     *((r4 + 8)) = r0;
                                                         |     if (r0 == 0) {
    0x0001252c beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012530 ldr r1, [pc, 0x2dc]                       |     r1 = *(0x12810);
    0x00012534 ldr r0, [pc, 0x2d0]                       |     r0 = "class/misc/ubi_ctrl/";
    0x00012538 bl 0x12044                                |     r0 = fcn_00012044 ("class/misc/ubi_ctrl/", r1);
    0x0001253c cmp r0, 0                                 |     
    0x00012540 str r0, [r4, 0xc]                         |     *((r4 + 0xc)) = r0;
                                                         |     if (r0 == 0) {
    0x00012544 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012548 mov r1, 0                                 |     r1 = 0;
    0x0001254c bl 0x10af4                                |     r0 = open64 ();
    0x00012550 cmn r0, 1                                 |     
                                                         |     if (r0 != 1) {
    0x00012554 bne 0x1257c                               |         goto label_2;
                                                         |     }
    0x00012558 bl 0x10b24                                |     errno_location ();
    0x0001255c mov r3, 0                                 |     r3 = 0;
    0x00012560 str r3, [r0]                              |     *(r0) = r3;
                                                         |     do {
                                                         | label_0:
    0x00012564 mov r0, r4                                |         r0 = r4;
    0x00012568 bl 0x12418                                |         fcn_00012418 (r0);
    0x0001256c mov r4, 0                                 |         r4 = 0;
                                                         | label_1:
    0x00012570 mov r0, r4                                |         r0 = r4;
    0x00012574 add sp, sp, 0x10                          |         
    0x00012578 pop {r4, r5, r6, pc}                      |         
                                                         | label_2:
    0x0001257c bl 0x10b6c                                |         r0 = close (r0);
    0x00012580 cmp r0, 0                                 |         
                                                         |         if (r0 == 0) {
    0x00012584 beq 0x125d4                               |             goto label_3;
                                                         |         }
    0x00012588 bl 0x10b24                                |         errno_location ();
    0x0001258c ldr r6, [pc, 0x284]                       |         
    0x00012590 ldr r3, [r4, 0xc]                         |         r3 = *((r4 + 0xc));
    0x00012594 ldr r2, [pc, 0x280]                       |         r2 = stderr;
    0x00012598 ldr r1, [pc, 0x280]                       |         r1 = "libubi";
    0x0001259c ldr r5, [r0]                              |         r5 = *(r0);
    0x000125a0 ldr r0, [r6]                              |         r0 = "class/ubi";
    0x000125a4 bl 0x10a64                                |         fprintf ("class/ubi", "libubi", r2, r3, r4, r5, "class/ubi")
    0x000125a8 mov r0, r5                                |         r0 = r5;
    0x000125ac ldr r6, [r6]                              |         r6 = "class/ubi";
    0x000125b0 bl 0x109d4                                |         strerror (r0);
    0x000125b4 str r5, [sp]                              |         *(sp) = r5;
    0x000125b8 ldr r3, [pc, 0x264]                       |         r3 = "%s: error!: close failed on \"%s\"\n";
    0x000125bc mov r2, 8                                 |         r2 = 8;
    0x000125c0 ldr r1, [pc, 0x260]                       |         r1 = *(0x12824);
    0x000125c4 str r0, [sp, 4]                           |         var_4h = r0;
    0x000125c8 mov r0, r6                                |         r0 = r6;
    0x000125cc bl 0x10a64                                |         fprintf (r0, r1, r2, "%s: error!: close failed on \"%s\"\n", r4, r5)
    0x000125d0 b 0x12564                                 |         
                                                         |     } while (1);
                                                         | label_3:
    0x000125d4 ldr r1, [pc, 0x250]                       |     r1 = "_serror__d___s_";
    0x000125d8 ldr r0, [r4, 0xc]                         |     r0 = *((r4 + 0xc));
    0x000125dc bl 0x12044                                |     r0 = fcn_00012044 (r0, "_serror__d___s_");
    0x000125e0 cmp r0, 0                                 |     
    0x000125e4 str r0, [r4, 0x10]                        |     *((r4 + 0x10)) = r0;
                                                         |     if (r0 == 0) {
    0x000125e8 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000125ec ldr r1, [pc, 0x23c]                       |     r1 = "ubi_d";
    0x000125f0 ldr r0, [r4, 0xc]                         |     r0 = *((r4 + 0xc));
    0x000125f4 bl 0x12044                                |     r0 = fcn_00012044 (r0, "ubi_d");
    0x000125f8 cmp r0, 0                                 |     
    0x000125fc str r0, [r4, 0x14]                        |     *((r4 + 0x14)) = r0;
                                                         |     if (r0 == 0) {
    0x00012600 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012604 ldr r1, [pc, 0x204]                       |     r1 = "_sys";
    0x00012608 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x0001260c bl 0x12044                                |     r0 = fcn_00012044 (r0, "_sys");
    0x00012610 cmp r0, 0                                 |     
    0x00012614 str r0, [r4, 0x18]                        |     *((r4 + 0x18)) = r0;
                                                         |     if (r0 == 0) {
    0x00012618 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x0001261c ldr r1, [pc, 0x210]                       |     r1 = "version";
    0x00012620 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x00012624 bl 0x12044                                |     r0 = fcn_00012044 (r0, "version");
    0x00012628 cmp r0, 0                                 |     
    0x0001262c str r0, [r4, 0x1c]                        |     *((r4 + 0x1c)) = r0;
                                                         |     if (r0 == 0) {
    0x00012630 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012634 ldr r1, [pc, 0x1fc]                       |     r1 = "avail_eraseblocks";
    0x00012638 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x0001263c bl 0x12044                                |     r0 = fcn_00012044 (r0, "avail_eraseblocks");
    0x00012640 cmp r0, 0                                 |     
    0x00012644 str r0, [r4, 0x20]                        |     *((r4 + 0x20)) = r0;
                                                         |     if (r0 == 0) {
    0x00012648 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x0001264c ldr r1, [pc, 0x1e8]                       |     r1 = "total_eraseblocks";
    0x00012650 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x00012654 bl 0x12044                                |     r0 = fcn_00012044 (r0, "total_eraseblocks");
    0x00012658 cmp r0, 0                                 |     
    0x0001265c str r0, [r4, 0x24]                        |     *((r4 + 0x24)) = r0;
                                                         |     if (r0 == 0) {
    0x00012660 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012664 ldr r1, [pc, 0x1d4]                       |     r1 = "bad_peb_count";
    0x00012668 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x0001266c bl 0x12044                                |     r0 = fcn_00012044 (r0, "bad_peb_count");
    0x00012670 cmp r0, 0                                 |     
    0x00012674 str r0, [r4, 0x28]                        |     *((r4 + 0x28)) = r0;
                                                         |     if (r0 == 0) {
    0x00012678 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x0001267c ldr r1, [pc, 0x1c0]                       |     r1 = "eraseblock_size";
    0x00012680 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x00012684 bl 0x12044                                |     r0 = fcn_00012044 (r0, "eraseblock_size");
    0x00012688 cmp r0, 0                                 |     
    0x0001268c str r0, [r4, 0x2c]                        |     *((r4 + 0x2c)) = r0;
                                                         |     if (r0 == 0) {
    0x00012690 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012694 ldr r1, [pc, 0x1ac]                       |     r1 = "max_ec";
    0x00012698 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x0001269c bl 0x12044                                |     r0 = fcn_00012044 (r0, "max_ec");
    0x000126a0 cmp r0, 0                                 |     
    0x000126a4 str r0, [r4, 0x30]                        |     *((r4 + 0x30)) = r0;
                                                         |     if (r0 == 0) {
    0x000126a8 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000126ac ldr r1, [pc, 0x198]                       |     r1 = "reserved_for_bad";
    0x000126b0 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x000126b4 bl 0x12044                                |     r0 = fcn_00012044 (r0, "reserved_for_bad");
    0x000126b8 cmp r0, 0                                 |     
    0x000126bc str r0, [r4, 0x34]                        |     *((r4 + 0x34)) = r0;
                                                         |     if (r0 == 0) {
    0x000126c0 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000126c4 ldr r1, [pc, 0x184]                       |     r1 = "max_vol_count";
    0x000126c8 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x000126cc bl 0x12044                                |     r0 = fcn_00012044 (r0, "max_vol_count");
    0x000126d0 cmp r0, 0                                 |     
    0x000126d4 str r0, [r4, 0x38]                        |     *((r4 + 0x38)) = r0;
                                                         |     if (r0 == 0) {
    0x000126d8 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000126dc ldr r1, [pc, 0x170]                       |     r1 = "min_io_size";
    0x000126e0 ldr r0, [r4, 0x10]                        |     r0 = *((r4 + 0x10));
    0x000126e4 bl 0x12044                                |     r0 = fcn_00012044 (r0, "min_io_size");
    0x000126e8 cmp r0, 0                                 |     
    0x000126ec str r0, [r4, 0x3c]                        |     *((r4 + 0x3c)) = r0;
                                                         |     if (r0 == 0) {
    0x000126f0 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000126f4 ldr r1, [pc, 0x15c]                       |     r1 = "mtd_num";
    0x000126f8 ldr r0, [r4, 0xc]                         |     r0 = *((r4 + 0xc));
    0x000126fc bl 0x12044                                |     r0 = fcn_00012044 (r0, "mtd_num");
    0x00012700 cmp r0, 0                                 |     
    0x00012704 str r0, [r4, 0x40]                        |     *((r4 + 0x40)) = r0;
                                                         |     if (r0 == 0) {
    0x00012708 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x0001270c ldr r1, [pc, 0x148]                       |     r1 = "ubi%d_%d";
    0x00012710 bl 0x12044                                |     r0 = fcn_00012044 (r0, "ubi%d_%d");
    0x00012714 cmp r0, 0                                 |     
    0x00012718 str r0, [r4, 0x44]                        |     *((r4 + 0x44)) = r0;
                                                         |     if (r0 == 0) {
    0x0001271c beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012720 ldr r1, [pc, 0xe8]                        |     r1 = "_sys";
    0x00012724 ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x00012728 bl 0x12044                                |     r0 = fcn_00012044 (r0, "_sys");
    0x0001272c cmp r0, 0                                 |     
    0x00012730 str r0, [r4, 0x48]                        |     *((r4 + 0x48)) = r0;
                                                         |     if (r0 == 0) {
    0x00012734 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012738 ldr r1, [pc, 0x120]                       |     r1 = "type";
    0x0001273c ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x00012740 bl 0x12044                                |     r0 = fcn_00012044 (r0, "type");
    0x00012744 cmp r0, 0                                 |     
    0x00012748 str r0, [r4, 0x4c]                        |     *((r4 + 0x4c)) = r0;
                                                         |     if (r0 == 0) {
    0x0001274c beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012750 ldr r1, [pc, 0x10c]                       |     r1 = "alignment";
    0x00012754 ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x00012758 bl 0x12044                                |     r0 = fcn_00012044 (r0, "alignment");
    0x0001275c cmp r0, 0                                 |     
    0x00012760 str r0, [r4, 0x50]                        |     *((r4 + 0x50)) = r0;
                                                         |     if (r0 == 0) {
    0x00012764 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012768 ldr r1, [pc, 0xf8]                        |     r1 = "data_bytes";
    0x0001276c ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x00012770 bl 0x12044                                |     r0 = fcn_00012044 (r0, "data_bytes");
    0x00012774 cmp r0, 0                                 |     
    0x00012778 str r0, [r4, 0x54]                        |     *((r4 + 0x54)) = r0;
                                                         |     if (r0 == 0) {
    0x0001277c beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012780 ldr r1, [pc, 0xe4]                        |     r1 = "reserved_ebs";
    0x00012784 ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x00012788 bl 0x12044                                |     r0 = fcn_00012044 (r0, "reserved_ebs");
    0x0001278c cmp r0, 0                                 |     
    0x00012790 str r0, [r4, 0x58]                        |     *((r4 + 0x58)) = r0;
                                                         |     if (r0 == 0) {
    0x00012794 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x00012798 ldr r1, [pc, 0xd0]                        |     r1 = "usable_eb_size";
    0x0001279c ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x000127a0 bl 0x12044                                |     r0 = fcn_00012044 (r0, "usable_eb_size");
    0x000127a4 cmp r0, 0                                 |     
    0x000127a8 str r0, [r4, 0x5c]                        |     *((r4 + 0x5c)) = r0;
                                                         |     if (r0 == 0) {
    0x000127ac beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000127b0 ldr r1, [pc, 0xbc]                        |     r1 = "corrupted";
    0x000127b4 ldr r0, [r4, 0x40]                        |     r0 = *((r4 + 0x40));
    0x000127b8 bl 0x12044                                |     r0 = fcn_00012044 (r0, "corrupted");
    0x000127bc cmp r0, 0                                 |     
    0x000127c0 str r0, [r4, 0x60]                        |     *((r4 + 0x60)) = r0;
                                                         |     if (r0 == 0) {
    0x000127c4 beq 0x12564                               |         goto label_0;
                                                         |     }
    0x000127c8 add r1, sp, 0xc                           |     r1 += var_ch;
    0x000127cc ldr r0, [r4, 0x14]                        |     r0 = *((r4 + 0x14));
    0x000127d0 bl 0x11da4                                |     r0 = fcn_00011da4 (r0, r1);
    0x000127d4 cmp r0, 0                                 |     
                                                         |     if (r0 != 0) {
    0x000127d8 bne 0x12564                               |         goto label_0;
                                                         |     }
    0x000127dc ldr r3, [sp, 0xc]                         |     r3 = var_ch;
    0x000127e0 cmp r3, 1                                 |     
                                                         |     if (r3 == 1) {
    0x000127e4 beq 0x12570                               |         goto label_1;
                                                         |     }
    0x000127e8 ldr r0, [pc, 0x28]                        |     
    0x000127ec str r3, [sp]                              |     *(sp) = r3;
    0x000127f0 ldr r2, [pc, 0x24]                        |     r2 = stderr;
    0x000127f4 mov r3, 1                                 |     r3 = 1;
    0x000127f8 ldr r1, [pc, 0x78]                        |     r1 = "name";
    0x000127fc ldr r0, [r0]                              |     r0 = "class/ubi";
    0x00012800 bl 0x10a64                                |     fprintf ("class/ubi", "name", r2, r3)
    0x00012804 b 0x12564                                 |     goto label_0;
                                                         | }
    ; 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/usr/sbin/ubinfo @ 0x129a8 */
                                                         | #include <stdint.h>
                                                         |  
    ; (fcn) fcn.000129a8 ()                              | void fcn_000129a8 (int32_t arg1, void * s) {
                                                         |     int32_t var_0h;
                                                         |     int32_t var_4h;
                                                         |     int32_t var_ch;
                                                         |     int32_t var_10h;
                                                         |     int32_t var_110h;
                                                         |     r0 = arg1;
                                                         |     r1 = s;
    0x000129a8 push {r4, r5, r6, r7, r8, sb, sl, lr}     |     
    0x000129ac mov r4, r1                                |     r4 = r1;
    0x000129b0 sub sp, sp, 0x110                         |     
    0x000129b4 mov r5, r0                                |     r5 = r0;
    0x000129b8 mov r2, 0x18                              |     r2 = 0x18;
    0x000129bc mov r1, 0                                 |     r1 = 0;
    0x000129c0 mov r0, r4                                |     r0 = r4;
    0x000129c4 bl 0x10adc                                |     memset (r0, r1, r2);
    0x000129c8 add r2, r4, 0x14                          |     r2 = r4 + 0x14;
    0x000129cc add r1, r4, 0x10                          |     r1 = r4 + 0x10;
    0x000129d0 ldr r0, [r5, 8]                           |     r0 = *((r5 + 8));
    0x000129d4 bl 0x1222c                                |     r0 = fcn_0001222c (r0, r1);
    0x000129d8 cmp r0, 0                                 |     
                                                         |     if (r0 == 0) {
    0x000129dc mvnne r3, 0                               |         r3 = ~0;
                                                         |     }
                                                         |     if (r0 == 0) {
    0x000129e0 strne r3, [r4, 0x14]                      |         *((r4 + 0x14)) = r3;
                                                         |     }
                                                         |     if (r0 == 0) {
    0x000129e4 strne r3, [r4, 0x10]                      |         *((r4 + 0x10)) = r3;
                                                         |     }
    0x000129e8 ldr r0, [r5, 0xc]                         |     r0 = *((r5 + 0xc));
    0x000129ec bl 0x10b00                                |     r0 = opendir ();
    0x000129f0 subs r8, r0, 0                            |     r8 = r0 - 0;
                                                         |     if (r8 == r0) {
    0x000129f4 beq 0x12b54                               |         goto label_2;
                                                         |     }
    0x000129f8 mvn r3, 0x80000000                        |     r3 = ~0x80000000;
    0x000129fc str r3, [r4, 4]                           |     *((r4 + 4)) = r3;
    0x00012a00 bl 0x10b24                                |     errno_location ();
    0x00012a04 ldr sl, [pc, 0x17c]                       |     sl = "ubi_d_s";
    0x00012a08 mov sb, 0                                 |     sb = 0;
    0x00012a0c mov r7, r0                                |     r7 = r0;
                                                         |     do {
                                                         | label_0:
    0x00012a10 str sb, [r7]                              |         *(r7) = sb;
    0x00012a14 mov r0, r8                                |         r0 = r8;
    0x00012a18 bl 0x10aa0                                |         r0 = readdir64 ();
    0x00012a1c cmp r0, 0                                 |         
                                                         |         if (r0 == 0) {
    0x00012a20 beq 0x12ab0                               |             goto label_3;
                                                         |         }
    0x00012a24 add r6, r0, 0x13                          |         r6 = r0 + 0x13;
    0x00012a28 mov r0, r6                                |         r0 = r6;
    0x00012a2c bl 0x10b3c                                |         r0 = strlen (r0);
    0x00012a30 cmp r0, 0xfe                              |         
                                                         |         if (r0 >= 0xfe) {
    0x00012a34 bls 0x12a68                               |             
    0x00012a38 ldr r0, [pc, 0x14c]                       |             
    0x00012a3c str r6, [sp]                              |             *(sp) = r6;
    0x00012a40 ldr r2, [pc, 0x148]                       |             r2 = stderr;
    0x00012a44 ldr r3, [r5, 0xc]                         |             r3 = *((r5 + 0xc));
    0x00012a48 ldr r1, [pc, 0x144]                       |             r1 = "libubi";
    0x00012a4c ldr r0, [r0]                              |             r0 = "ubi_d_s";
    0x00012a50 bl 0x10a64                                |             fprintf ("ubi_d_s", "libubi", r2, r3, r4, r5, r6)
    0x00012a54 mov r3, 0x16                              |             r3 = 0x16;
    0x00012a58 str r3, [r7]                              |             *(r7) = r3;
                                                         | label_1:
    0x00012a5c mov r0, r8                                |             r0 = r8;
    0x00012a60 bl 0x10b54                                |             closedir ();
    0x00012a64 b 0x12b54                                 |             goto label_2;
                                                         |         }
    0x00012a68 add r3, sp, 0x10                          |         r3 += var_10h;
    0x00012a6c add r2, sp, 0xc                           |         r2 += var_ch;
    0x00012a70 mov r1, sl                                |         r1 = sl;
    0x00012a74 mov r0, r6                                |         r0 = r6;
    0x00012a78 bl 0x10aac                                |         r0 = sscanf (r0, r1, r2);
    0x00012a7c cmp r0, 1                                 |         
    0x00012a80 bne 0x12a10                               |         
                                                         |     } while (r0 != 1);
    0x00012a84 ldr r3, [r4]                              |     r3 = *(r4);
    0x00012a88 ldr r2, [r4, 8]                           |     r2 = *((r4 + 8));
    0x00012a8c add r3, r3, 1                             |     r3++;
    0x00012a90 str r3, [r4]                              |     *(r4) = r3;
    0x00012a94 ldr r3, [sp, 0xc]                         |     r3 = var_ch;
    0x00012a98 cmp r2, r3                                |     
    0x00012a9c ldr r2, [r4, 4]                           |     r2 = *((r4 + 4));
                                                         |     if (r2 >= r3) {
    0x00012aa0 strlt r3, [r4, 8]                         |         *((r4 + 8)) = r3;
                                                         |     }
    0x00012aa4 cmp r3, r2                                |     
                                                         |     if (r3 >= r2) {
    0x00012aa8 strlt r3, [r4, 4]                         |         *((r4 + 4)) = r3;
                                                         |     }
    0x00012aac b 0x12a10                                 |     goto label_0;
                                                         | label_3:
    0x00012ab0 ldr r6, [r7]                              |     r6 = *(r7);
    0x00012ab4 cmp r6, 0                                 |     
                                                         |     if (r6 != 0) {
    0x00012ab8 beq 0x12b00                               |         
    0x00012abc ldr r4, [pc, 0xc8]                        |         
    0x00012ac0 ldr r3, [r5, 0xc]                         |         r3 = *((r5 + 0xc));
    0x00012ac4 ldr r2, [pc, 0xc4]                        |         r2 = stderr;
    0x00012ac8 ldr r1, [pc, 0xc8]                        |         r1 = "%s: error!: invalid entry in %s: \"%s\"\n";
    0x00012acc ldr r0, [r4]                              |         r0 = "ubi_d_s";
    0x00012ad0 bl 0x10a64                                |         fprintf ("ubi_d_s", "%s: error!: invalid entry in %s: \"%s\"\n", r2, r3, "ubi_d_s")
    0x00012ad4 mov r0, r6                                |         r0 = r6;
    0x00012ad8 ldr r4, [r4]                              |         r4 = "ubi_d_s";
    0x00012adc bl 0x109d4                                |         strerror (r0);
    0x00012ae0 str r6, [sp]                              |         *(sp) = r6;
    0x00012ae4 ldr r3, [pc, 0xb0]                        |         r3 = "_s:_error_:_readdir_failed_on___s_";
    0x00012ae8 mov r2, 8                                 |         r2 = 8;
    0x00012aec ldr r1, [pc, 0xac]                        |         r1 = *(0x12b9c);
    0x00012af0 str r0, [sp, 4]                           |         var_4h = r0;
    0x00012af4 mov r0, r4                                |         r0 = r4;
    0x00012af8 bl 0x10a64                                |         fprintf (r0, r1, r2, "_s:_error_:_readdir_failed_on___s_", r4, r5, r6)
    0x00012afc b 0x12a5c                                 |         goto label_1;
                                                         |     }
    0x00012b00 mov r0, r8                                |     r0 = r8;
    0x00012b04 bl 0x10b54                                |     r0 = closedir ();
    0x00012b08 cmp r0, 0                                 |     
                                                         |     if (r0 != 0) {
    0x00012b0c beq 0x12b5c                               |         
    0x00012b10 ldr r6, [pc, 0x74]                        |         r6 = "ubi_d_s";
    0x00012b14 ldr r4, [r7]                              |         r4 = *(r7);
    0x00012b18 ldr r3, [r5, 0xc]                         |         r3 = *((r5 + 0xc));
    0x00012b1c ldr r2, [pc, 0x6c]                        |         r2 = stderr;
    0x00012b20 ldr r1, [pc, 0x7c]                        |         r1 = "_serror__d___s_";
    0x00012b24 ldr r0, [r6]                              |         r0 = "ubi_d_s";
    0x00012b28 bl 0x10a64                                |         fprintf ("ubi_d_s", "_serror__d___s_", r2, r3, r4, r5, "ubi_d_s")
    0x00012b2c mov r0, r4                                |         r0 = r4;
    0x00012b30 ldr r5, [r6]                              |         r5 = "ubi_d_s";
    0x00012b34 bl 0x109d4                                |         strerror (r0);
    0x00012b38 str r4, [sp]                              |         *(sp) = r4;
    0x00012b3c ldr r3, [pc, 0x58]                        |         r3 = "_s:_error_:_readdir_failed_on___s_";
    0x00012b40 mov r2, 8                                 |         r2 = 8;
    0x00012b44 ldr r1, [pc, 0x54]                        |         r1 = *(0x12b9c);
    0x00012b48 str r0, [sp, 4]                           |         var_4h = r0;
    0x00012b4c mov r0, r5                                |         r0 = r5;
    0x00012b50 bl 0x10a64                                |         fprintf (r0, r1, r2, "_s:_error_:_readdir_failed_on___s_", r4)
                                                         | label_2:
    0x00012b54 mvn r0, 0                                 |         r0 = ~0;
    0x00012b58 b 0x12b80                                 |         
                                                         |     } else {
    0x00012b5c ldr r3, [r4, 4]                           |         r3 = *((r4 + 4));
    0x00012b60 add r1, r4, 0xc                           |         r1 = r4 + 0xc;
    0x00012b64 cmn r3, 0x80000001                        |         
                                                         |         if (r3 != 0x80000001) {
    0x00012b68 streq r0, [r4, 4]                         |             *((r4 + 4)) = r0;
                                                         |         }
    0x00012b6c ldr r0, [r5, 0x14]                        |         r0 = *((r5 + 0x14));
    0x00012b70 bl 0x11da4                                |         r0 = fcn_00011da4 (r0, r1);
    0x00012b74 adds r0, r0, 0                            |         r0 += 0;
                                                         |         if (r0 == r0) {
    0x00012b78 movne r0, 1                               |             r0 = 1;
                                                         |         }
    0x00012b7c rsb r0, r0, 0                             |         r0 -= ;
                                                         |     }
    0x00012b80 add sp, sp, 0x110                         |     
    0x00012b84 pop {r4, r5, r6, r7, r8, sb, sl, pc}      |     
                                                         | }
    ; 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/usr/sbin/ubinfo @ 0x12cd8 */
                                                             | #include <stdint.h>
                                                             |  
                                                             | #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
                                                             |  
    ; (fcn) fcn.00012cd8 ()                                  | void fcn_00012cd8 (int32_t arg2, char * s) {
                                                             |     int32_t var_b4h;
                                                             |     int32_t var_ach;
                                                             |     int32_t var_a8h;
                                                             |     int32_t var_a4h;
                                                             |     int32_t var_a0h;
                                                             |     int32_t var_9ch;
                                                             |     int32_t var_8ch;
                                                             |     int32_t var_7ch;
                                                             |     int32_t var_6ch;
                                                             |     int32_t var_0h;
                                                             |     int32_t var_4h;
                                                             |     int32_t var_sp_b4h;
                                                             |     int32_t var_sp_6ch;
                                                             |     int32_t var_20h_2;
                                                             |     int32_t var_20h;
                                                             |     r1 = arg2;
                                                             |     r0 = s;
    0x00012cd8 push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x00012cdc add fp, sp, 0x20                              |     
    0x00012ce0 sub sp, sp, 0x9c                              |     
    0x00012ce4 mov r6, r0                                    |     r6 = r0;
    0x00012ce8 ldr r0, [r0, 0x40]                            |     r0 = *((r0 + 0x40));
    0x00012cec mov r5, r1                                    |     r5 = r1;
    0x00012cf0 bl 0x10b3c                                    |     strlen (r0);
    0x00012cf4 sub r1, fp, 0x8c                              |     r1 -= var_8ch;
    0x00012cf8 add r0, r0, 0x6b                              |     r0 += 0x6b;
    0x00012cfc bic r0, r0, 7                                 |     r0 = BIT_MASK (r0, 7);
    0x00012d00 sub sp, sp, r0                                |     
    0x00012d04 mov r0, r5                                    |     r0 = r5;
    0x00012d08 bl 0x109e0                                    |     r0 = stat64 ();
    0x00012d0c cmp r0, 0                                     |     
                                                             |     if (r0 == 0) {
    0x00012d10 beq 0x12d68                                   |         goto label_5;
                                                             |     }
    0x00012d14 bl 0x10b24                                    |     errno_location ();
    0x00012d18 ldr r6, [pc, 0x1e8]                           |     r6 = *(0x12f04);
    0x00012d1c mov r3, r5                                    |     r3 = r5;
    0x00012d20 ldr r2, [pc, 0x1e4]                           |     r2 = stderr;
    0x00012d24 ldr r1, [pc, 0x1e4]                           |     r1 = "libubi";
    0x00012d28 ldr r4, [r0]                                  |     r4 = *(r0);
    0x00012d2c ldr r0, [r6]                                  |     r0 = *(0x12f04);
    0x00012d30 bl 0x10a64                                    |     fprintf (r0, "libubi", r2, r3, r4, r5, r6)
    0x00012d34 mov r0, r4                                    |     r0 = r4;
    0x00012d38 ldr r5, [r6]                                  |     r5 = *(0x12f04);
    0x00012d3c bl 0x109d4                                    |     strerror (r0);
    0x00012d40 str r4, [sp]                                  |     *(sp) = r4;
    0x00012d44 ldr r3, [pc, 0x1c8]                           |     r3 = "%s: error!: cannot get information about \"%s\"\n";
    0x00012d48 mov r2, 8                                     |     r2 = 8;
    0x00012d4c ldr r1, [pc, 0x1c4]                           |     r1 = *(0x12f14);
    0x00012d50 str r0, [sp, 4]                               |     var_4h = r0;
    0x00012d54 mov r0, r5                                    |     r0 = r5;
    0x00012d58 bl 0x10a64                                    |     fprintf (r0, r1, r2, "%s: error!: cannot get information about \"%s\"\n", r4)
                                                             |     do {
                                                             | label_0:
    0x00012d5c mvn r0, 0                                     |         r0 = ~0;
                                                             | label_4:
    0x00012d60 sub sp, fp, 0x20                              |         
    0x00012d64 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |         
                                                             | label_5:
    0x00012d68 ldr r3, [fp, -0x7c]                           |         r3 = var_7ch;
    0x00012d6c and r3, r3, 0xf000                            |         r3 &= 0xf000;
    0x00012d70 cmp r3, 0x2000                                |         
                                                             |         if (r3 == 0x2000) {
    0x00012d74 beq 0x12da0                                   |             goto label_6;
                                                             |         }
    0x00012d78 ldr r0, [pc, 0x188]                           |         
    0x00012d7c mov r3, r5                                    |         r3 = r5;
    0x00012d80 ldr r2, [pc, 0x184]                           |         r2 = stderr;
    0x00012d84 ldr r1, [pc, 0x190]                           |         r1 = "_serror__d___s_";
    0x00012d88 ldr r0, [r0]                                  |         r0 = *(0x12f04);
    0x00012d8c bl 0x10a64                                    |         r0 = fprintf (r0, "_serror__d___s_", r2, r3)
    0x00012d90 bl 0x10b24                                    |         errno_location ();
    0x00012d94 mov r3, 0x16                                  |         r3 = 0x16;
                                                             | label_1:
    0x00012d98 str r3, [r0]                                  |         *(r0) = r3;
    0x00012d9c b 0x12d5c                                     |         
                                                             |     } while (1);
                                                             | label_6:
    0x00012da0 ldrd r2, r3, [fp, -0x6c]                      |     __asm ("ldrd r2, r3, [var_6ch]");
    0x00012da4 mov r1, r3                                    |     r1 = r3;
    0x00012da8 mov r0, r2                                    |     r0 = r2;
    0x00012dac strd r2, r3, [fp, -0xb4]                      |     __asm ("strd r2, r3, [var_b4h]");
    0x00012db0 bl 0x10a04                                    |     gnu_dev_major ();
    0x00012db4 ldrd r2, r3, [fp, -0xb4]                      |     __asm ("ldrd r2, r3, [var_b4h]");
    0x00012db8 mov r1, r3                                    |     r1 = r3;
    0x00012dbc mov sb, r0                                    |     sb = r0;
    0x00012dc0 mov r0, r2                                    |     r0 = r2;
    0x00012dc4 bl 0x10a40                                    |     gnu_dev_minor ();
    0x00012dc8 sub r1, fp, 0xa4                              |     r1 -= var_a4h;
    0x00012dcc mov r7, r0                                    |     r7 = r0;
    0x00012dd0 mov r0, r6                                    |     r0 = r6;
    0x00012dd4 bl 0x129a8                                    |     r0 = fcn_000129a8 (r0, r1);
    0x00012dd8 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00012ddc addeq r8, sp, 8                               |         r8 += var_b4h;
                                                             |     }
                                                             |     if (r0 != 0) {
    0x00012de0 ldreq r4, [fp, -0xa0]                         |         r4 = var_a0h;
                                                             |     }
                                                             |     if (r0 == 0) {
    0x00012de4 addeq sl, r6, 0x18                            |         sl = r6 + 0x18;
                                                             |         goto label_7;
                                                             |     }
                                                             |     if (r0 != 0) {
                                                             | label_7:
    0x00012de8 bne 0x12d5c                                   |         goto label_0;
                                                             |     }
                                                             |     do {
    0x00012dec ldr r3, [fp, -0x9c]                           |         r3 = var_9ch;
    0x00012df0 cmp r4, r3                                    |         
                                                             |         if (r4 > r3) {
    0x00012df4 bgt 0x12e6c                                   |             goto label_8;
                                                             |         }
    0x00012df8 sub r3, fp, 0xa8                              |         r3 -= var_a8h;
    0x00012dfc sub r2, fp, 0xac                              |         r2 -= var_ach;
    0x00012e00 mov r1, r4                                    |         r1 = r4;
    0x00012e04 mov r0, sl                                    |         r0 = sl;
    0x00012e08 bl 0x12304                                    |         r0 = fcn_00012304 (r0, r1);
    0x00012e0c cmp r0, 0                                     |         
                                                             |         if (r0 == 0) {
    0x00012e10 beq 0x12e60                                   |             goto label_9;
                                                             |         }
    0x00012e14 bl 0x10b24                                    |         r0 = errno_location ();
    0x00012e18 ldr r3, [r0]                                  |         r3 = *(r0);
    0x00012e1c cmp r3, 2                                     |         
                                                             |         if (r3 != 2) {
    0x00012e20 bne 0x12e2c                                   |             goto label_10;
                                                             |         }
                                                             | label_2:
    0x00012e24 add r4, r4, 1                                 |         r4++;
    0x00012e28 b 0x12dec                                     |         
                                                             |     } while (1);
                                                             | label_10:
    0x00012e2c cmp r3, 0                                     |     
                                                             |     if (r3 != 0) {
    0x00012e30 bne 0x12d5c                                   |         goto label_0;
                                                             |     }
                                                             | label_3:
    0x00012e34 ldr r0, [pc, 0xcc]                            |     
    0x00012e38 mov r3, r5                                    |     r3 = r5;
    0x00012e3c str r7, [sp, 4]                               |     var_4h = r7;
    0x00012e40 str sb, [sp]                                  |     *(sp) = sb;
    0x00012e44 ldr r2, [pc, 0xc0]                            |     r2 = stderr;
    0x00012e48 ldr r1, [pc, 0xd0]                            |     r1 = "_s:_error_:___s__is_not_a_character_device";
    0x00012e4c ldr r0, [r0]                                  |     r0 = *(0x12f04);
    0x00012e50 bl 0x10a64                                    |     r0 = fprintf (r0, "_s:_error_:___s__is_not_a_character_device", r2, r3)
    0x00012e54 bl 0x10b24                                    |     errno_location ();
    0x00012e58 mov r3, 0x13                                  |     r3 = 0x13;
    0x00012e5c b 0x12d98                                     |     goto label_1;
                                                             | label_9:
    0x00012e60 ldr r3, [fp, -0xac]                           |     r3 = var_ach;
    0x00012e64 cmp r3, sb                                    |     
                                                             |     if (r3 != sb) {
    0x00012e68 bne 0x12e24                                   |         goto label_2;
                                                             |     }
                                                             | label_8:
    0x00012e6c ldr r3, [fp, -0x9c]                           |     r3 = var_9ch;
    0x00012e70 cmp r4, r3                                    |     
                                                             |     if (r4 > r3) {
    0x00012e74 bgt 0x12e34                                   |         goto label_3;
                                                             |     }
    0x00012e78 cmp r7, 0                                     |     
                                                             |     if (r7 == 0) {
    0x00012e7c moveq r0, 1                                   |         r0 = 1;
                                                             |         goto label_11;
                                                             |     }
                                                             |     if (r7 == 0) {
                                                             | label_11:
    0x00012e80 beq 0x12d60                                   |         goto label_4;
                                                             |     }
    0x00012e84 sub r3, r7, 1                                 |     r3 = r7 - 1;
    0x00012e88 mov r2, r4                                    |     r2 = r4;
    0x00012e8c ldr r1, [r6, 0x40]                            |     r1 = *((r6 + 0x40));
    0x00012e90 mov r0, r8                                    |     r0 = r8;
    0x00012e94 bl 0x10b18                                    |     sprintf (r0, r1, r2);
    0x00012e98 mov r1, 0                                     |     r1 = 0;
    0x00012e9c mov r0, r8                                    |     r0 = r8;
    0x00012ea0 bl 0x10af4                                    |     r0 = open64 ();
    0x00012ea4 cmn r0, 1                                     |     
                                                             |     if (r0 == 1) {
    0x00012ea8 beq 0x12e34                                   |         goto label_3;
                                                             |     }
    0x00012eac bl 0x10b6c                                    |     r0 = close (r0);
    0x00012eb0 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00012eb4 beq 0x12f00                                   |         
    0x00012eb8 bl 0x10b24                                    |         errno_location ();
    0x00012ebc ldr r5, [pc, 0x44]                            |         
    0x00012ec0 mov r3, r8                                    |         r3 = r8;
    0x00012ec4 ldr r2, [pc, 0x40]                            |         r2 = stderr;
    0x00012ec8 ldr r1, [pc, 0x54]                            |         r1 = "_s:_error_:___s__has_major:minor__d:_d__but_this_does_not_correspond_to_any_existing_UBI_device_or_volume";
    0x00012ecc ldr r4, [r0]                                  |         r4 = *(r0);
    0x00012ed0 ldr r0, [r5]                                  |         r0 = *(0x12f04);
    0x00012ed4 bl 0x10a64                                    |         fprintf (r0, "_s:_error_:___s__has_major:minor__d:_d__but_this_does_not_correspond_to_any_existing_UBI_device_or_volume", r2, r3, r4, r5)
    0x00012ed8 mov r0, r4                                    |         r0 = r4;
    0x00012edc ldr r5, [r5]                                  |         r5 = *(0x12f04);
    0x00012ee0 bl 0x109d4                                    |         strerror (r0);
    0x00012ee4 str r4, [sp]                                  |         *(sp) = r4;
    0x00012ee8 ldr r3, [pc, 0x24]                            |         r3 = "%s: error!: cannot get information about \"%s\"\n";
    0x00012eec mov r2, 8                                     |         r2 = 8;
    0x00012ef0 ldr r1, [pc, 0x20]                            |         r1 = *(0x12f14);
    0x00012ef4 str r0, [sp, 4]                               |         var_4h = r0;
    0x00012ef8 mov r0, r5                                    |         r0 = r5;
    0x00012efc bl 0x10a64                                    |         fprintf (r0, r1, r2, "%s: error!: cannot get information about \"%s\"\n", r4)
                                                             |     }
    0x00012f00 mov r0, 2                                     |     r0 = 2;
    0x00012f04 b 0x12d60                                     |     goto label_4;
                                                             | }
    ; 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/usr/sbin/ubinfo @ 0x13334 */
                                                             | #include <stdint.h>
                                                             |  
                                                             | #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
                                                             |  
    ; (fcn) fcn.00013334 ()                                  | void fcn_00013334 (int32_t arg1, int32_t arg2) {
                                                             |     int32_t var_128h;
                                                             |     int32_t var_124h;
                                                             |     int32_t var_0h;
                                                             |     int32_t var_4h;
                                                             |     char * s;
                                                             |     int32_t var_20h_2;
                                                             |     int32_t var_20h;
                                                             |     r0 = arg1;
                                                             |     r1 = arg2;
    0x00013334 push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x00013338 add sl, r2, 4                                 |     sl = r2 + 4;
    0x0001333c add fp, sp, 0x20                              |     
    0x00013340 sub sp, sp, 0x114                             |     
    0x00013344 mov r6, r1                                    |     r6 = r1;
    0x00013348 mov r5, r0                                    |     r5 = r0;
    0x0001334c mov r4, r2                                    |     r4 = r2;
    0x00013350 mov r1, 0                                     |     r1 = 0;
    0x00013354 mov r2, 0x54                                  |     r2 = 0x54;
    0x00013358 mov r0, sl                                    |     r0 = sl;
    0x0001335c bl 0x10adc                                    |     memset (r0, r1, r2);
    0x00013360 str r6, [r4]                                  |     *(r4) = r6;
    0x00013364 mov r1, r6                                    |     r1 = r6;
    0x00013368 mov r0, r5                                    |     r0 = r5;
    0x0001336c bl 0x132e0                                    |     r0 = fcn_000132e0 (r0, r1);
    0x00013370 cmp r0, 0                                     |     
    0x00013374 bne 0x13380                                   |     
                                                             |     while (r8 == r0) {
                                                             | label_0:
    0x00013378 mvn r0, 0                                     |         r0 = ~0;
    0x0001337c b 0x13644                                     |         goto label_3;
    0x00013380 ldr r0, [r5, 0xc]                             |         r0 = *((r5 + 0xc));
    0x00013384 bl 0x10b00                                    |         r0 = opendir ();
    0x00013388 subs r8, r0, 0                                |         r8 = r0 - 0;
    0x0001338c beq 0x13378                                   |         
                                                             |     }
    0x00013390 mvn r3, 0x80000000                            |     r3 = ~0x80000000;
    0x00013394 str r3, [r4, 0xc]                             |     *((r4 + 0xc)) = r3;
    0x00013398 bl 0x10b24                                    |     r0 = errno_location ();
    0x0001339c mov sb, r0                                    |     sb = r0;
                                                             |     do {
                                                             | label_1:
    0x000133a0 mov r3, 0                                     |         r3 = 0;
    0x000133a4 str r3, [sb]                                  |         *(sb) = r3;
    0x000133a8 mov r0, r8                                    |         r0 = r8;
    0x000133ac bl 0x10aa0                                    |         r0 = readdir64 ();
    0x000133b0 cmp r0, 0                                     |         
                                                             |         if (r0 == 0) {
    0x000133b4 beq 0x13450                                   |             goto label_4;
                                                             |         }
    0x000133b8 add r7, r0, 0x13                              |         r7 = r0 + 0x13;
    0x000133bc mov r0, r7                                    |         r0 = r7;
    0x000133c0 bl 0x10b3c                                    |         r0 = strlen (r0);
    0x000133c4 cmp r0, 0xfe                                  |         
                                                             |         if (r0 >= 0xfe) {
    0x000133c8 bls 0x133f4                                   |             
    0x000133cc ldr r0, [pc, 0x278]                           |             
    0x000133d0 str r7, [sp]                                  |             *(sp) = r7;
    0x000133d4 ldr r2, [pc, 0x274]                           |             r2 = stderr;
    0x000133d8 ldr r3, [r5, 0xc]                             |             r3 = *((r5 + 0xc));
    0x000133dc ldr r1, [pc, 0x270]                           |             r1 = "libubi";
    0x000133e0 ldr r0, [r0]                                  |             r0 = *(0x13648);
    0x000133e4 bl 0x10a64                                    |             fprintf (r0, "libubi", r2, r3)
                                                             | label_2:
    0x000133e8 mov r0, r8                                    |             r0 = r8;
    0x000133ec bl 0x10b54                                    |             closedir ();
    0x000133f0 b 0x13378                                     |             goto label_0;
                                                             |         }
    0x000133f4 sub r3, fp, 0x124                             |         r3 -= var_124h;
    0x000133f8 str r3, [sp]                                  |         *(sp) = r3;
    0x000133fc sub r2, fp, 0x128                             |         r2 -= var_128h;
    0x00013400 sub r3, fp, 0x12c                             |         r3 -= s;
    0x00013404 ldr r1, [pc, 0x24c]                           |         r1 = "%s: error!: invalid entry in %s: \"%s\"\n";
    0x00013408 mov r0, r7                                    |         r0 = r7;
    0x0001340c bl 0x10aac                                    |         r0 = sscanf (r0, "%s: error!: invalid entry in %s: \"%s\"\n", r2);
    0x00013410 cmp r0, 2                                     |         
    0x00013414 bne 0x133a0                                   |         
                                                             |     } while (r0 != 2);
    0x00013418 ldr r3, [fp, -0x128]                          |     r3 = var_128h;
    0x0001341c cmp r3, r6                                    |     
                                                             |     if (r3 != r6) {
    0x00013420 bne 0x133a0                                   |         goto label_1;
                                                             |     }
    0x00013424 ldr r3, [r4, 8]                               |     r3 = *((r4 + 8));
    0x00013428 ldr r2, [r4, 0x10]                            |     r2 = *((r4 + 0x10));
    0x0001342c add r3, r3, 1                                 |     r3++;
    0x00013430 str r3, [r4, 8]                               |     *((r4 + 8)) = r3;
    0x00013434 ldr r3, [fp, -0x12c]                          |     r3 = s;
    0x00013438 cmp r2, r3                                    |     
    0x0001343c ldr r2, [r4, 0xc]                             |     r2 = *((r4 + 0xc));
                                                             |     if (r2 >= r3) {
    0x00013440 strlt r3, [r4, 0x10]                          |         *((r4 + 0x10)) = r3;
                                                             |     }
    0x00013444 cmp r3, r2                                    |     
                                                             |     if (r3 >= r2) {
    0x00013448 strlt r3, [r4, 0xc]                           |         *((r4 + 0xc)) = r3;
                                                             |     }
    0x0001344c b 0x133a0                                     |     goto label_1;
                                                             | label_4:
    0x00013450 ldr r7, [sb]                                  |     r7 = *(sb);
    0x00013454 cmp r7, 0                                     |     
                                                             |     if (r7 != 0) {
    0x00013458 beq 0x134a0                                   |         
    0x0001345c ldr r4, [pc, 0x1e8]                           |         
    0x00013460 ldr r3, [r5, 0xc]                             |         r3 = *((r5 + 0xc));
    0x00013464 ldr r2, [pc, 0x1e4]                           |         r2 = stderr;
    0x00013468 ldr r1, [pc, 0x1ec]                           |         r1 = "ubi%d_%d%s";
    0x0001346c ldr r0, [r4]                                  |         r0 = *(0x13648);
    0x00013470 bl 0x10a64                                    |         fprintf (r0, "ubi%d_%d%s", r2, r3, r4)
    0x00013474 mov r0, r7                                    |         r0 = r7;
    0x00013478 ldr r4, [r4]                                  |         r4 = *(0x13648);
    0x0001347c bl 0x109d4                                    |         strerror (r0);
    0x00013480 str r7, [sp]                                  |         *(sp) = r7;
    0x00013484 ldr r3, [pc, 0x1d4]                           |         r3 = "_s:_error_:_readdir_failed_on___s_";
    0x00013488 mov r2, 8                                     |         r2 = 8;
    0x0001348c ldr r1, [pc, 0x1d0]                           |         r1 = *(0x13660);
    0x00013490 str r0, [sp, 4]                               |         var_4h = r0;
    0x00013494 mov r0, r4                                    |         r0 = r4;
    0x00013498 bl 0x10a64                                    |         fprintf (r0, r1, r2, "_s:_error_:_readdir_failed_on___s_")
    0x0001349c b 0x133e8                                     |         goto label_2;
                                                             |     }
    0x000134a0 mov r0, r8                                    |     r0 = r8;
    0x000134a4 bl 0x10b54                                    |     r0 = closedir ();
    0x000134a8 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x000134ac beq 0x134f8                                   |         
    0x000134b0 ldr r6, [pc, 0x194]                           |         r6 = *(0x13648);
    0x000134b4 ldr r4, [sb]                                  |         r4 = *(sb);
    0x000134b8 ldr r3, [r5, 0xc]                             |         r3 = *((r5 + 0xc));
    0x000134bc ldr r2, [pc, 0x18c]                           |         r2 = stderr;
    0x000134c0 ldr r1, [pc, 0x1a0]                           |         r1 = "_serror__d___s_";
    0x000134c4 ldr r0, [r6]                                  |         r0 = *(0x13648);
    0x000134c8 bl 0x10a64                                    |         fprintf (r0, "_serror__d___s_", r2, r3, r4, r5, r6)
    0x000134cc mov r0, r4                                    |         r0 = r4;
    0x000134d0 ldr r5, [r6]                                  |         r5 = *(0x13648);
    0x000134d4 bl 0x109d4                                    |         strerror (r0);
    0x000134d8 str r4, [sp]                                  |         *(sp) = r4;
    0x000134dc ldr r3, [pc, 0x17c]                           |         r3 = "_s:_error_:_readdir_failed_on___s_";
    0x000134e0 mov r2, 8                                     |         r2 = 8;
    0x000134e4 ldr r1, [pc, 0x178]                           |         r1 = *(0x13660);
    0x000134e8 str r0, [sp, 4]                               |         var_4h = r0;
    0x000134ec mov r0, r5                                    |         r0 = r5;
    0x000134f0 bl 0x10a64                                    |         fprintf (r0, r1, r2, "_s:_error_:_readdir_failed_on___s_", r4)
    0x000134f4 b 0x13378                                     |         goto label_0;
                                                             |     }
    0x000134f8 ldr r3, [r4, 0xc]                             |     r3 = *((r4 + 0xc));
    0x000134fc add r2, r4, 0x14                              |     r2 = r4 + 0x14;
    0x00013500 cmn r3, 0x80000001                            |     
                                                             |     if (r3 != 0x80000001) {
    0x00013504 streq r0, [r4, 0xc]                           |         *((r4 + 0xc)) = r0;
                                                             |     }
    0x00013508 add r3, r4, 0x18                              |     r3 = r4 + 0x18;
    0x0001350c mov r1, r6                                    |     r1 = r6;
    0x00013510 add r0, r5, 0x18                              |     r0 = r5 + 0x18;
    0x00013514 bl 0x12304                                    |     r0 = fcn_00012304 (r0, r1);
    0x00013518 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x0001351c bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013520 mov r2, sl                                    |     r2 = sl;
    0x00013524 mov r1, r6                                    |     r1 = r6;
    0x00013528 ldr r0, [r5, 0x3c]                            |     r0 = *((r5 + 0x3c));
    0x0001352c bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013530 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013534 bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013538 add r2, r4, 0x20                              |     r2 = r4 + 0x20;
    0x0001353c mov r1, r6                                    |     r1 = r6;
    0x00013540 ldr r0, [r5, 0x1c]                            |     r0 = *((r5 + 0x1c));
    0x00013544 bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013548 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x0001354c bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013550 add r2, r4, 0x1c                              |     r2 = r4 + 0x1c;
    0x00013554 mov r1, r6                                    |     r1 = r6;
    0x00013558 ldr r0, [r5, 0x20]                            |     r0 = *((r5 + 0x20));
    0x0001355c bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013560 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013564 bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013568 add r2, r4, 0x38                              |     r2 = r4 + 0x38;
    0x0001356c mov r1, r6                                    |     r1 = r6;
    0x00013570 ldr r0, [r5, 0x24]                            |     r0 = *((r5 + 0x24));
    0x00013574 bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013578 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x0001357c bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013580 add r2, r4, 0x3c                              |     r2 = r4 + 0x3c;
    0x00013584 mov r1, r6                                    |     r1 = r6;
    0x00013588 ldr r0, [r5, 0x28]                            |     r0 = *((r5 + 0x28));
    0x0001358c bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013590 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013594 bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013598 add r2, r4, 0x48                              |     r2 = r4 + 0x48;
    0x0001359c mov r1, r6                                    |     r1 = r6;
    0x000135a0 ldr r0, [r5, 0x30]                            |     r0 = *((r5 + 0x30));
    0x000135a4 bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x000135a8 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x000135ac bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x000135b0 ldr r8, [r5, 0x2c]                            |     r8 = *((r5 + 0x2c));
    0x000135b4 mov sb, sp                                    |     sb = sp;
    0x000135b8 mov r0, r8                                    |     r0 = r8;
    0x000135bc bl 0x10b3c                                    |     strlen (r0);
    0x000135c0 mov r2, r6                                    |     r2 = r6;
    0x000135c4 mov r1, r8                                    |     r1 = r8;
    0x000135c8 add r0, r0, 0x39                              |     r0 += 0x39;
    0x000135cc bic r0, r0, 7                                 |     r0 = BIT_MASK (r0, 7);
    0x000135d0 sub sp, sp, r0                                |     
    0x000135d4 add r7, sp, 8                                 |     r7 += s;
    0x000135d8 mov r0, r7                                    |     r0 = r7;
    0x000135dc bl 0x10b18                                    |     sprintf (r0, r1, r2);
    0x000135e0 add r1, r4, 0x40                              |     r1 = r4 + 0x40;
    0x000135e4 mov r0, r7                                    |     r0 = r7;
    0x000135e8 bl 0x11bf4                                    |     fcn_00011bf4 (r0, r1);
    0x000135ec mov sp, sb                                    |     
    0x000135f0 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x000135f4 bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x000135f8 add r2, r4, 0x4c                              |     r2 = r4 + 0x4c;
    0x000135fc mov r1, r6                                    |     r1 = r6;
    0x00013600 ldr r0, [r5, 0x34]                            |     r0 = *((r5 + 0x34));
    0x00013604 bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013608 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x0001360c bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013610 add r2, r4, 0x50                              |     r2 = r4 + 0x50;
    0x00013614 mov r1, r6                                    |     r1 = r6;
    0x00013618 ldr r0, [r5, 0x38]                            |     r0 = *((r5 + 0x38));
    0x0001361c bl 0x11e18                                    |     r0 = fcn_00011e18 (r0, r1);
    0x00013620 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013624 bne 0x13378                                   |         goto label_0;
                                                             |     }
    0x00013628 ldr r3, [r4, 0x3c]                            |     r3 = *((r4 + 0x3c));
    0x0001362c ldr r2, [r4, 0x20]                            |     r2 = *((r4 + 0x20));
    0x00013630 smull r6, r7, r2, r3                          |     r6:r7 = r2 * r3;
    0x00013634 ldr r2, [r4, 0x1c]                            |     r2 = *((r4 + 0x1c));
    0x00013638 strd r6, r7, [r4, 0x30]                       |     __asm ("strd r6, r7, [r4, 0x30]");
    0x0001363c smull r6, r7, r2, r3                          |     r6:r7 = r2 * r3;
    0x00013640 strd r6, r7, [r4, 0x28]                       |     __asm ("strd r6, r7, [r4, 0x28]");
                                                             | label_3:
    0x00013644 sub sp, fp, 0x20                              |     
    0x00013648 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |     
                                                             | }
    ; 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/usr/sbin/ubinfo @ 0x1366c */
                                                         | #include <stdint.h>
                                                         |  
    ; (fcn) fcn.0001366c ()                              | void fcn_0001366c (int32_t arg1, int32_t arg2) {
                                                         |     int32_t var_0h;
                                                         |     int32_t var_4h;
                                                         |     int32_t var_8h;
                                                         |     int32_t var_ch;
                                                         |     int32_t var_10h;
                                                         |     int32_t var_14h;
                                                         |     int32_t var_18h;
                                                         |     int32_t var_28h;
                                                         |     int32_t var_38h;
                                                         |     int32_t var_48h;
                                                         |     int32_t var_48h_2;
                                                         |     int32_t var_90h;
                                                         |     r0 = arg1;
                                                         |     r1 = arg2;
    0x0001366c push {r4, r5, r6, r7, r8, sb, sl, lr}     |     
    0x00013670 sub sp, sp, 0x90                          |     
    0x00013674 mov r6, r0                                |     r6 = r0;
    0x00013678 mov r4, r1                                |     r4 = r1;
    0x0001367c mov r7, r2                                |     r7 = r2;
    0x00013680 bl 0x12cd8                                |     r0 = fcn_00012cd8 (r0, r1);
    0x00013684 cmp r0, 1                                 |     
                                                         |     if (r0 == 1) {
    0x00013688 beq 0x136a8                               |         goto label_2;
                                                         |     }
    0x0001368c cmp r0, 2                                 |     
                                                         |     if (r0 != 2) {
    0x00013690 bne 0x136a0                               |         goto label_0;
                                                         |     }
    0x00013694 bl 0x10b24                                |     errno_location ();
    0x00013698 mov r3, 0x13                              |     r3 = 0x13;
    0x0001369c str r3, [r0]                              |     *(r0) = r3;
                                                         |     do {
                                                         | label_0:
    0x000136a0 mvn r0, 0                                 |         r0 = ~0;
    0x000136a4 b 0x13834                                 |         goto label_3;
                                                         | label_2:
    0x000136a8 add r1, sp, 0x28                          |         r1 += var_28h;
    0x000136ac mov r0, r4                                |         r0 = r4;
    0x000136b0 bl 0x109e0                                |         r0 = stat64 ();
    0x000136b4 cmp r0, 0                                 |         
                                                         |         if (r0 == 0) {
    0x000136b8 beq 0x13708                               |             goto label_4;
                                                         |         }
    0x000136bc bl 0x10b24                                |         errno_location ();
    0x000136c0 ldr r6, [pc, 0x174]                       |         r6 = *(0x13838);
    0x000136c4 mov r3, r4                                |         r3 = r4;
    0x000136c8 ldr r2, [pc, 0x170]                       |         r2 = stderr;
    0x000136cc ldr r1, [pc, 0x170]                       |         r1 = "libubi";
    0x000136d0 ldr r5, [r0]                              |         r5 = *(r0);
    0x000136d4 ldr r0, [r6]                              |         r0 = *(0x13838);
    0x000136d8 bl 0x10a64                                |         fprintf (r0, "libubi", r2, r3, r4, r5, r6)
    0x000136dc mov r0, r5                                |         r0 = r5;
    0x000136e0 ldr r4, [r6]                              |         r4 = *(0x13838);
    0x000136e4 bl 0x109d4                                |         strerror (r0);
    0x000136e8 str r5, [sp]                              |         *(sp) = r5;
    0x000136ec ldr r3, [pc, 0x154]                       |         r3 = "%s: error!: cannot get information about \"%s\"\n";
    0x000136f0 mov r2, 8                                 |         r2 = 8;
    0x000136f4 ldr r1, [pc, 0x150]                       |         r1 = *(0x13848);
    0x000136f8 str r0, [sp, 4]                           |         var_4h = r0;
    0x000136fc mov r0, r4                                |         r0 = r4;
    0x00013700 bl 0x10a64                                |         fprintf (r0, r1, r2, "%s: error!: cannot get information about \"%s\"\n", r4, r5)
    0x00013704 b 0x136a0                                 |         
                                                         |     } while (1);
                                                         | label_4:
    0x00013708 ldr r3, [sp, 0x38]                        |     r3 = var_38h;
    0x0001370c and r3, r3, 0xf000                        |     r3 &= 0xf000;
    0x00013710 cmp r3, 0x2000                            |     
                                                         |     if (r3 == 0x2000) {
    0x00013714 beq 0x13740                               |         goto label_5;
                                                         |     }
    0x00013718 bl 0x10b24                                |     errno_location ();
    0x0001371c ldr r2, [pc, 0x11c]                       |     r2 = stderr;
    0x00013720 ldr r1, [pc, 0x128]                       |     r1 = "_serror__d___s_";
    0x00013724 mov r3, 0x16                              |     r3 = 0x16;
    0x00013728 str r3, [r0]                              |     *(r0) = r3;
    0x0001372c mov r3, r4                                |     r3 = r4;
                                                         |     do {
    0x00013730 ldr r0, [pc, 0x104]                       |         
    0x00013734 ldr r0, [r0]                              |         r0 = *(0x13838);
    0x00013738 bl 0x10a64                                |         fprintf (r0, "_serror__d___s_", r2, r3)
    0x0001373c b 0x136a0                                 |         goto label_0;
                                                         | label_5:
    0x00013740 ldrd r8, sb, [sp, 0x48]                   |         __asm ("ldrd r8, sb, [var_48h]");
    0x00013744 mov r1, sb                                |         r1 = sb;
    0x00013748 mov r0, r8                                |         r0 = r8;
    0x0001374c bl 0x10a04                                |         gnu_dev_major ();
    0x00013750 mov r1, sb                                |         r1 = sb;
    0x00013754 mov sl, r0                                |         sl = r0;
    0x00013758 mov r0, r8                                |         r0 = r8;
    0x0001375c bl 0x10a40                                |         r0 = gnu_dev_minor ();
    0x00013760 cmp r0, 0                                 |         
                                                         |         if (r0 == 0) {
    0x00013764 beq 0x13784                               |             goto label_6;
                                                         |         }
    0x00013768 bl 0x10b24                                |         errno_location ();
    0x0001376c mov r3, 0x16                              |         r3 = 0x16;
    0x00013770 ldr r2, [pc, 0xc8]                        |         r2 = stderr;
    0x00013774 ldr r1, [pc, 0xd8]                        |         r1 = "_s:_error_:___s__is_not_a_character_device";
    0x00013778 str r3, [r0]                              |         *(r0) = r3;
    0x0001377c mov r3, r4                                |         r3 = r4;
    0x00013780 b 0x13730                                 |         
                                                         |     } while (1);
                                                         | label_6:
    0x00013784 add r1, sp, 0x10                          |     r1 += var_10h;
    0x00013788 mov r0, r6                                |     r0 = r6;
    0x0001378c bl 0x129a8                                |     r0 = fcn_000129a8 (r0, r1);
    0x00013790 cmp r0, 0                                 |     
                                                         |     if (r0 != 0) {
    0x00013794 bne 0x136a0                               |         goto label_0;
                                                         |     }
    0x00013798 bl 0x10b24                                |     errno_location ();
    0x0001379c ldr r4, [sp, 0x14]                        |     r4 = var_14h;
    0x000137a0 add r8, r6, 0x18                          |     r8 = r6 + 0x18;
    0x000137a4 mov r5, r0                                |     r5 = r0;
                                                         | label_1:
    0x000137a8 ldr r3, [sp, 0x18]                        |     r3 = var_18h;
    0x000137ac cmp r4, r3                                |     
                                                         |     if (r4 <= r3) {
    0x000137b0 movgt r3, 0x13                            |         r3 = 0x13;
                                                         |     }
                                                         |     if (r4 > r3) {
    0x000137b4 bgt 0x13818                               |         goto label_7;
                                                         |     }
    0x000137b8 add r3, sp, 0xc                           |     r3 += var_ch;
    0x000137bc add r2, sp, 8                             |     r2 += var_8h;
    0x000137c0 mov r1, r4                                |     r1 = r4;
    0x000137c4 mov r0, r8                                |     r0 = r8;
    0x000137c8 bl 0x12304                                |     r0 = fcn_00012304 (r0, r1);
    0x000137cc cmp r0, 0                                 |     
                                                         |     if (r0 == 0) {
    0x000137d0 beq 0x137e8                               |         goto label_8;
                                                         |     }
    0x000137d4 ldr r3, [r5]                              |     r3 = *(r5);
    0x000137d8 cmp r3, 2                                 |     
                                                         |     if (r3 != 2) {
    0x000137dc bne 0x136a0                               |         goto label_0;
                                                         |     }
                                                         |     do {
    0x000137e0 add r4, r4, 1                             |         r4++;
    0x000137e4 b 0x137a8                                 |         goto label_1;
                                                         | label_8:
    0x000137e8 ldr r3, [sp, 8]                           |         r3 = var_8h;
    0x000137ec cmp sl, r3                                |         
    0x000137f0 bne 0x137e0                               |         
                                                         |     } while (sl != r3);
    0x000137f4 ldr r3, [sp, 0xc]                         |     r3 = var_ch;
    0x000137f8 cmp r3, 0                                 |     
                                                         |     if (r3 != 0) {
    0x000137fc beq 0x13820                               |         
    0x00013800 ldr r0, [pc, 0x34]                        |         
    0x00013804 ldr r2, [pc, 0x34]                        |         r2 = stderr;
    0x00013808 ldr r1, [pc, 0x48]                        |         r1 = "_s:_error_:___s__is_not_an_UBI_character_device";
    0x0001380c ldr r0, [r0]                              |         r0 = *(0x13838);
    0x00013810 bl 0x10a64                                |         fprintf (r0, "_s:_error_:___s__is_not_an_UBI_character_device", r2)
    0x00013814 mov r3, 0x16                              |         r3 = 0x16;
                                                         | label_7:
    0x00013818 str r3, [r5]                              |         *(r5) = r3;
    0x0001381c b 0x136a0                                 |         goto label_0;
                                                         |     }
    0x00013820 str r3, [r5]                              |     *(r5) = r3;
    0x00013824 mov r2, r7                                |     r2 = r7;
    0x00013828 mov r1, r4                                |     r1 = r4;
    0x0001382c mov r0, r6                                |     r0 = r6;
    0x00013830 bl 0x13334                                |     fcn_00013334 (r0, r1);
                                                         | label_3:
    0x00013834 add sp, sp, 0x90                          |     
    0x00013838 pop {r4, r5, r6, r7, r8, sb, sl, pc}      |     
                                                         | }
    ; 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/usr/sbin/ubinfo @ 0x1385c */
                                                             | #include <stdint.h>
                                                             |  
                                                             | #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
                                                             |  
    ; (fcn) fcn.0001385c ()                                  | void fcn_0001385c (int32_t arg1, int32_t arg2) {
                                                             |     char * s1;
                                                             |     int32_t var_0h;
                                                             |     int32_t var_20h_2;
                                                             |     int32_t var_20h;
                                                             |     r0 = arg1;
                                                             |     r1 = arg2;
    0x0001385c push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x00013860 add sb, r3, 8                                 |     sb = r3 + 8;
    0x00013864 add fp, sp, 0x20                              |     
    0x00013868 sub sp, sp, 0x3c                              |     
    0x0001386c mov r5, r1                                    |     r5 = r1;
    0x00013870 mov r6, r2                                    |     r6 = r2;
    0x00013874 mov r1, 0                                     |     r1 = 0;
    0x00013878 mov r2, 0xb0                                  |     r2 = 0xb0;
    0x0001387c mov r7, r0                                    |     r7 = r0;
    0x00013880 mov r0, sb                                    |     r0 = sb;
    0x00013884 mov r4, r3                                    |     r4 = r3;
    0x00013888 bl 0x10adc                                    |     memset (r0, r1, r2);
    0x0001388c ldr sl, [r7, 0x48]                            |     sl = *((r7 + 0x48));
    0x00013890 stm r4, {r5, r6}                              |     *(r4) = r5;
                                                             |     *((r4 + 4)) = r6;
    0x00013894 mov r0, sl                                    |     r0 = sl;
    0x00013898 bl 0x10b3c                                    |     strlen (r0);
    0x0001389c mov r8, sp                                    |     r8 = sp;
    0x000138a0 mov r3, r6                                    |     r3 = r6;
    0x000138a4 mov r2, r5                                    |     r2 = r5;
    0x000138a8 mov r1, sl                                    |     r1 = sl;
    0x000138ac add r0, r0, 0x6b                              |     r0 += 0x6b;
    0x000138b0 bic r0, r0, 7                                 |     r0 = BIT_MASK (r0, 7);
    0x000138b4 sub sp, sp, r0                                |     
    0x000138b8 mov r0, sp                                    |     r0 = sp;
    0x000138bc bl 0x10b18                                    |     sprintf (r0, r1, r2);
    0x000138c0 mov r0, sp                                    |     r0 = sp;
    0x000138c4 add r2, r4, 0xc                               |     r2 = r4 + 0xc;
    0x000138c8 mov r1, sb                                    |     r1 = sb;
    0x000138cc bl 0x1222c                                    |     fcn_0001222c (r0, r1);
    0x000138d0 mov sp, r8                                    |     
    0x000138d4 cmp r0, 0                                     |     
    0x000138d8 beq 0x138ec                                   |     
                                                             |     while (r8 < r0) {
                                                             | label_0:
    0x000138dc mvn r8, 0                                     |         r8 = ~0;
                                                             | label_1:
    0x000138e0 mov r0, r8                                    |         r0 = r8;
    0x000138e4 sub sp, fp, 0x20                              |         
    0x000138e8 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |         
    0x000138ec ldr sb, [r7, 0x44]                            |         sb = *((r7 + 0x44));
    0x000138f0 mov r0, sb                                    |         r0 = sb;
    0x000138f4 bl 0x10b3c                                    |         strlen (r0);
    0x000138f8 mov r3, r6                                    |         r3 = r6;
    0x000138fc mov r2, r5                                    |         r2 = r5;
    0x00013900 mov r1, sb                                    |         r1 = sb;
    0x00013904 add r0, r0, 0x6b                              |         r0 += 0x6b;
    0x00013908 bic r0, r0, 7                                 |         r0 = BIT_MASK (r0, 7);
    0x0001390c sub sp, sp, r0                                |         
    0x00013910 mov r0, sp                                    |         r0 = sp;
    0x00013914 bl 0x10b18                                    |         sprintf (r0, r1, r2);
    0x00013918 mov r0, sp                                    |         r0 = sp;
    0x0001391c mov r2, 0x32                                  |         r2 = 0x32;
    0x00013920 sub r1, fp, 0x58                              |         r1 -= s1;
    0x00013924 bl 0x11eb0                                    |         fcn_00011eb0 (r0, r1);
    0x00013928 mov sp, r8                                    |         
    0x0001392c subs r8, r0, 0                                |         r8 = r0 - 0;
    0x00013930 blt 0x138dc                                   |         
                                                             |     }
    0x00013934 mov r2, r8                                    |     r2 = r8;
    0x00013938 ldr r1, [pc, 0x174]                           |     r1 = *(0x13ab0);
    0x0001393c sub r0, fp, 0x58                              |     r0 -= s1;
    0x00013940 bl 0x10a88                                    |     r0 = strncmp (r0, r1, r2);
    0x00013944 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013948 moveq r3, 4                                   |         r3 = 4;
                                                             |     }
                                                             |     if (r0 != 0) {
    0x0001394c beq 0x1396c                                   |         
    0x00013950 mov r2, r8                                    |         r2 = r8;
    0x00013954 ldr r1, [pc, 0x15c]                           |         r1 = "static\n";
    0x00013958 sub r0, fp, 0x58                              |         r0 -= s1;
    0x0001395c bl 0x10a88                                    |         r0 = strncmp (r0, "static\n", r2);
    0x00013960 cmp r0, 0                                     |         
                                                             |         if (r0 != 0) {
    0x00013964 bne 0x13a8c                                   |             goto label_2;
                                                             |         }
    0x00013968 mov r3, 3                                     |         r3 = 3;
                                                             |     }
    0x0001396c str r3, [r4, 0x10]                            |     *((r4 + 0x10)) = r3;
    0x00013970 mov r2, r6                                    |     r2 = r6;
    0x00013974 add r3, r4, 0x14                              |     r3 = r4 + 0x14;
    0x00013978 mov r1, r5                                    |     r1 = r5;
    0x0001397c ldr r0, [r7, 0x4c]                            |     r0 = *((r7 + 0x4c));
    0x00013980 bl 0x11e60                                    |     r0 = fcn_00011e60 (r0, r1);
    0x00013984 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013988 bne 0x138dc                                   |         goto label_0;
                                                             |     }
    0x0001398c ldr r8, [r7, 0x50]                            |     r8 = *((r7 + 0x50));
    0x00013990 mov sb, sp                                    |     sb = sp;
    0x00013994 mov r0, r8                                    |     r0 = r8;
    0x00013998 bl 0x10b3c                                    |     strlen (r0);
    0x0001399c mov r3, r6                                    |     r3 = r6;
    0x000139a0 mov r2, r5                                    |     r2 = r5;
    0x000139a4 mov r1, r8                                    |     r1 = r8;
    0x000139a8 add r0, r0, 0x6b                              |     r0 += 0x6b;
    0x000139ac bic r0, r0, 7                                 |     r0 = BIT_MASK (r0, 7);
    0x000139b0 sub sp, sp, r0                                |     
    0x000139b4 mov r0, sp                                    |     r0 = sp;
    0x000139b8 bl 0x10b18                                    |     sprintf (r0, r1, r2);
    0x000139bc mov r0, sp                                    |     r0 = sp;
    0x000139c0 add r1, r4, 0x18                              |     r1 = r4 + 0x18;
    0x000139c4 bl 0x11bf4                                    |     fcn_00011bf4 (r0, r1);
    0x000139c8 mov sp, sb                                    |     
    0x000139cc cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x000139d0 bne 0x138dc                                   |         goto label_0;
                                                             |     }
    0x000139d4 add r3, r4, 0x28                              |     r3 = r4 + 0x28;
    0x000139d8 mov r2, r6                                    |     r2 = r6;
    0x000139dc mov r1, r5                                    |     r1 = r5;
    0x000139e0 ldr r0, [r7, 0x54]                            |     r0 = *((r7 + 0x54));
    0x000139e4 bl 0x11e60                                    |     r0 = fcn_00011e60 (r0, r1);
    0x000139e8 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x000139ec bne 0x138dc                                   |         goto label_0;
                                                             |     }
    0x000139f0 add r3, r4, 0x2c                              |     r3 = r4 + 0x2c;
    0x000139f4 mov r2, r6                                    |     r2 = r6;
    0x000139f8 mov r1, r5                                    |     r1 = r5;
    0x000139fc ldr r0, [r7, 0x58]                            |     r0 = *((r7 + 0x58));
    0x00013a00 bl 0x11e60                                    |     r0 = fcn_00011e60 (r0, r1);
    0x00013a04 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00013a08 bne 0x138dc                                   |         goto label_0;
                                                             |     }
    0x00013a0c add r3, r4, 0x30                              |     r3 = r4 + 0x30;
    0x00013a10 mov r2, r6                                    |     r2 = r6;
    0x00013a14 mov r1, r5                                    |     r1 = r5;
    0x00013a18 ldr r0, [r7, 0x5c]                            |     r0 = *((r7 + 0x5c));
    0x00013a1c bl 0x11e60                                    |     r0 = fcn_00011e60 (r0, r1);
    0x00013a20 subs r8, r0, 0                                |     r8 = r0 - 0;
                                                             |     if (r8 != r0) {
    0x00013a24 bne 0x138dc                                   |         goto label_0;
                                                             |     }
    0x00013a28 ldr r1, [r4, 0x28]                            |     r1 = *((r4 + 0x28));
    0x00013a2c ldr r0, [r4, 0x2c]                            |     r0 = *((r4 + 0x2c));
    0x00013a30 ldr r7, [r7, 0x60]                            |     r7 = *((r7 + 0x60));
    0x00013a34 smull r2, r3, r0, r1                          |     r2:r3 = r0 * r1;
    0x00013a38 mov r0, r7                                    |     r0 = r7;
    0x00013a3c strd r2, r3, [r4, 0x20]                       |     __asm ("strd r2, r3, [r4, 0x20]");
    0x00013a40 bl 0x10b3c                                    |     strlen (r0);
    0x00013a44 mov r3, r6                                    |     r3 = r6;
    0x00013a48 mov r2, r5                                    |     r2 = r5;
    0x00013a4c mov r1, r7                                    |     r1 = r7;
    0x00013a50 add r0, r0, 0x6b                              |     r0 += 0x6b;
    0x00013a54 bic r0, r0, 7                                 |     r0 = BIT_MASK (r0, 7);
    0x00013a58 sub sp, sp, r0                                |     
    0x00013a5c mov r0, sp                                    |     r0 = sp;
    0x00013a60 bl 0x10b18                                    |     sprintf (r0, r1, r2);
    0x00013a64 mov r0, sp                                    |     r0 = sp;
    0x00013a68 mov r2, 0x81                                  |     r2 = 0x81;
    0x00013a6c add r1, r4, 0x34                              |     r1 = r4 + 0x34;
    0x00013a70 bl 0x11eb0                                    |     fcn_00011eb0 (r0, r1);
    0x00013a74 mov sp, sb                                    |     
    0x00013a78 cmp r0, 0                                     |     
                                                             |     if (r0 < 0) {
    0x00013a7c blt 0x138dc                                   |         goto label_0;
                                                             |     }
    0x00013a80 add r4, r4, r0                                |     r4 += r0;
    0x00013a84 strb r8, [r4, 0x33]                           |     *((r4 + 0x33)) = r8;
    0x00013a88 b 0x138e0                                     |     goto label_1;
                                                             | label_2:
    0x00013a8c ldr r0, [pc, 0x28]                            |     
    0x00013a90 sub r3, fp, 0x58                              |     r3 -= s1;
    0x00013a94 ldr r2, [pc, 0x24]                            |     r2 = stderr;
    0x00013a98 ldr r1, [pc, 0x24]                            |     r1 = "libubi";
    0x00013a9c ldr r0, [r0]                                  |     r0 = "dynamic\n";
    0x00013aa0 bl 0x10a64                                    |     r0 = fprintf ("dynamic\n", "libubi", r2, r3)
    0x00013aa4 bl 0x10b24                                    |     errno_location ();
    0x00013aa8 mov r3, 0x16                                  |     r3 = 0x16;
    0x00013aac str r3, [r0]                                  |     *(r0) = r3;
    0x00013ab0 b 0x138dc                                     |     goto label_0;
                                                             | }
    ; 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/usr/sbin/ubinfo @ 0x13ac8 */
                                                                 | #include <stdint.h>
                                                                 |  
                                                                 | #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
                                                                 |  
    ; (fcn) fcn.00013ac8 ()                                      | void fcn_00013ac8 (int32_t arg1, int32_t arg2) {
                                                                 |     int32_t var_b4h;
                                                                 |     int32_t var_b0h;
                                                                 |     int32_t var_ach;
                                                                 |     int32_t var_a8h;
                                                                 |     int32_t var_a4h;
                                                                 |     int32_t var_a0h;
                                                                 |     int32_t var_9ch;
                                                                 |     int32_t var_8ch;
                                                                 |     int32_t var_7ch;
                                                                 |     int32_t var_6ch;
                                                                 |     int32_t var_0h;
                                                                 |     int32_t var_4h;
                                                                 |     int32_t var_8h;
                                                                 |     int32_t var_bch;
                                                                 |     int32_t var_sp_6ch;
                                                                 |     int32_t var_20h_2;
                                                                 |     int32_t var_20h;
                                                                 |     r0 = arg1;
                                                                 |     r1 = arg2;
    0x00013ac8 push {r4, r5, r6, r7, r8, sb, sl, fp, lr}         |     
    0x00013acc add fp, sp, 0x20                                  |     
    0x00013ad0 sub sp, sp, 0xa4                                  |     
    0x00013ad4 mov r5, r0                                        |     r5 = r0;
    0x00013ad8 mov r6, r1                                        |     r6 = r1;
    0x00013adc mov sb, r2                                        |     sb = r2;
    0x00013ae0 bl 0x12cd8                                        |     r0 = fcn_00012cd8 (r0, r1);
    0x00013ae4 cmp r0, 2                                         |     
                                                                 |     if (r0 == 2) {
    0x00013ae8 beq 0x13b10                                       |         goto label_7;
                                                                 |     }
    0x00013aec cmp r0, 1                                         |     
    0x00013af0 beq 0x13b00                                       |     
                                                                 |     while (1) {
                                                                 | label_0:
    0x00013af4 mvn r0, 0                                         |         r0 = ~0;
                                                                 | label_1:
    0x00013af8 sub sp, fp, 0x20                                  |         
    0x00013afc pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}          |         
    0x00013b00 bl 0x10b24                                        |         errno_location ();
    0x00013b04 mov r3, 0x13                                      |         r3 = 0x13;
    0x00013b08 str r3, [r0]                                      |         *(r0) = r3;
    0x00013b0c b 0x13af4                                         |         
                                                                 |     }
                                                                 | label_7:
    0x00013b10 ldr r0, [r5, 0x40]                                |     r0 = *((r5 + 0x40));
    0x00013b14 str sp, [fp, -0xb0]                               |     var_b0h = sp;
    0x00013b18 bl 0x10b3c                                        |     strlen (r0);
    0x00013b1c sub r1, fp, 0x8c                                  |     r1 -= var_8ch;
    0x00013b20 add r0, r0, 0x6b                                  |     r0 += 0x6b;
    0x00013b24 bic r0, r0, 7                                     |     r0 = BIT_MASK (r0, 7);
    0x00013b28 sub sp, sp, r0                                    |     
    0x00013b2c mov r0, r6                                        |     r0 = r6;
    0x00013b30 bl 0x109e0                                        |     stat64 ();
    0x00013b34 add r7, sp, 8                                     |     r7 += var_8h;
    0x00013b38 cmp r0, 0                                         |     
                                                                 |     if (r0 != 0) {
    0x00013b3c beq 0x13b8c                                       |         
    0x00013b40 bl 0x10b24                                        |         errno_location ();
    0x00013b44 ldr sl, [pc, 0x200]                               |         sl = obj.stderr;
    0x00013b48 mov r3, r6                                        |         r3 = r6;
    0x00013b4c ldr r2, [pc, 0x1fc]                               |         r2 = stderr;
    0x00013b50 ldr r1, [pc, 0x1fc]                               |         r1 = "libubi";
    0x00013b54 ldr r7, [r0]                                      |         r7 = *(r0);
    0x00013b58 ldr r0, [sl]                                      |         r0 = *(sl);
    0x00013b5c bl 0x10a64                                        |         fprintf (r0, "libubi", r2, r3)
    0x00013b60 mov r0, r7                                        |         r0 = r7;
    0x00013b64 ldr r6, [sl]                                      |         r6 = *(sl);
    0x00013b68 bl 0x109d4                                        |         strerror (r0);
    0x00013b6c ldr r3, [pc, 0x1e4]                               |         r3 = "%s: error!: cannot get information about \"%s\"\n";
    0x00013b70 ldr r1, [pc, 0x1e4]                               |         r1 = *(0x13d58);
    0x00013b74 mov r2, 8                                         |         r2 = 8;
    0x00013b78 str r7, [sp]                                      |         *(sp) = r7;
    0x00013b7c str r0, [sp, 4]                                   |         var_4h = r0;
    0x00013b80 mov r0, r6                                        |         r0 = r6;
                                                                 | label_6:
    0x00013b84 bl 0x10a64                                        |         fprintf (r0, r1, r2, "%s: error!: cannot get information about \"%s\"\n")
    0x00013b88 b 0x13bc0                                         |         
                                                                 |     } else {
    0x00013b8c ldr r3, [fp, -0x7c]                               |         r3 = var_7ch;
    0x00013b90 and r3, r3, 0xf000                                |         r3 &= 0xf000;
    0x00013b94 cmp r3, 0x2000                                    |         
                                                                 |         if (r3 == 0x2000) {
    0x00013b98 beq 0x13be8                                       |             goto label_8;
                                                                 |         }
    0x00013b9c bl 0x10b24                                        |         errno_location ();
    0x00013ba0 ldr r2, [pc, 0x1a8]                               |         r2 = stderr;
    0x00013ba4 ldr r1, [pc, 0x1b4]                               |         r1 = "_serror__d___s_";
    0x00013ba8 mov r3, 0x16                                      |         r3 = 0x16;
    0x00013bac str r3, [r0]                                      |         *(r0) = r3;
    0x00013bb0 mov r3, r6                                        |         r3 = r6;
                                                                 | label_2:
    0x00013bb4 ldr r0, [pc, 0x190]                               |         
    0x00013bb8 ldr r0, [r0]                                      |         r0 = *(0x13d48);
    0x00013bbc bl 0x10a64                                        |         fprintf (r0, "_serror__d___s_", r2, r3)
                                                                 |     }
                                                                 | label_3:
    0x00013bc0 mvn r3, 0                                         |     r3 = ~0;
                                                                 | label_5:
    0x00013bc4 cmp r3, 0                                         |     
    0x00013bc8 ldr sp, [fp, -0xb0]                               |     sp = var_b0h;
                                                                 |     if (r3 != 0) {
    0x00013bcc bne 0x13af4                                       |         goto label_0;
                                                                 |     }
    0x00013bd0 mov r3, sb                                        |     r3 = sb;
    0x00013bd4 mov r2, r8                                        |     r2 = r8;
    0x00013bd8 mov r1, r4                                        |     r1 = r4;
    0x00013bdc mov r0, r5                                        |     r0 = r5;
    0x00013be0 bl 0x1385c                                        |     fcn_0001385c (r0, r1);
    0x00013be4 b 0x13af8                                         |     goto label_1;
                                                                 | label_8:
    0x00013be8 ldrd r2, r3, [fp, -0x6c]                          |     __asm ("ldrd r2, r3, [var_6ch]");
    0x00013bec mov r1, r3                                        |     r1 = r3;
    0x00013bf0 mov r0, r2                                        |     r0 = r2;
    0x00013bf4 strd r2, r3, [fp, -0xbc]                          |     __asm ("strd r2, r3, [var_8h]");
    0x00013bf8 bl 0x10a04                                        |     gnu_dev_major ();
    0x00013bfc ldrd r2, r3, [fp, -0xbc]                          |     __asm ("ldrd r2, r3, [var_8h]");
    0x00013c00 mov r1, r3                                        |     r1 = r3;
    0x00013c04 mov sl, r0                                        |     sl = r0;
    0x00013c08 mov r0, r2                                        |     r0 = r2;
    0x00013c0c bl 0x10a40                                        |     r0 = gnu_dev_minor ();
    0x00013c10 subs r3, r0, 0                                    |     r3 = r0 - 0;
    0x00013c14 str r3, [fp, -0xbc]                               |     var_8h = r3;
                                                                 |     if (r3 == r0) {
    0x00013c18 bne 0x13c38                                       |         
    0x00013c1c bl 0x10b24                                        |         errno_location ();
    0x00013c20 mov r3, 0x16                                      |         r3 = 0x16;
    0x00013c24 ldr r2, [pc, 0x124]                               |         r2 = stderr;
    0x00013c28 ldr r1, [pc, 0x134]                               |         r1 = "_s:_error_:___s__is_not_a_character_device";
    0x00013c2c str r3, [r0]                                      |         *(r0) = r3;
    0x00013c30 mov r3, r6                                        |         r3 = r6;
    0x00013c34 b 0x13bb4                                         |         goto label_2;
                                                                 |     }
    0x00013c38 sub r1, fp, 0xa4                                  |     r1 -= var_a4h;
    0x00013c3c mov r0, r5                                        |     r0 = r5;
    0x00013c40 bl 0x129a8                                        |     r0 = fcn_000129a8 (r0, r1);
    0x00013c44 cmp r0, 0                                         |     
                                                                 |     if (r0 != 0) {
    0x00013c48 bne 0x13bc0                                       |         goto label_3;
                                                                 |     }
    0x00013c4c bl 0x10b24                                        |     errno_location ();
    0x00013c50 ldr r4, [fp, -0xa0]                               |     r4 = var_a0h;
    0x00013c54 add r3, r5, 0x18                                  |     r3 = r5 + 0x18;
    0x00013c58 str r3, [fp, -0xb4]                               |     var_b4h = r3;
    0x00013c5c mov r6, r0                                        |     r6 = r0;
                                                                 | label_4:
    0x00013c60 ldr r3, [fp, -0x9c]                               |     r3 = var_9ch;
    0x00013c64 cmp r4, r3                                        |     
                                                                 |     if (r4 > r3) {
    0x00013c68 bgt 0x13ca8                                       |         goto label_9;
                                                                 |     }
    0x00013c6c sub r3, fp, 0xa8                                  |     r3 -= var_a8h;
    0x00013c70 sub r2, fp, 0xac                                  |     r2 -= var_ach;
    0x00013c74 mov r1, r4                                        |     r1 = r4;
    0x00013c78 ldr r0, [fp, -0xb4]                               |     r0 = var_b4h;
    0x00013c7c bl 0x12304                                        |     r0 = fcn_00012304 (r0, r1);
    0x00013c80 cmp r0, 0                                         |     
                                                                 |     if (r0 == 0) {
    0x00013c84 beq 0x13c9c                                       |         goto label_10;
                                                                 |     }
    0x00013c88 ldr r3, [r6]                                      |     r3 = *(r6);
    0x00013c8c cmp r3, 2                                         |     
                                                                 |     if (r3 != 2) {
    0x00013c90 bne 0x13bc0                                       |         goto label_3;
                                                                 |     }
                                                                 |     do {
    0x00013c94 add r4, r4, 1                                     |         r4++;
    0x00013c98 b 0x13c60                                         |         goto label_4;
                                                                 | label_10:
    0x00013c9c ldr r3, [fp, -0xac]                               |         r3 = var_ach;
    0x00013ca0 cmp sl, r3                                        |         
    0x00013ca4 bne 0x13c94                                       |         
                                                                 |     } while (sl != r3);
                                                                 | label_9:
    0x00013ca8 ldr r3, [fp, -0x9c]                               |     r3 = var_9ch;
    0x00013cac cmp r4, r3                                        |     
                                                                 |     if (r4 <= r3) {
    0x00013cb0 movgt r3, 0x13                                    |         r3 = 0x13;
                                                                 |     }
                                                                 |     if (r4 > r3) {
    0x00013cb4 strgt r3, [r6]                                    |         *(r6) = r3;
                                                                 |         goto label_11;
                                                                 |     }
                                                                 |     if (r4 > r3) {
                                                                 | label_11:
    0x00013cb8 bgt 0x13bc0                                       |         goto label_3;
                                                                 |     }
    0x00013cbc ldr r3, [fp, -0xbc]                               |     r3 = var_8h;
    0x00013cc0 mov r2, r4                                        |     r2 = r4;
    0x00013cc4 sub r8, r3, 1                                     |     r8 = r3 - 1;
    0x00013cc8 mov r3, r8                                        |     r3 = r8;
    0x00013ccc ldr r1, [r5, 0x40]                                |     r1 = *((r5 + 0x40));
    0x00013cd0 mov r0, r7                                        |     r0 = r7;
    0x00013cd4 bl 0x10b18                                        |     sprintf (r0, r1, r2);
    0x00013cd8 mov r1, 0                                         |     r1 = 0;
    0x00013cdc mov r0, r7                                        |     r0 = r7;
    0x00013ce0 bl 0x10af4                                        |     r0 = open64 ();
    0x00013ce4 cmn r0, 1                                         |     
                                                                 |     if (r0 != 1) {
    0x00013ce8 moveq r2, 0x13                                    |         r2 = 0x13;
                                                                 |     }
    0x00013cec mov r3, r0                                        |     r3 = r0;
                                                                 |     if (r0 == 1) {
    0x00013cf0 streq r2, [r6]                                    |         *(r6) = r2;
                                                                 |         goto label_12;
                                                                 |     }
                                                                 |     if (r0 == 1) {
                                                                 | label_12:
    0x00013cf4 beq 0x13bc4                                       |         goto label_5;
                                                                 |     }
    0x00013cf8 bl 0x10b6c                                        |     r0 = close (r0);
    0x00013cfc subs r3, r0, 0                                    |     r3 = r0 - 0;
                                                                 |     if (r3 == r0) {
    0x00013d00 streq r3, [r6]                                    |         *(r6) = r3;
                                                                 |         goto label_13;
                                                                 |     }
                                                                 |     if (r3 == r0) {
                                                                 | label_13:
    0x00013d04 beq 0x13bc4                                       |         goto label_5;
                                                                 |     }
    0x00013d08 ldr sl, [pc, 0x3c]                                |     sl = obj.stderr;
    0x00013d0c ldr r6, [r6]                                      |     r6 = *(r6);
    0x00013d10 mov r3, r7                                        |     r3 = r7;
    0x00013d14 ldr r2, [pc, 0x34]                                |     r2 = stderr;
    0x00013d18 ldr r1, [pc, 0x48]                                |     r1 = "%s: error!: \"%s\" is not a volume character device\n";
    0x00013d1c ldr r0, [sl]                                      |     r0 = *(sl);
    0x00013d20 bl 0x10a64                                        |     fprintf (r0, "%s: error!: \"%s\" is not a volume character device\n", r2, r3, r4, r5, r6)
    0x00013d24 mov r0, r6                                        |     r0 = r6;
    0x00013d28 ldr r7, [sl]                                      |     r7 = *(sl);
    0x00013d2c bl 0x109d4                                        |     strerror (r0);
    0x00013d30 str r6, [sp]                                      |     *(sp) = r6;
    0x00013d34 ldr r3, [pc, 0x1c]                                |     r3 = "%s: error!: cannot get information about \"%s\"\n";
    0x00013d38 mov r2, 8                                         |     r2 = 8;
    0x00013d3c ldr r1, [pc, 0x18]                                |     r1 = *(0x13d58);
    0x00013d40 str r0, [sp, 4]                                   |     var_4h = r0;
    0x00013d44 mov r0, r7                                        |     r0 = r7;
    0x00013d48 b 0x13b84                                         |     goto label_6;
                                                                 | }
    ; 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/usr/sbin/ubinfo @ 0x13d6c */
                                                             | #include <stdint.h>
                                                             |  
    ; (fcn) fcn.00013d6c ()                                  | void fcn_00013d6c (int32_t arg1, int32_t arg2) {
                                                             |     int32_t var_0h;
                                                             |     int32_t var_ch;
                                                             |     int32_t var_10h;
                                                             |     int32_t var_5ch;
                                                             |     r0 = arg1;
                                                             |     r1 = arg2;
    0x00013d6c push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x00013d70 mov r6, r0                                    |     r6 = r0;
    0x00013d74 sub sp, sp, 0x5c                              |     
    0x00013d78 mov r0, r2                                    |     r0 = r2;
    0x00013d7c mov r7, r1                                    |     r7 = r1;
    0x00013d80 mov r8, r2                                    |     r8 = r2;
    0x00013d84 mov sb, r3                                    |     sb = r3;
    0x00013d88 bl 0x10b3c                                    |     r0 = strlen (r0);
    0x00013d8c subs fp, r0, 0                                |     
                                                             |     if (fp == r0) {
    0x00013d90 bne 0x13dbc                                   |         
    0x00013d94 ldr r3, [pc, 0xc0]                            |         r3 = *(0x13e58);
    0x00013d98 ldr r2, [pc, 0xc0]                            |         r2 = stderr;
    0x00013d9c ldr r0, [r3]                                  |         r0 = *(0x13e58);
    0x00013da0 ldr r1, [pc, 0xbc]                            |         r1 = "libubi";
    0x00013da4 bl 0x10a64                                    |         r0 = fprintf (r0, "libubi", r2, r3)
    0x00013da8 bl 0x10b24                                    |         errno_location ();
    0x00013dac mov r3, 0x16                                  |         r3 = 0x16;
                                                             | label_1:
    0x00013db0 str r3, [r0]                                  |         *(r0) = r3;
    0x00013db4 mvn r4, 0                                     |         r4 = ~0;
    0x00013db8 b 0x13ddc                                     |         
                                                             |     } else {
    0x00013dbc mov r2, sp                                    |         r2 = sp;
    0x00013dc0 mov r1, r7                                    |         r1 = r7;
    0x00013dc4 mov r0, r6                                    |         r0 = r6;
    0x00013dc8 bl 0x13334                                    |         r0 = fcn_00013334 (r0, r1);
    0x00013dcc subs r4, r0, 0                                |         r4 = r0 - 0;
                                                             |         if (r4 != r0) {
    0x00013dd0 ldreq r5, [sp, 0xc]                           |             r5 = var_ch;
                                                             |         }
                                                             |         if (r4 != r0) {
    0x00013dd4 addeq sl, sb, 0x34                            |             sl = sb + 0x34;
                                                             |         }
                                                             |         if (r4 == r0) {
    0x00013dd8 beq 0x13e1c                                   |             goto label_4;
                                                             |         }
                                                             |     }
                                                             |     do {
                                                             | label_3:
    0x00013ddc mov r0, r4                                    |         r0 = r4;
    0x00013de0 add sp, sp, 0x5c                              |         
    0x00013de4 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |         
                                                             | label_0:
    0x00013de8 mov r3, sb                                    |         r3 = sb;
    0x00013dec mov r2, r5                                    |         r2 = r5;
    0x00013df0 mov r1, r7                                    |         r1 = r7;
    0x00013df4 mov r0, r6                                    |         r0 = r6;
    0x00013df8 bl 0x1385c                                    |         r0 = fcn_0001385c (r0, r1);
    0x00013dfc cmn r0, 1                                     |         
    0x00013e00 mov r4, r0                                    |         r4 = r0;
                                                             |         if (r0 != 1) {
    0x00013e04 bne 0x13e34                                   |             goto label_5;
                                                             |         }
    0x00013e08 bl 0x10b24                                    |         r0 = errno_location ();
    0x00013e0c ldr r3, [r0]                                  |         r3 = *(r0);
    0x00013e10 cmp r3, 2                                     |         
    0x00013e14 bne 0x13ddc                                   |         
                                                             |     } while (r3 != 2);
                                                             | label_2:
    0x00013e18 add r5, r5, 1                                 |     r5++;
                                                             | label_4:
    0x00013e1c ldr r3, [sp, 0x10]                            |     r3 = var_10h;
    0x00013e20 cmp r3, r5                                    |     
                                                             |     if (r3 >= r5) {
    0x00013e24 bge 0x13de8                                   |         goto label_0;
                                                             |     }
    0x00013e28 bl 0x10b24                                    |     errno_location ();
    0x00013e2c mov r3, 2                                     |     r3 = 2;
    0x00013e30 b 0x13db0                                     |     goto label_1;
                                                             | label_5:
    0x00013e34 mov r0, sl                                    |     r0 = sl;
    0x00013e38 bl 0x10b3c                                    |     r0 = strlen (r0);
    0x00013e3c cmp r0, fp                                    |     
                                                             |     if (r0 != fp) {
    0x00013e40 bne 0x13e18                                   |         goto label_2;
                                                             |     }
    0x00013e44 mov r1, sl                                    |     r1 = sl;
    0x00013e48 mov r0, r8                                    |     r0 = r8;
    0x00013e4c bl 0x10b0c                                    |     r0 = strcmp (r0, r1);
    0x00013e50 subs r4, r0, 0                                |     r4 = r0 - 0;
                                                             |     if (r4 != r0) {
    0x00013e54 bne 0x13e18                                   |         goto label_2;
                                                             |     }
    0x00013e58 b 0x13ddc                                     |     goto label_3;
                                                             | }
    ; 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/usr/sbin/ubinfo @ 0x10b90 */
                                                             | #include <stdint.h>
                                                             |  
    ; (fcn) main ()                                          | int32_t main (int32_t argc, char ** argv) {
                                                             |     int32_t var_0h;
                                                             |     int32_t var_4h;
                                                             |     int32_t var_8h;
                                                             |     int32_t var_ch;
                                                             |     int32_t var_10h;
                                                             |     int32_t var_14h;
                                                             |     int32_t var_18h;
                                                             |     int32_t var_1ch;
                                                             |     int32_t var_20h;
                                                             |     int32_t var_24h;
                                                             |     int32_t var_dch;
                                                             |     r0 = argc;
                                                             |     r1 = argv;
                                                             |     /* [10] -r-x section size 13964 named .text */
    0x00010b90 push {r4, r5, r6, r7, r8, sb, sl, fp, lr}     |     
    0x00010b94 ldr sb, [pc, 0x4f0]                           |     sb = "devn";
    0x00010b98 ldr sl, [pc, 0x4f0]                           |     sl = "an:N:d:hV";
    0x00010b9c ldr r6, [pc, 0x4f0]                           |     r6 = "an:N:d:hV";
    0x00010ba0 sub sp, sp, 0xdc                              |     
    0x00010ba4 mov r7, r0                                    |     r7 = r0;
    0x00010ba8 mov r8, r1                                    |     r8 = r1;
                                                             |     do {
                                                             | label_0:
    0x00010bac mov r5, 0                                     |         r5 = 0;
    0x00010bb0 str r5, [sp]                                  |         *(sp) = r5;
    0x00010bb4 mov r3, sb                                    |         r3 = sb;
    0x00010bb8 mov r2, sl                                    |         r2 = sl;
    0x00010bbc mov r1, r8                                    |         r1 = r8;
    0x00010bc0 mov r0, r7                                    |         r0 = r7;
    0x00010bc4 str r5, [sp, 0x20]                            |         var_20h = r5;
    0x00010bc8 bl 0x109ec                                    |         r0 = getopt_long ();
    0x00010bcc cmn r0, 1                                     |         
    0x00010bd0 mov r4, r0                                    |         r4 = r0;
                                                             |         if (r0 == 1) {
    0x00010bd4 beq 0x10d28                                   |             goto label_11;
                                                             |         }
    0x00010bd8 cmp r0, 0x61                                  |         
                                                             |         if (r0 == 0x61) {
    0x00010bdc beq 0x10c68                                   |             goto label_12;
                                                             |         }
                                                             |         if (r0 <= 0x61) {
    0x00010be0 bgt 0x10c14                                   |             
    0x00010be4 cmp r0, 0x4e                                  |             
                                                             |             if (r0 == 0x4e) {
    0x00010be8 beq 0x10cc8                                   |                 goto label_13;
                                                             |             }
    0x00010bec cmp r0, 0x56                                  |             
                                                             |             if (r0 == 0x56) {
    0x00010bf0 beq 0x10d00                                   |                 goto label_14;
                                                             |             }
    0x00010bf4 cmp r0, 0x3a                                  |             
                                                             |             if (r0 != 0x3a) {
    0x00010bf8 bne 0x10d14                                   |                 goto label_15;
                                                             |             }
    0x00010bfc ldr r3, [pc, 0x494]                           |             r3 = *(0x11094);
    0x00010c00 ldr r2, [pc, 0x494]                           |             r2 = stderr;
    0x00010c04 ldr r1, [pc, 0x494]                           |             r1 = "ubinfo";
    0x00010c08 ldr r0, [r3]                                  |             r0 = *(0x11094);
    0x00010c0c bl 0x10a64                                    |             fprintf (r0, "ubinfo", r2, r3)
    0x00010c10 b 0x10cb8                                     |             goto label_1;
                                                             |         }
    0x00010c14 cmp r0, 0x68                                  |         
                                                             |         if (r0 == 0x68) {
    0x00010c18 beq 0x10cd8                                   |             goto label_16;
                                                             |         }
    0x00010c1c cmp r0, 0x6e                                  |         
                                                             |         if (r0 == 0x6e) {
    0x00010c20 beq 0x10c74                                   |             goto label_17;
                                                             |         }
    0x00010c24 cmp r0, 0x64                                  |         
                                                             |         if (r0 != 0x64) {
    0x00010c28 bne 0x10d14                                   |             goto label_15;
                                                             |         }
    0x00010c2c ldr r4, [pc, 0x470]                           |         r4 = "_s:_error_:_parameter_is_missing";
    0x00010c30 add r1, sp, 0x20                              |         r1 += var_20h;
    0x00010c34 ldr r0, [r4]                                  |         r0 = "_s:_error_:_parameter_is_missing";
    0x00010c38 bl 0x118b8                                    |         fcn_000118b8 ("_s:_error_:_parameter_is_missing", r1);
    0x00010c3c ldr r3, [sp, 0x20]                            |         r3 = var_20h;
    0x00010c40 cmp r3, 0                                     |         
    0x00010c44 str r0, [r6]                                  |         *(r6) = r0;
                                                             |         if (r3 != 0) {
    0x00010c48 lsreq r0, r0, 0x1f                            |             r0 >>= 0x1f;
                                                             |         }
                                                             |         if (r3 == 0) {
    0x00010c4c movne r0, 1                                   |             r0 = 1;
                                                             |         }
    0x00010c50 cmp r0, 0                                     |         
    0x00010c54 beq 0x10bac                                   |         
                                                             |     } while (r0 == 0);
    0x00010c58 ldr r3, [r4]                                  |     r3 = *(r4);
    0x00010c5c ldr r2, [pc, 0x438]                           |     r2 = stderr;
    0x00010c60 ldr r1, [pc, 0x440]                           |     r1 = optarg;
    0x00010c64 b 0x10cac                                     |     goto label_18;
                                                             | label_12:
    0x00010c68 mov r3, 1                                     |     r3 = 1;
    0x00010c6c str r3, [r6, 8]                               |     *((r6 + 8)) = r3;
    0x00010c70 b 0x10bac                                     |     goto label_0;
                                                             | label_17:
    0x00010c74 ldr r4, [pc, 0x428]                           |     r4 = "_s:_error_:_parameter_is_missing";
    0x00010c78 add r1, sp, 0x20                              |     r1 += var_20h;
    0x00010c7c ldr r0, [r4]                                  |     r0 = "_s:_error_:_parameter_is_missing";
    0x00010c80 bl 0x118b8                                    |     fcn_000118b8 ("_s:_error_:_parameter_is_missing", r1);
    0x00010c84 ldr r3, [sp, 0x20]                            |     r3 = var_20h;
    0x00010c88 cmp r3, 0                                     |     
    0x00010c8c str r0, [r6, 4]                               |     *((r6 + 4)) = r0;
                                                             |     if (r3 != 0) {
    0x00010c90 lsreq r0, r0, 0x1f                            |         r0 >>= 0x1f;
                                                             |     }
                                                             |     if (r3 == 0) {
    0x00010c94 movne r0, 1                                   |         r0 = 1;
                                                             |     }
    0x00010c98 cmp r0, 0                                     |     
                                                             |     if (r0 == 0) {
    0x00010c9c beq 0x10bac                                   |         goto label_0;
                                                             |     }
    0x00010ca0 ldr r3, [r4]                                  |     r3 = *(r4);
    0x00010ca4 ldr r2, [pc, 0x3f0]                           |     r2 = stderr;
    0x00010ca8 ldr r1, [pc, 0x3fc]                           |     r1 = "%s: error!: bad UBI device number: \"%s\"\n";
                                                             | label_18:
    0x00010cac ldr r0, [pc, 0x3e4]                           |     
    0x00010cb0 ldr r0, [r0]                                  |     r0 = *(0x11094);
    0x00010cb4 bl 0x10a64                                    |     fprintf (r0, "%s: error!: bad UBI device number: \"%s\"\n", r2, r3)
                                                             | label_1:
    0x00010cb8 mvn r4, 0                                     |     r4 = ~0;
                                                             | label_2:
    0x00010cbc mov r0, r4                                    |     r0 = r4;
    0x00010cc0 add sp, sp, 0xdc                              |     
    0x00010cc4 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc}      |     
                                                             | label_13:
    0x00010cc8 ldr r3, [pc, 0x3d4]                           |     
    0x00010ccc ldr r3, [r3]                                  |     r3 = "_s:_error_:_parameter_is_missing";
    0x00010cd0 str r3, [r6, 0x10]                            |     *((r6 + 0x10)) = r3;
    0x00010cd4 b 0x10bac                                     |     goto label_0;
                                                             | label_16:
    0x00010cd8 ldr r1, [pc, 0x3d0]                           |     r1 = "_s:_error_:_bad_volume_ID:___s_";
    0x00010cdc ldr r0, [pc, 0x3d0]                           |     r0 = "ubinfo_version_2.1.0___a_tool_to_print_UBI_information.";
    0x00010ce0 bl 0x109c8                                    |     printf ("ubinfo_version_2.1.0___a_tool_to_print_UBI_information.", "_s:_error_:_bad_volume_ID:___s_");
    0x00010ce4 ldr r1, [pc, 0x3cc]                           |     r1 = "_s";
    0x00010ce8 ldr r0, [pc, 0x3c4]                           |     r0 = "ubinfo_version_2.1.0___a_tool_to_print_UBI_information.";
    0x00010cec bl 0x109c8                                    |     printf ("ubinfo_version_2.1.0___a_tool_to_print_UBI_information.", "_s");
    0x00010cf0 ldr r0, [pc, 0x3c4]                           |     r0 = "Usage_1:_ubinfo___d__UBI_device_number_____n__volume_ID____N__volume_name_____a____h____V____vol_id_volume_ID_____name__volume_name______devn__UBI_device_number______all_____help_____version_Usage_2:_ubinfo__UBI_device_node_file_name____a____h____V";
    0x00010cf4 bl 0x10a1c                                    |     puts ("Usage_1:_ubinfo___d__UBI_device_number_____n__volume_ID____N__volume_name_____a____h____V____vol_id_volume_ID_____name__volume_name______devn__UBI_device_number______all_____help_____version_Usage_2:_ubinfo__UBI_device_node_file_name____a____h____V");
                                                             |     do {
    0x00010cf8 mov r0, r5                                    |         r0 = r5;
    0x00010cfc bl 0x10b30                                    |         exit (r0);
                                                             | label_14:
    0x00010d00 ldr r2, [pc, 0x3b8]                           |         r2 = "-d, --devn=<UBI device number>  UBI device number to get information about\n-n, --vol_id=<volume ID>        ID of UBI volume to print information about\n-N, --name=<volume name>        name of UBI volume to print information about\n-a, --all                       print information about all devices and volumes,\n                                or about all volumes if the UBI device was\n                                specified\n-h, --help                      print help message\n-V, --version                   print program version";
    0x00010d04 ldr r1, [pc, 0x390]                           |         r1 = stderr;
    0x00010d08 ldr r0, [pc, 0x3b4]                           |         r0 = "2.1.0";
    0x00010d0c bl 0x109c8                                    |         printf ("2.1.0", r1, "-d, --devn=<UBI device number>  UBI device number to get information about\n-n, --vol_id=<volume ID>        ID of UBI volume to print information about\n-N, --name=<volume name>        name of UBI volume to print information about\n-a, --all                       print information about all devices and volumes,\n                                or about all volumes if the UBI device was\n                                specified\n-h, --help                      print help message\n-V, --version                   print program version");
    0x00010d10 b 0x10cf8                                     |         
                                                             |     } while (1);
                                                             | label_15:
    0x00010d14 ldr r3, [pc, 0x37c]                           |     r3 = *(0x11094);
    0x00010d18 ldr r0, [pc, 0x3a8]                           |     r0 = "%s (mtd-utils) %s\n";
    0x00010d1c ldr r1, [r3]                                  |     r1 = *(0x11094);
    0x00010d20 bl 0x10b48                                    |     fputs ("%s (mtd-utils) %s\n", r1);
    0x00010d24 b 0x10cb8                                     |     goto label_1;
                                                             | label_11:
    0x00010d28 ldr r3, [pc, 0x39c]                           |     
    0x00010d2c sub r2, r7, 1                                 |     r2 = r7 - 1;
    0x00010d30 ldr r3, [r3]                                  |     r3 = "Use__h_for_help";
    0x00010d34 cmp r2, r3                                    |     
                                                             |     if (r2 != r3) {
    0x00010d38 bne 0x10d78                                   |         goto label_19;
                                                             |     }
    0x00010d3c ldr r2, [r8, r2, lsl 2]                       |     offset_0 = r2 << 2;
                                                             |     r2 = *((r8 + offset_0));
    0x00010d40 ldr r3, [pc, 0x34c]                           |     r3 = "an:N:d:hV";
    0x00010d44 str r2, [r3, 0xc]                             |     *((r3 + 0xc)) = r2;
                                                             |     do {
    0x00010d48 bl 0x124ec                                    |         r0 = fcn_000124ec ();
    0x00010d4c subs r6, r0, 0                                |         r6 = r0 - 0;
                                                             |         if (r6 != r0) {
    0x00010d50 bne 0x10dcc                                   |             goto label_20;
                                                             |         }
    0x00010d54 bl 0x10b24                                    |         errno_location ();
    0x00010d58 ldr r6, [pc, 0x338]                           |         r6 = *(0x11094);
    0x00010d5c ldr r2, [pc, 0x338]                           |         r2 = stderr;
    0x00010d60 ldr r5, [r0]                                  |         r5 = *(r0);
    0x00010d64 ldr r0, [r6]                                  |         r0 = *(0x11094);
    0x00010d68 cmp r5, 0                                     |         
                                                             |         if (r5 != 0) {
    0x00010d6c bne 0x10d98                                   |             goto label_21;
                                                             |         }
    0x00010d70 ldr r1, [pc, 0x358]                           |         r1 = optind;
    0x00010d74 b 0x10d90                                     |         goto label_22;
                                                             | label_19:
    0x00010d78 cmp r7, r3                                    |         
    0x00010d7c ble 0x10d48                                   |         
                                                             |     } while (r7 <= r3);
    0x00010d80 ldr r3, [pc, 0x310]                           |     r3 = *(0x11094);
    0x00010d84 ldr r2, [pc, 0x310]                           |     r2 = stderr;
    0x00010d88 ldr r1, [pc, 0x344]                           |     r1 = "%s: error!: UBI is not present in the system\n";
    0x00010d8c ldr r0, [r3]                                  |     r0 = *(0x11094);
                                                             | label_22:
    0x00010d90 bl 0x10a64                                    |     fprintf (r0, "%s: error!: UBI is not present in the system\n", r2, r3)
    0x00010d94 b 0x10cbc                                     |     goto label_2;
                                                             | label_21:
    0x00010d98 ldr r1, [pc, 0x338]                           |     r1 = "%s: error!: more then one UBI device specified (use -h for help)\n";
    0x00010d9c bl 0x10a64                                    |     fprintf (r0, "%s: error!: more then one UBI device specified (use -h for help)\n")
    0x00010da0 mov r0, r5                                    |     r0 = r5;
    0x00010da4 ldr r6, [r6]                                  |     r6 = *(r6);
    0x00010da8 bl 0x109d4                                    |     strerror (r0);
    0x00010dac str r5, [sp]                                  |     *(sp) = r5;
    0x00010db0 ldr r3, [pc, 0x324]                           |     r3 = "%s: error!: cannot open libubi\n";
    0x00010db4 mov r2, 8                                     |     r2 = 8;
    0x00010db8 ldr r1, [pc, 0x320]                           |     r1 = *(0x110dc);
    0x00010dbc str r0, [sp, 4]                               |     var_4h = r0;
    0x00010dc0 mov r0, r6                                    |     r0 = r6;
    0x00010dc4 bl 0x10a64                                    |     fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n", r4, r5)
    0x00010dc8 b 0x10cbc                                     |     goto label_2;
                                                             | label_20:
    0x00010dcc ldr r5, [pc, 0x2c0]                           |     r5 = "an:N:d:hV";
    0x00010dd0 ldr r1, [r5, 0xc]                             |     r1 = "ubinfo";
    0x00010dd4 cmp r1, 0                                     |     
    0x00010dd8 bne 0x10e08                                   |     
                                                             |     while (r0 == 0) {
    0x00010ddc ldr r7, [r5, 0x10]                            |         r7 = *((r5 + 0x10));
    0x00010de0 cmp r7, 0                                     |         
                                                             |         if (r7 != 0) {
    0x00010de4 bne 0x10e20                                   |             goto label_23;
                                                             |         }
                                                             | label_3:
    0x00010de8 ldm r5, {r1, r2}                              |         r1 = *(r5);
                                                             |         r2 = *((r5 + 4));
    0x00010dec cmn r2, 1                                     |         
                                                             |         if (r2 == 1) {
    0x00010df0 beq 0x1106c                                   |             goto label_24;
                                                             |         }
    0x00010df4 cmn r1, 1                                     |         
                                                             |         if (r1 != 1) {
    0x00010df8 bne 0x10eb8                                   |             goto label_25;
                                                             |         }
    0x00010dfc ldr r2, [pc, 0x298]                           |         r2 = stderr;
    0x00010e00 ldr r1, [pc, 0x2dc]                           |         r1 = "_serror__d___s_";
    0x00010e04 b 0x10e34                                     |         goto label_26;
    0x00010e08 bl 0x11230                                    |         r0 = fcn_00011230 (r0, r1);
    0x00010e0c cmp r0, 0                                     |         
    0x00010e10 beq 0x10ddc                                   |         
                                                             |     }
                                                             |     do {
                                                             | label_4:
    0x00010e14 mov r0, r6                                    |         r0 = r6;
    0x00010e18 bl 0x12418                                    |         fcn_00012418 (r0);
    0x00010e1c b 0x10cbc                                     |         goto label_2;
                                                             | label_23:
    0x00010e20 ldr r8, [r5]                                  |         r8 = *(r5);
    0x00010e24 cmn r8, 1                                     |         
                                                             |         if (r8 != 1) {
    0x00010e28 bne 0x10e44                                   |             goto label_27;
                                                             |         }
    0x00010e2c ldr r2, [pc, 0x268]                           |         r2 = stderr;
    0x00010e30 ldr r1, [pc, 0x2b0]                           |         r1 = "_s:_error_:_volume_ID_is_specified__but_UBI_device_number_is_not__use__h_for_help_";
                                                             | label_26:
    0x00010e34 ldr r3, [pc, 0x25c]                           |         r3 = *(0x11094);
    0x00010e38 ldr r0, [r3]                                  |         r0 = *(0x11094);
    0x00010e3c bl 0x10a64                                    |         fprintf (r0, "_s:_error_:_volume_ID_is_specified__but_UBI_device_number_is_not__use__h_for_help_", r2, r3)
    0x00010e40 b 0x10e14                                     |         
                                                             |     } while (1);
                                                             | label_27:
    0x00010e44 add r3, sp, 0x20                              |     r3 += var_20h;
    0x00010e48 mov r2, r7                                    |     r2 = r7;
    0x00010e4c mov r1, r8                                    |     r1 = r8;
    0x00010e50 mov r0, r6                                    |     r0 = r6;
    0x00010e54 bl 0x13d6c                                    |     r0 = fcn_00013d6c (r0, r1);
    0x00010e58 cmp r0, 0                                     |     
                                                             |     if (r0 != 0) {
    0x00010e5c ldreq r3, [sp, 0x24]                          |         r3 = var_24h;
                                                             |     }
                                                             |     if (r0 == 0) {
    0x00010e60 streq r3, [r5, 4]                             |         *((r5 + 4)) = r3;
                                                             |         goto label_28;
                                                             |     }
                                                             |     if (r0 == 0) {
                                                             | label_28:
    0x00010e64 beq 0x10de8                                   |         goto label_3;
                                                             |     }
    0x00010e68 bl 0x10b24                                    |     errno_location ();
    0x00010e6c ldr sb, [pc, 0x224]                           |     sb = obj.stderr;
    0x00010e70 mov r3, r7                                    |     r3 = r7;
    0x00010e74 ldr r2, [pc, 0x220]                           |     r2 = stderr;
    0x00010e78 ldr r1, [pc, 0x26c]                           |     r1 = "%s: error!: volume name is specified, but UBI device number is not (use -h for help)\n\n";
    0x00010e7c ldr r5, [r0]                                  |     r5 = *(r0);
    0x00010e80 str r8, [sp]                                  |     *(sp) = r8;
    0x00010e84 ldr r0, [sb]                                  |     r0 = *(sb);
    0x00010e88 bl 0x10a64                                    |     fprintf (r0, "%s: error!: volume name is specified, but UBI device number is not (use -h for help)\n\n", r2, r3, r4, r5)
    0x00010e8c ldr r7, [sb]                                  |     r7 = *(sb);
                                                             |     do {
    0x00010e90 mov r0, r5                                    |         r0 = r5;
    0x00010e94 bl 0x109d4                                    |         strerror (r0);
    0x00010e98 str r5, [sp]                                  |         *(sp) = r5;
    0x00010e9c ldr r3, [pc, 0x238]                           |         r3 = "%s: error!: cannot open libubi\n";
    0x00010ea0 mov r2, 8                                     |         r2 = 8;
    0x00010ea4 ldr r1, [pc, 0x234]                           |         r1 = *(0x110dc);
    0x00010ea8 str r0, [sp, 4]                               |         var_4h = r0;
    0x00010eac mov r0, r7                                    |         r0 = r7;
    0x00010eb0 bl 0x10a64                                    |         fprintf (r0, r1, r2, "%s: error!: cannot open libubi\n", r4, r5)
    0x00010eb4 b 0x10e14                                     |         goto label_4;
                                                             | label_25:
    0x00010eb8 mov r0, r6                                    |         r0 = r6;
    0x00010ebc bl 0x113cc                                    |         fcn_000113cc (r0);
                                                             | label_5:
    0x00010ec0 mov r0, r6                                    |         r0 = r6;
    0x00010ec4 bl 0x12418                                    |         fcn_00012418 (r0);
    0x00010ec8 mov r4, 0                                     |         r4 = 0;
    0x00010ecc b 0x10cbc                                     |         goto label_2;
                                                             | label_10:
    0x00010ed0 add r1, sp, 8                                 |         r1 += var_8h;
    0x00010ed4 mov r0, r6                                    |         r0 = r6;
    0x00010ed8 ldr sb, [r5, 8]                               |         sb = *((r5 + 8));
    0x00010edc bl 0x129a8                                    |         r0 = fcn_000129a8 (r0, r1);
    0x00010ee0 cmp r0, 0                                     |         
                                                             |         if (r0 == 0) {
    0x00010ee4 beq 0x10f0c                                   |             goto label_29;
                                                             |         }
    0x00010ee8 bl 0x10b24                                    |         errno_location ();
    0x00010eec ldr r7, [pc, 0x1a4]                           |         r7 = *(0x11094);
    0x00010ef0 ldr r2, [pc, 0x1a4]                           |         r2 = stderr;
    0x00010ef4 ldr r1, [pc, 0x1f4]                           |         r1 = "_s:_error_:_cannot_get_information_about_volume___s__on_ubi_d";
    0x00010ef8 ldr r5, [r0]                                  |         r5 = *(r0);
    0x00010efc ldr r0, [r7]                                  |         r0 = *(0x11094);
    0x00010f00 bl 0x10a64                                    |         fprintf (r0, "_s:_error_:_cannot_get_information_about_volume___s__on_ubi_d", r2, r3, r4, r5)
                                                             | label_8:
    0x00010f04 ldr r7, [r7]                                  |         r7 = *(r7);
    0x00010f08 b 0x10e90                                     |         
                                                             |     } while (1);
                                                             | label_29:
    0x00010f0c ldr r1, [sp, 0x14]                            |     r1 = var_14h;
    0x00010f10 ldr r0, [pc, 0x1dc]                           |     r0 = "%s: error!: cannot get UBI information\n";
    0x00010f14 bl 0x109c8                                    |     printf ("%s: error!: cannot get UBI information\n", r1);
    0x00010f18 ldr r1, [sp, 8]                               |     r1 = var_8h;
    0x00010f1c ldr r0, [pc, 0x1d4]                           |     r0 = "UBI version:                    %d\n";
    0x00010f20 bl 0x109c8                                    |     printf ("UBI version:                    %d\n", r1);
    0x00010f24 ldr r1, [sp, 0x18]                            |     r1 = var_18h;
    0x00010f28 cmn r1, 1                                     |     
                                                             |     if (r1 == 1) {
    0x00010f2c beq 0x10fe0                                   |         goto label_30;
                                                             |     }
    0x00010f30 ldr r2, [sp, 0x1c]                            |     r2 = var_1ch;
    0x00010f34 ldr r0, [pc, 0x1c0]                           |     r0 = "Count of UBI devices:           %d\n";
    0x00010f38 bl 0x109c8                                    |     printf ("Count of UBI devices:           %d\n", r1, r2);
                                                             | label_7:
    0x00010f3c ldr r3, [sp, 8]                               |     r3 = var_8h;
    0x00010f40 cmp r3, 0                                     |     
                                                             |     if (r3 == 0) {
    0x00010f44 beq 0x10ec0                                   |         goto label_5;
                                                             |     }
    0x00010f48 ldr r0, [pc, 0x1b0]                           |     r0 = "UBI control device major/minor: %d:%d\n";
    0x00010f4c bl 0x109c8                                    |     printf ("UBI control device major/minor: %d:%d\n");
    0x00010f50 ldr sl, [pc, 0x1ac]                           |     sl = "Present UBI devices:            ";
    0x00010f54 ldr r8, [sp, 0xc]                             |     r8 = var_ch;
    0x00010f58 ldr fp, [pc, 0x1a8]                           |     fp = "__ubi_d";
    0x00010f5c mov r7, 1                                     |     r7 = 1;
                                                             | label_9:
    0x00010f60 ldr r3, [sp, 0x10]                            |     r3 = var_10h;
    0x00010f64 cmp r8, r3                                    |     
                                                             |     if (r8 <= r3) {
    0x00010f68 ble 0x10fec                                   |         goto label_31;
                                                             |     }
    0x00010f6c mov r0, 0xa                                   |     r0 = 0xa;
    0x00010f70 bl 0x109b0                                    |     putchar (r0);
    0x00010f74 cmp sb, 0                                     |     
                                                             |     if (sb == 0) {
    0x00010f78 beq 0x10ec0                                   |         goto label_5;
                                                             |     }
    0x00010f7c mov r0, 0xa                                   |     r0 = 0xa;
    0x00010f80 bl 0x109b0                                    |     putchar (r0);
    0x00010f84 ldr r8, [pc, 0x180]                           |     r8 = "__ubi_d";
    0x00010f88 ldr r5, [sp, 0xc]                             |     r5 = var_ch;
    0x00010f8c mov r7, 1                                     |     r7 = 1;
                                                             | label_6:
    0x00010f90 ldr r3, [sp, 0x10]                            |     r3 = var_10h;
    0x00010f94 cmp r5, r3                                    |     
                                                             |     if (r5 > r3) {
    0x00010f98 bgt 0x10ec0                                   |         goto label_5;
                                                             |     }
    0x00010f9c mov r1, r5                                    |     r1 = r5;
    0x00010fa0 mov r0, r6                                    |     r0 = r6;
    0x00010fa4 bl 0x132e0                                    |     r0 = fcn_000132e0 (r0, r1);
    0x00010fa8 cmp r0, 0                                     |     
                                                             |     if (r0 == 0) {
    0x00010fac beq 0x10fd8                                   |         goto label_32;
                                                             |     }
    0x00010fb0 cmp r7, 0                                     |     
                                                             |     if (r7 == 0) {
    0x00010fb4 bne 0x10fc0                                   |         
    0x00010fb8 mov r0, r8                                    |         r0 = r8;
    0x00010fbc bl 0x10a1c                                    |         puts (r0);
                                                             |     }
    0x00010fc0 mov r2, sb                                    |     r2 = sb;
    0x00010fc4 mov r1, r5                                    |     r1 = r5;
    0x00010fc8 mov r0, r6                                    |     r0 = r6;
    0x00010fcc bl 0x11554                                    |     r0 = fcn_00011554 (r0, r1);
    0x00010fd0 subs r7, r0, 0                                |     r7 = r0 - 0;
                                                             |     if (r7 != r0) {
    0x00010fd4 bne 0x10e14                                   |         goto label_4;
                                                             |     }
                                                             | label_32:
    0x00010fd8 add r5, r5, 1                                 |     r5++;
    0x00010fdc b 0x10f90                                     |     goto label_6;
                                                             | label_30:
    0x00010fe0 ldr r0, [pc, 0x128]                           |     r0 = "_";
    0x00010fe4 bl 0x10a1c                                    |     puts ("_");
    0x00010fe8 b 0x10f3c                                     |     goto label_7;
                                                             | label_31:
    0x00010fec add r2, sp, 0x20                              |     r2 += var_20h;
    0x00010ff0 mov r1, r8                                    |     r1 = r8;
    0x00010ff4 mov r0, r6                                    |     r0 = r6;
    0x00010ff8 bl 0x13334                                    |     r0 = fcn_00013334 (r0, r1);
    0x00010ffc cmn r0, 1                                     |     
                                                             |     if (r0 == 1) {
    0x00011000 bne 0x11040                                   |         
    0x00011004 bl 0x10b24                                    |         r0 = errno_location ();
    0x00011008 ldr r3, [r0]                                  |         r3 = *(r0);
    0x0001100c mov r5, r0                                    |         r5 = r0;
    0x00011010 cmp r3, 2                                     |         
                                                             |         if (r3 == 2) {
    0x00011014 beq 0x11054                                   |             goto label_33;
                                                             |         }
    0x00011018 ldr r7, [pc, 0x78]                            |         r7 = *(0x11094);
    0x0001101c mov r0, 0xa                                   |         r0 = 0xa;
    0x00011020 bl 0x109b0                                    |         putchar (r0);
    0x00011024 mov r3, r8                                    |         r3 = r8;
    0x00011028 ldr r2, [pc, 0x6c]                            |         r2 = stderr;
    0x0001102c ldr r1, [pc, 0xe0]                            |         r1 = "UBI_control_device_is_not_supported_by_this_kernel";
    0x00011030 ldr r0, [r7]                                  |         r0 = *(0x11094);
    0x00011034 ldr r5, [r5]                                  |         r5 = *(r5);
    0x00011038 bl 0x10a64                                    |         fprintf (r0, "UBI_control_device_is_not_supported_by_this_kernel", r2, r3, r4, r5)
    0x0001103c b 0x10f04                                     |         goto label_8;
                                                             |     }
    0x00011040 cmp r7, 0                                     |     
    0x00011044 mov r1, r8                                    |     r1 = r8;
                                                             |     if (r7 != 0) {
    0x00011048 bne 0x1105c                                   |         goto label_34;
                                                             |     }
    0x0001104c mov r0, fp                                    |     r0 = fp;
    0x00011050 bl 0x109c8                                    |     printf (r0);
                                                             |     do {
                                                             | label_33:
    0x00011054 add r8, r8, 1                                 |         r8++;
    0x00011058 b 0x10f60                                     |         goto label_9;
                                                             | label_34:
    0x0001105c mov r0, sl                                    |         r0 = sl;
    0x00011060 bl 0x109c8                                    |         printf (r0);
    0x00011064 mov r7, 0                                     |         r7 = 0;
    0x00011068 b 0x11054                                     |         
                                                             |     } while (1);
                                                             | label_24:
    0x0001106c cmn r1, 1                                     |     
                                                             |     if (r1 == 1) {
    0x00011070 beq 0x10ed0                                   |         goto label_10;
                                                             |     }
    0x00011074 ldr r2, [r5, 8]                               |     r2 = *((r5 + 8));
    0x00011078 mov r0, r6                                    |     r0 = r6;
    0x0001107c bl 0x11554                                    |     r0 = fcn_00011554 (r0, r1);
    0x00011080 cmp r0, 0                                     |     
                                                             |     if (r0 == 0) {
    0x00011084 beq 0x10ec0                                   |         goto label_5;
                                                             |     }
    0x00011088 b 0x10e14                                     |     goto label_4;
                                                             | }

[*] Function fprintf used 75 times ubinfo