{"type": "func", "start": 4296461028, "end": 4296461284, "name": "CCTextInputNode::addTextArea", "pseudocode": "// \n// CCTextInputNode::addTextArea from 0x10016cae4 to 0x10016cbe4 (256 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::init @ 0x1000e9698\n// > ShareCommentLayer::init @ 0x1001d50c8\n// > GJWriteMessagePopup::init @ 0x1002dc328\n// > GJWriteMessagePopup::init @ 0x1002dc618\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CCTextInputNode::addTextArea(CCTextInputNode *a1, TextArea *a2)\n{\n  __n128 v3; // q0\n  TextArea *m_textArea; // x20\n  __n128 v5; // q1\n  char *v6; // x0\n  TextArea *v7; // x8\n  std::string *p_m_fontFile; // x8\n  void *v9[2]; // [xsp+0h] [xbp-50h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-40h]\n  void *__p[2]; // [xsp+20h] [xbp-30h] BYREF\n  char v12; // [xsp+37h] [xbp-19h]\n  int v13; // [xsp+38h] [xbp-18h] BYREF\n\n  if ( !a1->m_textArea )\n  {\n    a1->m_textArea = a2;\n    v3 = ((__n128 (__fastcall *)(CCTextInputNode *))a1->addChild)(a1);\n    m_textArea = a1->m_textArea;\n    v3.n128_u32[0] = 0;\n    v5.n128_u32[0] = 0;\n    sub_100022980(v3, v5, &v13);\n    ((void (__fastcall *)(TextArea *, int *))m_textArea->setPosition)(m_textArea, &v13);\n    ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))a1->m_textField->setVisible)(a1->m_textField, 0);\n    v6 = (char *)((__int64 (__fastcall *)(cocos2d::CCTextFieldTTF *))a1->m_textField->getString)(a1->m_textField);\n    sub_100009900(__p, v6);\n    CCTextInputNode::updateLabel(a1, __p);\n    if ( v12 < 0 )\n      operator delete(__p[0]);\n    v7 = a1->m_textArea;\n    if ( v7->m_fontFile.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(v9, (void *)v7->m_fontFile.m_data.m_long.capacitym1, v7->m_fontFile.m_data.m_long.size);\n    }\n    else\n    {\n      p_m_fontFile = &v7->m_fontFile;\n      *(_OWORD *)v9 = *(_OWORD *)&p_m_fontFile->m_data.m_short.sizex2;\n      longStorage = p_m_fontFile->m_data.m_long.longStorage;\n    }\n    CCTextInputNode::updateDefaultFontValues((__int64)a1, v9);\n    if ( SHIBYTE(longStorage) < 0 )\n      operator delete(v9[0]);\n  }\n}", "assembly": "; \n; CCTextInputNode::addTextArea from 0x10016cae4 to 0x10016cbe4 (256 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::init @ 0x1000e9698\n; > ShareCommentLayer::init @ 0x1001d50c8\n; > GJWriteMessagePopup::init @ 0x1002dc328\n; > GJWriteMessagePopup::init @ 0x1002dc618\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x60                                          ; +0x0, 0x10016cae4\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x10016cae8\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x10016caec\nADD             X29, SP, #0x50                                         ; +0xc, 0x10016caf0\nLDR             X8, [X0,#0x240]                                        ; +0x10, 0x10016caf4\nCBNZ            X8, loc_10016CBD4                                      ; +0x14, 0x10016caf8\nMOV             X19, X0                                                ; +0x18, 0x10016cafc\nSTR             X1, [X0,#0x240]                                        ; +0x1c, 0x10016cb00\nLDR             X8, [X0]                                               ; +0x20, 0x10016cb04\nLDR             X8, [X8,#0x1B8]                                        ; +0x24, 0x10016cb08\nBLR             X8                                                     ; +0x28, 0x10016cb0c\nLDR             X20, [X19,#0x240]                                      ; +0x2c, 0x10016cb10\nSUB             X0, X29, #-var_18                                      ; +0x30, 0x10016cb14\nFMOV            S0, WZR                                                ; +0x34, 0x10016cb18\nFMOV            S1, WZR                                                ; +0x38, 0x10016cb1c\nBL              sub_100022980                                          ; +0x3c, 0x10016cb20\nLDR             X8, [X20]                                              ; +0x40, 0x10016cb24\nLDR             X8, [X8,#0xB8]                                         ; +0x44, 0x10016cb28\nSUB             X1, X29, #-var_18                                      ; +0x48, 0x10016cb2c\nMOV             X0, X20                                                ; +0x4c, 0x10016cb30\nBLR             X8                                                     ; +0x50, 0x10016cb34\nLDR             X0, [X19,#0x218]                                       ; +0x54, 0x10016cb38\nLDR             X8, [X0]                                               ; +0x58, 0x10016cb3c\nLDR             X8, [X8,#0x148]                                        ; +0x5c, 0x10016cb40\nMOV             W1, #0                                                 ; +0x60, 0x10016cb44\nBLR             X8                                                     ; +0x64, 0x10016cb48\nLDR             X0, [X19,#0x218]                                       ; +0x68, 0x10016cb4c\nLDR             X8, [X0]                                               ; +0x6c, 0x10016cb50\nLDR             X8, [X8,#0x4D0]                                        ; +0x70, 0x10016cb54\nBLR             X8                                                     ; +0x74, 0x10016cb58\nMOV             X1, X0; __s                                            ; +0x78, 0x10016cb5c\nADD             X0, SP, #0x50+__p; int                                 ; +0x7c, 0x10016cb60\nBL              sub_100009900                                          ; +0x80, 0x10016cb64\nADD             X1, SP, #0x50+__p                                      ; +0x84, 0x10016cb68\nMOV             X0, X19                                                ; +0x88, 0x10016cb6c\nBL              CCTextInputNode__updateLabel                           ; +0x8c, 0x10016cb70\nLDRSB           W8, [SP,#0x50+var_19]                                  ; +0x90, 0x10016cb74\nTBZ             W8, #0x1F, loc_10016CB84                               ; +0x94, 0x10016cb78\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x98, 0x10016cb7c\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x10016cb80\nLDR             X8, [X19,#0x240]                                       ; +0xa0, 0x10016cb84\nLDRSB           W9, [X8,#0x27F]                                        ; +0xa4, 0x10016cb88\nTBNZ            W9, #0x1F, loc_10016CBA8                               ; +0xa8, 0x10016cb8c\nADD             X8, X8, #0x268                                         ; +0xac, 0x10016cb90\nLDR             Q0, [X8]                                               ; +0xb0, 0x10016cb94\nSTR             Q0, [SP,#0x50+var_50]                                  ; +0xb4, 0x10016cb98\nLDR             X8, [X8,#0x10]                                         ; +0xb8, 0x10016cb9c\nSTR             X8, [SP,#0x50+var_40]                                  ; +0xbc, 0x10016cba0\nB               loc_10016CBB8                                          ; +0xc0, 0x10016cba4\nLDR             X1, [X8,#0x268]; __src                                 ; +0xc4, 0x10016cba8\nLDR             X2, [X8,#0x270]                                        ; +0xc8, 0x10016cbac\nMOV             X0, SP; __dst                                          ; +0xcc, 0x10016cbb0\nBL              sub_1000097D0                                          ; +0xd0, 0x10016cbb4\nMOV             X1, SP                                                 ; +0xd4, 0x10016cbb8\nMOV             X0, X19                                                ; +0xd8, 0x10016cbbc\nBL              CCTextInputNode__updateDefaultFontValues               ; +0xdc, 0x10016cbc0\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0xe0, 0x10016cbc4\nTBZ             W8, #0x1F, loc_10016CBD4                               ; +0xe4, 0x10016cbc8\nLDR             X0, [SP,#0x50+var_50]; __p                             ; +0xe8, 0x10016cbcc\nBL              __ZdlPv; operator delete(void *)                       ; +0xec, 0x10016cbd0\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xf0, 0x10016cbd4\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xf4, 0x10016cbd8\nADD             SP, SP, #0x60 ; '`'                                    ; +0xf8, 0x10016cbdc\nRET                                                                    ; +0xfc, 0x10016cbe0", "xrefs": ["EditLevelLayer::init @ 0x1000e9698", "ShareCommentLayer::init @ 0x1001d50c8", "GJWriteMessagePopup::init @ 0x1002dc328", "GJWriteMessagePopup::init @ 0x1002dc618"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}