//
// sub_10030BEE0 from 0x10030bee0 to 0x10030bf54 (116 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerShaderCommand @ 0x10028c79c
//
// 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:03:11 +0000
//
__int64 __fastcall sub_10030BEE0(__int64 result, int a2, int a3, int a4)
{
int v4; // w9
int v5; // w8
if ( a2 <= 1 )
v4 = 1;
else
v4 = a2;
if ( a3 >= 1 )
v5 = a3;
else
v5 = 15;
if ( *(_DWORD *)(result + 1068) != v4 )
{
*(_DWORD *)(result + 1068) = v4;
*(_BYTE *)(result + 1076) = 1;
}
if ( *(_DWORD *)(result + 1072) != v5 )
{
*(_DWORD *)(result + 1072) = v5;
*(_BYTE *)(result + 1076) = 1;
}
if ( *(unsigned __int8 *)(result + 1077) != a4 )
{
*(_BYTE *)(result + 1077) = a4;
if ( a2 == 8 || v5 == 8 )
*(_BYTE *)(result + 1076) = 1;
}
return result;
}