//
// CustomSFXWidget::downloadSFXFinished from 0xb5e338 to 0xb5e38c (84 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSFXWidget::downloadSFXFinished @ 0xb5e390
// > ??> @ 0xf9c70
// > ??> @ 0x14c3050
//
// 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 13:02:10 +0000
//
__int64 __fastcall CustomSFXWidget::downloadSFXFinished(CustomSFXWidget *this, int a2)
{
__int64 result; // x0
GameManager *v4; // x0
result = (unsigned __int8)CustomSFXWidget::verifySFXID(this, a2);
if ( (_BYTE)result )
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)result);
result = (unsigned __int8)GameManager::getGameVariable(v4, "0143");
if ( !(_BYTE)result )
return CustomSFXWidget::onPlayback(this, nullptr);
}
return result;
}