//
// cocos2d::CCSpriteBatchNode::reorderChild from 0xd89c34 to 0xd89ca4 (112 bytes)
//
// 5 xrefs:
// > ??> @ 0xf5c20
// > ??> @ 0x1415160
// > ??> @ 0x15185d0
// > ??> @ 0x152eb90
// > ??> @ 0x1530bf0
//
// 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:08:15 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::reorderChild(
cocos2d::CCArray **this,
cocos2d::CCNode *a2,
unsigned int a3)
{
__int64 result; // x0
unsigned int v6; // [xsp+28h] [xbp+28h]
unsigned int v7; // [xsp+28h] [xbp+28h]
if ( !*((_BYTE *)this + 312) )
{
v7 = a3;
cocos2d::CCArray::containsObject(*(this + 26), a2);
a3 = v7;
}
v6 = a3;
result = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 104LL))(a2);
if ( (_DWORD)result != v6 )
return cocos2d::CCNode::reorderChild((cocos2d::CCNode *)this, a2, v6);
return result;
}