//
// sub_1005F6870 from 0x1005f6870 to 0x1005f693c (204 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:34:26 +0000
//
__int64 __fastcall sub_1005F6870(__int64 a1, __int64 a2)
{
unsigned int v2; // r12d
int v3; // r15d
unsigned int v4; // r13d
int v5; // eax
__int64 v6; // rbx
__int64 v7; // rax
int v8; // ecx
v2 = 0;
v3 = 0;
if ( a1 )
v3 = sub_1007FEF90(a1);
if ( a2 )
v2 = sub_1007FEF90(a2);
if ( v3 == v2 )
{
if ( v3 <= 0 )
{
LOBYTE(v2) = 1;
}
else
{
v4 = 0;
LOBYTE(v2) = 1;
do
{
v6 = sub_1007FEFE0(a1, v4);
v7 = sub_1007FEFE0(a2, v4);
v8 = 0;
if ( v6 )
v8 = *(_DWORD *)(v6 + 916);
if ( v7 )
v5 = *(_DWORD *)(v7 + 916);
else
v5 = 0;
LOBYTE(v2) = (v8 == v5) & v2;
++v4;
}
while ( v3 != v4 );
}
}
else
{
return 0;
}
return v2;
}