{"type": "func", "start": 7092156, "end": 7092588, "name": "CCTextInputNode::addTextArea", "pseudocode": "// \n// CCTextInputNode::addTextArea from 0x6c37bc to 0x6c396c (432 bytes)\n// \n// 10 xrefs:\n// > EditLevelLayer::init @ 0x7f08ac\n// > ShareCommentLayer::init @ 0x90f1c4\n// > SetTextPopup::init @ 0xa2fedc\n// > GJWriteMessagePopup::init @ 0xa327a8\n// > GJWriteMessagePopup::init @ 0xa32adc\n// > ThreadDescPopup::buildUI @ 0xc7a030\n// > NewThreadPopup::init @ 0xc7e280\n// > ThreadViewPopup::init @ 0xc877d8\n// > SoundPackDescPopup::init @ 0xccff38\n// > <???> @ 0x8d238\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:20 +0000\n// \n\n__int64 __fastcall CCTextInputNode::addTextArea(CCTextInputNode *this, TextArea *a2)\n{\n  int v5; // w1\n  __int64 v6; // x23\n  void (__fastcall *v7)(__int64, _BYTE *); // x21\n  const char *v8; // x0\n  size_t v9; // x0\n  __int64 v10; // x0\n  __int64 v11; // x1\n  char *v12; // [xsp+48h] [xbp+48h]\n  _BYTE v13[8]; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v14; // [xsp+60h] [xbp+60h] BYREF\n  __int64 v15; // [xsp+68h] [xbp+68h]\n  void *v16; // [xsp+70h] [xbp+70h]\n\n  if ( !*((_QWORD *)this + 77) )\n  {\n    *((_QWORD *)this + 77) = a2;\n    v5 = *((_DWORD *)this + 126);\n    *((_DWORD *)this + 164) = *((_DWORD *)a2 + 154);\n    TextArea::setParseEmotes((__int64)a2, v5);\n    (*(void (__fastcall **)(CCTextInputNode *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 77));\n    v6 = *((_QWORD *)this + 77);\n    v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 0.0);\n    v7(v6, v13);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 72) + 344LL))(*((_QWORD *)this + 72), 0);\n    v8 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 72) + 1248LL))(*((_QWORD *)this + 72));\n    v14 = 0;\n    v12 = (char *)v8;\n    v15 = 0;\n    v16 = nullptr;\n    v9 = strlen(v8);\n    std::string::__init(&v14, v12, v9);\n    CCTextInputNode::updateLabel((__int64)this, (__int64)&v14);\n    if ( (v14 & 1) != 0 )\n      operator delete(v16);\n    v10 = *((_QWORD *)this + 77);\n    v14 = 0;\n    v15 = 0;\n    v16 = nullptr;\n    if ( (*(_BYTE *)(v10 + 624) & 1) != 0 )\n    {\n      std::string::__init(&v14, *(void **)(v10 + 640), *(_QWORD *)(v10 + 632));\n    }\n    else\n    {\n      v11 = *(_QWORD *)(v10 + 632);\n      v14 = *(_QWORD *)(v10 + 624);\n      v15 = v11;\n      v16 = *(void **)(v10 + 640);\n    }\n    CCTextInputNode::updateDefaultFontValues((__int64)this, (__int64)&v14);\n    if ( (v14 & 1) != 0 )\n      operator delete(v16);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCTextInputNode::addTextArea from 0x6c37bc to 0x6c396c (432 bytes)\n; \n; 10 xrefs:\n; > EditLevelLayer::init @ 0x7f08ac\n; > ShareCommentLayer::init @ 0x90f1c4\n; > SetTextPopup::init @ 0xa2fedc\n; > GJWriteMessagePopup::init @ 0xa327a8\n; > GJWriteMessagePopup::init @ 0xa32adc\n; > ThreadDescPopup::buildUI @ 0xc7a030\n; > NewThreadPopup::init @ 0xc7e280\n; > ThreadViewPopup::init @ 0xc877d8\n; > SoundPackDescPopup::init @ 0xccff38\n; > <???> @ 0x8d238\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:20 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x6c37bc\nMOV             X2, X1                                                 ; +0x4, 0x6c37c0\nMOV             X29, SP                                                ; +0x8, 0x6c37c4\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0xc, 0x6c37c8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x6c37cc\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x14, 0x6c37d0\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0x6c37d4\nMOV             X20, X0                                                ; +0x1c, 0x6c37d8\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6c37dc\nLDR             X0, [X0,#0x268]                                        ; +0x24, 0x6c37e0\nLDR             X1, [X1]                                               ; +0x28, 0x6c37e4\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x2c, 0x6c37e8\nCBZ             X0, loc_6C3818                                         ; +0x30, 0x6c37ec\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x6c37f0\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x38, 0x6c37f4\nLDR             X0, [X19]                                              ; +0x3c, 0x6c37f8\nCMP             X1, X0                                                 ; +0x40, 0x6c37fc\nB.NE            loc_6C3948                                             ; +0x44, 0x6c3800\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x48, 0x6c3804\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x4c, 0x6c3808\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x50, 0x6c380c\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x54, 0x6c3810\nRET                                                                    ; +0x58, 0x6c3814\nSTR             X2, [X20,#0x268]                                       ; +0x5c, 0x6c3818\nMOV             X0, X2; this                                           ; +0x60, 0x6c381c\nLDR             W1, [X20,#0x1F8]; int                                  ; +0x64, 0x6c3820\nADD             X21, X29, #0x80+var_28                                 ; +0x68, 0x6c3824\nLDR             W2, [X2,#0x268]                                        ; +0x6c, 0x6c3828\nADD             X22, X29, #0x80+var_20                                 ; +0x70, 0x6c382c\nSTR             W2, [X20,#0x290]                                       ; +0x74, 0x6c3830\nBL              _ZN8TextArea14setParseEmotesEi; TextArea::setParseEmotes(int) ; +0x78, 0x6c3834\nLDR             X2, [X20]                                              ; +0x7c, 0x6c3838\nMOV             X0, X20                                                ; +0x80, 0x6c383c\nLDR             X1, [X20,#0x268]                                       ; +0x84, 0x6c3840\nLDR             X2, [X2,#0x1C8]                                        ; +0x88, 0x6c3844\nBLR             X2                                                     ; +0x8c, 0x6c3848\nLDR             X23, [X20,#0x268]                                      ; +0x90, 0x6c384c\nFMOV            S0, WZR; float                                         ; +0x94, 0x6c3850\nMOV             X0, X21; this                                          ; +0x98, 0x6c3854\nSTR             X21, [X29,#0x80+var_38]                                ; +0x9c, 0x6c3858\nLDR             X2, [X23]                                              ; +0xa0, 0x6c385c\nFMOV            S1, S0; float                                          ; +0xa4, 0x6c3860\nLDR             X21, [X2,#0xB8]                                        ; +0xa8, 0x6c3864\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x6c3868\nLDR             X1, [X29,#0x80+var_38]                                 ; +0xb0, 0x6c386c\nMOV             X0, X23                                                ; +0xb4, 0x6c3870\nBLR             X21                                                    ; +0xb8, 0x6c3874\nLDR             X2, [X20,#0x240]                                       ; +0xbc, 0x6c3878\nMOV             W1, #0                                                 ; +0xc0, 0x6c387c\nMOV             X0, X2                                                 ; +0xc4, 0x6c3880\nLDR             X2, [X2]                                               ; +0xc8, 0x6c3884\nLDR             X2, [X2,#0x158]                                        ; +0xcc, 0x6c3888\nBLR             X2                                                     ; +0xd0, 0x6c388c\nLDR             X1, [X20,#0x240]                                       ; +0xd4, 0x6c3890\nMOV             X0, X1                                                 ; +0xd8, 0x6c3894\nLDR             X1, [X1]                                               ; +0xdc, 0x6c3898\nLDR             X1, [X1,#0x4E0]                                        ; +0xe0, 0x6c389c\nBLR             X1                                                     ; +0xe4, 0x6c38a0\nSTR             XZR, [X29,#0x80+var_20]                                ; +0xe8, 0x6c38a4\nSTR             X0, [X29,#0x80+var_38]                                 ; +0xec, 0x6c38a8\nSTR             XZR, [X29,#0x80+var_18]                                ; +0xf0, 0x6c38ac\nSTR             XZR, [X29,#0x80+var_10]                                ; +0xf4, 0x6c38b0\nBL              .strlen                                                ; +0xf8, 0x6c38b4\nLDR             X1, [X29,#0x80+var_38]                                 ; +0xfc, 0x6c38b8\nMOV             X2, X0                                                 ; +0x100, 0x6c38bc\nMOV             X0, X22                                                ; +0x104, 0x6c38c0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x108, 0x6c38c4\nMOV             X0, X20                                                ; +0x10c, 0x6c38c8\nMOV             X1, X22                                                ; +0x110, 0x6c38cc\nBL              _ZN15CCTextInputNode11updateLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateLabel(std::string) ; +0x114, 0x6c38d0\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0x118, 0x6c38d4\nTBNZ            W0, #0, loc_6C393C                                     ; +0x11c, 0x6c38d8\nLDR             X0, [X20,#0x268]                                       ; +0x120, 0x6c38dc\nSTR             XZR, [X29,#0x80+var_20]                                ; +0x124, 0x6c38e0\nSTR             XZR, [X29,#0x80+var_18]                                ; +0x128, 0x6c38e4\nADD             X2, X0, #0x270                                         ; +0x12c, 0x6c38e8\nSTR             XZR, [X29,#0x80+var_10]                                ; +0x130, 0x6c38ec\nLDRB            W0, [X0,#0x270]                                        ; +0x134, 0x6c38f0\nTBNZ            W0, #0, loc_6C3928                                     ; +0x138, 0x6c38f4\nLDP             X0, X1, [X2]                                           ; +0x13c, 0x6c38f8\nSTP             X0, X1, [X29,#0x80+var_20]                             ; +0x140, 0x6c38fc\nLDR             X0, [X2,#0x10]                                         ; +0x144, 0x6c3900\nSTR             X0, [X29,#0x80+var_10]                                 ; +0x148, 0x6c3904\nMOV             X0, X20                                                ; +0x14c, 0x6c3908\nMOV             X1, X22                                                ; +0x150, 0x6c390c\nBL              _ZN15CCTextInputNode23updateDefaultFontValuesENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateDefaultFontValues(std::string) ; +0x154, 0x6c3910\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0x158, 0x6c3914\nTBZ             W0, #0, loc_6C37F0                                     ; +0x15c, 0x6c3918\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x160, 0x6c391c\nBL              _ZdlPv; operator delete(void *)                        ; +0x164, 0x6c3920\nB               loc_6C37F0                                             ; +0x168, 0x6c3924\nLDR             X1, [X2,#0x10]                                         ; +0x16c, 0x6c3928\nMOV             X0, X22                                                ; +0x170, 0x6c392c\nLDR             X2, [X2,#8]                                            ; +0x174, 0x6c3930\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x178, 0x6c3934\nB               loc_6C3908                                             ; +0x17c, 0x6c3938\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x180, 0x6c393c\nBL              _ZdlPv; operator delete(void *)                        ; +0x184, 0x6c3940\nB               loc_6C38DC                                             ; +0x188, 0x6c3944\nBL              .__stack_chk_fail                                      ; +0x18c, 0x6c3948\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x190, 0x6c394c\nMOV             X19, X0                                                ; +0x194, 0x6c3950\nTBZ             W1, #0, loc_6C3960                                     ; +0x198, 0x6c3954\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x19c, 0x6c3958\nBL              _ZdlPv; operator delete(void *)                        ; +0x1a0, 0x6c395c\nMOV             X0, X19                                                ; +0x1a4, 0x6c3960\nBL              _Unwind_Resume                                         ; +0x1a8, 0x6c3964\nB               loc_6C394C                                             ; +0x1ac, 0x6c3968", "xrefs": ["EditLevelLayer::init @ 0x7f08ac", "ShareCommentLayer::init @ 0x90f1c4", "SetTextPopup::init @ 0xa2fedc", "GJWriteMessagePopup::init @ 0xa327a8", "GJWriteMessagePopup::init @ 0xa32adc", "ThreadDescPopup::buildUI @ 0xc7a030", "NewThreadPopup::init @ 0xc7e280", "ThreadViewPopup::init @ 0xc877d8", "SoundPackDescPopup::init @ 0xccff38", "<???> @ 0x8d238"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}