//
// GameObject::setRotationY from 0x1002f86a4 to 0x1002f8754 (176 bytes)
//
// 48 xrefs:
// > ParticleGameObject::setRotationY @ 0x100427c54
// > ??> @ 0x10091c250
// > ??> @ 0x1009284d0
// > ??> @ 0x100928cc8
// > ??> @ 0x1009294e8
// > ??> @ 0x10094d4a8
// > ??> @ 0x10094dcf0
// > ??> @ 0x10094e4f8
// > ??> @ 0x10094ed00
// > ??> @ 0x10094f508
// > ??> @ 0x10094fd10
// > ??> @ 0x100950518
// > ??> @ 0x100950d20
// > ??> @ 0x100951d38
// > ??> @ 0x1009525b0
// > ??> @ 0x100952dd0
// > ??> @ 0x1009535f0
// > ??> @ 0x100953e10
// > ??> @ 0x100954630
// > ??> @ 0x100954e50
// > ??> @ 0x100955670
// > ??> @ 0x100955e90
// > ??> @ 0x1009566b0
// > ??> @ 0x100956ed0
// > ??> @ 0x100957708
// > ??> @ 0x100957f70
// > ??> @ 0x1009587a8
// > ??> @ 0x100958fe0
// > ??> @ 0x100959818
// > ??> @ 0x10095a050
// > ??> @ 0x10095a870
// > ??> @ 0x10095b090
// > ??> @ 0x10095b8b0
// > ??> @ 0x10095c0d0
// > ??> @ 0x10095c8f0
// > ??> @ 0x10095d110
// > ??> @ 0x10095d930
// > ??> @ 0x10095e150
// > ??> @ 0x10095e970
// > ??> @ 0x10095f190
// > ??> @ 0x10095f9b0
// > ??> @ 0x1009601d0
// > ??> @ 0x1009609f0
// > ??> @ 0x100961210
// > ??> @ 0x100961a30
// > ??> @ 0x100962250
// > ??> @ 0x100962a70
// > ??> @ 0x10096de70
//
// 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:03:00 +0000
//
__int64 __fastcall GameObject::setRotationY(__int64 result, float a2)
{
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x0
if ( *(float *)(result + 60) != a2 )
{
v3 = result;
*(_WORD *)(result + 864) = 257;
*(_BYTE *)(result + 840) = 1;
CCSpritePlus::setRotationY(result, a2);
v4 = *(_QWORD *)(v3 + 752);
if ( v4 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 392LL))(v4, a2);
v5 = *(_QWORD *)(v3 + 888);
if ( v5 && (*(_BYTE *)(v3 + 866) & 1) == 0 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 392LL))(v5, a2);
result = *(_QWORD *)(v3 + 776);
if ( result )
{
if ( (*(_BYTE *)(v3 + 1064) & 1) == 0 )
return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)result + 392LL))(result, a2);
}
}
return result;
}