//
// sub_C3A604 from 0xc3a604 to 0xc3a690 (140 bytes)
//
// 2 xrefs:
// > SFXFolderPickerPopup::rebuildList @ 0xc3ba9c
// > SFXFolderPickerPopup::rebuildList @ 0xc3baa4
//
// 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:04:53 +0000
//
bool __fastcall sub_C3A604(__int64 a1, __int64 a2)
{
__int64 v2; // x5
unsigned __int8 v3; // w2
int v4; // w6
size_t v5; // x20
unsigned __int8 v6; // w2
__int64 v7; // x3
size_t v8; // x19
const void *v9; // x0
const void *v10; // x1
size_t v11; // x2
unsigned int v12; // w0
v2 = a1 + 104;
v3 = *(_BYTE *)(a1 + 104);
v4 = v3 & 1;
v5 = v3 >> 1;
if ( (v3 & 1) != 0 )
v5 = *(_QWORD *)(a1 + 112);
v6 = *(_BYTE *)(a2 + 104);
v7 = a2 + 104;
v8 = v6 >> 1;
if ( (v6 & 1) != 0 )
v8 = *(_QWORD *)(a2 + 112);
v9 = (const void *)(a1 + 105);
if ( v4 )
v9 = *(const void **)(v2 + 16);
v10 = (const void *)(a2 + 105);
if ( (v6 & 1) != 0 )
v10 = *(const void **)(v7 + 16);
if ( v8 > v5 )
v11 = v5;
else
v11 = v8;
if ( v11 && (v12 = memcmp(v9, v10, v11)) != 0 )
return v12 >> 31;
else
return v5 < v8;
}