//
// CCSpritePlus::setFlipY from 0x10024dbb0 to 0x10024dc68 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x1008c8380
// > ??> @ 0x10090abf0
// > ??> @ 0x100947e68
//
// 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:01:30 +0000
//
__int64 __fastcall CCSpritePlus::setFlipY(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x0
__int64 v7; // x21
__int64 v8; // x0
result = cocos2d::CCSprite::setFlipY(a1, a2);
if ( *(_BYTE *)(a1 + 618) == 1 )
{
result = *(_QWORD *)(a1 + 208);
if ( result )
{
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 208), v5);
cocos2d::CCSprite::setFlipY(v6, a2);
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 208));
}
while ( (unsigned int)v5 < (unsigned int)result );
}
}
}
if ( *(_BYTE *)(a1 + 616) == 1 )
{
result = sub_1002E757C(*(_QWORD *)(a1 + 600));
if ( (_DWORD)result )
{
v7 = 0;
do
{
v8 = sub_1002E75A0(*(_QWORD *)(a1 + 600), v7);
cocos2d::CCSprite::setFlipY(v8, a2);
v7 = (unsigned int)(v7 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 600));
}
while ( (unsigned int)v7 < (unsigned int)result );
}
}
return result;
}