{"type": "func", "start": 4078352, "end": 4078462, "name": "CCTextInputNode::setParseEmotes", "pseudocode": "// \n// CCTextInputNode::setParseEmotes from 0x3e3b10 to 0x3e3b7e (110 bytes)\n// \n// 8 xrefs:\n// > EditLevelLayer::init @ 0x4a146a\n// > ShareCommentLayer::init @ 0x541da2\n// > SetTextPopup::init @ 0x5de586\n// > ThreadDescPopup::buildUI @ 0x7540e2\n// > NewThreadPopup::applyMode @ 0x755ffe\n// > NewThreadPopup::init @ 0x756ca8\n// > ThreadViewPopup::init @ 0x75cbe0\n// > SoundPackDescPopup::init @ 0x786812\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:03 +0000\n// \n\nint __fastcall CCTextInputNode::setParseEmotes(CCTextInputNode *this, int a2)\n{\n  int v3; // r0\n  const char *v4; // r0\n  const char *v5; // r7\n  size_t v6; // r0\n  int v8[3]; // [sp+0h] [bp-14h] BYREF\n\n  *((_DWORD *)this + 93) = a2;\n  v3 = *((_DWORD *)this + 109);\n  if ( v3 )\n    TextArea::setParseEmotes(v3, a2);\n  v4 = (const char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 624))(*((_DWORD *)this + 104));\n  memset(v8, 0, sizeof(v8));\n  v5 = v4;\n  v6 = strlen(v4);\n  std::string::__init(v8, v5, v6);\n  CCTextInputNode::updateLabel((float *)this, (int)v8);\n  return std::string::~string((int)v8);\n}", "assembly": "; \n; CCTextInputNode::setParseEmotes from 0x3e3b10 to 0x3e3b7e (110 bytes)\n; \n; 8 xrefs:\n; > EditLevelLayer::init @ 0x4a146a\n; > ShareCommentLayer::init @ 0x541da2\n; > SetTextPopup::init @ 0x5de586\n; > ThreadDescPopup::buildUI @ 0x7540e2\n; > NewThreadPopup::applyMode @ 0x755ffe\n; > NewThreadPopup::init @ 0x756ca8\n; > ThreadViewPopup::init @ 0x75cbe0\n; > SoundPackDescPopup::init @ 0x786812\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:03 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3E3B18)                ; +0x0, 0x3e3b10\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3e3b12\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3e3b14\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3e3b16\nMOV             R5, R0                                                 ; +0x8, 0x3e3b18\nSTR.W           R1, [R0,#0x174]                                        ; +0xa, 0x3e3b1a\nLDR             R2, [R3]                                               ; +0xe, 0x3e3b1e\nSUB             SP, SP, #0x14                                          ; +0x10, 0x3e3b20\nLDR.W           R0, [R0,#0x1B4]; this                                  ; +0x12, 0x3e3b22\nMOV             R6, R3                                                 ; +0x16, 0x3e3b26\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x18, 0x3e3b28\nCBZ             R0, loc_3E3B30                                         ; +0x1a, 0x3e3b2a\nBL              _ZN8TextArea14setParseEmotesEi; TextArea::setParseEmotes(int) ; +0x1c, 0x3e3b2c\nLDR.W           R0, [R5,#0x1A0]                                        ; +0x20, 0x3e3b30\nMOV             R4, SP                                                 ; +0x24, 0x3e3b34\nLDR             R3, [R0]                                               ; +0x26, 0x3e3b36\nLDR.W           R3, [R3,#0x270]                                        ; +0x28, 0x3e3b38\nBLX             R3                                                     ; +0x2c, 0x3e3b3c\nMOVS            R3, #0                                                 ; +0x2e, 0x3e3b3e\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x30, 0x3e3b40\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x32, 0x3e3b42\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x34, 0x3e3b44\nMOV             R7, R0                                                 ; +0x36, 0x3e3b46\nBLX             strlen                                                 ; +0x38, 0x3e3b48\nMOV             R1, R7                                                 ; +0x3c, 0x3e3b4c\nMOV             R2, R0                                                 ; +0x3e, 0x3e3b4e\nMOV             R0, SP                                                 ; +0x40, 0x3e3b50\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x42, 0x3e3b52\nMOV             R0, R5                                                 ; +0x46, 0x3e3b56\nMOV             R1, SP                                                 ; +0x48, 0x3e3b58\nBL              _ZN15CCTextInputNode11updateLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateLabel(std::string) ; +0x4a, 0x3e3b5a\nMOV             R0, SP                                                 ; +0x4e, 0x3e3b5e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x50, 0x3e3b60\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x54, 0x3e3b64\nLDR             R3, [R6]                                               ; +0x56, 0x3e3b66\nCMP             R2, R3                                                 ; +0x58, 0x3e3b68\nBEQ             loc_3E3B7A                                             ; +0x5a, 0x3e3b6a\nBLX             __stack_chk_fail                                       ; +0x5c, 0x3e3b6c\nMOV             R0, R4                                                 ; +0x60, 0x3e3b70\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x62, 0x3e3b72\nBL              __cxa_end_cleanup                                      ; +0x66, 0x3e3b76\nADD             SP, SP, #0x14                                          ; +0x6a, 0x3e3b7a\nPOP             {R4-R7,PC}                                             ; +0x6c, 0x3e3b7c", "xrefs": ["EditLevelLayer::init @ 0x4a146a", "ShareCommentLayer::init @ 0x541da2", "SetTextPopup::init @ 0x5de586", "ThreadDescPopup::buildUI @ 0x7540e2", "NewThreadPopup::applyMode @ 0x755ffe", "NewThreadPopup::init @ 0x756ca8", "ThreadViewPopup::init @ 0x75cbe0", "SoundPackDescPopup::init @ 0x786812"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}