//
// GJBaseGameLayer::processCommands from 0x10029b644 to 0x10029b7b0 (364 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x10029aafc
//
// 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:09 +0000
//
float __fastcall GJBaseGameLayer::processCommands(__int64 a1, int a2, char a3, float result)
{
int v5; // w9
int v6; // w10
int v7; // w9
unsigned __int64 v8; // x8
__int64 v9; // x10
unsigned __int64 v10; // x9
int v11; // w11
int v12; // w12
int v13; // w11
_DWORD *v14; // x10
int v15; // w8
bool v16; // vf
int v17; // w8
int v18; // w9
v5 = *(_DWORD *)(a1 + 944);
*(_DWORD *)(a1 + 956) = v5;
if ( result <= 0.0 )
{
if ( (*(_BYTE *)(a1 + 12650) & 1) != 0 )
goto LABEL_19;
goto LABEL_11;
}
v6 = llroundf(*(float *)(a1 + 816) * 1000.0);
if ( !a2 )
{
*(_DWORD *)(a1 + 944) = v5 + 2;
*(_DWORD *)(a1 + 964) += v6;
if ( (*(_BYTE *)(a1 + 12650) & 1) != 0 )
goto LABEL_19;
goto LABEL_9;
}
*(_DWORD *)(a1 + 944) = v5 + 1;
*(_DWORD *)(a1 + 964) = (unsigned int)(float)((float)*(unsigned int *)(a1 + 964) + (float)((float)v6 * 0.5));
if ( (*(_BYTE *)(a1 + 12650) & 1) != 0 )
goto LABEL_19;
if ( (a2 & 1) == 0 )
{
LABEL_9:
v7 = 2;
goto LABEL_10;
}
v7 = 1;
LABEL_10:
*(_DWORD *)(a1 + 952) += v7;
LABEL_11:
if ( (*(_BYTE *)(a1 + 13945) & 1) == 0 && *(_BYTE *)(a1 + 13946) != 1 )
a3 = 1;
GJBaseGameLayer::processQueuedButtons((double *)a1, a3, result);
v8 = *(int *)(a1 + 13032);
v9 = *(_QWORD *)(a1 + 12848);
v10 = (*(_QWORD *)(a1 + 12856) - v9) >> 4;
if ( v10 > v8 )
{
v11 = *(_DWORD *)(a1 + 956);
v12 = *(_DWORD *)(a1 + 12820);
*(_DWORD *)(a1 + 12820) = v11;
v13 = v11 - v12;
v14 = (_DWORD *)(v9 + 16 * v8 + 8);
do
{
*v14 = v13;
v14 += 4;
++v8;
v13 = 0;
}
while ( v10 > v8 );
*(_DWORD *)(a1 + 13032) = v8;
}
sub_10029D5D4(a1);
LABEL_19:
v15 = *(_DWORD *)(a1 + 1924);
v16 = __OFSUB__(v15, 1);
v17 = v15 - 1;
if ( v17 < 0 == v16 )
{
v18 = *(_DWORD *)(a1 + 1928);
*(_DWORD *)(a1 + 1928) = v18 - 1;
if ( v18 <= 0 )
{
result = *(float *)(a1 + 13112) * 120.0;
*(_DWORD *)(a1 + 1928) = (int)result;
*(_DWORD *)(a1 + 1924) = v17;
}
}
return result;
}