//
// CustomSongWidget::showError from 0x4e271c to 0x4e28d0 (436 bytes)
//
// 6 xrefs:
// > CustomSongWidget::updateError @ 0x4e2972
// > CustomSongWidget::updateSongInfo @ 0x4e366c
// > CustomSongWidget::deleteSong @ 0x4e3f6c
// > CustomSongWidget::processNextMultiAsset @ 0x4e5754
// > CustomSongWidget::processNextMultiAsset @ 0x4e57d4
// > CustomSongWidget::downloadSongFinished @ 0x4e5dee
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:02 +0000
//
int __fastcall CustomSongWidget::showError(cocos2d::CCNode **this, int a2)
{
int result; // r0
float v5; // r1
cocos2d::CCNode *v6; // r0
unsigned __int8 *v7; // r1
int v8; // r0
void (__fastcall *v9)(int, _BYTE *); // r12
int v10; // s14
int v11; // r3
int v12; // r1
float v13; // s16
float v14; // r0
int v15; // r8
void (__fastcall *v16)(int, _BYTE *); // r9
cocos2d::CCNode *v17; // r7
int v18; // r6
cocos2d::CCSequence *v19; // r8
unsigned __int8 v20; // r2
cocos2d::CCFiniteTimeAction *v21; // r0
cocos2d::CCAction *v22; // r0
float v23; // r1
cocos2d::CCNode *v24; // r4
cocos2d::CCSequence *v25; // r6
unsigned __int8 v26; // r2
cocos2d::CCFiniteTimeAction *v27; // r0
cocos2d::CCAction *v28; // r0
_BYTE v29[8]; // [sp+4h] [bp-10h] BYREF
cocos2d::CCNode::stopAllActions(*(this + 73));
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 73) + 172))(*(this + 73), 1);
result = (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 73) + 512))(*(this + 73), 255);
if ( *((_BYTE *)this + 357) )
{
v6 = *(this + 86);
if ( v6 )
{
cocos2d::CCNode::stopAllActions(v6);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 86) + 172))(*(this + 86), 1);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 86) + 456))(*(this + 86), 255);
v7 = (unsigned __int8 *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 73) + 528))(*(this + 73));
v8 = (int)*(this + 86);
v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 480);
v10 = v7[1];
v11 = v7[2];
v12 = *v7;
v29[1] = (unsigned int)(float)((float)v10 * 0.5);
v29[2] = (unsigned int)(float)((float)v11 * 0.5);
v29[0] = (unsigned int)(float)((float)v12 * 0.5);
v9(v8, v29);
v13 = *(float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 73) + 164))(*(this + 73));
v14 = (*(float (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 73) + 84))(*(this + 73));
v15 = (int)*(this + 86);
v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v29, (float)((float)(v13 * v14) + 10.0) / 0.2, 60.0);
v16(v15, v29);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 86) + 80))(*(this + 86), 1045220557);
}
v17 = *(this + 73);
if ( a2 )
v18 = 1061997773;
else
v18 = 1070386381;
v19 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)v18, v5);
v21 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3F000000, 0.0, v20);
v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v19, v21, 0);
result = cocos2d::CCNode::runAction(v17, v22);
v24 = *(this + 86);
if ( v24 )
{
v25 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)v18, v23);
v27 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3F000000, 0.0, v26);
v28 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v25, v27, 0);
return cocos2d::CCNode::runAction(v24, v28);
}
}
return result;
}