//
// cocos2d::CCSprite::reorderChild from 0x1002d5148 to 0x1002d51dc (148 bytes)
//
// 77 xrefs:
// > ??> @ 0x1008aeac0
// > ??> @ 0x1008bffc0
// > ??> @ 0x1008c0918
// > ??> @ 0x1008c1b28
// > ??> @ 0x1008c40f0
// > ??> @ 0x1008c7b40
// > ??> @ 0x1008c80f0
// > ??> @ 0x1008d43b0
// > ??> @ 0x1008dfeb8
// > ??> @ 0x1008eec28
// > ??> @ 0x100903fa0
// > ??> @ 0x100904568
// > ??> @ 0x10090a960
// > ??> @ 0x100910790
// > ??> @ 0x1009119a0
// > ??> @ 0x10091c318
// > ??> @ 0x10091cb60
// > ??> @ 0x10091fb68
// > ??> @ 0x100920668
// > ??> @ 0x100921ee8
// > ??> @ 0x1009224b0
// > ??> @ 0x100928598
// > ??> @ 0x100928d90
// > ??> @ 0x1009295b0
// > ??> @ 0x10093cb90
// > ??> @ 0x1009423d8
// > ??> @ 0x1009429a0
// > ??> @ 0x1009446d0
// > ??> @ 0x100944c68
// > ??> @ 0x100947bd8
// > ??> @ 0x10094d570
// > ??> @ 0x10094ddb8
// > ??> @ 0x10094e5c0
// > ??> @ 0x10094edc8
// > ??> @ 0x10094f5d0
// > ??> @ 0x10094fdd8
// > ??> @ 0x1009505e0
// > ??> @ 0x100950de8
// > ??> @ 0x1009515e0
// > ??> @ 0x100951e00
// > ??> @ 0x100952678
// > ??> @ 0x100952e98
// > ??> @ 0x1009536b8
// > ??> @ 0x100953ed8
// > ??> @ 0x1009546f8
// > ??> @ 0x100954f18
// > ??> @ 0x100955738
// > ??> @ 0x100955f58
// > ??> @ 0x100956778
// > ??> @ 0x100956f98
// > ??> @ 0x1009577d0
// > ??> @ 0x100958038
// > ??> @ 0x100958870
// > ??> @ 0x1009590a8
// > ??> @ 0x1009598e0
// > ??> @ 0x10095a118
// > ??> @ 0x10095a938
// > ??> @ 0x10095b158
// > ??> @ 0x10095b978
// > ??> @ 0x10095c198
// > ??> @ 0x10095c9b8
// > ??> @ 0x10095d1d8
// > ??> @ 0x10095d9f8
// > ??> @ 0x10095e218
// > ??> @ 0x10095ea38
// > ??> @ 0x10095f258
// > ??> @ 0x10095fa78
// > ??> @ 0x100960298
// > ??> @ 0x100960ab8
// > ??> @ 0x1009612d8
// > ??> @ 0x100961af8
// > ??> @ 0x100962318
// > ??> @ 0x100962b38
// > ??> @ 0x100963af0
// > ??> @ 0x100969f08
// > ??> @ 0x10096df38
// > ??> @ 0x10098c8f0
//
// 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 11:02:40 +0000
//
__int64 __fastcall cocos2d::CCSprite::reorderChild(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
sub_1002E7638(*(_QWORD *)(a1 + 208));
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 104LL))(a2);
if ( (_DWORD)result != (_DWORD)a3 )
{
if ( *(_QWORD *)(a1 + 368) )
{
if ( (*(_BYTE *)(a1 + 288) & 1) == 0 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1224LL))(a1);
cocos2d::CCSpriteBatchNode::reorderBatch(*(_QWORD *)(a1 + 368), 1);
}
}
return cocos2d::CCNode::reorderChild(a1, a2, a3);
}
return result;
}