; ; CCTextInputNode::displayToRawIndex from 0x3e1fc8 to 0x3e2070 (168 bytes) ; ; 3 xrefs: ; > CCTextInputNode::updateCursorPosition @ 0x3e2308 ; > CCTextInputNode::updateCursorPosition @ 0x3e23ec ; > CCTextInputNode::updateCursorPosition @ 0x3e2414 ; ; 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 {R4-R11,LR} ; +0x0, 0x3e1fc8 MOV R6, R0 ; +0x4, 0x3e1fcc LDR.W R9, =(__stack_chk_guard_ptr - 0x3E1FDE) ; +0x6, 0x3e1fce SUB SP, SP, #0x14 ; +0xa, 0x3e1fd2 LDR.W R0, [R0,#0x1A0] ; +0xc, 0x3e1fd4 MOV R8, R1 ; +0x10, 0x3e1fd8 ADD R9, PC; __stack_chk_guard_ptr ; +0x12, 0x3e1fda LDR.W R9, [R9]; __stack_chk_guard ; +0x14, 0x3e1fdc MOVS R4, #0 ; +0x18, 0x3e1fe0 MOV R5, SP ; +0x1a, 0x3e1fe2 MOV.W R10, #0xC ; +0x1c, 0x3e1fe4 LDR.W R3, [R9] ; +0x20, 0x3e1fe8 STR R3, [SP,#0x14+var_8] ; +0x24, 0x3e1fec LDR R3, [R0] ; +0x26, 0x3e1fee LDR.W R3, [R3,#0x270] ; +0x28, 0x3e1ff0 BLX R3 ; +0x2c, 0x3e1ff4 STR R4, [SP,#0x14+var_14] ; +0x2e, 0x3e1ff6 STR R4, [SP,#0x14+var_10] ; +0x30, 0x3e1ff8 STR R4, [SP,#0x14+var_C] ; +0x32, 0x3e1ffa MOV R7, R0 ; +0x34, 0x3e1ffc BLX strlen ; +0x36, 0x3e1ffe MOV R1, R7 ; +0x3a, 0x3e2002 MOV R7, R8 ; +0x3c, 0x3e2004 MOV R2, R0 ; +0x3e, 0x3e2006 MOV R0, SP ; +0x40, 0x3e2008 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x42, 0x3e200a LDR.W R2, [R6,#0x178] ; +0x46, 0x3e200e LDR.W R3, [R6,#0x17C] ; +0x4a, 0x3e2012 LDR R1, =0xAAAAAAAB ; +0x4e, 0x3e2016 SUBS R3, R3, R2 ; +0x50, 0x3e2018 ASRS R3, R3, #2 ; +0x52, 0x3e201a MULS R3, R1 ; +0x54, 0x3e201c CMP R4, R3 ; +0x56, 0x3e201e BCS loc_3E203E ; +0x58, 0x3e2020 MUL R3, R10, R4 ; +0x5a, 0x3e2022 MOV R0, R5 ; +0x5e, 0x3e2026 ADD.W R11, R2, R3 ; +0x60, 0x3e2028 LDR R1, [R2,R3] ; +0x64, 0x3e202c BL sub_3DC19C ; +0x66, 0x3e202e MOV R1, R0; int ; +0x6a, 0x3e2032 MOV R0, R6; this ; +0x6c, 0x3e2034 BL _ZN15CCTextInputNode17rawToDisplayIndexEi; CCTextInputNode::rawToDisplayIndex(int) ; +0x6e, 0x3e2036 CMP R0, R8 ; +0x72, 0x3e203a BLT loc_3E2054 ; +0x74, 0x3e203c MOV R0, R5 ; +0x76, 0x3e203e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x3e2040 LDR R2, [SP,#0x14+var_8] ; +0x7c, 0x3e2044 LDR.W R3, [R9] ; +0x7e, 0x3e2046 MOV R0, R7 ; +0x82, 0x3e204a CMP R2, R3 ; +0x84, 0x3e204c BEQ loc_3E206A ; +0x86, 0x3e204e BLX __stack_chk_fail ; +0x88, 0x3e2050 LDR.W R3, [R11,#4] ; +0x8c, 0x3e2054 ADDS R4, #1 ; +0x90, 0x3e2058 SUBS R3, #1 ; +0x92, 0x3e205a ADD R7, R3 ; +0x94, 0x3e205c B loc_3E200E ; +0x96, 0x3e205e MOV R0, R5 ; +0x98, 0x3e2060 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9a, 0x3e2062 BL __cxa_end_cleanup ; +0x9e, 0x3e2066 ADD SP, SP, #0x14 ; +0xa2, 0x3e206a POP.W {R4-R11,PC} ; +0xa4, 0x3e206c