//
// GameObject::setRotationX from 0x140295120 to 0x140295268 (328 bytes)
//
// 49 xrefs:
// > ??> @ 0x1407547d8
// > ??> @ 0x140754f58
// > ??> @ 0x14075e320
// > ??> @ 0x14075ea28
// > ??> @ 0x1407d4938
// > ??> @ 0x14081f560
// > ??> @ 0x14081fda8
// > ??> @ 0x140820500
// > ??> @ 0x140820bb8
// > ??> @ 0x140821320
// > ??> @ 0x1408219d8
// > ??> @ 0x1408220b8
// > ??> @ 0x140822770
// > ??> @ 0x140823080
// > ??> @ 0x1408237c8
// > ??> @ 0x140823e80
// > ??> @ 0x140824678
// > ??> @ 0x140824d30
// > ??> @ 0x1408253e8
// > ??> @ 0x140825c58
// > ??> @ 0x140826450
// > ??> @ 0x140826bf8
// > ??> @ 0x140827328
// > ??> @ 0x1408279e0
// > ??> @ 0x140828138
// > ??> @ 0x140828980
// > ??> @ 0x140829038
// > ??> @ 0x1408297b8
// > ??> @ 0x140829f38
// > ??> @ 0x14082a5f0
// > ??> @ 0x14082aca8
// > ??> @ 0x14082b6b8
// > ??> @ 0x14082bde8
// > ??> @ 0x14082c4a0
// > ??> @ 0x14082cb58
// > ??> @ 0x14082d210
// > ??> @ 0x14082d9e0
// > ??> @ 0x14082e188
// > ??> @ 0x14082e840
// > ??> @ 0x14082eef8
// > ??> @ 0x14082f5b0
// > ??> @ 0x14082fc68
// > ??> @ 0x140830320
// > ??> @ 0x1408309d8
// > ??> @ 0x1408311f8
// > ??> @ 0x140831978
// > ??> @ 0x1408af168
// > ??> @ 0x1408af178
// > ??> @ 0x14091d48c
//
// This function is hookable on this platform (idp: pc, 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:29:10 +0000
//
void __fastcall GameObject::setRotationX(__int64 a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rcx
float v8; // xmm0_4
if ( *(float *)(a1 + 56) != a2 )
{
*(_WORD *)(a1 + 872) = 257;
*(_BYTE *)(a1 + 848) = 1;
cocos2d::CCSprite::setRotationX((cocos2d::CCSprite *)a1, a2);
if ( *(_BYTE *)(a1 + 616) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 368LL))(v4);
}
}
v5 = *(_QWORD *)(a1 + 752);
if ( v5 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 368LL))(v5);
v6 = *(_QWORD *)(a1 + 896);
if ( v6 && !*(_BYTE *)(a1 + 874) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 368LL))(v6);
v7 = *(_QWORD *)(a1 + 776);
if ( v7 && !*(_BYTE *)(a1 + 1072) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 368LL))(v7);
v8 = *(float *)(a1 + 56);
*(_BYTE *)(a1 + 912) = v8 == 90.0 || v8 == -90.0 || v8 == 270.0 || v8 == -270.0;
}
}