//
// CustomSongWidget::updateUsageButton from 0x868198 to 0x8682c4 (300 bytes)
//
// 3 xrefs:
// > CustomSongWidget::updateSongInfo @ 0x869cfc
// > CustomSongWidget::updateMultiAssetInfo @ 0x86c7f8
// > ??> @ 0xde118
//
// 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 12:55:41 +0000
//
__int64 __fastcall CustomSongWidget::updateUsageButton(CustomSongWidget *this)
{
__int64 v2; // x0
__int64 v4; // x1
float v5; // s0
__int64 v6; // x22
void (__fastcall *v7)(__int64, __int64 *); // x23
__int64 v8; // x24
float v9; // [xsp+40h] [xbp+40h]
__int64 v10; // [xsp+58h] [xbp+58h] BYREF
_BYTE v11[8]; // [xsp+60h] [xbp+60h] BYREF
v2 = *((_QWORD *)this + 67);
if ( v2 )
{
if ( *((_BYTE *)this + 544)
&& (v4 = *((_QWORD *)this + 42)) != 0
&& !*((_BYTE *)this + 500)
&& *(int *)(v4 + 316) > 0 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 344LL))(v2, 1);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 352LL))(*((_QWORD *)this + 55)) )
v5 = -21.0;
else
v5 = 0.0;
v6 = *((_QWORD *)this + 67);
v9 = v5;
v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL);
v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 55) + 192LL))(*((_QWORD *)this + 55));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9, 0.0);
cocos2d::CCPoint::operator+(&v10, v8);
v7(v6, &v10);
}
else
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
}
}
return _stack_chk_guard;
}