//
// CCSpritePlus::setRotation from 0x6c8494 to 0x6c8500 (108 bytes)
//
// 5 xrefs:
// > GameObject::setRotation @ 0x76c9a4
// > ??> @ 0x7efe8
// > ??> @ 0x14178c8
// > ??> @ 0x14218c8
// > ??> @ 0x14919a8
//
// 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::setRotation(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::setRotation((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 + 360LL))(v6, a2);
}
}
return result;
}