// // cocos2d::CCLabelTTF::initWithString from 0xd5b66c to 0xd5b7a0 (308 bytes) // // 4 xrefs: // > cocos2d::CCLabelTTF::create @ 0xd5b7fc // > cocos2d::CCLabelTTF::initWithString @ 0xd5b874 // > cocos2d::CCLabelTTF::initWithString @ 0xd5b88c // > @ 0x73330 // // This function is hookable on this platform (idp: arm, 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 13:07:46 +0000 // __int64 __fastcall cocos2d::CCLabelTTF::initWithString( float *a1, __int64 a2, char *a3, float *a4, int a5, int a6, float a7) { unsigned __int8 v14; // w0 unsigned int v15; // w21 void (__fastcall *v16)(float *, __int64); // x28 cocos2d::CCShaderCache *v17; // x0 __int64 v18; // x0 __int64 *v19; // x22 size_t v20; // x0 cocos2d::CCShaderCache *v21; // x2 float v23; // [xsp+80h] [xbp+80h] BYREF v14 = cocos2d::CCSprite::init((cocos2d::CCSprite *)a1); v15 = v14; if ( v14 ) { v16 = *(void (__fastcall **)(float *, __int64))(*(_QWORD *)a1 + 664LL); v17 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(*(cocos2d::CCShaderCache **)a1); v18 = cocos2d::CCShaderCache::programForKey(v17, "ShaderPositionTextureColor"); v16(a1, v18); cocos2d::CCSize::CCSize(&v23, *a4, a4[1]); cocos2d::CCSize::operator=(a1 + 152, &v23); *((_DWORD *)a1 + 154) = a5; *((_DWORD *)a1 + 155) = a6; v19 = (__int64 *)operator new(0x18u); *v19 = 0; v19[1] = 0; v19[2] = 0; v20 = strlen(a3); std::string::__init(v19, a3, v20); *((_QWORD *)a1 + 78) = v19; v21 = *(cocos2d::CCShaderCache **)a1; a1[158] = a7; (*((void (__fastcall **)(float *, __int64))v21 + 155))(a1, a2); } return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source