//
// GJBaseGameLayer::processOptionsTrigger from 0x595c8c to 0x595dfa (366 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4b9e
//
// 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:08 +0000
//
GameManager *__fastcall GJBaseGameLayer::processOptionsTrigger(GameManager *this, GameOptionsTrigger *a2)
{
int v3; // r1
GameManager *v4; // r5
int v5; // r3
int v6; // r1
int v7; // r1
int v8; // r1
int v9; // r1
int v10; // r1
int v11; // r1
int v12; // r1
int v13; // r3
int v14; // r3
int v15; // r3
int v16; // r3
float v17; // s15
v3 = *((_DWORD *)a2 + 412);
v4 = this;
if ( v3 )
this = (GameManager *)GJBaseGameLayer::togglePlayerStreakBlend((int)this, v3 == 1, 0);
v5 = *((_DWORD *)a2 + 413);
if ( v5 )
*((_BYTE *)v4 + 1388) = v5 == 1;
v6 = *((_DWORD *)a2 + 414);
if ( v6 )
this = (GameManager *)(*(int (__fastcall **)(GameManager *, bool))(*(_DWORD *)v4 + 692))(v4, v6 != 1);
v7 = *((_DWORD *)a2 + 419);
if ( v7 )
this = (GameManager *)(*(int (__fastcall **)(GameManager *, bool))(*(_DWORD *)v4 + 696))(v4, v7 != 1);
v8 = *((_DWORD *)a2 + 415);
if ( v8 )
this = GJBaseGameLayer::togglePlayerVisibility(v4, v8 != 1, 1);
v9 = *((_DWORD *)a2 + 416);
if ( v9 )
this = GJBaseGameLayer::togglePlayerVisibility(v4, v9 != 1, 0);
v10 = *((_DWORD *)a2 + 417);
if ( v10 )
this = (GameManager *)GJBaseGameLayer::toggleLockPlayer(v4, v10 == 1, 1);
v11 = *((_DWORD *)a2 + 418);
if ( v11 )
this = (GameManager *)GJBaseGameLayer::toggleLockPlayer(v4, v11 == 1, 0);
v12 = *((_DWORD *)a2 + 420);
if ( v12 )
this = (GameManager *)(*(int (__fastcall **)(GameManager *, bool))(*(_DWORD *)v4 + 700))(v4, v12 == 1);
v13 = *((_DWORD *)a2 + 423);
if ( v13 )
*((_BYTE *)v4 + 1006) = v13 == 1;
v14 = *((_DWORD *)a2 + 424);
if ( v14 )
*((_BYTE *)v4 + 1012) = v14 == 1;
v15 = *((_DWORD *)a2 + 425);
if ( v15 )
{
*(_BYTE *)(*((_DWORD *)v4 + 519) + 2064) = v15 == 1;
this = (GameManager *)(*((_DWORD *)a2 + 425) - 1);
*(_BYTE *)(*((_DWORD *)v4 + 520) + 2064) = *((_DWORD *)a2 + 425) == 1;
}
v16 = *((_DWORD *)a2 + 421);
if ( v16 )
{
if ( v16 == 1 )
{
v17 = *((float *)a2 + 422);
if ( v17 <= 1.0 )
{
v17 = 1.0;
}
else if ( v17 >= 10.0 )
{
v17 = 10.0;
}
}
else
{
v17 = 0.0;
}
*((float *)v4 + 252) = v17;
}
return this;
}