//
// GameObject::setRotation from 0x76c964 to 0x76ca64 (256 bytes)
//
// 49 xrefs:
// > PlayerObject::setRotation @ 0x74dc70
// > RingObject::setRotation @ 0x86f58c
// > TeleportPortalObject::setRotation2 @ 0x86f590
// > TeleportPortalObject::setRotation @ 0x87029c
// > ParticleGameObject::setRotation @ 0x871db4
// > ??> @ 0xf7a98
// > ??> @ 0x14341f8
// > ??> @ 0x14349d8
// > ??> @ 0x14351e8
// > ??> @ 0x1443548
// > ??> @ 0x1443d58
// > ??> @ 0x1444568
// > ??> @ 0x1444d78
// > ??> @ 0x1445588
// > ??> @ 0x1445d98
// > ??> @ 0x14465a8
// > ??> @ 0x1446db8
// > ??> @ 0x1447da8
// > ??> @ 0x14495d8
// > ??> @ 0x1449e28
// > ??> @ 0x144a638
// > ??> @ 0x144ae48
// > ??> @ 0x144b658
// > ??> @ 0x144c688
// > ??> @ 0x144ce98
// > ??> @ 0x144d6a8
// > ??> @ 0x144deb8
// > ??> @ 0x144e6c8
// > ??> @ 0x144eed8
// > ??> @ 0x144f6e8
// > ??> @ 0x144fef8
// > ??> @ 0x1450708
// > ??> @ 0x1450f18
// > ??> @ 0x1451728
// > ??> @ 0x1451f38
// > ??> @ 0x1452748
// > ??> @ 0x1452f58
// > ??> @ 0x1453768
// > ??> @ 0x1453f78
// > ??> @ 0x1454788
// > ??> @ 0x1454f98
// > ??> @ 0x14557a8
// > ??> @ 0x1455fb8
// > ??> @ 0x14567c8
// > ??> @ 0x1456fd8
// > ??> @ 0x14577e8
// > ??> @ 0x1457ff8
// > ??> @ 0x1458808
// > ??> @ 0x1459038
//
// 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:53:11 +0000
//
__int64 __fastcall GameObject::setRotation(__int64 this, float a2)
{
__int64 v2; // x19
__int64 v4; // x0
__int64 v5; // x0
if ( *(float *)(this + 56) != a2 || *(float *)(this + 60) != a2 )
{
v2 = this;
*(_BYTE *)(this + 864) = 1;
*(_BYTE *)(this + 865) = 1;
*(_BYTE *)(this + 840) = 1;
CCSpritePlus::setRotation((cocos2d::CCArray **)this, a2);
v4 = *(_QWORD *)(v2 + 752);
if ( v4 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 360LL))(v4, a2);
v5 = *(_QWORD *)(v2 + 888);
if ( v5 && !*(_BYTE *)(v2 + 866) )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 360LL))(v5, a2);
this = *(_QWORD *)(v2 + 776);
if ( this && !*(_BYTE *)(v2 + 1064) )
this = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)this + 360LL))(this, a2);
if ( a2 == 90.0 || a2 == -90.0 || a2 == 270.0 || a2 == -270.0 )
{
*(_BYTE *)(v2 + 904) = 1;
return 1;
}
else
{
*(_BYTE *)(v2 + 904) = 0;
}
}
return this;
}