//
// GJBaseGameLayer::processOptionsTrigger from 0x10011a0f0 to 0x10011a30c (540 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x10019a359
//
// This function is hookable on this platform (idp: pc, 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:24:35 +0000
//
__int64 __fastcall GJBaseGameLayer::processOptionsTrigger(__int64 a1, __int64 a2)
{
int v2; // eax
_BOOL4 v3; // r15d
int v4; // eax
int v5; // eax
int v6; // eax
int v7; // eax
int v8; // eax
int v9; // eax
int v10; // eax
int v11; // eax
int v12; // eax
int v13; // eax
int v14; // eax
__int64 result; // rax
float v16; // xmm0_4
v2 = *(_DWORD *)(a2 + 1840);
if ( v2 && *(_BYTE *)(a1 + 812) != (v2 == 1) )
{
v3 = v2 == 1;
*(_BYTE *)(a1 + 812) = v2 == 1;
PlayerObject::updateStreakBlend(*(_QWORD *)(a1 + 3256), v2 == 1);
PlayerObject::updateStreakBlend(*(_QWORD *)(a1 + 3264), v3);
}
v4 = *(_DWORD *)(a2 + 1844);
if ( v4 )
*(_BYTE *)(a1 + 1912) = v4 == 1;
v5 = *(_DWORD *)(a2 + 1848);
if ( v5 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1384LL))(a1, v5 != 1);
v6 = *(_DWORD *)(a2 + 1868);
if ( v6 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1392LL))(a1, v6 != 1);
v7 = *(_DWORD *)(a2 + 1852);
if ( v7 )
PlayerObject::toggleVisibility(*(_QWORD *)(a1 + 3256), v7 != 1);
v8 = *(_DWORD *)(a2 + 1856);
if ( v8 && *(_BYTE *)(a1 + 1010) == 1 )
PlayerObject::toggleVisibility(*(_QWORD *)(a1 + 3264), v8 != 1);
v9 = *(_DWORD *)(a2 + 1860);
if ( v9 )
{
if ( v9 != 1 )
{
PlayerObject::enablePlayerControls(*(_QWORD *)(a1 + 3256));
v10 = *(_DWORD *)(a2 + 1864);
if ( !v10 )
goto LABEL_23;
goto LABEL_21;
}
PlayerObject::disablePlayerControls(*(_QWORD *)(a1 + 3256));
}
v10 = *(_DWORD *)(a2 + 1864);
if ( !v10 )
{
LABEL_23:
v11 = *(_DWORD *)(a2 + 1872);
if ( !v11 )
goto LABEL_25;
goto LABEL_24;
}
LABEL_21:
if ( v10 == 1 )
{
PlayerObject::disablePlayerControls(*(_QWORD *)(a1 + 3264));
goto LABEL_23;
}
PlayerObject::enablePlayerControls(*(_QWORD *)(a1 + 3264));
v11 = *(_DWORD *)(a2 + 1872);
if ( v11 )
LABEL_24:
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)a1 + 1400LL))(a1, v11 == 1);
LABEL_25:
v12 = *(_DWORD *)(a2 + 1884);
if ( v12 )
*(_BYTE *)(a1 + 1214) = v12 == 1;
v13 = *(_DWORD *)(a2 + 1888);
if ( v13 )
*(_BYTE *)(a1 + 1220) = v13 == 1;
v14 = *(_DWORD *)(a2 + 1892);
if ( v14 )
{
*(_BYTE *)(*(_QWORD *)(a1 + 3256) + 2528LL) = v14 == 1;
*(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2528LL) = v14 == 1;
}
result = *(unsigned int *)(a2 + 1876);
if ( (_DWORD)result )
{
v16 = 0.0;
if ( (_DWORD)result == 1 )
v16 = fminf(fmaxf(*(float *)(a2 + 1880), 1.0), 10.0);
*(float *)(a1 + 1216) = v16;
}
return result;
}