//
// cocos2d::CCSpriteFrameCache::init from 0x180091970 to 0x180091a18 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache @ 0x180092807
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6354
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=3
char __fastcall cocos2d::CCSpriteFrameCache::init(cocos2d::CCSpriteFrameCache *this)
{
cocos2d::CCDictionary *v2; // rax
cocos2d::CCDictionary *v3; // rax
_QWORD *v4; // rax
_QWORD *v5; // rbx
_QWORD *v6; // rax
v2 = (cocos2d::CCDictionary *)operator new(0x48u);
if ( v2 )
v2 = cocos2d::CCDictionary::CCDictionary(v2);
*((_QWORD *)this + 7) = v2;
v3 = (cocos2d::CCDictionary *)operator new(0x48u);
if ( v3 )
v3 = cocos2d::CCDictionary::CCDictionary(v3);
*((_QWORD *)this + 8) = v3;
v4 = operator new(0x10u);
v5 = v4;
if ( v4 )
{
*v4 = 0;
v4[1] = 0;
v6 = operator new(0x40u);
*v6 = v6;
v6[1] = v6;
v6[2] = v6;
*((_WORD *)v6 + 12) = 257;
*v5 = v6;
}
else
{
v5 = nullptr;
}
*((_QWORD *)this + 9) = v5;
return 1;
}