; ; CCTextInputNode::moveCursorVertical from 0x3e2454 to 0x3e25da (390 bytes) ; ; 1 xrefs: ; > CCTextInputNode::onTextFieldInsertText @ 0x3e41c0 ; ; 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-R10,LR} ; +0x0, 0x3e2454 MOV R6, R0 ; +0x4, 0x3e2458 VPUSH {D8-D9} ; +0x6, 0x3e245a MOV R9, R1 ; +0xa, 0x3e245e LDR R3, =(__stack_chk_guard_ptr - 0x3E2466) ; +0xc, 0x3e2460 ADD R3, PC; __stack_chk_guard_ptr ; +0xe, 0x3e2462 LDR R3, [R3]; __stack_chk_guard ; +0x10, 0x3e2464 SUB SP, SP, #0x28 ; +0x12, 0x3e2466 LDR R2, [R3] ; +0x14, 0x3e2468 MOV R8, R3 ; +0x16, 0x3e246a STR R2, [SP,#0x28+var_4] ; +0x18, 0x3e246c LDR.W R2, [R0,#0x1B4] ; +0x1a, 0x3e246e CMP R2, #0 ; +0x1e, 0x3e2472 BEQ.W loc_3E25C2 ; +0x20, 0x3e2474 LDR.W R3, [R0,#0x19C] ; +0x24, 0x3e2478 CMP R3, #0 ; +0x28, 0x3e247c BEQ.W loc_3E25C2 ; +0x2a, 0x3e247e LDR.W R3, [R2,#0x208] ; +0x2e, 0x3e2482 LDR.W R7, [R3,#0x218] ; +0x32, 0x3e2486 CMP R7, #0 ; +0x36, 0x3e248a BEQ.W loc_3E25C2 ; +0x38, 0x3e248c MOV R0, R7; this ; +0x3c, 0x3e2490 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3e, 0x3e2492 CMP R0, #1 ; +0x42, 0x3e2496 BLS.W loc_3E25C2 ; +0x44, 0x3e2498 MOV R0, R7; this ; +0x48, 0x3e249c MOVS R1, #0; unsigned int ; +0x4a, 0x3e249e BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x3e24a0 VMOV.F32 S17, #1.0 ; +0x50, 0x3e24a4 MOV R5, R0 ; +0x54, 0x3e24a8 MOV R4, R0 ; +0x56, 0x3e24aa CBZ R4, loc_3E24CC ; +0x58, 0x3e24ac LDR R3, [R4] ; +0x5a, 0x3e24ae MOV R0, R4 ; +0x5c, 0x3e24b0 LDR R3, [R3,#0x4C] ; +0x5e, 0x3e24b2 BLX R3 ; +0x60, 0x3e24b4 LDR R3, [R4] ; +0x62, 0x3e24b6 LDR.W R3, [R3,#0x100] ; +0x64, 0x3e24b8 VMOV S15, R0 ; +0x68, 0x3e24bc MOV R0, R4 ; +0x6c, 0x3e24c0 VMUL.F32 S17, S17, S15 ; +0x6e, 0x3e24c2 BLX R3 ; +0x72, 0x3e24c6 MOV R4, R0 ; +0x74, 0x3e24c8 B loc_3E24AC ; +0x76, 0x3e24ca LDR.W R0, [R6,#0x19C] ; +0x78, 0x3e24cc VMOV.F32 S16, #0.5 ; +0x7c, 0x3e24d0 LDR R3, [R0] ; +0x80, 0x3e24d4 LDR.W R3, [R3,#0x100] ; +0x82, 0x3e24d6 BLX R3 ; +0x86, 0x3e24da MOV R10, R0 ; +0x88, 0x3e24dc LDR.W R0, [R6,#0x19C] ; +0x8a, 0x3e24de LDR R3, [R0] ; +0x8e, 0x3e24e2 LDR R3, [R3,#0x60] ; +0x90, 0x3e24e4 BLX R3 ; +0x92, 0x3e24e6 MOV R1, R10; cocos2d::CCPoint * ; +0x94, 0x3e24e8 MOV R2, R0 ; +0x96, 0x3e24ea ADD R0, SP, #0x28+var_24; this ; +0x98, 0x3e24ec BL _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x9a, 0x3e24ee LDR.W R0, [R6,#0x19C] ; +0x9e, 0x3e24f2 VLDR S18, [SP,#0x28+var_20] ; +0xa2, 0x3e24f6 LDR R3, [R0] ; +0xa6, 0x3e24fa LDR.W R3, [R3,#0x98] ; +0xa8, 0x3e24fc BLX R3 ; +0xac, 0x3e2500 LDR R3, [R5] ; +0xae, 0x3e2502 LDR.W R3, [R3,#0xA4] ; +0xb0, 0x3e2504 VLDR S15, [R0,#4] ; +0xb4, 0x3e2508 MOV R0, R5 ; +0xb8, 0x3e250c MOV R5, R4 ; +0xba, 0x3e250e VSUB.F32 S16, S16, S15 ; +0xbc, 0x3e2510 BLX R3 ; +0xc0, 0x3e2514 VLDR S15, [R0,#4] ; +0xc2, 0x3e2516 VMUL.F32 S16, S16, S15 ; +0xc6, 0x3e251a VMLA.F32 S18, S16, S17 ; +0xca, 0x3e251e VMOV.F32 S16, #-1.0 ; +0xce, 0x3e2522 MOV R0, R7; this ; +0xd2, 0x3e2526 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xd4, 0x3e2528 CMP R4, R0 ; +0xd8, 0x3e252c BGE loc_3E2568 ; +0xda, 0x3e252e MOV R1, R4; unsigned int ; +0xdc, 0x3e2530 MOV R0, R7; this ; +0xde, 0x3e2532 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe0, 0x3e2534 BL sub_3DC2FC ; +0xe4, 0x3e2538 VCMPE.F32 S16, #0.0 ; +0xe8, 0x3e253c VMRS APSR_nzcv, FPSCR ; +0xec, 0x3e2540 VSUB.F32 S0, S0, S18 ; +0xf0, 0x3e2544 VABS.F32 S0, S0 ; +0xf4, 0x3e2548 BMI loc_3E255E ; +0xf8, 0x3e254c VCMPE.F32 S0, S16 ; +0xfa, 0x3e254e VMRS APSR_nzcv, FPSCR ; +0xfe, 0x3e2552 BMI loc_3E255E ; +0x102, 0x3e2556 VMOV.F32 S0, S16 ; +0x104, 0x3e2558 B loc_3E2560 ; +0x108, 0x3e255c MOV R5, R4 ; +0x10a, 0x3e255e ADDS R4, #1 ; +0x10c, 0x3e2560 VMOV.F32 S16, S0 ; +0x10e, 0x3e2562 B loc_3E2526 ; +0x112, 0x3e2566 ADDS.W R5, R5, R9 ; +0x114, 0x3e2568 BMI loc_3E25C2 ; +0x118, 0x3e256c MOV R0, R7; this ; +0x11a, 0x3e256e BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x11c, 0x3e2570 CMP R5, R0 ; +0x120, 0x3e2574 BGE loc_3E25C2 ; +0x122, 0x3e2576 VLDR S16, [R6,#0x1C8] ; +0x124, 0x3e2578 VCMPE.F32 S16, #0.0 ; +0x128, 0x3e257c VMRS APSR_nzcv, FPSCR ; +0x12c, 0x3e2580 BPL loc_3E258A ; +0x130, 0x3e2584 VLDR S16, [SP,#0x28+var_24] ; +0x132, 0x3e2586 MOV R1, R5; unsigned int ; +0x136, 0x3e258a MOV R0, R7; this ; +0x138, 0x3e258c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x13a, 0x3e258e ADD R5, SP, #0x28+var_1C ; +0x13e, 0x3e2592 BL sub_3DC2FC ; +0x140, 0x3e2594 VMOV R1, S16; float ; +0x144, 0x3e2598 MOV R0, R5; this ; +0x148, 0x3e259c ADD R4, SP, #0x28+var_14 ; +0x14a, 0x3e259e VMOV R2, S0; float ; +0x14c, 0x3e25a0 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x150, 0x3e25a4 LDR R1, =(unk_D2B358 - 0x3E25B0) ; +0x154, 0x3e25a8 MOV R0, R4; this ; +0x156, 0x3e25aa ADD R1, PC; unk_D2B358 ; +0x158, 0x3e25ac ADDS R1, #(unk_D2B360 - 0xD2B358); cocos2d::CCRect * ; +0x15a, 0x3e25ae BL _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x15c, 0x3e25b0 MOV R0, R6 ; +0x160, 0x3e25b4 MOV R1, R5 ; +0x162, 0x3e25b6 MOV R2, R4 ; +0x164, 0x3e25b8 BL _ZN15CCTextInputNode20updateCursorPositionEN7cocos2d7CCPointENS0_6CCRectE; CCTextInputNode::updateCursorPosition(cocos2d::CCPoint,cocos2d::CCRect) ; +0x166, 0x3e25ba VSTR S16, [R6,#0x1C8] ; +0x16a, 0x3e25be LDR R2, [SP,#0x28+var_4] ; +0x16e, 0x3e25c2 LDR.W R3, [R8] ; +0x170, 0x3e25c4 CMP R2, R3 ; +0x174, 0x3e25c8 BEQ loc_3E25D0 ; +0x176, 0x3e25ca BLX __stack_chk_fail ; +0x178, 0x3e25cc ADD SP, SP, #0x28 ; '(' ; +0x17c, 0x3e25d0 VPOP {D8-D9} ; +0x17e, 0x3e25d2 POP.W {R4-R10,PC} ; +0x182, 0x3e25d6