//
// GJBaseGameLayer::activatePlayerControlTrigger from 0x58f698 to 0x58f77e (230 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4b7c
//
// 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:04 +0000
//
char *__fastcall GJBaseGameLayer::activatePlayerControlTrigger(char *this, PlayerControlGameObject *a2, int a3)
{
char *v3; // r4
int v5; // r6
int v6; // r7
int v7; // r8
int v8; // r9
int v9; // r2
int v10; // r2
int v11; // r2
int v12; // r2
v3 = this;
v5 = *((unsigned __int8 *)a2 + 1505);
v6 = *((unsigned __int8 *)a2 + 1648);
v7 = *((unsigned __int8 *)a2 + 1649);
v8 = *((unsigned __int8 *)a2 + 1650);
if ( !*((_BYTE *)a2 + 1504) )
{
if ( *((_BYTE *)a2 + 1505) )
{
LABEL_3:
if ( v6 )
this = (char *)PlayerObject::releaseButton(*((_DWORD *)v3 + 520), 1, a3);
if ( v3[10614] && v7 )
{
PlayerObject::releaseButton(*((_DWORD *)v3 + 520), 5, a3);
PlayerObject::releaseButton(*((_DWORD *)v3 + 520), 2, v9);
this = (char *)PlayerObject::releaseButton(*((_DWORD *)v3 + 520), 3, v10);
}
if ( v8 )
this = PlayerObject::stopRotation(*((PlayerObject **)v3 + 520), 1, 0);
if ( *((_BYTE *)a2 + 1651) )
return (char *)PlayerObject::handlePlayerCommand(*((_DWORD *)v3 + 520), 543);
return this;
}
v5 = 1;
}
if ( *((_BYTE *)a2 + 1648) )
this = (char *)PlayerObject::releaseButton(*((_DWORD *)this + 519), 1, a3);
if ( v3[10614] && v7 )
{
PlayerObject::releaseButton(*((_DWORD *)v3 + 519), 5, a3);
PlayerObject::releaseButton(*((_DWORD *)v3 + 519), 2, v11);
this = (char *)PlayerObject::releaseButton(*((_DWORD *)v3 + 519), 3, v12);
}
if ( v8 )
this = PlayerObject::stopRotation(*((PlayerObject **)v3 + 519), 1, 0);
if ( *((_BYTE *)a2 + 1651) )
this = (char *)PlayerObject::handlePlayerCommand(*((_DWORD *)v3 + 519), 543);
if ( v5 )
goto LABEL_3;
return this;
}