// // cocos2d::CCLabelTTF::init from 0x1800501d0 to 0x1800502a3 (211 bytes) // // 4 xrefs: // > @ 0x1800f2a50 // > @ 0x18010cea8 // > @ 0x18014cf68 // > @ 0x1801bbf08 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:45 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCLabelTTF::init(cocos2d::CCLabelTTF *this) { __int64 v2; // rbx cocos2d::CCShaderCache *v3; // rax struct cocos2d::CCGLProgram *v4; // rax float *v5; // rax _QWORD *v6; // rbx _QWORD *v7; // rax _QWORD *v9; // [rsp+38h] [rbp+10h] BYREF if ( !cocos2d::CCSprite::init(this) ) return 0; v2 = *(_QWORD *)this; v3 = cocos2d::CCShaderCache::sharedShaderCache(); v4 = cocos2d::CCShaderCache::programForKey(v3, "ShaderPositionTextureColor"); (*(void (__fastcall **)(cocos2d::CCLabelTTF *, struct cocos2d::CCGLProgram *))(v2 + 656))(this, v4); v5 = kmVec2Fill((float *)&v9, *(float *)&dword_1801B23E0, *(float *)&dword_1801B23E4); cocos2d::CCSize::operator=((_DWORD *)this + 152, v5); v6 = nullptr; *((_QWORD *)this + 77) = 0; v7 = (_QWORD *)sub_1800E4AC0(0x20u); v9 = v7; if ( v7 ) v6 = sub_180005A10(v7, "Helvetica"); *((_QWORD *)this + 78) = v6; *((_DWORD *)this + 158) = 1094713344; (**((void (__fastcall ***)(char *, const CHAR *))this + 75))((char *)this + 600, Text); return 1; }