//
// GameObject::setRotationX from 0x44beec to 0x44bfa6 (186 bytes)
//
// 1 xrefs:
// > ParticleGameObject::setRotationX @ 0x4e7b52
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:34 +0000
//
int __fastcall GameObject::setRotationX(int this, float a2)
{
int v2; // r4
int v4; // r0
int v5; // r0
float v6; // s15
bool v7; // r3
v2 = this;
if ( *(float *)(this + 52) != a2 )
{
*(_BYTE *)(this + 732) = 1;
*(_BYTE *)(this + 733) = 1;
*(_BYTE *)(this + 708) = 1;
CCSpritePlus::setRotationX((cocos2d::CCArray **)this, a2);
v4 = *(_DWORD *)(v2 + 640);
if ( v4 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v4 + 188))(v4, LODWORD(a2));
v5 = *(_DWORD *)(v2 + 756);
if ( v5 && !*(_BYTE *)(v2 + 734) )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 188))(v5, LODWORD(a2));
this = *(_DWORD *)(v2 + 660);
if ( this && !*(_BYTE *)(v2 + 928) )
this = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)this + 188))(this, LODWORD(a2));
v6 = *(float *)(v2 + 52);
v7 = v6 == 90.0 || v6 == -90.0 || v6 == 270.0 || v6 == -270.0;
*(_BYTE *)(v2 + 768) = v7;
}
return this;
}