{"type": "func", "start": 6442771344, "end": 6442771553, "name": "cocos2d::CCLabelTTF::init", "pseudocode": "// \n// cocos2d::CCLabelTTF::init from 0x18004e390 to 0x18004e461 (209 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800ec920\n// > <???> @ 0x1801067d0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1c74\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\nchar __fastcall cocos2d::CCLabelTTF::init(cocos2d::CCLabelTTF *this)\n{\n  cocos2d::CCLabelTTF_vtbl *v2; // rbx\n  cocos2d::CCShaderCache *v3; // rax\n  struct cocos2d::CCGLProgram *v4; // rax\n  float *v5; // rax\n  std::string *v6; // rbx\n  _QWORD *v7; // rax\n  float v9; // [rsp+38h] [rbp+10h] BYREF\n  _QWORD *v10; // [rsp+40h] [rbp+18h]\n\n  if ( !cocos2d::CCSprite::init(this) )\n    return 0;\n  v2 = this->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v3 = cocos2d::CCShaderCache::sharedShaderCache();\n  v4 = cocos2d::CCShaderCache::programForKey(v3, \"ShaderPositionTextureColor\");\n  ((void (__fastcall *)(cocos2d::CCLabelTTF *, struct cocos2d::CCGLProgram *))v2->setShaderProgram)(this, v4);\n  v5 = kmVec2Fill(&v9, *(float *)&dword_1801A83C0, *(float *)&dword_1801A83C4);\n  cocos2d::CCSize::operator=(&this->m_tDimensions, v5);\n  v6 = nullptr;\n  *(_QWORD *)&this->m_hAlignment = 0;\n  v7 = operator new(0x20u);\n  v10 = v7;\n  if ( v7 )\n    v6 = (std::string *)sub_180005910(v7, \"Helvetica\");\n  this->m_pFontName = v6;\n  this->m_fFontSize = 12.0;\n  ((void (__fastcall *)(cocos2d::CCLabelProtocol *, const CHAR *))this->setString)(\n    &this->cocos2d::CCLabelProtocol,\n    Buf2);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLabelTTF::init from 0x18004e390 to 0x18004e461 (209 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800ec920\n; > <???> @ 0x1801067d0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1c74\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, 0x18004e390\npush    rdi                                                            ; +0x5, 0x18004e395\nsub     rsp, 20h                                                       ; +0x6, 0x18004e396\nmov     rdi, rcx                                                       ; +0xa, 0x18004e39a\ncall    ?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0xd, 0x18004e39d\ntest    al, al                                                         ; +0x12, 0x18004e3a2\njz      loc_18004E454                                                  ; +0x14, 0x18004e3a4\nmov     rbx, [rdi]                                                     ; +0x1a, 0x18004e3aa\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x1d, 0x18004e3ad\nmov     rcx, rax; this                                                 ; +0x22, 0x18004e3b2\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0x25, 0x18004e3b5\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x2c, 0x18004e3bc\nmov     rdx, rax                                                       ; +0x31, 0x18004e3c1\nmov     rcx, rdi                                                       ; +0x34, 0x18004e3c4\ncall    qword ptr [rbx+280h]                                           ; +0x37, 0x18004e3c7\nmovss   xmm2, cs:dword_1801A83C4                                       ; +0x3d, 0x18004e3cd\nmovss   xmm1, cs:dword_1801A83C0                                       ; +0x45, 0x18004e3d5\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x4d, 0x18004e3dd\ncall    kmVec2Fill                                                     ; +0x52, 0x18004e3e2\nmov     rdx, rax                                                       ; +0x57, 0x18004e3e7\nlea     rcx, [rdi+260h]                                                ; +0x5a, 0x18004e3ea\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x61, 0x18004e3f1\nxor     ebx, ebx                                                       ; +0x66, 0x18004e3f6\nmov     [rdi+268h], rbx                                                ; +0x68, 0x18004e3f8\nlea     ecx, [rbx+20h]; Size                                           ; +0x6f, 0x18004e3ff\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x72, 0x18004e402\nmov     [rsp+28h+arg_10], rax                                          ; +0x77, 0x18004e407\ntest    rax, rax                                                       ; +0x7c, 0x18004e40c\njz      short loc_18004E423                                            ; +0x7f, 0x18004e40f\nlea     rdx, aHelvetica; \"Helvetica\"                                   ; +0x81, 0x18004e411\nmov     rcx, rax                                                       ; +0x88, 0x18004e418\ncall    sub_180005910                                                  ; +0x8b, 0x18004e41b\nmov     rbx, rax                                                       ; +0x90, 0x18004e420\nmov     [rdi+270h], rbx                                                ; +0x93, 0x18004e423\nmov     dword ptr [rdi+278h], 41400000h                                ; +0x9a, 0x18004e42a\nlea     rcx, [rdi+258h]                                                ; +0xa4, 0x18004e434\nmov     rax, [rcx]                                                     ; +0xab, 0x18004e43b\nlea     rdx, Buf2                                                      ; +0xae, 0x18004e43e\ncall    qword ptr [rax]                                                ; +0xb5, 0x18004e445\nmov     al, 1                                                          ; +0xb7, 0x18004e447\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb9, 0x18004e449\nadd     rsp, 20h                                                       ; +0xbe, 0x18004e44e\npop     rdi                                                            ; +0xc2, 0x18004e452\nretn                                                                   ; +0xc3, 0x18004e453\nxor     al, al                                                         ; +0xc4, 0x18004e454\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc6, 0x18004e456\nadd     rsp, 20h                                                       ; +0xcb, 0x18004e45b\npop     rdi                                                            ; +0xcf, 0x18004e45f\nretn                                                                   ; +0xd0, 0x18004e460", "xrefs": ["<???> @ 0x1800ec920", "<???> @ 0x1801067d0", "<???> @ 0x1801438a8", "<???> @ 0x1801b1c74"], "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"}