[*] Binary protection state of ubimkvol
Partial RELRO No Canary found NX disabled No PIE No RPATH No RUNPATH No Symbols
[*] Function printf tear down of ubimkvol
; 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/ubimkvol @ 0x1164c */
| #include <stdint.h>
|
| #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
|
; (fcn) fcn.0001164c () | void fcn_0001164c (int32_t arg1, int32_t arg2) {
| int32_t var_0h;
| int32_t var_0h_2;
| int32_t var_ch;
| r0 = arg1;
| r1 = arg2;
0x0001164c ldr r3, [pc, 0x144] | r3 = *(0x11794);
0x00011650 cmp r2, 0 |
0x00011654 push {r0, r1, r2, r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x00011658 ldr r6, [pc, 0x13c] | r6 = "__";
0x0001165c mov r4, r0 | r4 = r0;
| if (r2 != 0) {
0x00011660 moveq r6, r3 | r6 = r3;
| }
0x00011664 mov r8, r2 | r8 = r2;
0x00011668 mov r3, r1 | r3 = r1;
0x0001166c mov r2, r0 | r2 = r0;
0x00011670 ldr r0, [pc, 0x128] | r0 = *(0x1179c);
0x00011674 mov r5, r1 | r5 = r1;
0x00011678 bl 0x109c8 | printf (r0, r1, r2, r3, r4, r5, "__")
0x0001167c cmp r4, 0x40000001 |
0x00011680 sbcs r3, r5, 0 | __asm ("sbcs r3, r5, 0");
| if (r4 < 0x40000001) {
0x00011684 blt 0x116d8 | goto label_1;
| }
0x00011688 add r3, pc, 0xf8 | r3 = pc + 0xf8;
0x0001168c ldrd r2, r3, [r3] | __asm ("ldrd r2, r3, [r3]");
0x00011690 bic r0, r4, 0xc0000000 | r0 = BIT_MASK (r4, 0xc0000000);
0x00011694 mov r1, 0 | r1 = 0;
0x00011698 bl 0x13cac | fcn_00013cac (r0);
0x0001169c lsr r7, r4, 0x1e | r7 = r4 >> 0x1e;
0x000116a0 orr r7, r7, r5, lsl 2 | r7 |= (r5 << 2);
0x000116a4 asr sb, r5, 0x1e | sb = r5 >> 0x1e;
0x000116a8 mov r2, r7 | r2 = r7;
0x000116ac mov r3, sb | r3 = sb;
0x000116b0 strd r0, r1, [sp] | __asm ("strd r0, r1, [sp]");
0x000116b4 ldr r0, [pc, 0xe8] | r0 = "%lld bytes";
0x000116b8 mov r1, r6 | r1 = r6;
| do {
| label_0:
0x000116bc bl 0x109c8 | printf (r0, r1, r2, r3)
0x000116c0 cmp r8, 0 |
| if (r8 == 0) {
0x000116c4 beq 0x11780 | goto label_2;
| }
0x000116c8 mov r0, 0x29 | r0 = 0x29;
0x000116cc add sp, sp, 0xc |
0x000116d0 pop {r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x000116d4 b 0x109b0 | void (*0x109b0)() ();
| label_1:
0x000116d8 mov r2, 0x100000 | r2 = 0x100000;
0x000116dc mov r3, 0 | r3 = 0;
0x000116e0 cmp r2, r4 |
0x000116e4 sbcs r3, r3, r5 | __asm ("sbcs r3, r3, r5");
| if (r2 >= r4) {
0x000116e8 bge 0x1172c | goto label_3;
| }
0x000116ec ldr sl, [pc, 0xb4] | sl = *(0x000117a8);
0x000116f0 mov fp, 0 |
0x000116f4 add r3, pc, 0x94 | r3 = pc + 0x94;
0x000116f8 ldrd r2, r3, [r3] | __asm ("ldrd r2, r3, [r3]");
0x000116fc and r0, sl, r4 | r0 = sl & r4;
0x00011700 and r1, fp, r5 | r1 = fp & r5;
0x00011704 bl 0x13cac | fcn_00013cac (r0);
0x00011708 lsr r7, r4, 0x14 | r7 = r4 >> 0x14;
0x0001170c orr r7, r7, r5, lsl 12 | r7 |= (r5 << 12);
0x00011710 asr sb, r5, 0x14 | sb = r5 >> 0x14;
0x00011714 mov r2, r7 | r2 = r7;
0x00011718 mov r3, sb | r3 = sb;
0x0001171c strd r0, r1, [sp] | __asm ("strd r0, r1, [sp]");
0x00011720 ldr r0, [pc, 0x84] | r0 = *(0x117a8);
0x00011724 mov r1, r6 | r1 = r6;
0x00011728 b 0x116bc |
| } while (1);
| label_3:
0x0001172c mov r2, 0x400 | r2 = 0x400;
0x00011730 mov r3, 0 | r3 = 0;
0x00011734 cmp r2, r4 |
0x00011738 sbcs r3, r3, r5 | __asm ("sbcs r3, r3, r5");
| if (r2 < r4) {
0x0001173c bge 0x11780 |
0x00011740 ldr sl, [pc, 0x68] | sl = *(0x000117b0);
0x00011744 mov fp, 0 |
0x00011748 mov r2, 0x66 | r2 = 0x66;
0x0001174c mov r3, 0 | r3 = 0;
0x00011750 and r0, sl, r4 | r0 = sl & r4;
0x00011754 and r1, fp, r5 | r1 = fp & r5;
0x00011758 bl 0x13cac | fcn_00013cac (r0);
0x0001175c lsr r7, r4, 0xa | r7 = r4 >> 0xa;
0x00011760 orr r7, r7, r5, lsl 22 | r7 |= (r5 << 22);
0x00011764 asr sb, r5, 0xa | sb = r5 >> 0xa;
0x00011768 mov r2, r7 | r2 = r7;
0x0001176c mov r3, sb | r3 = sb;
0x00011770 strd r0, r1, [sp] | __asm ("strd r0, r1, [sp]");
0x00011774 ldr r0, [pc, 0x38] | r0 = *(0x117b0);
0x00011778 mov r1, r6 | r1 = r6;
0x0001177c b 0x116bc | goto label_0;
| }
| label_2:
0x00011780 add sp, sp, 0xc |
0x00011784 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/ubimkvol @ 0x10b90 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main (int32_t argc, char ** argv) {
| int32_t var_0h;
| int32_t var_4h;
| void * s;
| int32_t var_ch;
| int32_t var_10h;
| int32_t var_10h_2;
| int32_t var_18h;
| int32_t var_1ch;
| int32_t var_20h;
| int32_t var_28h;
| int32_t var_58h;
| int32_t var_58h_2;
| int32_t var_64h;
| char * * endptr;
| int32_t var_84h;
| int32_t var_94h;
| int32_t var_a0h;
| int32_t var_a0h_2;
| int32_t var_a8h;
| int32_t var_ach;
| int32_t var_b4h;
| int32_t var_138h;
| r0 = argc;
| r1 = argv;
| /* [10] -r-x section size 13208 named .text */
0x00010b90 push {r4, r5, r6, r7, r8, sb, sl, lr} |
0x00010b94 ldr r8, [pc, 0x758] | r8 = *(0x112f0);
0x00010b98 sub sp, sp, 0x138 |
0x00010b9c mov r6, r0 | r6 = r0;
0x00010ba0 mov r7, r1 | r7 = r1;
0x00010ba4 mov r2, 0x20 | r2 = 0x20;
0x00010ba8 mov r1, 0 | r1 = 0;
0x00010bac add r0, sp, 8 | r0 += s;
0x00010bb0 bl 0x10adc | memset (r0, r1, r2);
0x00010bb4 ldr r4, [pc, 0x73c] | r4 = "alignment";
| label_1:
0x00010bb8 mov sb, 0 | sb = 0;
0x00010bbc str sb, [sp] | *(sp) = sb;
0x00010bc0 mov r3, r8 | r3 = r8;
0x00010bc4 ldr r2, [pc, 0x730] | r2 = optarg;
0x00010bc8 mov r1, r7 | r1 = r7;
0x00010bcc mov r0, r6 | r0 = r6;
0x00010bd0 str sb, [sp, 0x28] | var_28h = sb;
0x00010bd4 bl 0x109ec | r0 = getopt_long ();
0x00010bd8 cmn r0, 1 |
0x00010bdc mov r5, r0 | r5 = r0;
| if (r0 == 1) {
0x00010be0 beq 0x10eb4 | goto label_9;
| }
0x00010be4 cmp r0, 0x61 |
| if (r0 == 0x61) {
0x00010be8 beq 0x10dec | goto label_10;
| }
| if (r0 > 0x61) {
0x00010bec bgt 0x10c44 | goto label_11;
| }
0x00010bf0 cmp r0, 0x4e |
| if (r0 == 0x4e) {
0x00010bf4 beq 0x10e30 | goto label_12;
| }
| if (r0 > 0x4e) {
0x00010bf8 bgt 0x10c20 | goto label_13;
| }
0x00010bfc cmp r0, 0x3a |
| if (r0 == 0x3a) {
0x00010c00 beq 0x10e9c | goto label_14;
| }
0x00010c04 cmp r0, 0x3f |
| if (r0 == 0x3f) {
0x00010c08 beq 0x10e68 | goto label_15;
| }
| do {
| label_0:
0x00010c0c ldr r3, [pc, 0x6ec] | r3 = "a:n:N:s:S:t:h_Vmk";
0x00010c10 ldr r0, [pc, 0x6ec] | r0 = stderr;
0x00010c14 ldr r1, [r3] | r1 = "a:n:N:s:S:t:h_Vmk";
0x00010c18 bl 0x10b48 | fputs (r0, "a:n:N:s:S:t:h_Vmk");
0x00010c1c b 0x10d20 | goto label_3;
| label_13:
0x00010c20 cmp r0, 0x53 |
| if (r0 == 0x53) {
0x00010c24 beq 0x10d5c | goto label_16;
| }
0x00010c28 cmp r0, 0x56 |
0x00010c2c bne 0x10c0c |
| } while (r0 != 0x56);
0x00010c30 ldr r2, [pc, 0x6d0] | r2 = "Use -h for help\n";
0x00010c34 ldr r1, [pc, 0x6d0] | r1 = "_.1.0";
0x00010c38 ldr r0, [pc, 0x6d0] | r0 = "ubimkvol";
0x00010c3c bl 0x109c8 | printf ("ubimkvol", "_.1.0", "Use -h for help\n")
0x00010c40 b 0x10e60 | goto label_17;
| label_11:
0x00010c44 cmp r0, 0x6d |
| if (r0 == 0x6d) {
0x00010c48 beq 0x10e8c | goto label_18;
| }
| if (r0 > 0x6d) {
0x00010c4c bgt 0x10c70 | goto label_19;
| }
0x00010c50 cmp r0, 0x68 |
| if (r0 == 0x68) {
0x00010c54 beq 0x10e40 | goto label_20;
| }
0x00010c58 cmp r0, 0x6b |
| if (r0 != 0x6b) {
0x00010c5c bne 0x10c0c | goto label_0;
| }
0x00010c60 ldr r3, [pc, 0x6ac] | r3 = "_s__mtd_utils___s";
0x00010c64 mov r2, 1 | r2 = 1;
0x00010c68 str r2, [r3, 0x24] | *((r3 + 0x24)) = r2;
0x00010c6c b 0x10bb8 | goto label_1;
| label_19:
0x00010c70 cmp r0, 0x73 |
| if (r0 == 0x73) {
0x00010c74 beq 0x10d30 | goto label_21;
| }
0x00010c78 cmp r0, 0x74 |
| if (r0 == 0x74) {
0x00010c7c beq 0x10cc4 | goto label_22;
| }
0x00010c80 cmp r0, 0x6e |
| if (r0 != 0x6e) {
0x00010c84 bne 0x10c0c | goto label_0;
| }
0x00010c88 add r1, sp, 0x28 | r1 += var_28h;
0x00010c8c ldr r0, [r4] | r0 = *(r4);
0x00010c90 bl 0x114c4 | fcn_000114c4 (r0, r1);
0x00010c94 ldr r3, [pc, 0x678] | r3 = "_s__mtd_utils___s";
0x00010c98 str r0, [r3] | *(r3) = r0;
0x00010c9c ldr r3, [sp, 0x28] | r3 = var_28h;
0x00010ca0 cmp r3, 0 |
| if (r3 != 0) {
0x00010ca4 lsreq r0, r0, 0x1f | r0 >>= 0x1f;
| }
| if (r3 == 0) {
0x00010ca8 movne r0, 1 | r0 = 1;
| }
0x00010cac cmp r0, 0 |
| if (r0 == 0) {
0x00010cb0 beq 0x10bb8 | goto label_1;
| }
0x00010cb4 ldr r3, [r4] | r3 = *(r4);
0x00010cb8 ldr r2, [pc, 0x64c] | r2 = "_.1.0";
0x00010cbc ldr r1, [pc, 0x654] | r1 = *(0x11314);
0x00010cc0 b 0x10d14 | goto label_2;
| label_22:
0x00010cc4 ldr r5, [r4] | r5 = *(r4);
0x00010cc8 ldr r1, [pc, 0x64c] | r1 = "_s:_error_:_bad_volume_ID:___s_";
0x00010ccc mov r0, r5 | r0 = r5;
0x00010cd0 bl 0x10b0c | r0 = strcmp (r0, "_s:_error_:_bad_volume_ID:___s_");
0x00010cd4 cmp r0, 0 |
| if (r0 != 0) {
0x00010cd8 ldreq r3, [pc, 0x634] | r3 = *(0x00011314);
| }
| if (r0 != 0) {
0x00010cdc moveq r2, 3 | r2 = 3;
| }
| if (r0 != 0) {
0x00010ce0 beq 0x10d00 |
0x00010ce4 ldr r1, [pc, 0x634] | r1 = "dynamic";
0x00010ce8 mov r0, r5 | r0 = r5;
0x00010cec bl 0x10b0c | r0 = strcmp (r0, "dynamic");
0x00010cf0 cmp r0, 0 |
| if (r0 != 0) {
0x00010cf4 bne 0x10d08 | goto label_23;
| }
0x00010cf8 ldr r3, [pc, 0x614] | r3 = "_s__mtd_utils___s";
0x00010cfc mov r2, 4 | r2 = 4;
| }
0x00010d00 str r2, [r3, 4] | *((r3 + 4)) = r2;
0x00010d04 b 0x10bb8 | goto label_1;
| label_23:
0x00010d08 ldr r2, [pc, 0x5fc] | r2 = "_.1.0";
0x00010d0c ldr r1, [pc, 0x610] | r1 = "static";
0x00010d10 mov r3, r5 | r3 = r5;
| label_2:
0x00010d14 ldr r0, [pc, 0x5e4] |
0x00010d18 ldr r0, [r0] | r0 = "a:n:N:s:S:t:h_Vmk";
0x00010d1c bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "static", "_.1.0", r3)
| label_3:
0x00010d20 mvn r5, 0 | r5 = ~0;
| label_4:
0x00010d24 mov r0, r5 | r0 = r5;
0x00010d28 add sp, sp, 0x138 |
0x00010d2c pop {r4, r5, r6, r7, r8, sb, sl, pc} |
| label_21:
0x00010d30 ldr r0, [r4] | r0 = *(r4);
0x00010d34 bl 0x11540 | fcn_00011540 (r0);
0x00010d38 ldr r3, [pc, 0x5d4] | r3 = "_s__mtd_utils___s";
0x00010d3c cmp r0, 1 |
0x00010d40 strd r0, r1, [r3, 8] | __asm ("strd r0, r1, [r3, 8]");
0x00010d44 sbcs r3, r1, 0 | __asm ("sbcs r3, r1, 0");
| if (r0 >= 1) {
0x00010d48 bge 0x10bb8 | goto label_1;
| }
0x00010d4c ldr r3, [r4] | r3 = *(r4);
0x00010d50 ldr r2, [pc, 0x5b4] | r2 = "_.1.0";
0x00010d54 ldr r1, [pc, 0x5cc] | r1 = "_s:_error_:_bad_volume_type:___s_";
0x00010d58 b 0x10d14 | goto label_2;
| label_16:
0x00010d5c ldr sl, [r4] | sl = *(r4);
0x00010d60 mov r2, sb | r2 = sb;
0x00010d64 add r1, sp, 0x80 | r1 += endptr;
0x00010d68 mov r0, sl | r0 = sl;
0x00010d6c bl 0x10ac4 | strtoull (r0, r1, r2);
0x00010d70 ldrb r3, [sl] | r3 = *(sl);
0x00010d74 cmp r3, 0 |
0x00010d78 mov r5, r0 | r5 = r0;
| if (r3 != 0) {
0x00010d7c beq 0x10d90 |
0x00010d80 ldr r3, [sp, 0x80] | r3 = endptr;
0x00010d84 ldrb r3, [r3] | r3 = *(r3);
0x00010d88 cmp r3, 0 |
| if (r3 == 0) {
0x00010d8c beq 0x10db4 | goto label_24;
| }
| }
0x00010d90 ldr r0, [pc, 0x568] |
0x00010d94 str sl, [sp] | *(sp) = sl;
0x00010d98 ldr r3, [pc, 0x58c] | r3 = "%s: error!: bad volume size: \"%s\"\n";
0x00010d9c ldr r2, [pc, 0x568] | r2 = "_.1.0";
0x00010da0 ldr r1, [pc, 0x588] | r1 = "strtoull";
0x00010da4 ldr r0, [r0] | r0 = "a:n:N:s:S:t:h_Vmk";
0x00010da8 bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "strtoull", "_.1.0", "%s: error!: bad volume size: \"%s\"\n")
0x00010dac mov r3, 1 | r3 = 1;
0x00010db0 str r3, [sp, 0x28] | var_28h = r3;
| label_24:
0x00010db4 ldr r3, [pc, 0x558] | r3 = "_s__mtd_utils___s";
0x00010db8 cmp r5, 0 |
0x00010dbc str r5, [r3, 0x10] | *((r3 + 0x10)) = r5;
0x00010dc0 ldr r3, [sp, 0x28] | r3 = var_28h;
| if (r5 <= 0) {
0x00010dc4 movgt r5, 0 | r5 = 0;
| }
| if (r5 > 0) {
0x00010dc8 movle r5, 1 | r5 = 1;
| }
0x00010dcc cmp r3, 0 |
| if (r3 == 0) {
0x00010dd0 movne r5, 1 | r5 = 1;
| }
0x00010dd4 cmp r5, 0 |
| if (r5 == 0) {
0x00010dd8 beq 0x10bb8 | goto label_1;
| }
0x00010ddc ldr r3, [r4] | r3 = *(r4);
0x00010de0 ldr r2, [pc, 0x524] | r2 = "_.1.0";
0x00010de4 ldr r1, [pc, 0x548] | r1 = "_s:_error_:__s:_unable_to_parse_the_number__s";
0x00010de8 b 0x10d14 | goto label_2;
| label_10:
0x00010dec add r1, sp, 0x28 | r1 += var_28h;
0x00010df0 ldr r0, [r4] | r0 = *(r4);
0x00010df4 bl 0x114c4 | fcn_000114c4 (r0, r1);
0x00010df8 ldr r3, [pc, 0x514] | r3 = "_s__mtd_utils___s";
0x00010dfc str r0, [r3, 0x14] | *((r3 + 0x14)) = r0;
0x00010e00 ldr r3, [sp, 0x28] | r3 = var_28h;
0x00010e04 cmp r0, 0 |
| if (r0 <= 0) {
0x00010e08 movgt r0, 0 | r0 = 0;
| }
| if (r0 > 0) {
0x00010e0c movle r0, 1 | r0 = 1;
| }
0x00010e10 cmp r3, 0 |
| if (r3 == 0) {
0x00010e14 movne r0, 1 | r0 = 1;
| }
0x00010e18 cmp r0, 0 |
| if (r0 == 0) {
0x00010e1c beq 0x10bb8 | goto label_1;
| }
0x00010e20 ldr r3, [r4] | r3 = *(r4);
0x00010e24 ldr r2, [pc, 0x4e0] | r2 = "_.1.0";
0x00010e28 ldr r1, [pc, 0x508] | r1 = "%s: error!: bad LEB count: \"%s\"\n";
0x00010e2c b 0x10d14 | goto label_2;
| label_12:
0x00010e30 ldr r2, [r4] | r2 = *(r4);
0x00010e34 ldr r3, [pc, 0x4d8] | r3 = "_s__mtd_utils___s";
0x00010e38 str r2, [r3, 0x18] | *((r3 + 0x18)) = r2;
0x00010e3c b 0x10bb8 | goto label_1;
| label_20:
0x00010e40 ldr r1, [pc, 0x4f4] | r1 = "_s:_error_:_bad_volume_alignment:___s_";
0x00010e44 ldr r0, [pc, 0x4f4] | r0 = "ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.";
0x00010e48 bl 0x109c8 | printf ("ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.", "_s:_error_:_bad_volume_alignment:___s_")
0x00010e4c ldr r1, [pc, 0x4f0] | r1 = "%s\n\n";
0x00010e50 ldr r0, [pc, 0x4e8] | r0 = "ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.";
0x00010e54 bl 0x109c8 | printf ("ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.", "%s\n\n")
0x00010e58 ldr r0, [pc, 0x4e8] | r0 = "Usage: ubimkvol <UBI device node file name> [-h] [-a <alignment>] [-n <volume ID>] [-N <name>]\n\t\t\t[-s <bytes>] [-S <LEBs>] [-t <static|dynamic>] [-V] [-m] [-k]\n\t\t\t[--alignment=<alignment>][--vol_id=<volume ID>] [--name=<name>]\n\t\t\t[--size=<bytes>] [--lebs=<LEBs>] [--type=<static|dynamic>] [--help]\n\t\t\t[--version] [--maxavsize] [--skipcheck]\n\nExample: ubimkvol /dev/ubi0 -s 20MiB -N config_data - create a 20 Megabytes volume\n named \"config_data\" on UBI device /dev/ubi0.";
0x00010e5c bl 0x10a1c | puts ("Usage: ubimkvol <UBI device node file name> [-h] [-a <alignment>] [-n <volume ID>] [-N <name>]\n\t\t\t[-s <bytes>] [-S <LEBs>] [-t <static|dynamic>] [-V] [-m] [-k]\n\t\t\t[--alignment=<alignment>][--vol_id=<volume ID>] [--name=<name>]\n\t\t\t[--size=<bytes>] [--lebs=<LEBs>] [--type=<static|dynamic>] [--help]\n\t\t\t[--version] [--maxavsize] [--skipcheck]\n\nExample: ubimkvol /dev/ubi0 -s 20MiB -N config_data - create a 20 Megabytes volume\n named \"config_data\" on UBI device /dev/ubi0.");
| label_17:
0x00010e60 mov r0, sb | r0 = sb;
0x00010e64 bl 0x10b30 | exit (r0);
| label_15:
0x00010e68 ldr r1, [pc, 0x4cc] | r1 = "_s:_error_:_bad_volume_alignment:___s_";
0x00010e6c ldr r0, [pc, 0x4cc] | r0 = "ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.";
0x00010e70 bl 0x109c8 | printf ("ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.", "_s:_error_:_bad_volume_alignment:___s_")
0x00010e74 ldr r1, [pc, 0x4c8] | r1 = "%s\n\n";
0x00010e78 ldr r0, [pc, 0x4c0] | r0 = "ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.";
0x00010e7c bl 0x109c8 | printf ("ubimkvol_version_2.1.0___a_tool_to_create_UBI_volumes.", "%s\n\n")
0x00010e80 ldr r0, [pc, 0x4c0] | r0 = "Usage: ubimkvol <UBI device node file name> [-h] [-a <alignment>] [-n <volume ID>] [-N <name>]\n\t\t\t[-s <bytes>] [-S <LEBs>] [-t <static|dynamic>] [-V] [-m] [-k]\n\t\t\t[--alignment=<alignment>][--vol_id=<volume ID>] [--name=<name>]\n\t\t\t[--size=<bytes>] [--lebs=<LEBs>] [--type=<static|dynamic>] [--help]\n\t\t\t[--version] [--maxavsize] [--skipcheck]\n\nExample: ubimkvol /dev/ubi0 -s 20MiB -N config_data - create a 20 Megabytes volume\n named \"config_data\" on UBI device /dev/ubi0.";
0x00010e84 bl 0x10a1c | puts ("Usage: ubimkvol <UBI device node file name> [-h] [-a <alignment>] [-n <volume ID>] [-N <name>]\n\t\t\t[-s <bytes>] [-S <LEBs>] [-t <static|dynamic>] [-V] [-m] [-k]\n\t\t\t[--alignment=<alignment>][--vol_id=<volume ID>] [--name=<name>]\n\t\t\t[--size=<bytes>] [--lebs=<LEBs>] [--type=<static|dynamic>] [--help]\n\t\t\t[--version] [--maxavsize] [--skipcheck]\n\nExample: ubimkvol /dev/ubi0 -s 20MiB -N config_data - create a 20 Megabytes volume\n named \"config_data\" on UBI device /dev/ubi0.");
0x00010e88 b 0x10d20 | goto label_3;
| label_18:
0x00010e8c ldr r3, [pc, 0x480] | r3 = "_s__mtd_utils___s";
0x00010e90 mov r2, 1 | r2 = 1;
0x00010e94 str r2, [r3, 0x20] | *((r3 + 0x20)) = r2;
0x00010e98 b 0x10bb8 | goto label_1;
| label_14:
0x00010e9c ldr r3, [pc, 0x45c] | r3 = "a:n:N:s:S:t:h_Vmk";
0x00010ea0 ldr r2, [pc, 0x464] | r2 = "_.1.0";
0x00010ea4 ldr r1, [pc, 0x4a0] | r1 = "_a____alignment_alignment____volume_alignment__default_is_1__n____vol_id_volume_ID_______UBI_volume_ID__if_not_specified__the_volume_ID______________________________will_be_assigned_automatically_N____name_name______________volume_name_s____size_b";
0x00010ea8 ldr r0, [r3] | r0 = "a:n:N:s:S:t:h_Vmk";
0x00010eac bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "_a____alignment_alignment____volume_alignment__default_is_1__n____vol_id_volume_ID_______UBI_volume_ID__if_not_specified__the_volume_ID______________________________will_be_assigned_automatically_N____name_name______________volume_name_s____size_b", "_.1.0", "a:n:N:s:S:t:h_Vmk")
0x00010eb0 b 0x10d20 | goto label_3;
| label_9:
0x00010eb4 ldr r3, [pc, 0x494] |
0x00010eb8 ldr r3, [r3] | r3 = "%s: error!: parameter is missing\n";
0x00010ebc cmp r6, r3 |
| if (r6 != r3) {
0x00010ec0 bne 0x10edc | goto label_25;
| }
0x00010ec4 ldr r2, [pc, 0x440] | r2 = "_.1.0";
0x00010ec8 ldr r1, [pc, 0x484] | r1 = optind;
| do {
| label_5:
0x00010ecc ldr r3, [pc, 0x42c] | r3 = "a:n:N:s:S:t:h_Vmk";
0x00010ed0 ldr r0, [r3] | r0 = "a:n:N:s:S:t:h_Vmk";
| label_6:
0x00010ed4 bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", r1, "_.1.0", "a:n:N:s:S:t:h_Vmk")
0x00010ed8 b 0x10d24 | goto label_4;
| label_25:
0x00010edc sub r6, r6, 1 | r6--;
0x00010ee0 cmp r3, r6 |
| if (r3 == r6) {
0x00010ee4 ldrne r2, [pc, 0x420] | r2 = "ubimkvol";
| }
| if (r3 == r6) {
0x00010ee8 ldrne r1, [pc, 0x468] | r1 = "%s: error!: more then one UBI device specified (use -h for help)\n";
| }
0x00010eec bne 0x10ecc |
| } while (r3 != r6);
0x00010ef0 ldr r1, [pc, 0x41c] | r1 = "_s__mtd_utils___s";
0x00010ef4 ldr r3, [r7, r3, lsl 2] | offset_0 = r3 << 2;
| r3 = *((r7 + offset_0));
0x00010ef8 mvn r7, 0 | r7 = ~0;
0x00010efc str r3, [r1, 0x1c] | *((r1 + 0x1c)) = r3;
0x00010f00 ldrd r2, r3, [r1, 8] | __asm ("ldrd r2, r3, [r1, 8]");
0x00010f04 ldr r0, [r1, 0x20] | r0 = "_s:_error_:__s:_unable_to_parse_the_number__s";
0x00010f08 mvn r6, 0 | r6 = ~0;
0x00010f0c cmp r3, r7 |
0x00010f10 cmpeq r2, r6 | __asm ("cmpeq r2, r6");
0x00010f14 mov r4, r1 | r4 = r1;
| if (r3 == r7) {
0x00010f18 bne 0x10f3c |
0x00010f1c cmp r0, 0 |
| if (r0 != 0) {
0x00010f20 bne 0x10f50 | goto label_26;
| }
0x00010f24 ldr r1, [r1, 0x10] | r1 = *((r1 + 0x10));
0x00010f28 cmn r1, 1 |
| if (r1 != 1) {
0x00010f2c bne 0x10f50 | goto label_26;
| }
0x00010f30 ldr r2, [pc, 0x3d4] | r2 = "_.1.0";
0x00010f34 ldr r1, [pc, 0x420] | r1 = "%s: error!: more then one UBI device specified (use -h for help)\n";
0x00010f38 b 0x10ecc | goto label_5;
| }
0x00010f3c cmp r0, 0 |
| if (r0 != 0) {
0x00010f40 bne 0x10f6c | goto label_27;
| }
0x00010f44 ldr r1, [r1, 0x10] | r1 = *((r1 + 0x10));
0x00010f48 cmn r1, 1 |
| if (r1 != 1) {
0x00010f4c bne 0x10f6c | goto label_27;
| }
| label_26:
0x00010f50 ldr r1, [r4, 0x10] | r1 = *((r4 + 0x10));
0x00010f54 cmn r1, 1 |
| if (r1 == 1) {
0x00010f58 beq 0x10f78 | goto label_28;
| }
0x00010f5c and r2, r2, r3 | r2 &= r3;
0x00010f60 cmn r2, 1 |
0x00010f64 cmpeq r0, 0 | __asm ("cmpeq r0, 0");
| if (r2 == 1) {
0x00010f68 beq 0x10f94 | goto label_29;
| }
| do {
| label_27:
0x00010f6c ldr r2, [pc, 0x398] | r2 = "_.1.0";
0x00010f70 ldr r1, [pc, 0x3e8] | r1 = "%s: error!: volume size was not specified (use -h for help)\n";
0x00010f74 b 0x10ecc | goto label_5;
| label_28:
0x00010f78 cmp r0, 0 |
| if (r0 == 0) {
0x00010f7c beq 0x10f94 | goto label_29;
| }
0x00010f80 mvn r1, 0 | r1 = ~0;
0x00010f84 mvn r0, 0 | r0 = ~0;
0x00010f88 cmp r3, r1 |
0x00010f8c cmpeq r2, r0 | __asm ("cmpeq r2, r0");
0x00010f90 bne 0x10f6c |
| } while (r3 != r1);
| label_29:
0x00010f94 ldr r0, [r4, 0x18] | r0 = *((r4 + 0x18));
0x00010f98 cmp r0, 0 |
| if (r0 != 0) {
0x00010f9c ldreq r2, [pc, 0x368] | r2 = "ubimkvol";
| }
| if (r0 == 0) {
0x00010fa0 ldreq r1, [pc, 0x3bc] | r1 = "_s:_error_:_volume_name_was_not_specified__use__h_for_help_";
| goto label_30;
| }
| if (r0 == 0) {
| label_30:
0x00010fa4 beq 0x10ecc | goto label_5;
| }
0x00010fa8 bl 0x10b3c | r0 = strlen (r0);
0x00010fac cmp r0, 0x7f |
0x00010fb0 mov r3, r0 | r3 = r0;
| if (r0 >= 0x7f) {
0x00010fb4 bls 0x10fd8 |
0x00010fb8 ldr r0, [pc, 0x340] |
0x00010fbc mov r2, 0x7f | r2 = 0x7f;
0x00010fc0 str r2, [sp] | *(sp) = r2;
0x00010fc4 ldr r1, [pc, 0x39c] | r1 = "_s:_error_:_volume_name_was_not_specified__use__h_for_help_";
0x00010fc8 ldr r2, [pc, 0x33c] | r2 = "_.1.0";
0x00010fcc ldr r0, [r0] | r0 = "a:n:N:s:S:t:h_Vmk";
0x00010fd0 bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "_s:_error_:_volume_name_was_not_specified__use__h_for_help_", r2)
0x00010fd4 b 0x10d24 | goto label_4;
| }
0x00010fd8 ldr r3, [r4, 0x24] | r3 = *((r4 + 0x24));
0x00010fdc cmp r3, 0 |
| if (r3 == 0) {
0x00010fe0 beq 0x10ff8 | goto label_31;
| }
0x00010fe4 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x00010fe8 cmp r3, 4 |
| if (r3 == 4) {
0x00010fec ldrne r2, [pc, 0x318] | r2 = "ubimkvol";
| }
| if (r3 != 4) {
0x00010ff0 ldrne r1, [pc, 0x374] | r1 = "_s:_error_:_skipcheck_is_only_valid_for_static_volumes";
| goto label_32;
| }
| if (r3 != 4) {
| label_32:
0x00010ff4 bne 0x10ecc | goto label_5;
| }
| label_31:
0x00010ff8 bl 0x120fc | r0 = fcn_000120fc ();
0x00010ffc subs r6, r0, 0 | r6 = r0 - 0;
| if (r6 != r0) {
0x00011000 bne 0x11058 | goto label_33;
| }
0x00011004 bl 0x10b24 | errno_location ();
0x00011008 ldr r6, [pc, 0x2f0] | r6 = "a:n:N:s:S:t:h_Vmk";
0x0001100c ldr r2, [pc, 0x2f8] | r2 = "_.1.0";
0x00011010 ldr r4, [r0] | r4 = *(r0);
0x00011014 ldr r0, [r6] | r0 = "a:n:N:s:S:t:h_Vmk";
0x00011018 cmp r4, 0 |
| if (r4 == 0) {
0x0001101c ldreq r1, [pc, 0x34c] | r1 = "%s: error!: UBI is not present in the system\n";
| goto label_34;
| }
| if (r4 == 0) {
| label_34:
0x00011020 beq 0x10ed4 | goto label_6;
| }
0x00011024 ldr r1, [pc, 0x348] | r1 = "%s: error!: UBI is not present in the system\n";
0x00011028 bl 0x10a64 | fprintf (r0, "%s: error!: UBI is not present in the system\n")
0x0001102c mov r0, r4 | r0 = r4;
0x00011030 ldr r6, [r6] | r6 = *(r6);
0x00011034 bl 0x109d4 | strerror (r0);
0x00011038 str r4, [sp] | *(sp) = r4;
0x0001103c ldr r3, [pc, 0x334] | r3 = "_s:_error_:_cannot_open_libubi";
0x00011040 mov r2, 0xa | r2 = 0xa;
0x00011044 ldr r1, [pc, 0x330] | r1 = *(0x11378);
0x00011048 str r0, [sp, 4] | var_4h = r0;
0x0001104c mov r0, r6 | r0 = r6;
0x00011050 bl 0x10a64 | fprintf (r0, r1, r2, "_s:_error_:_cannot_open_libubi", r4)
0x00011054 b 0x10d24 | goto label_4;
| label_33:
0x00011058 ldr r1, [r4, 0x1c] | r1 = *((r4 + 0x1c));
0x0001105c bl 0x128e8 | r0 = fcn_000128e8 (r0, r1);
0x00011060 cmp r0, 2 |
| if (r0 != 2) {
0x00011064 bne 0x1108c | goto label_35;
| }
0x00011068 ldr r0, [pc, 0x290] |
0x0001106c ldr r3, [r4, 0x1c] | r3 = *((r4 + 0x1c));
0x00011070 ldr r2, [pc, 0x294] | r2 = "_.1.0";
0x00011074 ldr r1, [pc, 0x304] | r1 = "_serror__d___s_";
0x00011078 ldr r0, [r0] | r0 = "a:n:N:s:S:t:h_Vmk";
| do {
0x0001107c bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "_serror__d___s_", "_.1.0", r3)
| label_7:
0x00011080 mov r0, r6 | r0 = r6;
0x00011084 bl 0x12028 | fcn_00012028 (r0);
0x00011088 b 0x10d24 | goto label_4;
| label_35:
0x0001108c cmp r0, 0 |
0x00011090 ldr r7, [r4, 0x1c] | r7 = *((r4 + 0x1c));
| if (r0 >= 0) {
0x00011094 bge 0x110ec | goto label_36;
| }
0x00011098 bl 0x10b24 | errno_location ();
0x0001109c ldr r8, [pc, 0x25c] | r8 = "a:n:N:s:S:t:h_Vmk";
0x000110a0 mov r3, r7 | r3 = r7;
0x000110a4 ldr r2, [pc, 0x260] | r2 = "_.1.0";
0x000110a8 ldr r4, [r0] | r4 = *(r0);
0x000110ac ldr r0, [r8] | r0 = "a:n:N:s:S:t:h_Vmk";
0x000110b0 cmp r4, 0x13 |
| if (r4 != 0x13) {
0x000110b4 ldreq r1, [pc, 0x2c8] | r1 = "%s: error!: \"%s\" is not an UBI device node\n";
| }
0x000110b8 beq 0x1107c |
| } while (r4 == 0x13);
0x000110bc ldr r1, [pc, 0x2c4] | r1 = "%s: error!: \"%s\" is not an UBI device node\n";
0x000110c0 bl 0x10a64 | fprintf (r0, "%s: error!: \"%s\" is not an UBI device node\n")
0x000110c4 ldr r7, [r8] | r7 = *(r8);
| do {
0x000110c8 mov r0, r4 | r0 = r4;
0x000110cc bl 0x109d4 | strerror (r0);
0x000110d0 str r4, [sp] | *(sp) = r4;
0x000110d4 ldr r3, [pc, 0x29c] | r3 = "_s:_error_:_cannot_open_libubi";
0x000110d8 mov r2, 0xa | r2 = 0xa;
0x000110dc ldr r1, [pc, 0x298] | r1 = *(0x11378);
0x000110e0 str r0, [sp, 4] | var_4h = r0;
0x000110e4 mov r0, r7 | r0 = r7;
0x000110e8 b 0x11148 | goto label_37;
| label_36:
0x000110ec add r2, sp, 0x28 | r2 += var_28h;
0x000110f0 mov r1, r7 | r1 = r7;
0x000110f4 mov r0, r6 | r0 = r6;
0x000110f8 bl 0x1327c | r0 = fcn_0001327c (r0, r1);
0x000110fc cmp r0, 0 |
| if (r0 != 0) {
0x00011100 beq 0x11150 |
0x00011104 bl 0x10b24 | errno_location ();
0x00011108 ldr r8, [pc, 0x1f0] | r8 = "a:n:N:s:S:t:h_Vmk";
0x0001110c ldr r3, [r4, 0x1c] | r3 = *((r4 + 0x1c));
0x00011110 ldr r2, [pc, 0x1f4] | r2 = "_.1.0";
0x00011114 ldr r1, [pc, 0x270] | r1 = "_s:_error_:_error_while_probing___s_";
0x00011118 ldr r7, [r0] | r7 = *(r0);
0x0001111c ldr r0, [r8] | r0 = "a:n:N:s:S:t:h_Vmk";
0x00011120 bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "_s:_error_:_error_while_probing___s_", "_.1.0", r3)
0x00011124 mov r0, r7 | r0 = r7;
0x00011128 ldr r4, [r8] | r4 = "a:n:N:s:S:t:h_Vmk";
0x0001112c bl 0x109d4 | strerror (r0);
0x00011130 ldr r3, [pc, 0x240] | r3 = "_s:_error_:_cannot_open_libubi";
0x00011134 ldr r1, [pc, 0x240] | r1 = *(0x11378);
0x00011138 mov r2, 0xa | r2 = 0xa;
0x0001113c str r7, [sp] | *(sp) = r7;
0x00011140 str r0, [sp, 4] | var_4h = r0;
0x00011144 mov r0, r4 | r0 = r4;
| label_37:
0x00011148 bl 0x10a64 | fprintf (r0, r1, r2, "_s:_error_:_cannot_open_libubi")
0x0001114c b 0x11080 | goto label_7;
| }
0x00011150 ldrd r2, r3, [sp, 0x58] | __asm ("ldrd r2, r3, [var_58h]");
0x00011154 orrs r1, r2, r3 | r1 = r2 | r3;
| if (r1 == r2) {
0x00011158 bne 0x11174 |
0x0001115c ldr r3, [pc, 0x19c] | r3 = "a:n:N:s:S:t:h_Vmk";
0x00011160 ldr r2, [pc, 0x1a4] | r2 = "_.1.0";
0x00011164 ldr r1, [pc, 0x224] | r1 = "_s:_error_:_cannot_get_information_about_UBI_device___s_";
0x00011168 ldr r0, [r3] | r0 = "a:n:N:s:S:t:h_Vmk";
0x0001116c bl 0x10a64 | fprintf ("a:n:N:s:S:t:h_Vmk", "_s:_error_:_cannot_get_information_about_UBI_device___s_", "_.1.0", "a:n:N:s:S:t:h_Vmk")
0x00011170 b 0x11080 | goto label_7;
| }
0x00011174 ldr r1, [r4, 0x20] | r1 = *((r4 + 0x20));
0x00011178 cmp r1, 0 |
| if (r1 != 0) {
0x0001117c beq 0x1118c |
0x00011180 ldr r0, [pc, 0x20c] | r0 = "_s:_error_:_UBI_device_does_not_have_free_logical_eraseblocks";
0x00011184 strd r2, r3, [r4, 8] | __asm ("strd r2, r3, [r4, 8]");
0x00011188 bl 0x109c8 | printf ("_s:_error_:_UBI_device_does_not_have_free_logical_eraseblocks", r1, r2)
| }
0x0001118c ldr r7, [r4, 0x10] | r7 = *((r4 + 0x10));
0x00011190 ldr sl, [r4, 0x14] | sl = *((r4 + 0x14));
0x00011194 cmn r7, 1 |
| if (r7 != 1) {
0x00011198 beq 0x111e0 |
0x0001119c ldr r0, [sp, 0x64] | r0 = var_64h;
0x000111a0 mov r1, sl | r1 = sl;
0x000111a4 mov r8, r0 | r8 = r0;
0x000111a8 asr sb, r0, 0x1f | sb = r0 >> 0x1f;
0x000111ac bl 0x13c8c | fcn_00013c8c (r0, r1);
0x000111b0 subs r2, r8, r1 | r2 = r8 - r1;
0x000111b4 sbc r3, sb, r1, asr 31 | __asm ("sbc r3, sb, r1, asr 31");
0x000111b8 mov r8, r2 | r8 = r2;
0x000111bc mov sb, r3 | sb = r3;
0x000111c0 mov r0, r8 | r0 = r8;
0x000111c4 asr r3, r7, 0x1f | r3 = r7 >> 0x1f;
0x000111c8 mul r0, r3, r0 | r0 = r3 * r0;
0x000111cc mov r1, sb | r1 = sb;
0x000111d0 umull r2, r3, r8, r7 | r2:r3 = r8 * r7;
0x000111d4 mla r1, r7, r1, r0 | __asm ("mla r1, r7, r1, r0");
0x000111d8 add r3, r1, r3 | r3 = r1 + r3;
0x000111dc strd r2, r3, [r4, 8] | __asm ("strd r2, r3, [r4, 8]");
| }
0x000111e0 ldr r3, [r4] | r3 = *(r4);
0x000111e4 ldr r1, [r4, 0x1c] | r1 = *((r4 + 0x1c));
0x000111e8 str r3, [sp, 8] | s = r3;
0x000111ec ldrd r2, r3, [r4, 8] | __asm ("ldrd r2, r3, [r4, 8]");
0x000111f0 mov r0, r6 | r0 = r6;
0x000111f4 strd r2, r3, [sp, 0x10] | __asm ("strd r2, r3, [var_10h]");
0x000111f8 ldr r3, [r4, 4] | r3 = *((r4 + 4));
0x000111fc add r2, sp, 8 | r2 += s;
0x00011200 str r3, [sp, 0x18] | var_18h = r3;
0x00011204 ldr r3, [r4, 0x18] | r3 = *((r4 + 0x18));
0x00011208 str sl, [sp, 0xc] | var_ch = sl;
0x0001120c str r3, [sp, 0x1c] | var_1ch = r3;
0x00011210 ldr r3, [r4, 0x24] | r3 = *((r4 + 0x24));
0x00011214 cmp r3, 0 |
| if (r3 == 0) {
0x00011218 ldrbne r3, [sp, 0x20] | r3 = var_20h;
| }
| if (r3 == 0) {
0x0001121c orrne r3, r3, 1 | r3 |= 1;
| }
| if (r3 == 0) {
0x00011220 strbne r3, [sp, 0x20] | var_20h = r3;
| }
0x00011224 bl 0x12b38 | r0 = fcn_00012b38 (r0);
0x00011228 cmp r0, 0 |
| if (r0 >= 0) {
0x0001122c bge 0x11254 | goto label_38;
| }
0x00011230 bl 0x10b24 | errno_location ();
0x00011234 ldr r7, [pc, 0xc4] | r7 = "a:n:N:s:S:t:h_Vmk";
0x00011238 ldr r2, [pc, 0xcc] | r2 = "_.1.0";
0x0001123c ldr r1, [pc, 0x154] | r1 = "Set volume size to %lld\n";
0x00011240 ldr r4, [r0] | r4 = *(r0);
| label_8:
0x00011244 ldr r0, [r7] | r0 = *(r7);
0x00011248 bl 0x10a64 | fprintf (r0, "Set volume size to %lld\n", "_.1.0", r3, r4)
0x0001124c ldr r7, [r7] | r7 = *(r7);
0x00011250 b 0x110c8 |
| } while (1);
| label_38:
0x00011254 ldr r2, [sp, 8] | r2 = s;
0x00011258 add r3, sp, 0x80 | r3 += endptr;
0x0001125c ldr r1, [sp, 0x28] | r1 = var_28h;
0x00011260 mov r0, r6 | r0 = r6;
0x00011264 str r2, [r4] | *(r4) = r2;
0x00011268 bl 0x1346c | r0 = fcn_0001346c (r0, r1);
0x0001126c subs r4, r0, 0 | r4 = r0 - 0;
| if (r4 != r0) {
0x00011270 beq 0x1128c |
0x00011274 bl 0x10b24 | errno_location ();
0x00011278 ldr r7, [pc, 0x80] | r7 = "a:n:N:s:S:t:h_Vmk";
0x0001127c ldr r2, [pc, 0x88] | r2 = "_.1.0";
0x00011280 ldr r1, [pc, 0x114] | r1 = "_s:_error_:_cannot_UBI_create_volume";
0x00011284 ldr r4, [r0] | r4 = *(r0);
0x00011288 b 0x11244 | goto label_8;
| }
0x0001128c ldr r2, [sp, 0xa8] | r2 = var_a8h;
0x00011290 ldr r1, [sp, 0x84] | r1 = var_84h;
0x00011294 ldr r0, [pc, 0x104] | r0 = "_s:_error_:_cannot_get_information_about_newly_created_UBI_volume";
0x00011298 bl 0x109c8 | printf ("_s:_error_:_cannot_get_information_about_newly_created_UBI_volume", r1, r2)
0x0001129c ldrd r0, r1, [sp, 0xa0] | __asm ("ldrd r0, r1, [var_a0h]");
0x000112a0 mov r2, r4 | r2 = r4;
0x000112a4 bl 0x1164c | fcn_0001164c (r0, r1);
0x000112a8 ldr r0, [pc, 0xf4] | r0 = "Volume ID %d, size %d LEBs (";
0x000112ac bl 0x109c8 | printf ("Volume ID %d, size %d LEBs (")
0x000112b0 ldr r0, [sp, 0xac] | r0 = var_ach;
0x000112b4 mov r2, 1 | r2 = 1;
0x000112b8 asr r1, r0, 0x1f | r1 = r0 >> 0x1f;
0x000112bc bl 0x1164c | fcn_0001164c (r0, r1);
0x000112c0 ldr ip, [sp, 0x18] | ip = var_18h;
0x000112c4 ldr r0, [pc, 0x50] | r0 = "_s:_error_:_bad_volume_ID:___s_";
0x000112c8 cmp ip, 3 |
0x000112cc ldr r1, [pc, 0x4c] | r1 = "dynamic";
0x000112d0 ldr r3, [sp, 0x94] | r3 = var_94h;
| if (ip != 3) {
0x000112d4 moveq r1, r0 | r1 = r0;
| }
0x000112d8 add r2, sp, 0xb4 | r2 += var_b4h;
0x000112dc ldr r0, [pc, 0xc4] | r0 = "___LEB_size_";
0x000112e0 bl 0x109c8 | printf ("_s:_error_:_bad_volume_ID:___s_", "dynamic", r2, r3)
0x000112e4 mov r0, r6 | r0 = r6;
0x000112e8 bl 0x12028 | fcn_00012028 (r0);
0x000112ec mov r5, r4 | r5 = r4;
0x000112f0 b 0x10d24 | goto label_4;
| }
[*] Function printf used 25 times ubimkvol