//
// GameObject::setFlipX from 0x1002f8764 to 0x1002f87b0 (76 bytes)
//
// 48 xrefs:
// > PlayerObject::setFlipX @ 0x1002cb4ac
// > ??> @ 0x100928820
// > ??> @ 0x100929018
// > ??> @ 0x100929838
// > ??> @ 0x10094d7f8
// > ??> @ 0x10094e040
// > ??> @ 0x10094e848
// > ??> @ 0x10094f050
// > ??> @ 0x10094f858
// > ??> @ 0x100950060
// > ??> @ 0x100950868
// > ??> @ 0x100951070
// > ??> @ 0x100951868
// > ??> @ 0x100952088
// > ??> @ 0x100952900
// > ??> @ 0x100953120
// > ??> @ 0x100953940
// > ??> @ 0x100954160
// > ??> @ 0x100954980
// > ??> @ 0x1009551a0
// > ??> @ 0x1009559c0
// > ??> @ 0x1009561e0
// > ??> @ 0x100956a00
// > ??> @ 0x100957220
// > ??> @ 0x100957a58
// > ??> @ 0x1009582c0
// > ??> @ 0x100958af8
// > ??> @ 0x100959330
// > ??> @ 0x100959b68
// > ??> @ 0x10095a3a0
// > ??> @ 0x10095abc0
// > ??> @ 0x10095b3e0
// > ??> @ 0x10095bc00
// > ??> @ 0x10095c420
// > ??> @ 0x10095cc40
// > ??> @ 0x10095d460
// > ??> @ 0x10095dc80
// > ??> @ 0x10095e4a0
// > ??> @ 0x10095ecc0
// > ??> @ 0x10095f4e0
// > ??> @ 0x10095fd00
// > ??> @ 0x100960520
// > ??> @ 0x100960d40
// > ??> @ 0x100961560
// > ??> @ 0x100961d80
// > ??> @ 0x1009625a0
// > ??> @ 0x100962dc0
// > ??> @ 0x10096e1c0
//
// 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
//
_BYTE *__fastcall GameObject::setFlipX(_BYTE *result, int a2)
{
_BYTE *v2; // x19
float v3; // s0
if ( (unsigned __int8)result[709] != a2 )
{
v2 = result;
result[709] = a2;
v3 = (*(float (__fastcall **)(_BYTE *))(*(_QWORD *)result + 136LL))(result);
return (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *, float))(*(_QWORD *)v2 + 128LL))(v2, -v3);
}
return result;
}