//
// GJBaseGameLayer::triggerGravityChange from 0x590728 to 0x59076c (68 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4e56
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:05 +0000
//
int __fastcall GJBaseGameLayer::triggerGravityChange(int this, EffectGameObject *a2, int a3)
{
int v3; // r3
if ( *((_BYTE *)a2 + 1506) )
{
if ( a3 == 1 )
{
v3 = *(_DWORD *)(this + 2076);
LABEL_10:
*(_DWORD *)(v3 + 2340) = *((_DWORD *)a2 + 388);
return this;
}
if ( a3 != 2 )
return this;
LABEL_9:
v3 = *(_DWORD *)(this + 2080);
goto LABEL_10;
}
if ( !*((_BYTE *)a2 + 1505) )
*(_DWORD *)(*(_DWORD *)(this + 2076) + 2340) = *((_DWORD *)a2 + 388);
if ( !*((_BYTE *)a2 + 1504) )
goto LABEL_9;
return this;
}