//
// sub_100432B50 from 0x100432b50 to 0x100432bf4 (164 bytes)
//
// 1 xrefs:
// > SFXBrowser::cellPerformedAction @ 0x100434d96
//
// 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_100432B50(__int64 **a1, int *a2)
{
__int64 *v3; // rdi
int v4; // ecx
__int64 *v5; // rbx
__int64 *v6; // rsi
__int64 *v8; // rdx
__int64 *v9; // rcx
__int64 *v10; // rdx
bool v11; // zf
v3 = a1[1];
if ( !v3 )
return 0;
v4 = *a2;
v5 = (__int64 *)(a1 + 1);
v6 = v3;
do
{
if ( *((_DWORD *)v6 + 7) >= v4 )
v5 = v6;
v6 = (__int64 *)v6[*((_DWORD *)v6 + 7) < v4];
}
while ( v6 );
if ( v5 == (__int64 *)(a1 + 1) || v4 < *((_DWORD *)v5 + 7) )
return 0;
v8 = (__int64 *)v5[1];
if ( v8 )
{
do
{
v9 = v8;
v8 = (__int64 *)*v8;
}
while ( v8 );
}
else
{
v10 = v5;
do
{
v9 = (__int64 *)v10[2];
v11 = *v9 == (_QWORD)v10;
v10 = v9;
}
while ( !v11 );
}
if ( *a1 == v5 )
*a1 = v9;
a1[2] = (__int64 *)((char *)a1[2] - 1);
sub_1001454C0(v3, v5);
operator delete(v5);
return 1;
}