//
// PlayerObject::reversePlayer from 0x1002c5b38 to 0x1002c5c10 (216 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::bumpPlayer @ 0x10028488c
// > GJBaseGameLayer::gravBumpPlayer @ 0x100284988
// > GJBaseGameLayer::reverseDirection @ 0x1002864c4
// > GJBaseGameLayer::reverseDirection @ 0x1002864e4
// > PlayerObject::ringJump @ 0x1002c4e90
//
// 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:02:33 +0000
//
__int64 __fastcall PlayerObject::reversePlayer(__int64 result, __int64 a2, __n128 a3)
{
__int64 v3; // x19
float32x2_t *v4; // x20
float v5; // s0
float32x2_t *v6; // x8
float32x2_t v7; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v8; // [xsp+8h] [xbp-28h] BYREF
float32x2_t v9; // [xsp+10h] [xbp-20h] BYREF
float32x2_t v10; // [xsp+18h] [xbp-18h] BYREF
if ( (*(_BYTE *)(result + 2832) & 1) == 0 )
{
v3 = result;
if ( a2 && *(_BYTE *)(result + 1370) == 1 )
{
(*(void (__fastcall **)(float32x2_t *__return_ptr, __int64))(*(_QWORD *)a2 + 1360LL))(&v9, a2);
v4 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
v5 = *(double *)(v3 + 2440);
sub_1000262BC((float *)&v7, v5, v5);
sub_100026318(v4, &v7, &v8);
sub_10002632C(&v9, &v8, &v10);
if ( *(_BYTE *)(v3 + 2427) )
v6 = (float32x2_t *)((char *)&v10 + 4);
else
v6 = &v10;
a3.n128_f64[0] = *(double *)(v3 + 2440) + (float)(v6->f32[0] + v6->f32[0]);
*(_QWORD *)(v3 + 2440) = a3.n128_u64[0];
}
return PlayerObject::doReversePlayer(v3, (*(_BYTE *)(v3 + 2426) & 1) == 0, a3);
}
return result;
}