//
// cocos2d::extension::CCScale9Sprite::initWithBatchNode from 0x7ab23c to 0x7ab2b0 (116 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:02 +0000
//
int __fastcall cocos2d::extension::CCScale9Sprite::initWithBatchNode(
_BYTE *a1,
int a2,
const cocos2d::CCRect *a3,
int a4,
const cocos2d::CCRect *a5)
{
void (__fastcall *v8)(_BYTE *, int, _BYTE *, int, _BYTE *); // r9
void (__fastcall *v9)(_BYTE *, _BYTE *); // r7
_BYTE v11[16]; // [sp+Ch] [bp+0h] BYREF
_BYTE v12[16]; // [sp+1Ch] [bp+10h] BYREF
if ( a2 )
{
v8 = *(void (__fastcall **)(_BYTE *, int, _BYTE *, int, _BYTE *))(*(_DWORD *)a1 + 592);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, a3);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, a5);
v8(a1, a2, v11, a4, v12);
v9 = *(void (__fastcall **)(_BYTE *, _BYTE *))(*(_DWORD *)a1 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.5, 0.5);
v9(a1, v12);
}
a1[368] = 1;
return 1;
}