//
// GJBaseGameLayer::processOptionsTrigger from 0x10028dce0 to 0x10028de88 (424 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x10042bdac
//
// 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 11:02:01 +0000
//
__int64 __fastcall GJBaseGameLayer::processOptionsTrigger(__int64 result, __int64 a2)
{
__int64 v3; // x19
int v4; // w8
int v5; // w8
int v6; // w8
int v7; // w8
int v8; // w8
int v9; // w8
int v10; // w8
int v11; // w8
int v12; // w8
int v13; // w8
int v14; // w8
int v15; // w8
bool v16; // w8
int v17; // w8
float v18; // s0
v3 = result;
v4 = *(_DWORD *)(a2 + 1840);
if ( v4 )
result = GJBaseGameLayer::togglePlayerStreakBlend(result, v4 == 1, 0);
v5 = *(_DWORD *)(a2 + 1844);
if ( v5 )
*(_BYTE *)(v3 + 1912) = v5 == 1;
v6 = *(_DWORD *)(a2 + 1848);
if ( v6 )
result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 1384LL))(v3, v6 != 1);
v7 = *(_DWORD *)(a2 + 1868);
if ( v7 )
result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 1392LL))(v3, v7 != 1);
v8 = *(_DWORD *)(a2 + 1852);
if ( v8 )
result = PlayerObject::toggleVisibility(*(_QWORD *)(v3 + 3256), v8 != 1);
v9 = *(_DWORD *)(a2 + 1856);
if ( v9 && *(_BYTE *)(v3 + 1010) == 1 )
result = PlayerObject::toggleVisibility(*(_QWORD *)(v3 + 3264), v9 != 1);
v10 = *(_DWORD *)(a2 + 1860);
if ( v10 )
{
if ( v10 == 1 )
result = PlayerObject::disablePlayerControls(*(_QWORD *)(v3 + 3256));
else
result = PlayerObject::enablePlayerControls(*(_QWORD *)(v3 + 3256));
}
v11 = *(_DWORD *)(a2 + 1864);
if ( v11 )
{
if ( v11 == 1 )
result = PlayerObject::disablePlayerControls(*(_QWORD *)(v3 + 3264));
else
result = PlayerObject::enablePlayerControls(*(_QWORD *)(v3 + 3264));
}
v12 = *(_DWORD *)(a2 + 1872);
if ( v12 )
result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 1400LL))(v3, v12 == 1);
v13 = *(_DWORD *)(a2 + 1884);
if ( v13 )
*(_BYTE *)(v3 + 1214) = v13 == 1;
v14 = *(_DWORD *)(a2 + 1888);
if ( v14 )
*(_BYTE *)(v3 + 1220) = v14 == 1;
v15 = *(_DWORD *)(a2 + 1892);
if ( v15 )
{
v16 = v15 == 1;
*(_BYTE *)(*(_QWORD *)(v3 + 3256) + 2528LL) = v16;
*(_BYTE *)(*(_QWORD *)(v3 + 3264) + 2528LL) = v16;
}
v17 = *(_DWORD *)(a2 + 1876);
if ( v17 )
{
v18 = 0.0;
if ( v17 == 1 )
v18 = fminf(fmaxf(*(float *)(a2 + 1880), 1.0), 10.0);
*(float *)(v3 + 1216) = v18;
}
return result;
}