//
// GameObject::setRotationX from 0x1002f85d8 to 0x1002f86a4 (204 bytes)
//
// 48 xrefs:
// > ParticleGameObject::setRotationX @ 0x100427c04
// > ??> @ 0x10091c240
// > ??> @ 0x1009284c0
// > ??> @ 0x100928cb8
// > ??> @ 0x1009294d8
// > ??> @ 0x10094d498
// > ??> @ 0x10094dce0
// > ??> @ 0x10094e4e8
// > ??> @ 0x10094ecf0
// > ??> @ 0x10094f4f8
// > ??> @ 0x10094fd00
// > ??> @ 0x100950508
// > ??> @ 0x100950d10
// > ??> @ 0x100951d28
// > ??> @ 0x1009525a0
// > ??> @ 0x100952dc0
// > ??> @ 0x1009535e0
// > ??> @ 0x100953e00
// > ??> @ 0x100954620
// > ??> @ 0x100954e40
// > ??> @ 0x100955660
// > ??> @ 0x100955e80
// > ??> @ 0x1009566a0
// > ??> @ 0x100956ec0
// > ??> @ 0x1009576f8
// > ??> @ 0x100957f60
// > ??> @ 0x100958798
// > ??> @ 0x100958fd0
// > ??> @ 0x100959808
// > ??> @ 0x10095a040
// > ??> @ 0x10095a860
// > ??> @ 0x10095b080
// > ??> @ 0x10095b8a0
// > ??> @ 0x10095c0c0
// > ??> @ 0x10095c8e0
// > ??> @ 0x10095d100
// > ??> @ 0x10095d920
// > ??> @ 0x10095e140
// > ??> @ 0x10095e960
// > ??> @ 0x10095f180
// > ??> @ 0x10095f9a0
// > ??> @ 0x1009601c0
// > ??> @ 0x1009609e0
// > ??> @ 0x100961200
// > ??> @ 0x100961a20
// > ??> @ 0x100962240
// > ??> @ 0x100962a60
// > ??> @ 0x10096de60
//
// 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::setRotationX(__int64 result, float a2)
{
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x0
if ( *(float *)(result + 56) != a2 )
{
v3 = result;
*(_WORD *)(result + 864) = 257;
*(_BYTE *)(result + 840) = 1;
CCSpritePlus::setRotationX(result, a2);
v4 = *(_QWORD *)(v3 + 752);
if ( v4 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 376LL))(v4, a2);
v5 = *(_QWORD *)(v3 + 888);
if ( v5 && (*(_BYTE *)(v3 + 866) & 1) == 0 )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 376LL))(v5, a2);
result = *(_QWORD *)(v3 + 776);
if ( result )
{
if ( (*(_BYTE *)(v3 + 1064) & 1) == 0 )
result = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)result + 376LL))(result, a2);
}
*(_BYTE *)(v3 + 904) = vmaxv_u16((uint16x4_t)vmovn_s32(
vceqq_f32(
vld1q_dup_f32((const float *)(v3 + 56)),
(float32x4_t)xmmword_10076B800)))
& 1;
}
return result;
}