//
// cocos2d::extension::CCScale9Sprite::initWithFile from 0x5a6020 to 0x5a6076 (86 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::initWithFile(
cocos2d::extension::CCScale9Sprite *a1,
const char *a2,
cocos2d::CCRect a3,
cocos2d::CCRect a4)
{
float y; // r10
float x; // r5
cocos2d::CCSpriteBatchNode *v7; // r0
bool (__fastcall *initWithBatchNode_0)(cocos2d::extension::CCScale9Sprite *__hidden, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect, cocos2d::CCRect); // r8
cocos2d::CCSpriteBatchNode *v9; // r9
cocos2d::CCRect v11; // [sp+4h] [bp-24h] BYREF
cocos2d::CCRect v12; // [sp+14h] [bp-14h] BYREF
y = a3.origin.y;
x = a3.origin.x;
v7 = cocos2d::CCSpriteBatchNode::create(a2, (unsigned int)byte_9);
initWithBatchNode_0 = a1->initWithBatchNode_0;
v9 = v7;
cocos2d::CCRect::CCRect(&v11, (const cocos2d::CCRect *)LODWORD(x));
cocos2d::CCRect::CCRect(&v12, (const cocos2d::CCRect *)LODWORD(y));
return ((bool (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, cocos2d::CCRect *, cocos2d::CCRect *))initWithBatchNode_0)(
a1,
v9,
&v11,
&v12);
}