//
// cocos2d::extension::CCScale9Sprite::initWithFile from 0xd13938 to 0xd139e4 (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x5f350
// > ??> @ 0x150dad0
//
// 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:04 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::initWithFile(
__int64 a1,
cocos2d::CCSpriteBatchNode *a2,
const cocos2d::CCRect *a3,
const cocos2d::CCRect *a4)
{
__int64 v5; // x24
__int64 (__fastcall *v6)(__int64, __int64, _BYTE *, _BYTE *); // x23
_BYTE v10[16]; // [xsp+58h] [xbp+58h] BYREF
_BYTE v11[16]; // [xsp+68h] [xbp+68h] BYREF
v5 = cocos2d::CCSpriteBatchNode::create(a2, byte_9, (unsigned int)a3);
v6 = *(__int64 (__fastcall **)(__int64, __int64, _BYTE *, _BYTE *))(*(_QWORD *)a1 + 1112LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, a3);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a4);
return v6(a1, v5, v10, v11);
}