; ; CCTextInputNode::rawToDisplayIndex from 0x3e1b24 to 0x3e1bb4 (144 bytes) ; ; 2 xrefs: ; > CCTextInputNode::updateBlinkLabelToChar @ 0x3e1c82 ; > CCTextInputNode::displayToRawIndex @ 0x3e2036 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:47:02 +0000 ; PUSH.W {R0-R10,LR} ; +0x0, 0x3e1b24 MOV R7, R0 ; +0x4, 0x3e1b28 LDR R6, =(__stack_chk_guard_ptr - 0x3E1B38) ; +0x6, 0x3e1b2a MOV R9, R1 ; +0x8, 0x3e1b2c LDR.W R0, [R0,#0x1A0] ; +0xa, 0x3e1b2e MOVS R4, #0 ; +0xe, 0x3e1b32 ADD R6, PC; __stack_chk_guard_ptr ; +0x10, 0x3e1b34 LDR R6, [R6]; __stack_chk_guard ; +0x12, 0x3e1b36 MOV R8, SP ; +0x14, 0x3e1b38 LDR R3, [R6] ; +0x16, 0x3e1b3a STR R3, [SP,#0x10+var_4] ; +0x18, 0x3e1b3c LDR R3, [R0] ; +0x1a, 0x3e1b3e LDR.W R3, [R3,#0x270] ; +0x1c, 0x3e1b40 BLX R3 ; +0x20, 0x3e1b44 STR R4, [SP,#0x10+var_10] ; +0x22, 0x3e1b46 STR R4, [SP,#0x10+var_C] ; +0x24, 0x3e1b48 STR R4, [SP,#0x10+var_8] ; +0x26, 0x3e1b4a MOV R5, R0 ; +0x28, 0x3e1b4c BLX strlen ; +0x2a, 0x3e1b4e MOV R1, R5 ; +0x2e, 0x3e1b52 MOV R2, R0 ; +0x30, 0x3e1b54 MOV R0, SP ; +0x32, 0x3e1b56 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x34, 0x3e1b58 LDR.W R5, [R7,#0x178] ; +0x38, 0x3e1b5c LDR.W R3, [R7,#0x17C] ; +0x3c, 0x3e1b60 MOV R7, R9 ; +0x40, 0x3e1b64 LDR R1, =0xAAAAAAAB ; +0x42, 0x3e1b66 SUBS R3, R3, R5 ; +0x44, 0x3e1b68 ASRS R3, R3, #2 ; +0x46, 0x3e1b6a MUL R10, R1, R3 ; +0x48, 0x3e1b6c CMP R4, R10 ; +0x4c, 0x3e1b70 BEQ loc_3E1B9A ; +0x4e, 0x3e1b72 LDR R1, [R5] ; +0x50, 0x3e1b74 MOV R0, R8 ; +0x52, 0x3e1b76 BL sub_3DC19C ; +0x54, 0x3e1b78 LDR R2, [R5,#4] ; +0x58, 0x3e1b7c ADDS R5, #0xC ; +0x5a, 0x3e1b7e ADDS R3, R0, R2 ; +0x5c, 0x3e1b80 CMP R3, R9 ; +0x5e, 0x3e1b82 BGT loc_3E1B90 ; +0x60, 0x3e1b84 RSB.W R2, R2, #1 ; +0x62, 0x3e1b86 ADDS R4, #1 ; +0x66, 0x3e1b8a ADD R7, R2 ; +0x68, 0x3e1b8c B loc_3E1B70 ; +0x6a, 0x3e1b8e CMP R9, R0 ; +0x6c, 0x3e1b90 BLE loc_3E1B9A ; +0x6e, 0x3e1b92 RSB.W R0, R9, R0 ; +0x70, 0x3e1b94 ADD R7, R0 ; +0x74, 0x3e1b98 MOV R0, R8 ; +0x76, 0x3e1b9a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x3e1b9c LDR R2, [SP,#0x10+var_4] ; +0x7c, 0x3e1ba0 LDR R3, [R6] ; +0x7e, 0x3e1ba2 MOV R0, R7 ; +0x80, 0x3e1ba4 CMP R2, R3 ; +0x82, 0x3e1ba6 BEQ loc_3E1BAE ; +0x84, 0x3e1ba8 BLX __stack_chk_fail ; +0x86, 0x3e1baa ADD SP, SP, #0x10 ; +0x8a, 0x3e1bae POP.W {R4-R10,PC} ; +0x8c, 0x3e1bb0