{"type": "func", "start": 4076004, "end": 4076220, "name": "CCTextInputNode::addTextArea", "pseudocode": "// \n// CCTextInputNode::addTextArea from 0x3e31e4 to 0x3e32bc (216 bytes)\n// \n// 9 xrefs:\n// > EditLevelLayer::init @ 0x4a14d4\n// > ShareCommentLayer::init @ 0x541d62\n// > SetTextPopup::init @ 0x5de648\n// > GJWriteMessagePopup::init @ 0x5dfc0e\n// > GJWriteMessagePopup::init @ 0x5dfebe\n// > ThreadDescPopup::buildUI @ 0x75419c\n// > NewThreadPopup::init @ 0x756d5c\n// > ThreadViewPopup::init @ 0x75cca6\n// > SoundPackDescPopup::init @ 0x7868bc\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::addTextArea(int *this, TextArea *a2)\n{\n  int v2; // r4\n  int v3; // r8\n  void (__fastcall *v4)(int, _BYTE *); // r9\n  const char *v5; // r0\n  const char *v6; // r7\n  size_t v7; // r0\n  _BYTE v8[8]; // [sp+0h] [bp-1Ch] BYREF\n  int v9[3]; // [sp+8h] [bp-14h] BYREF\n\n  v2 = (int)this;\n  if ( !*(this + 109) )\n  {\n    *(this + 109) = (int)a2;\n    *(this + 116) = *((_DWORD *)a2 + 131);\n    TextArea::setParseEmotes((int)a2, *(this + 93));\n    (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v2 + 228))(v2, *(_DWORD *)(v2 + 436));\n    v3 = *(_DWORD *)(v2 + 436);\n    v4 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 92);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 0.0, 0.0);\n    v4(v3, v8);\n    (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 416) + 172))(*(_DWORD *)(v2 + 416), 0);\n    v5 = (const char *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 416) + 624))(*(_DWORD *)(v2 + 416));\n    memset(v9, 0, sizeof(v9));\n    v6 = v5;\n    v7 = strlen(v5);\n    std::string::__init(v9, v6, v7);\n    CCTextInputNode::updateLabel((float *)v2, (int)v9);\n    std::string::~string((int)v9);\n    std::string::basic_string(v9, *(_DWORD *)(v2 + 436) + 532);\n    CCTextInputNode::updateDefaultFontValues(v2, (unsigned __int8 *)v9);\n    return (int *)std::string::~string((int)v9);\n  }\n  return this;\n}", "assembly": "; \n; CCTextInputNode::addTextArea from 0x3e31e4 to 0x3e32bc (216 bytes)\n; \n; 9 xrefs:\n; > EditLevelLayer::init @ 0x4a14d4\n; > ShareCommentLayer::init @ 0x541d62\n; > SetTextPopup::init @ 0x5de648\n; > GJWriteMessagePopup::init @ 0x5dfc0e\n; > GJWriteMessagePopup::init @ 0x5dfebe\n; > ThreadDescPopup::buildUI @ 0x75419c\n; > NewThreadPopup::init @ 0x756d5c\n; > ThreadViewPopup::init @ 0x75cca6\n; > SoundPackDescPopup::init @ 0x7868bc\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 - 0x3E31EE)                ; +0x0, 0x3e31e4\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x3e31e6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3e31ea\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3e31ec\nLDR.W           R5, [R0,#0x1B4]                                        ; +0xa, 0x3e31ee\nSUB             SP, SP, #0x1C                                          ; +0xe, 0x3e31f2\nLDR             R2, [R3]                                               ; +0x10, 0x3e31f4\nMOV             R4, R0                                                 ; +0x12, 0x3e31f6\nMOV             R6, R3                                                 ; +0x14, 0x3e31f8\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x16, 0x3e31fa\nCMP             R5, #0                                                 ; +0x18, 0x3e31fc\nBNE             loc_3E32AA                                             ; +0x1a, 0x3e31fe\nSTR.W           R1, [R0,#0x1B4]                                        ; +0x1c, 0x3e3200\nLDR.W           R3, [R1,#0x20C]                                        ; +0x20, 0x3e3204\nSTR.W           R3, [R0,#0x1D0]                                        ; +0x24, 0x3e3208\nMOV             R0, R1; this                                           ; +0x28, 0x3e320c\nLDR.W           R1, [R4,#0x174]; int                                   ; +0x2a, 0x3e320e\nBL              _ZN8TextArea14setParseEmotesEi; TextArea::setParseEmotes(int) ; +0x2e, 0x3e3212\nLDR             R3, [R4]                                               ; +0x32, 0x3e3216\nMOV             R0, R4                                                 ; +0x34, 0x3e3218\nLDR.W           R1, [R4,#0x1B4]                                        ; +0x36, 0x3e321a\nLDR.W           R3, [R3,#0xE4]                                         ; +0x3a, 0x3e321e\nBLX             R3                                                     ; +0x3e, 0x3e3222\nLDR.W           R8, [R4,#0x1B4]                                        ; +0x40, 0x3e3224\nMOVS            R1, #0; float                                          ; +0x44, 0x3e3228\nMOV             R0, SP; this                                           ; +0x46, 0x3e322a\nMOV             R2, R1; float                                          ; +0x48, 0x3e322c\nLDR.W           R3, [R8]                                               ; +0x4a, 0x3e322e\nLDR.W           R9, [R3,#0x5C]                                         ; +0x4e, 0x3e3232\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x52, 0x3e3236\nMOV             R0, R8                                                 ; +0x56, 0x3e323a\nMOV             R1, SP                                                 ; +0x58, 0x3e323c\nBLX             R9                                                     ; +0x5a, 0x3e323e\nLDR.W           R0, [R4,#0x1A0]                                        ; +0x5c, 0x3e3240\nMOV             R1, R5                                                 ; +0x60, 0x3e3244\nLDR             R3, [R0]                                               ; +0x62, 0x3e3246\nLDR.W           R3, [R3,#0xAC]                                         ; +0x64, 0x3e3248\nBLX             R3                                                     ; +0x68, 0x3e324c\nLDR.W           R0, [R4,#0x1A0]                                        ; +0x6a, 0x3e324e\nLDR             R3, [R0]                                               ; +0x6e, 0x3e3252\nLDR.W           R3, [R3,#0x270]                                        ; +0x70, 0x3e3254\nBLX             R3                                                     ; +0x74, 0x3e3258\nSTR             R5, [SP,#0x1C+var_14]                                  ; +0x76, 0x3e325a\nSTR             R5, [SP,#0x1C+var_10]                                  ; +0x78, 0x3e325c\nSTR             R5, [SP,#0x1C+var_C]                                   ; +0x7a, 0x3e325e\nADD             R5, SP, #0x1C+var_14                                   ; +0x7c, 0x3e3260\nMOV             R7, R0                                                 ; +0x7e, 0x3e3262\nBLX             strlen                                                 ; +0x80, 0x3e3264\nMOV             R1, R7                                                 ; +0x84, 0x3e3268\nMOV             R2, R0                                                 ; +0x86, 0x3e326a\nMOV             R0, R5                                                 ; +0x88, 0x3e326c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x8a, 0x3e326e\nMOV             R0, R4                                                 ; +0x8e, 0x3e3272\nMOV             R1, R5                                                 ; +0x90, 0x3e3274\nBL              _ZN15CCTextInputNode11updateLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateLabel(std::string) ; +0x92, 0x3e3276\nMOV             R0, R5                                                 ; +0x96, 0x3e327a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x98, 0x3e327c\nLDR.W           R1, [R4,#0x1B4]                                        ; +0x9c, 0x3e3280\nMOV             R0, R5                                                 ; +0xa0, 0x3e3284\nADD.W           R1, R1, #0x214                                         ; +0xa2, 0x3e3286\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xa6, 0x3e328a\nMOV             R0, R4                                                 ; +0xaa, 0x3e328e\nMOV             R1, R5                                                 ; +0xac, 0x3e3290\nBL              _ZN15CCTextInputNode23updateDefaultFontValuesENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateDefaultFontValues(std::string) ; +0xae, 0x3e3292\nMOV             R0, R5                                                 ; +0xb2, 0x3e3296\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb4, 0x3e3298\nB               loc_3E32AA                                             ; +0xb8, 0x3e329c\nB               loc_3E32A0                                             ; +0xba, 0x3e329e\nMOV             R0, R5                                                 ; +0xbc, 0x3e32a0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xbe, 0x3e32a2\nBL              __cxa_end_cleanup                                      ; +0xc2, 0x3e32a6\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xc6, 0x3e32aa\nLDR             R3, [R6]                                               ; +0xc8, 0x3e32ac\nCMP             R2, R3                                                 ; +0xca, 0x3e32ae\nBEQ             loc_3E32B6                                             ; +0xcc, 0x3e32b0\nBLX             __stack_chk_fail                                       ; +0xce, 0x3e32b2\nADD             SP, SP, #0x1C                                          ; +0xd2, 0x3e32b6\nPOP.W           {R4-R9,PC}                                             ; +0xd4, 0x3e32b8", "xrefs": ["EditLevelLayer::init @ 0x4a14d4", "ShareCommentLayer::init @ 0x541d62", "SetTextPopup::init @ 0x5de648", "GJWriteMessagePopup::init @ 0x5dfc0e", "GJWriteMessagePopup::init @ 0x5dfebe", "ThreadDescPopup::buildUI @ 0x75419c", "NewThreadPopup::init @ 0x756d5c", "ThreadViewPopup::init @ 0x75cca6", "SoundPackDescPopup::init @ 0x7868bc"], "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"}