//
// CustomSFXWidget::updateSFXObject from 0xb5ef40 to 0xb5efcc (140 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::init @ 0xb5fde8
// > ??> @ 0x439c0
//
// 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::updateSFXObject(CustomSFXWidget *this, SFXInfoObject *a2)
{
SFXInfoObject *v4; // x0
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 46) + 344LL))(*((_QWORD *)this + 46), 0);
v4 = *((SFXInfoObject **)this + 42);
if ( a2 != v4 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v4 = *((SFXInfoObject **)this + 42);
}
if ( v4 )
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 42) = a2;
v4 = a2;
}
if ( v4 )
*((_DWORD *)this + 124) = *((_DWORD *)v4 + 14);
else
*((_DWORD *)this + 124) = 0;
return CustomSFXWidget::updateSFXInfo(this);
}