//
// SetupSongTriggerPopup::dSetupSongTriggerPopup from 0x1405f2340 to 0x1405f247a (314 bytes)
//
// 3 xrefs:
// > sub_1405F3C80 @ 0x1405f3c87
// > ??> @ 0x140805da8
// > ??> @ 0x14092f33c
//
// 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:35:06 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall SetupSongTriggerPopup::dSetupSongTriggerPopup(_QWORD *Block, char a2)
{
__int64 v4; // rcx
void *v5; // rax
*Block = &SetupSongTriggerPopup::`vftable';
Block[40] = &SetupSongTriggerPopup::`vftable';
Block[41] = &SetupSongTriggerPopup::`vftable';
Block[42] = &SetupSongTriggerPopup::`vftable';
Block[43] = &SetupSongTriggerPopup::`vftable';
Block[44] = &SetupSongTriggerPopup::`vftable';
Block[51] = &SetupSongTriggerPopup::`vftable';
Block[54] = &SetupSongTriggerPopup::`vftable';
Block[68] = &SetupSongTriggerPopup::`vftable';
Block[83] = &SetupSongTriggerPopup::`vftable';
Block[84] = &SetupSongTriggerPopup::`vftable';
Block[126] = &SetupSongTriggerPopup::`vftable';
Block[127] = &SetupSongTriggerPopup::`vftable';
v4 = qword_14090C070;
if ( !qword_14090C070 )
{
v5 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v4 = qword_14090C070;
}
MusicDownloadManager::removeMusicDownloadDelegate(v4, (__int64)(Block + 126));
SetupAudioTriggerPopup::dSetupAudioTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}