//
// cocos2d::extension::CCScale9Sprite::initWithBatchNode_1 from 0x1002147d8 to 0x10021487c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007c32b0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall cocos2d::extension::CCScale9Sprite::initWithBatchNode_1(
cocos2d::extension::CCScale9Sprite *a1,
cocos2d::CCSpriteBatchNode *a2,
cocos2d::CCRect a3,
bool a4,
cocos2d::CCRect a5)
{
__int64 v5; // x3
__int64 v6; // x4
__int64 v8; // x22
__int64 v9; // x20
double v11; // d0
__n128 v12; // q0
__n128 v13; // q1
_QWORD v15[2]; // [xsp+0h] [xbp-40h] BYREF
_QWORD v16[2]; // [xsp+10h] [xbp-30h] BYREF
if ( a2 )
{
v8 = v6;
v9 = v5;
sub_100022B98(v16, a4);
v11 = sub_100022B98(v15, v8);
v12 = ((__n128 (__fastcall *)(cocos2d::extension::CCScale9Sprite *, cocos2d::CCSpriteBatchNode *, _QWORD *, __int64, _QWORD *, double))a1->updateWithBatchNode)(
a1,
a2,
v16,
v9,
v15,
v11);
v12.n128_u32[0] = 0.5;
v13.n128_u32[0] = 0.5;
sub_100022980(v12, v13, v16);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD *))a1->setAnchorPoint)(a1, v16);
}
a1->m_positionsAreDirty = 1;
return 1;
}