//
// sub_10005484C from 0x10005484c to 0x1000548c8 (124 bytes)
//
// 12 xrefs:
// > sub_100054540 @ 0x10005458c
// > CustomSongWidget::loadSongInfoFinished @ 0x100122958
// > CustomSongWidget::loadSongInfoFailed @ 0x1001229f8
// > GJKeybindManager::unbindChord @ 0x10018c630
// > GJKeybindManager::unbindChord @ 0x10018c664
// > sub_1001F3B74 @ 0x1001f3c94
// > SFXBrowser::cellPerformedAction @ 0x1001f7e70
// > GameManager::unloadIcon @ 0x1003b4c50
// > SelectEventLayer::onCustomToggleTriggerValue @ 0x100489aa8
// > KeybindSet::unbindChord @ 0x1004f1ecc
// > sub_100529A80 @ 0x100529b20
// > sub_100549F0C @ 0x100549f64
//
// 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 10:57:44 +0000
//
__int64 __fastcall sub_10005484C(_QWORD *a1, int *a2)
{
__int64 v2; // x10
int v3; // w9
_QWORD *v4; // x19
v2 = a1[1];
if ( !v2 )
return 0;
v3 = *a2;
v4 = a1 + 1;
do
{
if ( *(_DWORD *)(v2 + 28) >= v3 )
v4 = (_QWORD *)v2;
v2 = *(_QWORD *)(v2 + 8LL * (*(_DWORD *)(v2 + 28) < v3));
}
while ( v2 );
if ( v4 == a1 + 1 || v3 < *((_DWORD *)v4 + 7) )
return 0;
sub_10001C814(a1, v4);
operator delete(v4);
return 1;
}