//
// CCSpritePlus::setRotationY from 0x6c856c to 0x6c85d8 (108 bytes)
//
// 5 xrefs:
// > GameObject::setRotationY @ 0x76d608
// > ??> @ 0x8c308
// > ??> @ 0x14178e8
// > ??> @ 0x14218e8
// > ??> @ 0x14919c8
//
// 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 12:51:22 +0000
//
__int64 __fastcall CCSpritePlus::setRotationY(cocos2d::CCArray **this, float a2)
{
unsigned int v4; // w19
__int64 result; // x0
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
v4 = 0;
cocos2d::CCSprite::setRotationY((cocos2d::CCSprite *)this, a2);
result = *((unsigned __int8 *)this + 616);
if ( *((_BYTE *)this + 616) )
{
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 75));
v7 = v4 >= (unsigned int)result;
v8 = v4++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(*(this + 75), v8);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 392LL))(v6, a2);
}
}
return result;
}