//
// sub_100973940 from 0x100973940 to 0x1009739a7 (103 bytes)
//
// 1 xrefs:
// > SFXFolderPickerPopup::rebuildList @ 0x100972c8e
//
// 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:38:54 +0000
//
_BOOL8 __fastcall sub_100973940(__int64 a1, __int64 a2)
{
unsigned int v2; // ebx
unsigned int v3; // r14d
size_t v4; // r14
const void *v5; // rdi
size_t v6; // rbx
const void *v7; // rsi
size_t v8; // rdx
int v9; // eax
_BOOL4 v10; // ecx
v2 = *(unsigned __int8 *)(a2 + 104);
v3 = *(unsigned __int8 *)(a1 + 104);
if ( (v3 & 1) != 0 )
{
v4 = *(_QWORD *)(a1 + 112);
v5 = *(const void **)(a1 + 120);
if ( (v2 & 1) == 0 )
{
LABEL_3:
v6 = v2 >> 1;
v7 = (const void *)(a2 + 105);
goto LABEL_6;
}
}
else
{
v4 = v3 >> 1;
v5 = (const void *)(a1 + 105);
if ( (v2 & 1) == 0 )
goto LABEL_3;
}
v6 = *(_QWORD *)(a2 + 112);
v7 = *(const void **)(a2 + 120);
LABEL_6:
v8 = v4;
if ( v6 < v4 )
v8 = v6;
v9 = memcmp(v5, v7, v8);
v10 = v9 < 0;
if ( !v9 )
return v4 < v6;
return v10;
}