//
// LevelSelectLayer::onDownload from 0x140442550 to 0x1404425a6 (86 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::init @ 0x140441f8d
// > ??> @ 0x1409270f8
//
// 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 11:32:22 +0000
//
__int64 __fastcall LevelSelectLayer::onDownload(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rax
v2 = SongsLayer::create();
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v3 + 456LL))(v3, v2, 100);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1080LL))(v2, 0);
}