//
// sub_C0EA0C from 0xc0ea0c to 0xc0ea98 (140 bytes)
//
// 3 xrefs:
// > PlayerCheckpoint::verifyMatch @ 0xc12cfc
// > PlayerCheckpoint::verifyMatch @ 0xc12d24
// > verifyGJGameStateMatch @ 0xc2ae84
//
// 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 13:03:56 +0000
//
__int64 __fastcall sub_C0EA0C(__int64 a1, _QWORD *a2)
{
__int64 *v2; // x8
unsigned __int64 v3; // x5
unsigned __int64 v4; // x9
__int64 v5; // x7
int v6; // w4
unsigned __int64 v7; // x6
__int64 result; // x0
unsigned __int64 v9; // x2
unsigned __int64 v10; // x2
v2 = *(__int64 **)(a1 + 16);
if ( !v2 )
return 1;
v3 = a2[1];
v4 = v3 - 1;
v5 = (v3 - 1) & v3;
LABEL_3:
v6 = *((_DWORD *)v2 + 4);
if ( !v3 )
return 0;
v7 = v5 ? v6 % v3 : v6 & v4;
result = *(_QWORD *)(*a2 + 8 * v7);
if ( !result )
return 0;
while ( 1 )
{
result = *(_QWORD *)result;
if ( !result )
return result;
v9 = *(_QWORD *)(result + 8);
if ( v5 )
v10 = v9 % v3;
else
v10 = v4 & v9;
if ( v7 != v10 )
return 0;
if ( v6 == *(_DWORD *)(result + 16) )
{
v2 = (__int64 *)*v2;
if ( v2 )
goto LABEL_3;
return 1;
}
}
}