//
// sub_100720940 from 0x100720940 to 0x1007209d8 (152 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:36:13 +0000
//
__int64 __fastcall sub_100720940(int *a1)
{
__int64 v1; // rbx
__int64 v2; // r15
int v3; // eax
__int64 v5; // r14
__int64 v6; // rcx
char v7; // al
v1 = *((_QWORD *)a1 + 3);
v2 = *((_QWORD *)a1 + 4);
if ( v1 == v2 )
return 0;
v3 = *a1;
if ( *a1 )
{
if ( v3 == 2 )
{
v1 = v2 - 16;
}
else if ( v3 != 1 )
{
sub_1009A8120(a1);
}
}
else
{
v5 = v1 + 16;
if ( v1 + 16 == v2 )
{
v6 = *((_QWORD *)a1 + 3);
}
else
{
do
{
v7 = sub_100728F40(v5, v1);
v6 = v5;
if ( !v7 )
v6 = v1;
v5 += 16;
v1 = v6;
}
while ( v5 != v2 );
}
v1 = v6;
}
return *(_QWORD *)v1;
}