{"type": "func", "start": 5370442928, "end": 5370443140, "name": "TextGameObject::create", "pseudocode": "// \n// TextGameObject::create from 0x1401a74b0 to 0x1401a7584 (212 bytes)\n// \n// 3 xrefs:\n// > EditorUI::getCreateBtn @ 0x14010ea44\n// > GameObject::createWithKey @ 0x14018ba3a\n// > <???> @ 0x1406cc108\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\n// Hidden C++ exception states: #wind=1\nTextGameObject *TextGameObject::create(cocos2d::CCTexture2D *a1)\n{\n  TextGameObject *v2; // rdi\n\n  v2 = (TextGameObject *)operator new(0x578u);\n  GameObject::GameObject(v2);\n  v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TextGameObject_vtbl *)&TextGameObject::`vftable';\n  v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&TextGameObject::`vftable';\n  v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&TextGameObject::`vftable';\n  v2->m_text.m_data.0 = 0;\n  v2->m_text.m_data.m_size = 0;\n  v2->m_text.m_data.m_capacity = 15;\n  v2->m_text.m_data.m_smallStorage._Elems[0] = 0;\n  v2->m_kerning = 0;\n  v2->m_eObjType = GameObjectObjectType;\n  if ( cocos2d::CCSprite::initWithTexture(v2, a1, &stru_1406C13D0) )\n  {\n    GameObject::commonSetup(v2);\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(TextGameObject *, __int64))v2->~TextGameObject)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; TextGameObject::create from 0x1401a74b0 to 0x1401a7584 (212 bytes)\n; \n; 3 xrefs:\n; > EditorUI::getCreateBtn @ 0x14010ea44\n; > GameObject::createWithKey @ 0x14018ba3a\n; > <???> @ 0x1406cc108\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401a74b0\npush    rdi                                                            ; +0x5, 0x1401a74b5\nsub     rsp, 20h                                                       ; +0x6, 0x1401a74b6\nmov     rbx, rcx                                                       ; +0xa, 0x1401a74ba\nmov     ecx, 578h; Size                                                ; +0xd, 0x1401a74bd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x1401a74c2\nmov     rdi, rax                                                       ; +0x17, 0x1401a74c7\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x1401a74ca\nmov     rcx, rax                                                       ; +0x1f, 0x1401a74cf\ncall    GameObject__GameObject                                         ; +0x22, 0x1401a74d2\nlea     rax, ??_7TextGameObject@@6B@; const TextGameObject::`vftable'  ; +0x27, 0x1401a74d7\nmov     [rdi], rax                                                     ; +0x2e, 0x1401a74de\nlea     rax, ??_7TextGameObject@@6B@_0; const TextGameObject::`vftable' ; +0x31, 0x1401a74e1\nmov     [rdi+140h], rax                                                ; +0x38, 0x1401a74e8\nlea     rax, ??_7TextGameObject@@6B@_1; const TextGameObject::`vftable' ; +0x3f, 0x1401a74ef\nmov     [rdi+158h], rax                                                ; +0x46, 0x1401a74f6\nxorps   xmm0, xmm0                                                     ; +0x4d, 0x1401a74fd\nmovups  xmmword ptr [rdi+550h], xmm0                                   ; +0x50, 0x1401a7500\nmov     qword ptr [rdi+560h], 0                                        ; +0x57, 0x1401a7507\nmov     qword ptr [rdi+568h], 0Fh                                      ; +0x62, 0x1401a7512\nmov     byte ptr [rdi+550h], 0                                         ; +0x6d, 0x1401a751d\nmov     dword ptr [rdi+570h], 0                                        ; +0x74, 0x1401a7524\nmov     dword ptr [rdi+1Ch], 0Dh                                       ; +0x7e, 0x1401a752e\nlea     r8, stru_1406C13D0                                             ; +0x85, 0x1401a7535\nmov     rdx, rbx                                                       ; +0x8c, 0x1401a753c\nmov     rcx, rdi                                                       ; +0x8f, 0x1401a753f\ncall    cs:__imp_?initWithTexture@CCSprite@cocos2d@@UEAA_NPEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSprite::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x92, 0x1401a7542\nmov     rcx, rdi                                                       ; +0x98, 0x1401a7548\ntest    al, al                                                         ; +0x9b, 0x1401a754b\njz      short loc_1401A756B                                            ; +0x9d, 0x1401a754d\ncall    GameObject__commonSetup                                        ; +0x9f, 0x1401a754f\nmov     rcx, rdi                                                       ; +0xa4, 0x1401a7554\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa7, 0x1401a7557\nmov     rax, rdi                                                       ; +0xad, 0x1401a755d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb0, 0x1401a7560\nadd     rsp, 20h                                                       ; +0xb5, 0x1401a7565\npop     rdi                                                            ; +0xb9, 0x1401a7569\nretn                                                                   ; +0xba, 0x1401a756a\nmov     r8, [rdi]                                                      ; +0xbb, 0x1401a756b\nmov     edx, 1                                                         ; +0xbe, 0x1401a756e\ncall    qword ptr [r8+8]                                               ; +0xc3, 0x1401a7573\nxor     eax, eax                                                       ; +0xc7, 0x1401a7577\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x1401a7579\nadd     rsp, 20h                                                       ; +0xce, 0x1401a757e\npop     rdi                                                            ; +0xd2, 0x1401a7582\nretn                                                                   ; +0xd3, 0x1401a7583", "xrefs": ["EditorUI::getCreateBtn @ 0x14010ea44", "GameObject::createWithKey @ 0x14018ba3a", "<???> @ 0x1406cc108"], "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"}