//
// sub_1002C164C from 0x1002c164c to 0x1002c16c0 (116 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkRepellPlayer @ 0x10029b8c0
// > sub_1002C1504 @ 0x1002c1520
//
// 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:30 +0000
//
void __fastcall sub_1002C164C(__int64 a1)
{
double v2; // d0
double v3; // d1
PlayerObject::flipGravity(a1, (*(_BYTE *)(a1 + 2423) & 1) == 0, 1);
v2 = -2.0;
if ( *(_BYTE *)(a1 + 2423) )
v2 = 2.0;
v3 = (double)(int)v2;
if ( v2 != v3 )
v2 = round((v2 - v3) * 1000.0) / 1000.0 + v3;
*(double *)(a1 + 2392) = v2;
}