{"type": "func", "start": 5369034160, "end": 5369034396, "name": "CCTextInputNode::addTextArea", "pseudocode": "// \n// CCTextInputNode::addTextArea from 0x14004f5b0 to 0x14004f69c (236 bytes)\n// \n// 7 xrefs:\n// > EditLevelLayer::init @ 0x1400d5dfc\n// > GJWriteMessagePopup::init @ 0x140299b18\n// > GJWriteMessagePopup::init @ 0x140299ecc\n// > ShareCommentLayer::init @ 0x14048df21\n// > <???> @ 0x140663d18\n// > <???> @ 0x140663d28\n// > <???> @ 0x1406c4c98\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 CCTextInputNode::addTextArea(CCTextInputNode *a1, TextArea *a2)\n{\n  CCTextInputNode_vtbl *v3; // rax\n  TextArea_vtbl *v4; // rbx\n  const cocos2d::CCPoint *v5; // rax\n  const char *v6; // rax\n  size_t v7; // r8\n  __int64 v8; // rax\n  __int128 v9; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v10; // [rsp+30h] [rbp-18h]\n  __int64 v11; // [rsp+38h] [rbp-10h]\n  cocos2d::CCPoint v12; // [rsp+50h] [rbp+8h] BYREF\n\n  if ( !a1->m_textArea )\n  {\n    v3 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    a1->m_textArea = a2;\n    ((void (*)(void))v3->addChild_1)();\n    v4 = a1->m_textArea->__vftable;\n    cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0);\n    v4->setPosition_0(a1->m_textArea, v5);\n    a1->m_textField->setVisible(a1->m_textField, 0);\n    v6 = a1->m_textField->getString(&a1->m_textField->cocos2d::CCLabelProtocol);\n    v10 = 0;\n    v9 = 0;\n    v11 = 0;\n    v7 = -1;\n    do\n      ++v7;\n    while ( v6[v7] );\n    sub_14003A930(&v9, v6, v7);\n    CCTextInputNode::updateLabel(a1, &v9);\n    v8 = sub_14003BDB0((__int64)&v9, (__int64)&a1->m_textArea->m_fontFile);\n    CCTextInputNode::updateDefaultFontValues(a1, v8);\n  }\n}", "assembly": "; \n; CCTextInputNode::addTextArea from 0x14004f5b0 to 0x14004f69c (236 bytes)\n; \n; 7 xrefs:\n; > EditLevelLayer::init @ 0x1400d5dfc\n; > GJWriteMessagePopup::init @ 0x140299b18\n; > GJWriteMessagePopup::init @ 0x140299ecc\n; > ShareCommentLayer::init @ 0x14048df21\n; > <???> @ 0x140663d18\n; > <???> @ 0x140663d28\n; > <???> @ 0x1406c4c98\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\npush    rdi                                                            ; +0x0, 0x14004f5b0\nsub     rsp, 40h                                                       ; +0x2, 0x14004f5b2\ncmp     qword ptr [rcx+250h], 0                                        ; +0x6, 0x14004f5b6\nmov     rdi, rcx                                                       ; +0xe, 0x14004f5be\njnz     loc_14004F696                                                  ; +0x11, 0x14004f5c1\nmov     rax, [rcx]                                                     ; +0x17, 0x14004f5c7\nmov     [rsp+48h+arg_8], rbx                                           ; +0x1a, 0x14004f5ca\nmov     [rcx+250h], rdx                                                ; +0x1f, 0x14004f5cf\ncall    qword ptr [rax+1C0h]                                           ; +0x26, 0x14004f5d6\nmov     rax, [rdi+250h]                                                ; +0x2c, 0x14004f5dc\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x33, 0x14004f5e3\nxorps   xmm2, xmm2                                                     ; +0x38, 0x14004f5e8\nxorps   xmm1, xmm1                                                     ; +0x3b, 0x14004f5eb\nmov     rbx, [rax]                                                     ; +0x3e, 0x14004f5ee\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x41, 0x14004f5f1\nmov     rcx, [rdi+250h]                                                ; +0x47, 0x14004f5f7\nmov     rdx, rax                                                       ; +0x4e, 0x14004f5fe\ncall    qword ptr [rbx+0B8h]                                           ; +0x51, 0x14004f601\nmov     rcx, [rdi+228h]                                                ; +0x57, 0x14004f607\nxor     edx, edx                                                       ; +0x5e, 0x14004f60e\nmov     rax, [rcx]                                                     ; +0x60, 0x14004f610\ncall    qword ptr [rax+140h]                                           ; +0x63, 0x14004f613\nmov     rcx, [rdi+228h]                                                ; +0x69, 0x14004f619\nadd     rcx, 258h                                                      ; +0x70, 0x14004f620\nmov     rax, [rcx]                                                     ; +0x77, 0x14004f627\ncall    qword ptr [rax+8]                                              ; +0x7a, 0x14004f62a\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x7d, 0x14004f62d\nxor     ecx, ecx                                                       ; +0x82, 0x14004f632\nxorps   xmm0, xmm0                                                     ; +0x84, 0x14004f634\nmov     [rsp+48h+var_18], rcx                                          ; +0x87, 0x14004f637\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x8c, 0x14004f63c\nmov     [rsp+48h+var_10], rcx                                          ; +0x91, 0x14004f641\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x96, 0x14004f646\nnop     dword ptr [rax]                                                ; +0x9d, 0x14004f64d\ninc     r8                                                             ; +0xa0, 0x14004f650\ncmp     [rax+r8], cl                                                   ; +0xa3, 0x14004f653\njnz     short loc_14004F650                                            ; +0xa7, 0x14004f657\nmov     rdx, rax                                                       ; +0xa9, 0x14004f659\nlea     rcx, [rsp+48h+var_28]                                          ; +0xac, 0x14004f65c\ncall    sub_14003A930                                                  ; +0xb1, 0x14004f661\nlea     rdx, [rsp+48h+var_28]                                          ; +0xb6, 0x14004f666\nmov     rcx, rdi                                                       ; +0xbb, 0x14004f66b\ncall    CCTextInputNode__updateLabel                                   ; +0xbe, 0x14004f66e\nmov     rdx, [rdi+250h]                                                ; +0xc3, 0x14004f673\nlea     rcx, [rsp+48h+var_28]                                          ; +0xca, 0x14004f67a\nadd     rdx, 270h                                                      ; +0xcf, 0x14004f67f\ncall    sub_14003BDB0                                                  ; +0xd6, 0x14004f686\nmov     rdx, rax                                                       ; +0xdb, 0x14004f68b\nmov     rcx, rdi                                                       ; +0xde, 0x14004f68e\ncall    CCTextInputNode__updateDefaultFontValues                       ; +0xe1, 0x14004f691\nadd     rsp, 40h                                                       ; +0xe6, 0x14004f696\npop     rdi                                                            ; +0xea, 0x14004f69a\nretn                                                                   ; +0xeb, 0x14004f69b", "xrefs": ["EditLevelLayer::init @ 0x1400d5dfc", "GJWriteMessagePopup::init @ 0x140299b18", "GJWriteMessagePopup::init @ 0x140299ecc", "ShareCommentLayer::init @ 0x14048df21", "<???> @ 0x140663d18", "<???> @ 0x140663d28", "<???> @ 0x1406c4c98"], "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"}