//
// CustomSFXWidget::downloadSFXFinished from 0x1400c2600 to 0x1400c267b (123 bytes)
//
// 2 xrefs:
// > ??> @ 0x14054ca40
// > ??> @ 0x1406c7fc8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void CustomSFXWidget::downloadSFXFinished(CustomSFXWidget *a1, int a2)
{
CustomSFXWidget *v2; // rbx
float ty; // eax
GameManager *v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
v2 = (CustomSFXWidget *)((char *)a1 - 320);
ty = a1->m_sAdditionalTransform.ty;
if ( LODWORD(ty) == a2 && ty != 0.0 )
{
v4 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = (GameManager *)qword_1406C2ED8;
}
if ( !GameManager::getGameVariable(v4, "0143") )
CustomSFXWidget::onPlayback(v2, nullptr);
}
}