//
// cocos2d::extension::CCScale9Sprite::initWithBatchNode from 0x18000d740 to 0x18000d802 (194 bytes)
//
// 5 xrefs:
// > ??> @ 0x180029f78
// > ??> @ 0x180030650
// > ??> @ 0x180030660
// > ??> @ 0x180032408
// > ??> @ 0x18004bd5c
//
// This function is hookable on this platform (idp: pc, 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 12:15:38 +0000
//
char __fastcall cocos2d::extension::CCScale9Sprite::initWithBatchNode(
__int64 *a1,
__int64 a2,
const struct cocos2d::CCRect *a3,
unsigned __int8 a4,
const struct cocos2d::CCRect *a5)
{
__int64 v9; // rdi
__int64 v10; // rbx
__int64 v11; // rax
__int64 v12; // rbx
__int64 v13; // rax
__int64 v15; // [rsp+30h] [rbp-38h] BYREF
_BYTE v16[40]; // [rsp+40h] [rbp-28h] BYREF
char v17; // [rsp+70h] [rbp+8h] BYREF
if ( a2 )
{
v9 = *a1;
v10 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v15, a5);
v11 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, a3);
(*(void (__fastcall **)(__int64 *, __int64, __int64, _QWORD, __int64))(v9 + 1064))(a1, a2, v11, a4, v10);
v12 = *a1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, 0.5, 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v12 + 288))(a1, v13);
*((_BYTE *)a1 + 432) = 1;
}
else
{
*((_BYTE *)a1 + 432) = 1;
}
return 1;
}