//
// CustomSFXWidget::showLoadingArt from 0xb5dd6c to 0xb5df3c (464 bytes)
//
// 3 xrefs:
// > CustomSFXWidget::startMonitorDownload @ 0xb5df60
// > CustomSFXWidget::onDownload @ 0xb5e014
// > ??> @ 0x65bf0
//
// 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::showLoadingArt(CustomSFXWidget *this)
{
__int64 v2; // x21
void (__fastcall *v3)(__int64, __int64 *); // x24
__int64 v4; // x25
float v5; // s8
float v6; // s0
cocos2d::CCNode *v7; // x21
unsigned __int8 v8; // w1
cocos2d::CCAction *v9; // x0
__int64 v10; // x2
float v12; // s8
float v13; // s8
_BYTE v14[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v15; // [xsp+70h] [xbp+70h] BYREF
v2 = *((_QWORD *)this + 59);
if ( v2 )
{
v3 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v2 + 184LL);
if ( *((_BYTE *)this + 492) )
{
v4 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 192LL))(*((_QWORD *)this + 45));
v12 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 328LL))(*((_QWORD *)this + 45));
v13 = (float)(v12 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 168LL))(*((_QWORD *)this + 45)))
+ 12.0;
v6 = v13 + CustomSFXWidget::infoBtnWidth(this);
}
else
{
v4 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 192LL))(*((_QWORD *)this + 44));
v5 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 328LL))(*((_QWORD *)this + 44));
v6 = (float)(v5 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 168LL))(*((_QWORD *)this + 44)))
+ 14.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v6, 0.0);
cocos2d::CCPoint::operator+(&v15, v4);
v3(v2, &v15);
cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 59));
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 59) + 912LL))(*((_QWORD *)this + 59), 25);
v7 = *((cocos2d::CCNode **)this + 59);
v9 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0xFFFFFFAFLL, 0.2, v8);
cocos2d::CCNode::runAction(v7, v9);
v10 = *((_QWORD *)this + 59);
}
else
{
v10 = *((_QWORD *)this + 57);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 344LL))(v10, 1);
return _stack_chk_guard;
}