//
// GJBaseGameLayer::triggerGravityChange from 0x10028d93c to 0x10028d994 (88 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x10042c320
//
// 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:01 +0000
//
float __fastcall GJBaseGameLayer::triggerGravityChange(__int64 a1, __int64 a2, int a3)
{
float result; // s0
__int64 v4; // x8
if ( *(_BYTE *)(a2 + 1686) == 1 )
{
if ( a3 == 1 )
{
v4 = 3256;
goto LABEL_10;
}
if ( a3 != 2 )
return result;
LABEL_8:
v4 = 3264;
LABEL_10:
result = *(float *)(a2 + 1736);
*(float *)(*(_QWORD *)(a1 + v4) + 2852LL) = result;
return result;
}
if ( (*(_BYTE *)(a2 + 1685) & 1) == 0 )
{
result = *(float *)(a2 + 1736);
*(float *)(*(_QWORD *)(a1 + 3256) + 2852LL) = result;
}
if ( (*(_BYTE *)(a2 + 1684) & 1) == 0 )
goto LABEL_8;
return result;
}