//
// sub_100432C00 from 0x100432c00 to 0x100432cad (173 bytes)
//
// 1 xrefs:
// > SFXBrowser::cellPerformedAction @ 0x100434da6
//
// 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:30:23 +0000
//
__int64 *__fastcall sub_100432C00(__int64 **a1, int *a2)
{
__int64 v2; // rax
int v3; // r15d
_QWORD *v4; // r12
__int64 *v5; // r14
int v6; // eax
__int64 *v7; // r13
__int64 *v8; // rax
v2 = (__int64)a1[1];
v3 = *a2;
if ( v2 )
{
while ( 1 )
{
while ( 1 )
{
v5 = (__int64 *)v2;
v6 = *(_DWORD *)(v2 + 28);
if ( v3 >= v6 )
break;
v2 = *v5;
v4 = v5;
if ( !*v5 )
goto LABEL_8;
}
if ( v3 <= v6 )
break;
v2 = v5[1];
if ( !v2 )
{
v4 = v5 + 1;
goto LABEL_8;
}
}
}
else
{
v4 = a1 + 1;
v5 = (__int64 *)(a1 + 1);
LABEL_8:
v7 = v5;
v5 = (__int64 *)operator new(0x20u);
*((_DWORD *)v5 + 7) = v3;
*(_OWORD *)v5 = 0;
v5[2] = (__int64)v7;
*v4 = v5;
v8 = (__int64 *)**a1;
if ( v8 )
*a1 = v8;
sub_10001B680(a1[1], v5);
a1[2] = (__int64 *)((char *)a1[2] + 1);
}
return v5;
}