//
// cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName from 0x5a6160 to 0x5a61b4 (84 bytes)
//
// 0 xrefs:
//
// 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
//
bool cocos2d::extension::CCScale9Sprite::initWithSpriteFrameName(
cocos2d::extension::CCScale9Sprite *a1,
const char *a2,
cocos2d::CCRect a3)
{
float x; // r9
cocos2d::CCSpriteFrameCache *v6; // r0
cocos2d::CCSpriteFrame *v7; // r0
cocos2d::CCSpriteFrame *v8; // r5
bool (__fastcall *initWithSpriteFrame)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteFrame *, cocos2d::CCRect); // r8
cocos2d::CCRect v11; // [sp+4h] [bp-18h] BYREF
x = a3.origin.x;
cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, a2);
v8 = v7;
if ( v7 )
{
initWithSpriteFrame = a1->initWithSpriteFrame;
cocos2d::CCRect::CCRect(&v11, (const cocos2d::CCRect *)LODWORD(x));
LOBYTE(v7) = ((bool (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteFrame *, cocos2d::CCRect *))initWithSpriteFrame)(
a1,
v8,
&v11);
}
return (char)v7;
}