; ; CCTextInputNode::insertAtCursor from 0x3e3f5c to 0x3e412e (466 bytes) ; ; 3 xrefs: ; > CCTextInputNode::pasteText @ 0x3e414e ; > CCTextInputNode::onTextFieldInsertText @ 0x3e44c6 ; > EmotePickerPopup::onPickEmote @ 0x7795da ; ; 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:03 +0000 ; PUSH.W {R4-R9,LR} ; +0x0, 0x3e3f5c SUB SP, SP, #0x34 ; +0x4, 0x3e3f60 LDR.W R8, =(__stack_chk_guard_ptr - 0x3E3F6E) ; +0x6, 0x3e3f62 MOV R6, R0 ; +0xa, 0x3e3f66 MOV R4, R1 ; +0xc, 0x3e3f68 ADD R8, PC; __stack_chk_guard_ptr ; +0xe, 0x3e3f6a LDR.W R8, [R8]; __stack_chk_guard ; +0x10, 0x3e3f6c LDR.W R3, [R8] ; +0x14, 0x3e3f70 STR R3, [SP,#0x34+var_8] ; +0x18, 0x3e3f74 LDR.W R3, [R0,#0x174] ; +0x1a, 0x3e3f76 CMP R3, #0 ; +0x1e, 0x3e3f7a BLE loc_3E3FBA ; +0x20, 0x3e3f7c ADD R5, SP, #0x34+var_14 ; +0x22, 0x3e3f7e MOV R0, R5 ; +0x24, 0x3e3f80 BL _ZN11EmoteSprite21translateUnicodeEmojiERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; EmoteSprite::translateUnicodeEmoji(std::string const&) ; +0x26, 0x3e3f82 LDRB R3, [R4] ; +0x2a, 0x3e3f86 MOV R0, R4 ; +0x2c, 0x3e3f88 MOVS R1, #0 ; +0x2e, 0x3e3f8a ANDS.W R3, R3, #1 ; +0x30, 0x3e3f8c ITTEE EQ ; +0x34, 0x3e3f90 STRBEQ R3, [R4,#1] ; +0x36, 0x3e3f92 STRBEQ R3, [R4] ; +0x38, 0x3e3f94 LDRNE R2, [R4,#8] ; +0x3a, 0x3e3f96 MOVNE R3, #0 ; +0x3c, 0x3e3f98 ITT NE ; +0x3e, 0x3e3f9a STRBNE R3, [R2] ; +0x40, 0x3e3f9c STRNE R3, [R4,#4] ; +0x42, 0x3e3f9e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0x44, 0x3e3fa0 LDM.W R5, {R0-R2} ; +0x48, 0x3e3fa4 MOVS R3, #0 ; +0x4c, 0x3e3fa8 STR R3, [SP,#0x34+var_14] ; +0x4e, 0x3e3faa STR R3, [SP,#0x34+var_10] ; +0x50, 0x3e3fac STR R3, [SP,#0x34+var_C] ; +0x52, 0x3e3fae STM.W R4, {R0-R2} ; +0x54, 0x3e3fb0 MOV R0, R5 ; +0x58, 0x3e3fb4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5a, 0x3e3fb6 LDRB.W R3, [R6,#0x1B8] ; +0x5e, 0x3e3fba ADD.W R9, SP, #0x34+var_2C ; +0x62, 0x3e3fbe LDRB.W R2, [R6,#0x1B9] ; +0x66, 0x3e3fc2 MOV R1, R4 ; +0x6a, 0x3e3fc6 MOV R0, R9 ; +0x6c, 0x3e3fc8 STR R3, [SP,#0x34+var_34] ; +0x6e, 0x3e3fca ADD.W R3, R6, #0x164 ; +0x70, 0x3e3fcc BL sub_3E3C78 ; +0x74, 0x3e3fd0 LDRB.W R3, [SP,#0x34+var_2C] ; +0x78, 0x3e3fd4 LSLS R0, R3, #0x1F ; +0x7c, 0x3e3fd8 ITE PL ; +0x7e, 0x3e3fda ASRPL R3, R3, #1 ; +0x80, 0x3e3fdc LDRMI R3, [SP,#0x34+var_28] ; +0x82, 0x3e3fde CMP R3, #0 ; +0x84, 0x3e3fe0 BEQ loc_3E40DE ; +0x86, 0x3e3fe2 LDR.W R0, [R6,#0x1A0] ; +0x88, 0x3e3fe4 LDR R3, [R0] ; +0x8c, 0x3e3fe8 LDR.W R3, [R3,#0x270] ; +0x8e, 0x3e3fea BLX R3 ; +0x92, 0x3e3fee MOVS R3, #0 ; +0x94, 0x3e3ff0 MOV R4, R0 ; +0x96, 0x3e3ff2 STR R3, [SP,#0x34+var_20] ; +0x98, 0x3e3ff4 ADD R7, SP, #0x34+var_20 ; +0x9a, 0x3e3ff6 STR R3, [SP,#0x34+var_1C] ; +0x9c, 0x3e3ff8 STR R3, [SP,#0x34+var_18] ; +0x9e, 0x3e3ffa BLX strlen ; +0xa0, 0x3e3ffc MOV R1, R4 ; +0xa4, 0x3e4000 MOV R2, R0 ; +0xa6, 0x3e4002 MOV R0, R7 ; +0xa8, 0x3e4004 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xaa, 0x3e4006 LDR.W R3, [R6,#0x1A0] ; +0xae, 0x3e400a LDRB.W R5, [SP,#0x34+var_20] ; +0xb2, 0x3e400e LDR.W R1, [R3,#0x260] ; +0xb6, 0x3e4012 CMP R1, #0 ; +0xba, 0x3e4016 BGE loc_3E4024 ; +0xbc, 0x3e4018 LSLS R1, R5, #0x1F ; +0xbe, 0x3e401a ITE PL ; +0xc0, 0x3e401c ASRPL R4, R5, #1 ; +0xc2, 0x3e401e LDRMI R4, [SP,#0x34+var_1C] ; +0xc4, 0x3e4020 B loc_3E402C ; +0xc6, 0x3e4022 MOV R0, R7 ; +0xc8, 0x3e4024 BL sub_3DC656 ; +0xca, 0x3e4026 MOV R4, R0 ; +0xce, 0x3e402a ANDS.W R2, R5, #1 ; +0xd0, 0x3e402c ITE EQ ; +0xd4, 0x3e4030 ASREQ R3, R5, #1 ; +0xd6, 0x3e4032 LDRNE R3, [SP,#0x34+var_1C] ; +0xd8, 0x3e4034 CMP R4, R3 ; +0xda, 0x3e4036 BLE loc_3E4046 ; +0xdc, 0x3e4038 CBZ R2, loc_3E4040 ; +0xde, 0x3e403a LDR R3, [SP,#0x34+var_1C] ; +0xe0, 0x3e403c B loc_3E4042 ; +0xe2, 0x3e403e ASRS R3, R5, #1 ; +0xe4, 0x3e4040 CMP R3, #0 ; +0xe6, 0x3e4042 B loc_3E4048 ; +0xe8, 0x3e4044 CMP R4, #0 ; +0xea, 0x3e4046 ITE LE ; +0xec, 0x3e4048 MOVLE R3, #0 ; +0xee, 0x3e404a MOVGT R3, #1 ; +0xf0, 0x3e404c CBZ R3, loc_3E4066 ; +0xf2, 0x3e404e CBZ R2, loc_3E4056 ; +0xf4, 0x3e4050 LDR R3, [SP,#0x34+var_1C] ; +0xf6, 0x3e4052 B loc_3E4058 ; +0xf8, 0x3e4054 ASRS R3, R5, #1 ; +0xfa, 0x3e4056 CMP R4, R3 ; +0xfc, 0x3e4058 BLE loc_3E4068 ; +0xfe, 0x3e405a CBZ R2, loc_3E4062 ; +0x100, 0x3e405c LDR R4, [SP,#0x34+var_1C] ; +0x102, 0x3e405e B loc_3E4068 ; +0x104, 0x3e4060 ASRS R4, R5, #1 ; +0x106, 0x3e4062 B loc_3E4068 ; +0x108, 0x3e4064 MOV R4, R3 ; +0x10a, 0x3e4066 LDRB.W R3, [SP,#0x34+var_2C] ; +0x10c, 0x3e4068 LSLS R2, R3, #0x1F ; +0x110, 0x3e406c BPL loc_3E410C ; +0x112, 0x3e406e LDR R2, [SP,#0x34+var_24] ; +0x114, 0x3e4070 LDR R3, [SP,#0x34+var_28] ; +0x116, 0x3e4072 MOV R0, R7 ; +0x118, 0x3e4074 MOV R1, R4 ; +0x11a, 0x3e4076 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6insertEjPKcj; std::string::insert(uint,char const*,uint) ; +0x11c, 0x3e4078 LDR.W R5, [R6,#0x1A8] ; +0x120, 0x3e407c CMP R5, #0 ; +0x124, 0x3e4080 BGT loc_3E4090 ; +0x126, 0x3e4082 ADD R5, SP, #0x34+var_14 ; +0x128, 0x3e4084 MOV R1, R7 ; +0x12a, 0x3e4086 MOV R0, R5 ; +0x12c, 0x3e4088 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x12e, 0x3e408a B loc_3E409C ; +0x132, 0x3e408e MOV R0, R7 ; +0x134, 0x3e4090 BL sub_3DC602 ; +0x136, 0x3e4092 CMP R0, R5 ; +0x13a, 0x3e4096 BGT loc_3E4114 ; +0x13c, 0x3e4098 B loc_3E4084 ; +0x13e, 0x3e409a MOV R0, R6 ; +0x140, 0x3e409c MOV R1, R5 ; +0x142, 0x3e409e BL _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x144, 0x3e40a0 MOV R0, R5 ; +0x148, 0x3e40a4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x14a, 0x3e40a6 LDR.W R5, [R6,#0x1A0] ; +0x14e, 0x3e40aa LDR.W R3, [R5,#0x260] ; +0x152, 0x3e40ae CMP R3, #0 ; +0x156, 0x3e40b2 BGE loc_3E40BE ; +0x158, 0x3e40b4 MOV R0, R7 ; +0x15a, 0x3e40b6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x15c, 0x3e40b8 B loc_3E40DE ; +0x160, 0x3e40bc LDRB.W R1, [SP,#0x34+var_2C] ; +0x162, 0x3e40be MOV R0, R7 ; +0x166, 0x3e40c2 LSLS R3, R1, #0x1F ; +0x168, 0x3e40c4 ITE PL ; +0x16a, 0x3e40c6 ASRPL R1, R1, #1 ; +0x16c, 0x3e40c8 LDRMI R1, [SP,#0x34+var_28] ; +0x16e, 0x3e40ca ADD R1, R4 ; +0x170, 0x3e40cc BL sub_3DC19C ; +0x172, 0x3e40ce STR.W R0, [R5,#0x260] ; +0x176, 0x3e40d2 MOV R0, R6; this ; +0x17a, 0x3e40d6 BL _ZN15CCTextInputNode16updateBlinkLabelEv; CCTextInputNode::updateBlinkLabel(void) ; +0x17c, 0x3e40d8 B loc_3E40B6 ; +0x180, 0x3e40dc MOV R0, R9 ; +0x182, 0x3e40de BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x184, 0x3e40e0 LDR R2, [SP,#0x34+var_8] ; +0x188, 0x3e40e4 LDR.W R3, [R8] ; +0x18a, 0x3e40e6 CMP R2, R3 ; +0x18e, 0x3e40ea BEQ loc_3E4128 ; +0x190, 0x3e40ec BLX __stack_chk_fail ; +0x192, 0x3e40ee MOV R0, R5 ; +0x196, 0x3e40f2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x198, 0x3e40f4 B loc_3E40FA ; +0x19c, 0x3e40f8 MOV R0, R7 ; +0x19e, 0x3e40fa BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1a0, 0x3e40fc B loc_3E4102 ; +0x1a4, 0x3e4100 MOV R0, R9 ; +0x1a6, 0x3e4102 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1a8, 0x3e4104 BL __cxa_end_cleanup ; +0x1ac, 0x3e4108 ASRS R3, R3, #1 ; +0x1b0, 0x3e410c ADD.W R2, SP, #0x34+var_2B ; +0x1b2, 0x3e410e B loc_3E4074 ; +0x1b6, 0x3e4112 MOV R1, R5 ; +0x1b8, 0x3e4114 MOV R0, R7 ; +0x1ba, 0x3e4116 BL sub_3DC656 ; +0x1bc, 0x3e4118 MOVS R2, #0; int ; +0x1c0, 0x3e411c MOV R1, R0; int ; +0x1c2, 0x3e411e MOV R0, R7; int ; +0x1c4, 0x3e4120 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEjc; std::string::resize(uint,char) ; +0x1c6, 0x3e4122 B loc_3E4084 ; +0x1ca, 0x3e4126 ADD SP, SP, #0x34 ; '4' ; +0x1cc, 0x3e4128 POP.W {R4-R9,PC} ; +0x1ce, 0x3e412a