//
// GJBaseGameLayer::processOptionsTrigger from 0x9a83d8 to 0x9a85b0 (472 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x89825c
// > ??> @ 0xe0ff8
//
// 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 12:58:11 +0000
//
__int64 __fastcall GJBaseGameLayer::processOptionsTrigger(GJBaseGameLayer *this, GameOptionsTrigger *a2)
{
int v4; // w1
int v5; // w0
int v6; // w0
int v7; // w0
int v8; // w0
int v9; // w0
int v10; // w0
int v11; // w0
int v12; // w0
int v13; // w0
int v14; // w0
int v15; // w0
__int64 result; // x0
float v17; // s0
v4 = *((_DWORD *)a2 + 460);
if ( v4 )
GJBaseGameLayer::togglePlayerStreakBlend((__int64)this, v4 == 1, 0);
v5 = *((_DWORD *)a2 + 461);
if ( v5 )
*((_BYTE *)this + 1912) = v5 == 1;
v6 = *((_DWORD *)a2 + 462);
if ( v6 )
(*(void (__fastcall **)(GJBaseGameLayer *, bool))(*(_QWORD *)this + 1384LL))(this, v6 != 1);
v7 = *((_DWORD *)a2 + 467);
if ( v7 )
(*(void (__fastcall **)(GJBaseGameLayer *, bool))(*(_QWORD *)this + 1392LL))(this, v7 != 1);
v8 = *((_DWORD *)a2 + 463);
if ( v8 )
GJBaseGameLayer::togglePlayerVisibility((__int64)this, v8 != 1, 1);
v9 = *((_DWORD *)a2 + 464);
if ( v9 )
GJBaseGameLayer::togglePlayerVisibility((__int64)this, v9 != 1, 0);
v10 = *((_DWORD *)a2 + 465);
if ( v10 )
GJBaseGameLayer::toggleLockPlayer((PlayerObject **)this, v10 == 1, 1);
v11 = *((_DWORD *)a2 + 466);
if ( v11 )
GJBaseGameLayer::toggleLockPlayer((PlayerObject **)this, v11 == 1, 0);
v12 = *((_DWORD *)a2 + 468);
if ( v12 )
(*(void (__fastcall **)(GJBaseGameLayer *, bool))(*(_QWORD *)this + 1400LL))(this, v12 == 1);
v13 = *((_DWORD *)a2 + 471);
if ( v13 )
*((_BYTE *)this + 1214) = v13 == 1;
v14 = *((_DWORD *)a2 + 472);
if ( v14 )
*((_BYTE *)this + 1220) = v14 == 1;
v15 = *((_DWORD *)a2 + 473);
if ( v15 )
{
*(_BYTE *)(*((_QWORD *)this + 407) + 2528LL) = v15 == 1;
*(_BYTE *)(*((_QWORD *)this + 408) + 2528LL) = *((_DWORD *)a2 + 473) == 1;
}
result = *((unsigned int *)a2 + 469);
if ( (_DWORD)result )
{
v17 = 0.0;
if ( (_DWORD)result == 1 )
{
v17 = *((float *)a2 + 470);
if ( v17 <= 1.0 )
{
v17 = 1.0;
}
else if ( v17 >= 10.0 )
{
v17 = 10.0;
}
}
*((float *)this + 304) = v17;
}
return result;
}