//
// CustomSFXWidget::downloadSFXFinished from 0x1401637f0 to 0x14016386e (126 bytes)
//
// 3 xrefs:
// > ??> @ 0x1407425c8
// > ??> @ 0x140917dd4
// > ??> @ 0x140917de0
//
// 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:27:26 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall CustomSFXWidget::downloadSFXFinished(__int64 a1, int a2)
{
__int64 v2; // rbx
int v3; // eax
__int64 v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
v2 = a1 - 320;
v3 = *(_DWORD *)(a1 - 320 + 496);
if ( v3 == a2 && v3 )
{
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
if ( !(unsigned __int8)GameManager::getGameVariable(v4, "0143") )
CustomSFXWidget::onPlayback(v2);
}
}