FreeCalypso > hg > freecalypso-reveng
changeset 267:ace3136d0601
dsample-fw-disasm tpudrv10 code analysis: got to calc_a_b()
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 19 Jan 2018 05:15:50 +0000 |
parents | bb46e9f67cd5 |
children | e493fcff28ab |
files | dsample-fw-disasm |
diffstat | 1 files changed, 1077 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dsample-fw-disasm Thu Jan 18 17:12:17 2018 +0000 +++ b/dsample-fw-disasm Fri Jan 19 05:15:50 2018 +0000 @@ -950,14 +950,34 @@ 803c20: 21ff mov r1, #255 ; 0xff 803c22: 319d add r1, #157 ; 0x9d 803c24: 2200 mov r2, #0 - 803c26: f000 f868 bl 0x803cfa + 803c26: f000 f868 bl 0x803cfa ; $get_cal_from_nvmem 803c2a: 487a ldr r0, =0x83a09c ; via 0x803e14 803c2c: 2124 mov r1, #36 ; 0x24 803c2e: 2201 mov r2, #1 - 803c30: f000 f863 bl 0x803cfa + 803c30: f000 f863 bl 0x803cfa ; $get_cal_from_nvmem 803c34: b004 add sp, #16 ; 0x10 803c36: bd00 pop {pc} +_std_config: + 8053f8: 00000000 + 8053fc: 00000000 + 805400: 00000005 + 805404: 00000001 + 805408: 00000001 + 80540c: 00000001 + 805410: 00150003 + 805414: 00000200 + 805418: 001c0002 + 80541c: 00000200 + 805420: 001c0205 + 805424: 00000001 + 805428: 001c0201 + 80542c: 00000001 + 805430: 00000004 + 805434: 00000080 + 805438: 00150304 + 80543c: 00000001 + ; apparent beginning of tpudrv10 module 811df8: b500 push {lr} @@ -1025,6 +1045,7 @@ 811e76: b004 add sp, #16 ; 0x10 811e78: bd00 pop {pc} +$calc_a_b: 811e7a: b500 push {lr} 811e7c: b08d sub sp, #52 ; 0x34 811e7e: 466a mov r2, sp @@ -1355,3 +1376,1057 @@ 812114: b001 add sp, #4 812116: 4770 bx lr + +$rf_init: + 812148: b500 push {lr} + 81214a: b081 sub sp, #4 + 81214c: 9000 str r0, [sp, #0] + 81214e: 49fb ldr r1, =0x1388 ; via 0x81253c + 812150: 9800 ldr r0, [sp, #0] + 812152: 1808 add r0, r1, r0 + 812154: f002 fc02 bl 0x81495c + 812158: 2101 mov r1, #1 + 81215a: 034a lsl r2, r1, #13 + 81215c: 4302 orr r2, r0 + 81215e: 49f8 ldr r1, =0x83c0a4 ; via 0x812540 + 812160: 6808 ldr r0, [r1, #0] + 812162: 1c83 add r3, r0, #2 + 812164: 600b str r3, [r1, #0] + 812166: 8002 strh r2, [r0, #0] + 812168: 48f5 ldr r0, =0x83c0a4 ; via 0x812540 + 81216a: 6801 ldr r1, [r0, #0] + 81216c: 1c8a add r2, r1, #2 + 81216e: 6002 str r2, [r0, #0] + 812170: 48f4 ldr r0, =0x88e0 ; via 0x812544 + 812172: 8008 strh r0, [r1, #0] + 812174: 49f2 ldr r1, =0x83c0a4 ; via 0x812540 + 812176: 6808 ldr r0, [r1, #0] + 812178: 1c82 add r2, r0, #2 + 81217a: 600a str r2, [r1, #0] + 81217c: 49f2 ldr r1, =0x8026 ; via 0x812548 + 81217e: 8001 strh r1, [r0, #0] + 812180: 49ef ldr r1, =0x83c0a4 ; via 0x812540 + 812182: 6808 ldr r0, [r1, #0] + 812184: 1c82 add r2, r0, #2 + 812186: 600a str r2, [r1, #0] + 812188: 49f0 ldr r1, =0x8006 ; via 0x81254c + 81218a: 8001 strh r1, [r0, #0] + 81218c: 49ec ldr r1, =0x83c0a4 ; via 0x812540 + 81218e: 6808 ldr r0, [r1, #0] + 812190: 1c82 add r2, r0, #2 + 812192: 600a str r2, [r1, #0] + 812194: 49ec ldr r1, =0x8026 ; via 0x812548 + 812196: 8001 strh r1, [r0, #0] + 812198: 9800 ldr r0, [sp, #0] + 81219a: 3008 add r0, #8 + 81219c: 9000 str r0, [sp, #0] + 81219e: 49e7 ldr r1, =0x1388 ; via 0x81253c + 8121a0: 9800 ldr r0, [sp, #0] + 8121a2: 1808 add r0, r1, r0 + 8121a4: f002 fbda bl 0x81495c + 8121a8: 2101 mov r1, #1 + 8121aa: 034a lsl r2, r1, #13 + 8121ac: 4302 orr r2, r0 + 8121ae: 49e4 ldr r1, =0x83c0a4 ; via 0x812540 + 8121b0: 6808 ldr r0, [r1, #0] + 8121b2: 1c83 add r3, r0, #2 + 8121b4: 600b str r3, [r1, #0] + 8121b6: 8002 strh r2, [r0, #0] + 8121b8: 49e5 ldr r1, =0x83c09c ; via 0x812550 + 8121ba: 48e6 ldr r0, =0x8008 ; via 0x812554 + 8121bc: 6008 str r0, [r1, #0] + 8121be: 48e0 ldr r0, =0x83c0a4 ; via 0x812540 + 8121c0: 6801 ldr r1, [r0, #0] + 8121c2: 1c8a add r2, r1, #2 + 8121c4: 6002 str r2, [r0, #0] + 8121c6: 48e4 ldr r0, =0x8004 ; via 0x812558 + 8121c8: 4ae1 ldr r2, =0x83c09c ; via 0x812550 + 8121ca: 6812 ldr r2, [r2, #0] + 8121cc: 0a12 lsr r2, r2, #8 + 8121ce: 0612 lsl r2, r2, #24 + 8121d0: 0e12 lsr r2, r2, #24 + 8121d2: 0152 lsl r2, r2, #5 + 8121d4: 4310 orr r0, r2 + 8121d6: 8008 strh r0, [r1, #0] + 8121d8: 48d9 ldr r0, =0x83c0a4 ; via 0x812540 + 8121da: 6801 ldr r1, [r0, #0] + 8121dc: 1c8a add r2, r1, #2 + 8121de: 6002 str r2, [r0, #0] + 8121e0: 48de ldr r0, =0x8003 ; via 0x81255c + 8121e2: 4adb ldr r2, =0x83c09c ; via 0x812550 + 8121e4: 6812 ldr r2, [r2, #0] + 8121e6: 0612 lsl r2, r2, #24 + 8121e8: 0e12 lsr r2, r2, #24 + 8121ea: 0152 lsl r2, r2, #5 + 8121ec: 4310 orr r0, r2 + 8121ee: 8008 strh r0, [r1, #0] + 8121f0: 49d3 ldr r1, =0x83c0a4 ; via 0x812540 + 8121f2: 6808 ldr r0, [r1, #0] + 8121f4: 1c82 add r2, r0, #2 + 8121f6: 600a str r2, [r1, #0] + 8121f8: 49d9 ldr r1, =0x89e0 ; via 0x812560 + 8121fa: 8001 strh r1, [r0, #0] + 8121fc: 49d0 ldr r1, =0x83c0a4 ; via 0x812540 + 8121fe: 6808 ldr r0, [r1, #0] + 812200: 1c82 add r2, r0, #2 + 812202: 600a str r2, [r1, #0] + 812204: 49d7 ldr r1, =0x8041 ; via 0x812564 + 812206: 8001 strh r1, [r0, #0] + 812208: 48cd ldr r0, =0x83c0a4 ; via 0x812540 + 81220a: 6801 ldr r1, [r0, #0] + 81220c: 1c8a add r2, r1, #2 + 81220e: 6002 str r2, [r0, #0] + 812210: 48d5 ldr r0, =0x83e6 ; via 0x812568 + 812212: 8008 strh r0, [r1, #0] + 812214: 9800 ldr r0, [sp, #0] + 812216: 3007 add r0, #7 + 812218: 9000 str r0, [sp, #0] + 81221a: 49c8 ldr r1, =0x1388 ; via 0x81253c + 81221c: 9800 ldr r0, [sp, #0] + 81221e: 1808 add r0, r1, r0 + 812220: f002 fb9c bl 0x81495c + 812224: 2101 mov r1, #1 + 812226: 034a lsl r2, r1, #13 + 812228: 4302 orr r2, r0 + 81222a: 49c5 ldr r1, =0x83c0a4 ; via 0x812540 + 81222c: 6808 ldr r0, [r1, #0] + 81222e: 1c83 add r3, r0, #2 + 812230: 600b str r3, [r1, #0] + 812232: 8002 strh r2, [r0, #0] + 812234: 49c1 ldr r1, =0x1388 ; via 0x81253c + 812236: 9800 ldr r0, [sp, #0] + 812238: 1808 add r0, r1, r0 + 81223a: f002 fb8f bl 0x81495c + 81223e: 2101 mov r1, #1 + 812240: 034a lsl r2, r1, #13 + 812242: 4302 orr r2, r0 + 812244: 48be ldr r0, =0x83c0a4 ; via 0x812540 + 812246: 6801 ldr r1, [r0, #0] + 812248: 1c8b add r3, r1, #2 + 81224a: 6003 str r3, [r0, #0] + 81224c: 800a strh r2, [r1, #0] + 81224e: 49bb ldr r1, =0x1388 ; via 0x81253c + 812250: 9800 ldr r0, [sp, #0] + 812252: 1808 add r0, r1, r0 + 812254: f002 fb82 bl 0x81495c + 812258: 2101 mov r1, #1 + 81225a: 034a lsl r2, r1, #13 + 81225c: 4302 orr r2, r0 + 81225e: 48b8 ldr r0, =0x83c0a4 ; via 0x812540 + 812260: 6801 ldr r1, [r0, #0] + 812262: 1c8b add r3, r1, #2 + 812264: 6003 str r3, [r0, #0] + 812266: 800a strh r2, [r1, #0] + 812268: 49b4 ldr r1, =0x1388 ; via 0x81253c + 81226a: 9800 ldr r0, [sp, #0] + 81226c: 1808 add r0, r1, r0 + 81226e: f002 fb75 bl 0x81495c + 812272: 2101 mov r1, #1 + 812274: 034a lsl r2, r1, #13 + 812276: 4302 orr r2, r0 + 812278: 48b1 ldr r0, =0x83c0a4 ; via 0x812540 + 81227a: 6801 ldr r1, [r0, #0] + 81227c: 1c8b add r3, r1, #2 + 81227e: 6003 str r3, [r0, #0] + 812280: 800a strh r2, [r1, #0] + 812282: 49ae ldr r1, =0x1388 ; via 0x81253c + 812284: 9800 ldr r0, [sp, #0] + 812286: 1808 add r0, r1, r0 + 812288: f002 fb68 bl 0x81495c + 81228c: 2101 mov r1, #1 + 81228e: 034a lsl r2, r1, #13 + 812290: 4302 orr r2, r0 + 812292: 48ab ldr r0, =0x83c0a4 ; via 0x812540 + 812294: 6801 ldr r1, [r0, #0] + 812296: 1c8b add r3, r1, #2 + 812298: 6003 str r3, [r0, #0] + 81229a: 800a strh r2, [r1, #0] + 81229c: 49a7 ldr r1, =0x1388 ; via 0x81253c + 81229e: 9800 ldr r0, [sp, #0] + 8122a0: 1808 add r0, r1, r0 + 8122a2: f002 fb5b bl 0x81495c + 8122a6: 2101 mov r1, #1 + 8122a8: 034a lsl r2, r1, #13 + 8122aa: 4302 orr r2, r0 + 8122ac: 48a4 ldr r0, =0x83c0a4 ; via 0x812540 + 8122ae: 6801 ldr r1, [r0, #0] + 8122b0: 1c8b add r3, r1, #2 + 8122b2: 6003 str r3, [r0, #0] + 8122b4: 800a strh r2, [r1, #0] + 8122b6: 49a2 ldr r1, =0x83c0a4 ; via 0x812540 + 8122b8: 6808 ldr r0, [r1, #0] + 8122ba: 1c82 add r2, r0, #2 + 8122bc: 600a str r2, [r1, #0] + 8122be: 49aa ldr r1, =0x83e6 ; via 0x812568 + 8122c0: 8001 strh r1, [r0, #0] + 8122c2: 489f ldr r0, =0x83c0a4 ; via 0x812540 + 8122c4: 6801 ldr r1, [r0, #0] + 8122c6: 1c8a add r2, r1, #2 + 8122c8: 6002 str r2, [r0, #0] + 8122ca: 48a8 ldr r0, =0x83c6 ; via 0x81256c + 8122cc: 8008 strh r0, [r1, #0] + 8122ce: 489c ldr r0, =0x83c0a4 ; via 0x812540 + 8122d0: 6801 ldr r1, [r0, #0] + 8122d2: 1c8a add r2, r1, #2 + 8122d4: 6002 str r2, [r0, #0] + 8122d6: 48a4 ldr r0, =0x83e6 ; via 0x812568 + 8122d8: 8008 strh r0, [r1, #0] + 8122da: 499d ldr r1, =0x83c09c ; via 0x812550 + 8122dc: 48a4 ldr r0, =0x8018 ; via 0x812570 + 8122de: 6008 str r0, [r1, #0] + 8122e0: 4897 ldr r0, =0x83c0a4 ; via 0x812540 + 8122e2: 6801 ldr r1, [r0, #0] + 8122e4: 1c8a add r2, r1, #2 + 8122e6: 6002 str r2, [r0, #0] + 8122e8: 489b ldr r0, =0x8004 ; via 0x812558 + 8122ea: 4a99 ldr r2, =0x83c09c ; via 0x812550 + 8122ec: 6812 ldr r2, [r2, #0] + 8122ee: 0a12 lsr r2, r2, #8 + 8122f0: 0612 lsl r2, r2, #24 + 8122f2: 0e12 lsr r2, r2, #24 + 8122f4: 0152 lsl r2, r2, #5 + 8122f6: 4310 orr r0, r2 + 8122f8: 8008 strh r0, [r1, #0] + 8122fa: 4891 ldr r0, =0x83c0a4 ; via 0x812540 + 8122fc: 6801 ldr r1, [r0, #0] + 8122fe: 1c8a add r2, r1, #2 + 812300: 6002 str r2, [r0, #0] + 812302: 4896 ldr r0, =0x8003 ; via 0x81255c + 812304: 4a92 ldr r2, =0x83c09c ; via 0x812550 + 812306: 6812 ldr r2, [r2, #0] + 812308: 0612 lsl r2, r2, #24 + 81230a: 0e12 lsr r2, r2, #24 + 81230c: 0152 lsl r2, r2, #5 + 81230e: 4310 orr r0, r2 + 812310: 8008 strh r0, [r1, #0] + 812312: 498b ldr r1, =0x83c0a4 ; via 0x812540 + 812314: 6808 ldr r0, [r1, #0] + 812316: 1c82 add r2, r0, #2 + 812318: 600a str r2, [r1, #0] + 81231a: 4991 ldr r1, =0x89e0 ; via 0x812560 + 81231c: 8001 strh r1, [r0, #0] + 81231e: 4888 ldr r0, =0x83c0a4 ; via 0x812540 + 812320: 6801 ldr r1, [r0, #0] + 812322: 1c8a add r2, r1, #2 + 812324: 6002 str r2, [r0, #0] + 812326: 488f ldr r0, =0x8041 ; via 0x812564 + 812328: 8008 strh r0, [r1, #0] + 81232a: 9800 ldr r0, [sp, #0] + 81232c: 3009 add r0, #9 + 81232e: 9000 str r0, [sp, #0] + 812330: 4982 ldr r1, =0x1388 ; via 0x81253c + 812332: 9800 ldr r0, [sp, #0] + 812334: 1808 add r0, r1, r0 + 812336: f002 fb11 bl 0x81495c + 81233a: 2101 mov r1, #1 + 81233c: 034a lsl r2, r1, #13 + 81233e: 4302 orr r2, r0 + 812340: 497f ldr r1, =0x83c0a4 ; via 0x812540 + 812342: 6808 ldr r0, [r1, #0] + 812344: 1c83 add r3, r0, #2 + 812346: 600b str r3, [r1, #0] + 812348: 8002 strh r2, [r0, #0] + 81234a: 4981 ldr r1, =0x83c09c ; via 0x812550 + 81234c: 4889 ldr r0, =0x140753 ; via 0x812574 + 81234e: 6008 str r0, [r1, #0] + 812350: 487b ldr r0, =0x83c0a4 ; via 0x812540 + 812352: 6801 ldr r1, [r0, #0] + 812354: 1c8a add r2, r1, #2 + 812356: 6002 str r2, [r0, #0] + 812358: 487f ldr r0, =0x8004 ; via 0x812558 + 81235a: 4a7d ldr r2, =0x83c09c ; via 0x812550 + 81235c: 6812 ldr r2, [r2, #0] + 81235e: 0c12 lsr r2, r2, #16 + 812360: 0612 lsl r2, r2, #24 + 812362: 0e12 lsr r2, r2, #24 + 812364: 0152 lsl r2, r2, #5 + 812366: 4310 orr r0, r2 + 812368: 8008 strh r0, [r1, #0] + 81236a: 4875 ldr r0, =0x83c0a4 ; via 0x812540 + 81236c: 6801 ldr r1, [r0, #0] + 81236e: 1c8a add r2, r1, #2 + 812370: 6002 str r2, [r0, #0] + 812372: 487a ldr r0, =0x8003 ; via 0x81255c + 812374: 4a76 ldr r2, =0x83c09c ; via 0x812550 + 812376: 6812 ldr r2, [r2, #0] + 812378: 0a12 lsr r2, r2, #8 + 81237a: 0612 lsl r2, r2, #24 + 81237c: 0e12 lsr r2, r2, #24 + 81237e: 0152 lsl r2, r2, #5 + 812380: 4310 orr r0, r2 + 812382: 8008 strh r0, [r1, #0] + 812384: 486e ldr r0, =0x83c0a4 ; via 0x812540 + 812386: 6801 ldr r1, [r0, #0] + 812388: 1c8a add r2, r1, #2 + 81238a: 6002 str r2, [r0, #0] + 81238c: 48e5 ldr r0, =0x8002 ; via 0x812724 + 81238e: 4a70 ldr r2, =0x83c09c ; via 0x812550 + 812390: 6812 ldr r2, [r2, #0] + 812392: 0612 lsl r2, r2, #24 + 812394: 0e12 lsr r2, r2, #24 + 812396: 0152 lsl r2, r2, #5 + 812398: 4310 orr r0, r2 + 81239a: 8008 strh r0, [r1, #0] + 81239c: 4968 ldr r1, =0x83c0a4 ; via 0x812540 + 81239e: 6808 ldr r0, [r1, #0] + 8123a0: 1c82 add r2, r0, #2 + 8123a2: 600a str r2, [r1, #0] + 8123a4: 49e0 ldr r1, =0x8ae0 ; via 0x812728 + 8123a6: 8001 strh r1, [r0, #0] + 8123a8: 4865 ldr r0, =0x83c0a4 ; via 0x812540 + 8123aa: 6801 ldr r1, [r0, #0] + 8123ac: 1c8a add r2, r1, #2 + 8123ae: 6002 str r2, [r0, #0] + 8123b0: 486c ldr r0, =0x8041 ; via 0x812564 + 8123b2: 8008 strh r0, [r1, #0] + 8123b4: 9800 ldr r0, [sp, #0] + 8123b6: 3008 add r0, #8 + 8123b8: 9000 str r0, [sp, #0] + 8123ba: 4960 ldr r1, =0x1388 ; via 0x81253c + 8123bc: 9800 ldr r0, [sp, #0] + 8123be: 1808 add r0, r1, r0 + 8123c0: f002 facc bl 0x81495c + 8123c4: 2101 mov r1, #1 + 8123c6: 034a lsl r2, r1, #13 + 8123c8: 4302 orr r2, r0 + 8123ca: 495d ldr r1, =0x83c0a4 ; via 0x812540 + 8123cc: 6808 ldr r0, [r1, #0] + 8123ce: 1c83 add r3, r0, #2 + 8123d0: 600b str r3, [r1, #0] + 8123d2: 8002 strh r2, [r0, #0] + 8123d4: 495e ldr r1, =0x83c09c ; via 0x812550 + 8123d6: 4868 ldr r0, =0x2db084 ; via 0x812578 + 8123d8: 6008 str r0, [r1, #0] + 8123da: 4859 ldr r0, =0x83c0a4 ; via 0x812540 + 8123dc: 6801 ldr r1, [r0, #0] + 8123de: 1c8a add r2, r1, #2 + 8123e0: 6002 str r2, [r0, #0] + 8123e2: 485d ldr r0, =0x8004 ; via 0x812558 + 8123e4: 4a5a ldr r2, =0x83c09c ; via 0x812550 + 8123e6: 6812 ldr r2, [r2, #0] + 8123e8: 0c12 lsr r2, r2, #16 + 8123ea: 0612 lsl r2, r2, #24 + 8123ec: 0e12 lsr r2, r2, #24 + 8123ee: 0152 lsl r2, r2, #5 + 8123f0: 4310 orr r0, r2 + 8123f2: 8008 strh r0, [r1, #0] + 8123f4: 4852 ldr r0, =0x83c0a4 ; via 0x812540 + 8123f6: 6801 ldr r1, [r0, #0] + 8123f8: 1c8a add r2, r1, #2 + 8123fa: 6002 str r2, [r0, #0] + 8123fc: 4857 ldr r0, =0x8003 ; via 0x81255c + 8123fe: 4a54 ldr r2, =0x83c09c ; via 0x812550 + 812400: 6812 ldr r2, [r2, #0] + 812402: 0a12 lsr r2, r2, #8 + 812404: 0612 lsl r2, r2, #24 + 812406: 0e12 lsr r2, r2, #24 + 812408: 0152 lsl r2, r2, #5 + 81240a: 4310 orr r0, r2 + 81240c: 8008 strh r0, [r1, #0] + 81240e: 484c ldr r0, =0x83c0a4 ; via 0x812540 + 812410: 6801 ldr r1, [r0, #0] + 812412: 1c8a add r2, r1, #2 + 812414: 6002 str r2, [r0, #0] + 812416: 48c3 ldr r0, =0x8002 ; via 0x812724 + 812418: 4a4d ldr r2, =0x83c09c ; via 0x812550 + 81241a: 6812 ldr r2, [r2, #0] + 81241c: 0612 lsl r2, r2, #24 + 81241e: 0e12 lsr r2, r2, #24 + 812420: 0152 lsl r2, r2, #5 + 812422: 4310 orr r0, r2 + 812424: 8008 strh r0, [r1, #0] + 812426: 4946 ldr r1, =0x83c0a4 ; via 0x812540 + 812428: 6808 ldr r0, [r1, #0] + 81242a: 1c82 add r2, r0, #2 + 81242c: 600a str r2, [r1, #0] + 81242e: 49be ldr r1, =0x8ae0 ; via 0x812728 + 812430: 8001 strh r1, [r0, #0] + 812432: 4843 ldr r0, =0x83c0a4 ; via 0x812540 + 812434: 6801 ldr r1, [r0, #0] + 812436: 1c8a add r2, r1, #2 + 812438: 6002 str r2, [r0, #0] + 81243a: 484a ldr r0, =0x8041 ; via 0x812564 + 81243c: 8008 strh r0, [r1, #0] + 81243e: 9800 ldr r0, [sp, #0] + 812440: 3008 add r0, #8 + 812442: 9000 str r0, [sp, #0] + 812444: 493d ldr r1, =0x1388 ; via 0x81253c + 812446: 9800 ldr r0, [sp, #0] + 812448: 1808 add r0, r1, r0 + 81244a: f002 fa87 bl 0x81495c + 81244e: 2101 mov r1, #1 + 812450: 034a lsl r2, r1, #13 + 812452: 4302 orr r2, r0 + 812454: 493a ldr r1, =0x83c0a4 ; via 0x812540 + 812456: 6808 ldr r0, [r1, #0] + 812458: 1c83 add r3, r0, #2 + 81245a: 600b str r3, [r1, #0] + 81245c: 8002 strh r2, [r0, #0] + 81245e: 4838 ldr r0, =0x83c0a4 ; via 0x812540 + 812460: 6802 ldr r2, [r0, #0] + 812462: 1c91 add r1, r2, #2 + 812464: 6001 str r1, [r0, #0] + 812466: 4846 ldr r0, =0x83be26 ; via 0x812580 + 812468: 7800 ldrb r0, [r0, #0] + 81246a: 0100 lsl r0, r0, #4 + 81246c: 4945 ldr r1, =0x83be25 ; via 0x812584 + 81246e: 7809 ldrb r1, [r1, #0] + 812470: 0149 lsl r1, r1, #5 + 812472: 4308 orr r0, r1 + 812474: 2106 mov r1, #6 + 812476: 4301 orr r1, r0 + 812478: 0608 lsl r0, r1, #24 + 81247a: 0e00 lsr r0, r0, #24 + 81247c: 0141 lsl r1, r0, #5 + 81247e: 483f ldr r0, =0x8004 ; via 0x81257c + 812480: 4308 orr r0, r1 + 812482: 8010 strh r0, [r2, #0] + 812484: 482e ldr r0, =0x83c0a4 ; via 0x812540 + 812486: 6801 ldr r1, [r0, #0] + 812488: 1c8a add r2, r1, #2 + 81248a: 6002 str r2, [r0, #0] + 81248c: 482d ldr r0, =0x88e0 ; via 0x812544 + 81248e: 8008 strh r0, [r1, #0] + 812490: 482b ldr r0, =0x83c0a4 ; via 0x812540 + 812492: 6801 ldr r1, [r0, #0] + 812494: 1c8a add r2, r1, #2 + 812496: 6002 str r2, [r0, #0] + 812498: 4832 ldr r0, =0x8041 ; via 0x812564 + 81249a: 8008 strh r0, [r1, #0] + 81249c: 9800 ldr r0, [sp, #0] + 81249e: 30ff add r0, #255 ; 0xff + 8124a0: 3081 add r0, #129 ; 0x81 + 8124a2: 9000 str r0, [sp, #0] + 8124a4: 4925 ldr r1, =0x1388 ; via 0x81253c + 8124a6: 9800 ldr r0, [sp, #0] + 8124a8: 1808 add r0, r1, r0 + 8124aa: f002 fa57 bl 0x81495c + 8124ae: 2101 mov r1, #1 + 8124b0: 034a lsl r2, r1, #13 + 8124b2: 4302 orr r2, r0 + 8124b4: 4922 ldr r1, =0x83c0a4 ; via 0x812540 + 8124b6: 6808 ldr r0, [r1, #0] + 8124b8: 1c83 add r3, r0, #2 + 8124ba: 600b str r3, [r1, #0] + 8124bc: 8002 strh r2, [r0, #0] + 8124be: 2007 mov r0, #7 + 8124c0: 4931 ldr r1, =0x83be24 ; via 0x812588 + 8124c2: 7809 ldrb r1, [r1, #0] + 8124c4: 04c9 lsl r1, r1, #19 + 8124c6: 4308 orr r0, r1 + 8124c8: 4921 ldr r1, =0x83c09c ; via 0x812550 + 8124ca: 6008 str r0, [r1, #0] + 8124cc: 481c ldr r0, =0x83c0a4 ; via 0x812540 + 8124ce: 6801 ldr r1, [r0, #0] + 8124d0: 1c8a add r2, r1, #2 + 8124d2: 6002 str r2, [r0, #0] + 8124d4: 4820 ldr r0, =0x8004 ; via 0x812558 + 8124d6: 4a1e ldr r2, =0x83c09c ; via 0x812550 + 8124d8: 6812 ldr r2, [r2, #0] + 8124da: 0c12 lsr r2, r2, #16 + 8124dc: 0612 lsl r2, r2, #24 + 8124de: 0e12 lsr r2, r2, #24 + 8124e0: 0152 lsl r2, r2, #5 + 8124e2: 4310 orr r0, r2 + 8124e4: 8008 strh r0, [r1, #0] + 8124e6: 4816 ldr r0, =0x83c0a4 ; via 0x812540 + 8124e8: 6801 ldr r1, [r0, #0] + 8124ea: 1c8a add r2, r1, #2 + 8124ec: 6002 str r2, [r0, #0] + 8124ee: 481b ldr r0, =0x8003 ; via 0x81255c + 8124f0: 4a17 ldr r2, =0x83c09c ; via 0x812550 + 8124f2: 6812 ldr r2, [r2, #0] + 8124f4: 0a12 lsr r2, r2, #8 + 8124f6: 0612 lsl r2, r2, #24 + 8124f8: 0e12 lsr r2, r2, #24 + 8124fa: 0152 lsl r2, r2, #5 + 8124fc: 4310 orr r0, r2 + 8124fe: 8008 strh r0, [r1, #0] + 812500: 480f ldr r0, =0x83c0a4 ; via 0x812540 + 812502: 6801 ldr r1, [r0, #0] + 812504: 1c8a add r2, r1, #2 + 812506: 6002 str r2, [r0, #0] + 812508: 4886 ldr r0, =0x8002 ; via 0x812724 + 81250a: 4a11 ldr r2, =0x83c09c ; via 0x812550 + 81250c: 6812 ldr r2, [r2, #0] + 81250e: 0612 lsl r2, r2, #24 + 812510: 0e12 lsr r2, r2, #24 + 812512: 0152 lsl r2, r2, #5 + 812514: 4310 orr r0, r2 + 812516: 8008 strh r0, [r1, #0] + 812518: 4909 ldr r1, =0x83c0a4 ; via 0x812540 + 81251a: 680a ldr r2, [r1, #0] + 81251c: 1c90 add r0, r2, #2 + 81251e: 6008 str r0, [r1, #0] + 812520: 4881 ldr r0, =0x8ae0 ; via 0x812728 + 812522: 8010 strh r0, [r2, #0] + 812524: 4906 ldr r1, =0x83c0a4 ; via 0x812540 + 812526: 6808 ldr r0, [r1, #0] + 812528: 1c82 add r2, r0, #2 + 81252a: 600a str r2, [r1, #0] + 81252c: 490d ldr r1, =0x8041 ; via 0x812564 + 81252e: 8001 strh r1, [r0, #0] + 812530: 9800 ldr r0, [sp, #0] + 812532: 3008 add r0, #8 + 812534: 9000 str r0, [sp, #0] + 812536: 9800 ldr r0, [sp, #0] + 812538: b001 add sp, #4 + 81253a: bd00 pop {pc} + +$rf_program: + 81258c: b500 push {lr} + 81258e: b088 sub sp, #32 ; 0x20 + 812590: 9202 str r2, [sp, #8] + 812592: 466a mov r2, sp + 812594: 8091 strh r1, [r2, #4] + 812596: 9000 str r0, [sp, #0] + 812598: 4668 mov r0, sp + 81259a: 8880 ldrh r0, [r0, #4] + 81259c: f7f1 fa4c bl 0x803a38 ; $Cust_is_band_high + 8125a0: 49fa ldr r1, =0x83c0a0 ; via 0x81298c + 8125a2: 7008 strb r0, [r1, #0] + 8125a4: 4668 mov r0, sp + 8125a6: 8880 ldrh r0, [r0, #4] + 8125a8: f7ff fd29 bl 0x811ffe ; $Convert_l1_radio_freq + 8125ac: 4669 mov r1, sp + 8125ae: 8388 strh r0, [r1, #28] ; 0x1c + 8125b0: 4668 mov r0, sp + 8125b2: 8b80 ldrh r0, [r0, #28] ; 0x1c + 8125b4: f000 fa58 bl 0x812a68 ; $arfcn_to_rf_index + 8125b8: 49f2 ldr r1, =0x83c0a1 ; via 0x812984 + 8125ba: 7008 strb r0, [r1, #0] + 8125bc: 9802 ldr r0, [sp, #8] + 8125be: 2801 cmp r0, #1 + 8125c0: d000 beq 0x8125c4 + 8125c2: e0b3 b 0x81272c + 8125c4: 4668 mov r0, sp + 8125c6: 8b80 ldrh r0, [r0, #28] ; 0x1c + 8125c8: 2101 mov r1, #1 + 8125ca: f7ff fc56 bl 0x811e7a + 8125ce: 9004 str r0, [sp, #16] ; 0x10 + 8125d0: 9904 ldr r1, [sp, #16] ; 0x10 + 8125d2: 48f2 ldr r0, =0x83be2c ; via 0x81299c + 8125d4: 7800 ldrb r0, [r0, #0] + 8125d6: 4301 orr r1, r0 + 8125d8: 2002 mov r0, #2 + 8125da: 4308 orr r0, r1 + 8125dc: 49f1 ldr r1, =0x83c09c ; via 0x8129a4 + 8125de: 6008 str r0, [r1, #0] + 8125e0: 48ef ldr r0, =0x83c0a4 ; via 0x8129a0 + 8125e2: 6801 ldr r1, [r0, #0] + 8125e4: 1c8a add r2, r1, #2 + 8125e6: 6002 str r2, [r0, #0] + 8125e8: 48f0 ldr r0, =0x8004 ; via 0x8129ac + 8125ea: 4aee ldr r2, =0x83c09c ; via 0x8129a4 + 8125ec: 6812 ldr r2, [r2, #0] + 8125ee: 0c12 lsr r2, r2, #16 + 8125f0: 0612 lsl r2, r2, #24 + 8125f2: 0e12 lsr r2, r2, #24 + 8125f4: 0152 lsl r2, r2, #5 + 8125f6: 4310 orr r0, r2 + 8125f8: 8008 strh r0, [r1, #0] + 8125fa: 48e9 ldr r0, =0x83c0a4 ; via 0x8129a0 + 8125fc: 6801 ldr r1, [r0, #0] + 8125fe: 1c8a add r2, r1, #2 + 812600: 6002 str r2, [r0, #0] + 812602: 48eb ldr r0, =0x8003 ; via 0x8129b0 + 812604: 4ae7 ldr r2, =0x83c09c ; via 0x8129a4 + 812606: 6812 ldr r2, [r2, #0] + 812608: 0a12 lsr r2, r2, #8 + 81260a: 0612 lsl r2, r2, #24 + 81260c: 0e12 lsr r2, r2, #24 + 81260e: 0152 lsl r2, r2, #5 + 812610: 4310 orr r0, r2 + 812612: 8008 strh r0, [r1, #0] + 812614: 48e2 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812616: 6801 ldr r1, [r0, #0] + 812618: 1c8a add r2, r1, #2 + 81261a: 6002 str r2, [r0, #0] + 81261c: 4841 ldr r0, =0x8002 ; via 0x812724 + 81261e: 4ae1 ldr r2, =0x83c09c ; via 0x8129a4 + 812620: 6812 ldr r2, [r2, #0] + 812622: 0612 lsl r2, r2, #24 + 812624: 0e12 lsr r2, r2, #24 + 812626: 0152 lsl r2, r2, #5 + 812628: 4310 orr r0, r2 + 81262a: 8008 strh r0, [r1, #0] + 81262c: 49dc ldr r1, =0x83c0a4 ; via 0x8129a0 + 81262e: 6808 ldr r0, [r1, #0] + 812630: 1c82 add r2, r0, #2 + 812632: 600a str r2, [r1, #0] + 812634: 493c ldr r1, =0x8ae0 ; via 0x812728 + 812636: 8001 strh r1, [r0, #0] + 812638: 49d9 ldr r1, =0x83c0a4 ; via 0x8129a0 + 81263a: 6808 ldr r0, [r1, #0] + 81263c: 1c82 add r2, r0, #2 + 81263e: 600a str r2, [r1, #0] + 812640: 49d9 ldr r1, =0x8041 ; via 0x8129a8 + 812642: 8001 strh r1, [r0, #0] + 812644: 49d6 ldr r1, =0x83c0a4 ; via 0x8129a0 + 812646: 6808 ldr r0, [r1, #0] + 812648: 1c82 add r2, r0, #2 + 81264a: 600a str r2, [r1, #0] + 81264c: 49d0 ldr r1, =0xa001 ; via 0x812990 + 81264e: 8001 strh r1, [r0, #0] + 812650: 2014 mov r0, #20 ; 0x14 + 812652: 49cc ldr r1, =0x83c0a1 ; via 0x812984 + 812654: 7809 ldrb r1, [r1, #0] + 812656: 4348 mul r0, r1 + 812658: 49cf ldr r1, =0x83c048 ; via 0x812998 + 81265a: 5a09 ldrh r1, [r1, r0] + 81265c: 48cd ldr r0, =0x8a18 ; via 0x812994 + 81265e: 4308 orr r0, r1 + 812660: 49d0 ldr r1, =0x83c09c ; via 0x8129a4 + 812662: 6008 str r0, [r1, #0] + 812664: 48ce ldr r0, =0x83c0a4 ; via 0x8129a0 + 812666: 6801 ldr r1, [r0, #0] + 812668: 1c8a add r2, r1, #2 + 81266a: 6002 str r2, [r0, #0] + 81266c: 48cf ldr r0, =0x8004 ; via 0x8129ac + 81266e: 4acd ldr r2, =0x83c09c ; via 0x8129a4 + 812670: 6812 ldr r2, [r2, #0] + 812672: 0a12 lsr r2, r2, #8 + 812674: 0612 lsl r2, r2, #24 + 812676: 0e12 lsr r2, r2, #24 + 812678: 0152 lsl r2, r2, #5 + 81267a: 4310 orr r0, r2 + 81267c: 8008 strh r0, [r1, #0] + 81267e: 48c8 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812680: 6801 ldr r1, [r0, #0] + 812682: 1c8a add r2, r1, #2 + 812684: 6002 str r2, [r0, #0] + 812686: 48ca ldr r0, =0x8003 ; via 0x8129b0 + 812688: 4ac6 ldr r2, =0x83c09c ; via 0x8129a4 + 81268a: 6812 ldr r2, [r2, #0] + 81268c: 0612 lsl r2, r2, #24 + 81268e: 0e12 lsr r2, r2, #24 + 812690: 0152 lsl r2, r2, #5 + 812692: 4310 orr r0, r2 + 812694: 8008 strh r0, [r1, #0] + 812696: 49c2 ldr r1, =0x83c0a4 ; via 0x8129a0 + 812698: 6808 ldr r0, [r1, #0] + 81269a: 1c82 add r2, r0, #2 + 81269c: 600a str r2, [r1, #0] + 81269e: 49f1 ldr r1, =0x89e0 ; via 0x812a64 + 8126a0: 8001 strh r1, [r0, #0] + 8126a2: 49bf ldr r1, =0x83c0a4 ; via 0x8129a0 + 8126a4: 6808 ldr r0, [r1, #0] + 8126a6: 1c82 add r2, r0, #2 + 8126a8: 600a str r2, [r1, #0] + 8126aa: 49bf ldr r1, =0x8041 ; via 0x8129a8 + 8126ac: 8001 strh r1, [r0, #0] + 8126ae: 9804 ldr r0, [sp, #16] ; 0x10 + 8126b0: 49ba ldr r1, =0x83be2c ; via 0x81299c + 8126b2: 7809 ldrb r1, [r1, #0] + 8126b4: 4308 orr r0, r1 + 8126b6: 2102 mov r1, #2 + 8126b8: 4301 orr r1, r0 + 8126ba: 48ba ldr r0, =0x83c09c ; via 0x8129a4 + 8126bc: 6001 str r1, [r0, #0] + 8126be: 48b8 ldr r0, =0x83c0a4 ; via 0x8129a0 + 8126c0: 6801 ldr r1, [r0, #0] + 8126c2: 1c8a add r2, r1, #2 + 8126c4: 6002 str r2, [r0, #0] + 8126c6: 48b9 ldr r0, =0x8004 ; via 0x8129ac + 8126c8: 4ab6 ldr r2, =0x83c09c ; via 0x8129a4 + 8126ca: 6812 ldr r2, [r2, #0] + 8126cc: 0c12 lsr r2, r2, #16 + 8126ce: 0612 lsl r2, r2, #24 + 8126d0: 0e12 lsr r2, r2, #24 + 8126d2: 0152 lsl r2, r2, #5 + 8126d4: 4310 orr r0, r2 + 8126d6: 8008 strh r0, [r1, #0] + 8126d8: 48b1 ldr r0, =0x83c0a4 ; via 0x8129a0 + 8126da: 6801 ldr r1, [r0, #0] + 8126dc: 1c8a add r2, r1, #2 + 8126de: 6002 str r2, [r0, #0] + 8126e0: 48b3 ldr r0, =0x8003 ; via 0x8129b0 + 8126e2: 4ab0 ldr r2, =0x83c09c ; via 0x8129a4 + 8126e4: 6812 ldr r2, [r2, #0] + 8126e6: 0a12 lsr r2, r2, #8 + 8126e8: 0612 lsl r2, r2, #24 + 8126ea: 0e12 lsr r2, r2, #24 + 8126ec: 0152 lsl r2, r2, #5 + 8126ee: 4310 orr r0, r2 + 8126f0: 8008 strh r0, [r1, #0] + 8126f2: 48ab ldr r0, =0x83c0a4 ; via 0x8129a0 + 8126f4: 6802 ldr r2, [r0, #0] + 8126f6: 1c91 add r1, r2, #2 + 8126f8: 6001 str r1, [r0, #0] + 8126fa: 480a ldr r0, =0x8002 ; via 0x812724 + 8126fc: 49a9 ldr r1, =0x83c09c ; via 0x8129a4 + 8126fe: 6809 ldr r1, [r1, #0] + 812700: 0609 lsl r1, r1, #24 + 812702: 0e09 lsr r1, r1, #24 + 812704: 0149 lsl r1, r1, #5 + 812706: 4308 orr r0, r1 + 812708: 8010 strh r0, [r2, #0] + 81270a: 49a5 ldr r1, =0x83c0a4 ; via 0x8129a0 + 81270c: 6808 ldr r0, [r1, #0] + 81270e: 1c82 add r2, r0, #2 + 812710: 600a str r2, [r1, #0] + 812712: 4905 ldr r1, =0x8ae0 ; via 0x812728 + 812714: 8001 strh r1, [r0, #0] + 812716: 48a2 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812718: 6802 ldr r2, [r0, #0] + 81271a: 1c91 add r1, r2, #2 + 81271c: 6001 str r1, [r0, #0] + 81271e: 48a2 ldr r0, =0x8041 ; via 0x8129a8 + 812720: 8010 strh r0, [r2, #0] + 812722: e12c b 0x81297e + 812724: 8002 strh r2, [r0, #0] + 812726: 0000 lsl r0, r0, #0 + 812728: 8ae0 ldrh r0, [r4, #22] ; 0x16 + 81272a: 0000 lsl r0, r0, #0 + 81272c: 4668 mov r0, sp + 81272e: 8b80 ldrh r0, [r0, #28] ; 0x1c + 812730: 2100 mov r1, #0 + 812732: f7ff fba2 bl 0x811e7a + 812736: 9004 str r0, [sp, #16] ; 0x10 + 812738: 4668 mov r0, sp + 81273a: 8b80 ldrh r0, [r0, #28] ; 0x1c + 81273c: f7ff fb5c bl 0x811df8 + 812740: 9005 str r0, [sp, #20] ; 0x14 + 812742: 4897 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812744: 6801 ldr r1, [r0, #0] + 812746: 1c8a add r2, r1, #2 + 812748: 6002 str r2, [r0, #0] + 81274a: 48fa ldr r0, =0x9004 ; via 0x812b34 + 81274c: 8008 strh r0, [r1, #0] + 81274e: 4894 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812750: 6801 ldr r1, [r0, #0] + 812752: 1c8a add r2, r1, #2 + 812754: 6002 str r2, [r0, #0] + 812756: 48f8 ldr r0, =0x80c0 ; via 0x812b38 + 812758: 8008 strh r0, [r1, #0] + 81275a: 4891 ldr r0, =0x83c0a4 ; via 0x8129a0 + 81275c: 6801 ldr r1, [r0, #0] + 81275e: 1c8a add r2, r1, #2 + 812760: 6002 str r2, [r0, #0] + 812762: 4891 ldr r0, =0x8041 ; via 0x8129a8 + 812764: 8008 strh r0, [r1, #0] + 812766: 498e ldr r1, =0x83c0a4 ; via 0x8129a0 + 812768: 6808 ldr r0, [r1, #0] + 81276a: 1c82 add r2, r0, #2 + 81276c: 600a str r2, [r1, #0] + 81276e: 49f3 ldr r1, =0x82e6 ; via 0x812b3c + 812770: 8001 strh r1, [r0, #0] + 812772: 2014 mov r0, #20 ; 0x14 + 812774: 4983 ldr r1, =0x83c0a1 ; via 0x812984 + 812776: 7809 ldrb r1, [r1, #0] + 812778: 4348 mul r0, r1 + 81277a: 4987 ldr r1, =0x83c048 ; via 0x812998 + 81277c: 5a09 ldrh r1, [r1, r0] + 81277e: 20a3 mov r0, #163 ; 0xa3 + 812780: 00c0 lsl r0, r0, #3 + 812782: 4308 orr r0, r1 + 812784: 4987 ldr r1, =0x83c09c ; via 0x8129a4 + 812786: 6008 str r0, [r1, #0] + 812788: 4885 ldr r0, =0x83c0a4 ; via 0x8129a0 + 81278a: 6801 ldr r1, [r0, #0] + 81278c: 1c8a add r2, r1, #2 + 81278e: 6002 str r2, [r0, #0] + 812790: 4886 ldr r0, =0x8004 ; via 0x8129ac + 812792: 4a84 ldr r2, =0x83c09c ; via 0x8129a4 + 812794: 6812 ldr r2, [r2, #0] + 812796: 0a12 lsr r2, r2, #8 + 812798: 0612 lsl r2, r2, #24 + 81279a: 0e12 lsr r2, r2, #24 + 81279c: 0152 lsl r2, r2, #5 + 81279e: 4310 orr r0, r2 + 8127a0: 8008 strh r0, [r1, #0] + 8127a2: 487f ldr r0, =0x83c0a4 ; via 0x8129a0 + 8127a4: 6801 ldr r1, [r0, #0] + 8127a6: 1c8a add r2, r1, #2 + 8127a8: 6002 str r2, [r0, #0] + 8127aa: 4881 ldr r0, =0x8003 ; via 0x8129b0 + 8127ac: 4a7d ldr r2, =0x83c09c ; via 0x8129a4 + 8127ae: 6812 ldr r2, [r2, #0] + 8127b0: 0612 lsl r2, r2, #24 + 8127b2: 0e12 lsr r2, r2, #24 + 8127b4: 0152 lsl r2, r2, #5 + 8127b6: 4310 orr r0, r2 + 8127b8: 8008 strh r0, [r1, #0] + 8127ba: 4979 ldr r1, =0x83c0a4 ; via 0x8129a0 + 8127bc: 6808 ldr r0, [r1, #0] + 8127be: 1c82 add r2, r0, #2 + 8127c0: 600a str r2, [r1, #0] + 8127c2: 49a8 ldr r1, =0x89e0 ; via 0x812a64 + 8127c4: 8001 strh r1, [r0, #0] + 8127c6: 4976 ldr r1, =0x83c0a4 ; via 0x8129a0 + 8127c8: 680a ldr r2, [r1, #0] + 8127ca: 1c90 add r0, r2, #2 + 8127cc: 6008 str r0, [r1, #0] + 8127ce: 4876 ldr r0, =0x8041 ; via 0x8129a8 + 8127d0: 8010 strh r0, [r2, #0] + 8127d2: 9904 ldr r1, [sp, #16] ; 0x10 + 8127d4: 4871 ldr r0, =0x83be2c ; via 0x81299c + 8127d6: 7800 ldrb r0, [r0, #0] + 8127d8: 4301 orr r1, r0 + 8127da: 2002 mov r0, #2 + 8127dc: 4308 orr r0, r1 + 8127de: 4971 ldr r1, =0x83c09c ; via 0x8129a4 + 8127e0: 6008 str r0, [r1, #0] + 8127e2: 486f ldr r0, =0x83c0a4 ; via 0x8129a0 + 8127e4: 6801 ldr r1, [r0, #0] + 8127e6: 1c8a add r2, r1, #2 + 8127e8: 6002 str r2, [r0, #0] + 8127ea: 4870 ldr r0, =0x8004 ; via 0x8129ac + 8127ec: 4a6d ldr r2, =0x83c09c ; via 0x8129a4 + 8127ee: 6812 ldr r2, [r2, #0] + 8127f0: 0c12 lsr r2, r2, #16 + 8127f2: 0612 lsl r2, r2, #24 + 8127f4: 0e12 lsr r2, r2, #24 + 8127f6: 0152 lsl r2, r2, #5 + 8127f8: 4310 orr r0, r2 + 8127fa: 8008 strh r0, [r1, #0] + 8127fc: 4868 ldr r0, =0x83c0a4 ; via 0x8129a0 + 8127fe: 6801 ldr r1, [r0, #0] + 812800: 1c8a add r2, r1, #2 + 812802: 6002 str r2, [r0, #0] + 812804: 486a ldr r0, =0x8003 ; via 0x8129b0 + 812806: 4a67 ldr r2, =0x83c09c ; via 0x8129a4 + 812808: 6812 ldr r2, [r2, #0] + 81280a: 0a12 lsr r2, r2, #8 + 81280c: 0612 lsl r2, r2, #24 + 81280e: 0e12 lsr r2, r2, #24 + 812810: 0152 lsl r2, r2, #5 + 812812: 4310 orr r0, r2 + 812814: 8008 strh r0, [r1, #0] + 812816: 4862 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812818: 6801 ldr r1, [r0, #0] + 81281a: 1c8a add r2, r1, #2 + 81281c: 6002 str r2, [r0, #0] + 81281e: 48cc ldr r0, =0x8002 ; via 0x812b50 + 812820: 4a60 ldr r2, =0x83c09c ; via 0x8129a4 + 812822: 6812 ldr r2, [r2, #0] + 812824: 0612 lsl r2, r2, #24 + 812826: 0e12 lsr r2, r2, #24 + 812828: 0152 lsl r2, r2, #5 + 81282a: 4310 orr r0, r2 + 81282c: 8008 strh r0, [r1, #0] + 81282e: 495c ldr r1, =0x83c0a4 ; via 0x8129a0 + 812830: 6808 ldr r0, [r1, #0] + 812832: 1c82 add r2, r0, #2 + 812834: 600a str r2, [r1, #0] + 812836: 49c7 ldr r1, =0x8ae0 ; via 0x812b54 + 812838: 8001 strh r1, [r0, #0] + 81283a: 4959 ldr r1, =0x83c0a4 ; via 0x8129a0 + 81283c: 6808 ldr r0, [r1, #0] + 81283e: 1c82 add r2, r0, #2 + 812840: 600a str r2, [r1, #0] + 812842: 4959 ldr r1, =0x8041 ; via 0x8129a8 + 812844: 8001 strh r1, [r0, #0] + 812846: 4956 ldr r1, =0x83c0a4 ; via 0x8129a0 + 812848: 6808 ldr r0, [r1, #0] + 81284a: 1c82 add r2, r0, #2 + 81284c: 600a str r2, [r1, #0] + 81284e: 2165 mov r1, #101 ; 0x65 + 812850: 01c9 lsl r1, r1, #7 + 812852: 8001 strh r1, [r0, #0] + 812854: 4952 ldr r1, =0x83c0a4 ; via 0x8129a0 + 812856: 6808 ldr r0, [r1, #0] + 812858: 1c82 add r2, r0, #2 + 81285a: 600a str r2, [r1, #0] + 81285c: 49b8 ldr r1, =0x9804 ; via 0x812b40 + 81285e: 8001 strh r1, [r0, #0] + 812860: 494f ldr r1, =0x83c0a4 ; via 0x8129a0 + 812862: 6808 ldr r0, [r1, #0] + 812864: 1c82 add r2, r0, #2 + 812866: 600a str r2, [r1, #0] + 812868: 49b3 ldr r1, =0x80c0 ; via 0x812b38 + 81286a: 8001 strh r1, [r0, #0] + 81286c: 494c ldr r1, =0x83c0a4 ; via 0x8129a0 + 81286e: 6808 ldr r0, [r1, #0] + 812870: 1c82 add r2, r0, #2 + 812872: 600a str r2, [r1, #0] + 812874: 494c ldr r1, =0x8041 ; via 0x8129a8 + 812876: 8001 strh r1, [r0, #0] + 812878: 4949 ldr r1, =0x83c0a4 ; via 0x8129a0 + 81287a: 6808 ldr r0, [r1, #0] + 81287c: 1c82 add r2, r0, #2 + 81287e: 600a str r2, [r1, #0] + 812880: 49b0 ldr r1, =0x328b ; via 0x812b44 + 812882: 8001 strh r1, [r0, #0] + 812884: 2005 mov r0, #5 + 812886: 9905 ldr r1, [sp, #20] ; 0x14 + 812888: 4308 orr r0, r1 + 81288a: 4946 ldr r1, =0x83c09c ; via 0x8129a4 + 81288c: 6008 str r0, [r1, #0] + 81288e: 4844 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812890: 6801 ldr r1, [r0, #0] + 812892: 1c8a add r2, r1, #2 + 812894: 6002 str r2, [r0, #0] + 812896: 4845 ldr r0, =0x8004 ; via 0x8129ac + 812898: 4a42 ldr r2, =0x83c09c ; via 0x8129a4 + 81289a: 6812 ldr r2, [r2, #0] + 81289c: 0a12 lsr r2, r2, #8 + 81289e: 0612 lsl r2, r2, #24 + 8128a0: 0e12 lsr r2, r2, #24 + 8128a2: 0152 lsl r2, r2, #5 + 8128a4: 4310 orr r0, r2 + 8128a6: 8008 strh r0, [r1, #0] + 8128a8: 483d ldr r0, =0x83c0a4 ; via 0x8129a0 + 8128aa: 6801 ldr r1, [r0, #0] + 8128ac: 1c8a add r2, r1, #2 + 8128ae: 6002 str r2, [r0, #0] + 8128b0: 483f ldr r0, =0x8003 ; via 0x8129b0 + 8128b2: 4a3c ldr r2, =0x83c09c ; via 0x8129a4 + 8128b4: 6812 ldr r2, [r2, #0] + 8128b6: 0612 lsl r2, r2, #24 + 8128b8: 0e12 lsr r2, r2, #24 + 8128ba: 0152 lsl r2, r2, #5 + 8128bc: 4310 orr r0, r2 + 8128be: 8008 strh r0, [r1, #0] + 8128c0: 4937 ldr r1, =0x83c0a4 ; via 0x8129a0 + 8128c2: 6808 ldr r0, [r1, #0] + 8128c4: 1c82 add r2, r0, #2 + 8128c6: 600a str r2, [r1, #0] + 8128c8: 4966 ldr r1, =0x89e0 ; via 0x812a64 + 8128ca: 8001 strh r1, [r0, #0] + 8128cc: 4934 ldr r1, =0x83c0a4 ; via 0x8129a0 + 8128ce: 6808 ldr r0, [r1, #0] + 8128d0: 1c82 add r2, r0, #2 + 8128d2: 600a str r2, [r1, #0] + 8128d4: 4934 ldr r1, =0x8041 ; via 0x8129a8 + 8128d6: 8001 strh r1, [r0, #0] + 8128d8: 4931 ldr r1, =0x83c0a4 ; via 0x8129a0 + 8128da: 6808 ldr r0, [r1, #0] + 8128dc: 1c82 add r2, r0, #2 + 8128de: 600a str r2, [r1, #0] + 8128e0: 4999 ldr r1, =0x32f7 ; via 0x812b48 + 8128e2: 8001 strh r1, [r0, #0] + 8128e4: 492f ldr r1, =0x83c09c ; via 0x8129a4 + 8128e6: 4899 ldr r0, =0x140973 ; via 0x812b4c + 8128e8: 6008 str r0, [r1, #0] + 8128ea: 482d ldr r0, =0x83c0a4 ; via 0x8129a0 + 8128ec: 6801 ldr r1, [r0, #0] + 8128ee: 1c8a add r2, r1, #2 + 8128f0: 6002 str r2, [r0, #0] + 8128f2: 482e ldr r0, =0x8004 ; via 0x8129ac + 8128f4: 4a2b ldr r2, =0x83c09c ; via 0x8129a4 + 8128f6: 6812 ldr r2, [r2, #0] + 8128f8: 0c12 lsr r2, r2, #16 + 8128fa: 0612 lsl r2, r2, #24 + 8128fc: 0e12 lsr r2, r2, #24 + 8128fe: 0152 lsl r2, r2, #5 + 812900: 4310 orr r0, r2 + 812902: 8008 strh r0, [r1, #0] + 812904: 4826 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812906: 6802 ldr r2, [r0, #0] + 812908: 1c91 add r1, r2, #2 + 81290a: 6001 str r1, [r0, #0] + 81290c: 4828 ldr r0, =0x8003 ; via 0x8129b0 + 81290e: 4925 ldr r1, =0x83c09c ; via 0x8129a4 + 812910: 6809 ldr r1, [r1, #0] + 812912: 0a09 lsr r1, r1, #8 + 812914: 0609 lsl r1, r1, #24 + 812916: 0e09 lsr r1, r1, #24 + 812918: 0149 lsl r1, r1, #5 + 81291a: 4308 orr r0, r1 + 81291c: 8010 strh r0, [r2, #0] + 81291e: 4820 ldr r0, =0x83c0a4 ; via 0x8129a0 + 812920: 6801 ldr r1, [r0, #0] + 812922: 1c8a add r2, r1, #2 + 812924: 6002 str r2, [r0, #0] + 812926: 488a ldr r0, =0x8002 ; via 0x812b50 + 812928: 4a1e ldr r2, =0x83c09c ; via 0x8129a4 + 81292a: 6812 ldr r2, [r2, #0] + 81292c: 0612 lsl r2, r2, #24 + 81292e: 0e12 lsr r2, r2, #24 + 812930: 0152 lsl r2, r2, #5 + 812932: 4310 orr r0, r2 + 812934: 8008 strh r0, [r1, #0] + 812936: 4a1a ldr r2, =0x83c0a4 ; via 0x8129a0 + 812938: 6810 ldr r0, [r2, #0] + 81293a: 1c81 add r1, r0, #2 + 81293c: 6011 str r1, [r2, #0] + 81293e: 4985 ldr r1, =0x8ae0 ; via 0x812b54 + 812940: 8001 strh r1, [r0, #0] + 812942: 4917 ldr r1, =0x83c0a4 ; via 0x8129a0 + 812944: 6808 ldr r0, [r1, #0] + 812946: 1c82 add r2, r0, #2 + 812948: 600a str r2, [r1, #0] + 81294a: 4917 ldr r1, =0x8041 ; via 0x8129a8 + 81294c: 8001 strh r1, [r0, #0] + 81294e: 4a14 ldr r2, =0x83c0a4 ; via 0x8129a0 + 812950: 6810 ldr r0, [r2, #0] + 812952: 1c81 add r1, r0, #2 + 812954: 6011 str r1, [r2, #0] + 812956: 49e4 ldr r1, =0x3305 ; via 0x812ce8 + 812958: 8001 strh r1, [r0, #0] + 81295a: 4811 ldr r0, =0x83c0a4 ; via 0x8129a0 + 81295c: 6801 ldr r1, [r0, #0] + 81295e: 1c8a add r2, r1, #2 + 812960: 6002 str r2, [r0, #0] + 812962: 4874 ldr r0, =0x9004 ; via 0x812b34 + 812964: 8008 strh r0, [r1, #0] + 812966: 480e ldr r0, =0x83c0a4 ; via 0x8129a0 + 812968: 6801 ldr r1, [r0, #0] + 81296a: 1c8a add r2, r1, #2 + 81296c: 6002 str r2, [r0, #0] + 81296e: 4872 ldr r0, =0x80c0 ; via 0x812b38 + 812970: 8008 strh r0, [r1, #0] + 812972: 4a0b ldr r2, =0x83c0a4 ; via 0x8129a0 + 812974: 6810 ldr r0, [r2, #0] + 812976: 1c81 add r1, r0, #2 + 812978: 6011 str r1, [r2, #0] + 81297a: 490b ldr r1, =0x8041 ; via 0x8129a8 + 81297c: 8001 strh r1, [r0, #0] + 81297e: 9800 ldr r0, [sp, #0] + 812980: b008 add sp, #32 ; 0x20 + 812982: bd00 pop {pc} + +$arfcn_to_rf_index: + 812a68: b081 sub sp, #4 + 812a6a: 4669 mov r1, sp + 812a6c: 8008 strh r0, [r1, #0] + 812a6e: 49d9 ldr r1, =0x8053f8 ; via 0x812dd4 + 812a70: 48db ldr r0, =0x83cdb4 ; via 0x812de0 + 812a72: 7800 ldrb r0, [r0, #0] + 812a74: 00c0 lsl r0, r0, #3 + 812a76: 5c09 ldrb r1, [r1, r0] + 812a78: 4668 mov r0, sp + 812a7a: 70c1 strb r1, [r0, #3] + 812a7c: 48d6 ldr r0, =0x8053f9 ; via 0x812dd8 + 812a7e: 49d8 ldr r1, =0x83cdb4 ; via 0x812de0 + 812a80: 7809 ldrb r1, [r1, #0] + 812a82: 00c9 lsl r1, r1, #3 + 812a84: 5c40 ldrb r0, [r0, r1] + 812a86: 2800 cmp r0, #0 + 812a88: d011 beq 0x812aae + 812a8a: 4668 mov r0, sp + 812a8c: 8801 ldrh r1, [r0, #0] + 812a8e: 2001 mov r0, #1 + 812a90: 0240 lsl r0, r0, #9 + 812a92: 4281 cmp r1, r0 + 812a94: db0b blt 0x812aae + 812a96: 4668 mov r0, sp + 812a98: 8800 ldrh r0, [r0, #0] + 812a9a: 49d0 ldr r1, =0x375 ; via 0x812ddc + 812a9c: 4288 cmp r0, r1 + 812a9e: dc06 bgt 0x812aae + 812aa0: 49cd ldr r1, =0x8053f9 ; via 0x812dd8 + 812aa2: 48cf ldr r0, =0x83cdb4 ; via 0x812de0 + 812aa4: 7800 ldrb r0, [r0, #0] + 812aa6: 00c0 lsl r0, r0, #3 + 812aa8: 5c09 ldrb r1, [r1, r0] + 812aaa: 4668 mov r0, sp + 812aac: 70c1 strb r1, [r0, #3] + 812aae: 4668 mov r0, sp + 812ab0: 78c0 ldrb r0, [r0, #3] + 812ab2: 3801 sub r0, #1 + 812ab4: 0600 lsl r0, r0, #24 + 812ab6: 0e00 lsr r0, r0, #24 + 812ab8: b001 add sp, #4 + 812aba: 4770 bx lr + +IRAM data: + +0x839ea8 rf structure +0x83a09c adc_cal structure +0x83c09c rf_data 32-bit var? +0x83c0a0 rf_band 8-bit var +0x83c0a1 rf_index 8-bit var +0x83c0a4 TP_Ptr +0x83cdb4 l1_config structure