//
// GameObject::setRotationX from 0x76d4ac to 0x76d5b4 (264 bytes)
//
// 49 xrefs:
// > ParticleGameObject::setRotationX @ 0x871e00
// > ??> @ 0x67960
// > ??> @ 0x1433418
// > ??> @ 0x1434208
// > ??> @ 0x14349e8
// > ??> @ 0x14351f8
// > ??> @ 0x1443558
// > ??> @ 0x1443d68
// > ??> @ 0x1444578
// > ??> @ 0x1444d88
// > ??> @ 0x1445598
// > ??> @ 0x1445da8
// > ??> @ 0x14465b8
// > ??> @ 0x1446dc8
// > ??> @ 0x1447db8
// > ??> @ 0x14485c8
// > ??> @ 0x1448dd8
// > ??> @ 0x14495e8
// > ??> @ 0x1449e38
// > ??> @ 0x144a648
// > ??> @ 0x144ae58
// > ??> @ 0x144b668
// > ??> @ 0x144be78
// > ??> @ 0x144c698
// > ??> @ 0x144cea8
// > ??> @ 0x144d6b8
// > ??> @ 0x144dec8
// > ??> @ 0x144e6d8
// > ??> @ 0x144eee8
// > ??> @ 0x144f6f8
// > ??> @ 0x144ff08
// > ??> @ 0x1450718
// > ??> @ 0x1450f28
// > ??> @ 0x1451738
// > ??> @ 0x1451f48
// > ??> @ 0x1452758
// > ??> @ 0x1452f68
// > ??> @ 0x1453778
// > ??> @ 0x1453f88
// > ??> @ 0x1454798
// > ??> @ 0x1454fa8
// > ??> @ 0x14557b8
// > ??> @ 0x1455fc8
// > ??> @ 0x14567d8
// > ??> @ 0x1456fe8
// > ??> @ 0x14577f8
// > ??> @ 0x1458008
// > ??> @ 0x1458818
// > ??> @ 0x1459048
//
// 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::setRotationX(__int64 this, float a2)
{
__int64 v2; // x19
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
float v7; // s0
v2 = this;
if ( *(float *)(this + 56) != a2 )
{
*(_BYTE *)(this + 864) = 1;
*(_BYTE *)(this + 865) = 1;
*(_BYTE *)(this + 840) = 1;
CCSpritePlus::setRotationX((cocos2d::CCArray **)this, a2);
v4 = *(_QWORD *)(v2 + 752);
if ( v4 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 376LL))(v4, a2);
v5 = *(_QWORD *)(v2 + 888);
if ( v5 && !*(_BYTE *)(v2 + 866) )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 376LL))(v5, a2);
v6 = *(_QWORD *)(v2 + 776);
if ( v6 && !*(_BYTE *)(v2 + 1064) )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 376LL))(v6, a2);
v7 = *(float *)(v2 + 56);
this = (v7 == 270.0) | (v7 == 90.0) | (unsigned int)(v7 == -90.0);
if ( (_DWORD)this || v7 == -270.0 )
{
*(_BYTE *)(v2 + 904) = 1;
return 1;
}
else
{
*(_BYTE *)(v2 + 904) = 0;
}
}
return this;
}