//
// sub_716CDE from 0x716cde to 0x716d4e (112 bytes)
//
// 3 xrefs:
// > PlayerCheckpoint::verifyMatch @ 0x718294
// > PlayerCheckpoint::verifyMatch @ 0x71869e
// > verifyGJGameStateMatch @ 0x724f4a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:48 +0000
//
_DWORD *__fastcall sub_716CDE(int a1, _DWORD *a2)
{
_DWORD *v3; // r6
unsigned int v4; // r5
unsigned int v5; // r9
unsigned int v6; // r7
int v7; // r10
_DWORD *result; // r0
_DWORD *i; // r4
unsigned int v10; // r0
int v11; // r1
v3 = *(_DWORD **)(a1 + 8);
LABEL_2:
if ( !v3 )
return &dword_0 + 1;
v4 = a2[1];
v5 = v3[2];
if ( !v4 )
return nullptr;
v6 = v4 - 1;
if ( ((v4 - 1) & v4) != 0 )
v7 = v5 % v4;
else
v7 = v5 & v6;
result = *(_DWORD **)(*a2 + 4 * v7);
if ( result )
{
for ( i = (_DWORD *)*result; i; i = (_DWORD *)*i )
{
v10 = i[1];
v11 = ((v4 - 1) & v4) != 0 ? v10 % v4 : v6 & v10;
if ( v11 != v7 )
break;
if ( i[2] == v5 )
{
v3 = (_DWORD *)*v3;
goto LABEL_2;
}
}
return nullptr;
}
return result;
}