//
// CustomSongWidget::onInfo from 0x8698a8 to 0x869b30 (648 bytes)
//
// 3 xrefs:
// > ??> @ 0x55ca8
// > CustomSongWidget::init @ 0x86b4c0
// > ??> @ 0x1541eb8
//
// 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:42 +0000
//
__int64 __fastcall CustomSongWidget::onInfo(CustomSongWidget *this, cocos2d::CCObject *a2)
{
char *v3; // x19
char *v4; // x23
_DWORD *v5; // x0
char *v6; // x0
char *v7; // x1
char *v8; // x1
char *v9; // x19
char *v10; // x22
_DWORD *v11; // x0
char *v12; // x0
__int64 v13; // x0
char *v15; // x1
char *v16; // x1
void *v17; // [xsp+48h] [xbp+48h] BYREF
_DWORD *v18; // [xsp+50h] [xbp+50h]
_DWORD *v19; // [xsp+58h] [xbp+58h]
void *v20; // [xsp+60h] [xbp+60h] BYREF
_DWORD *v21; // [xsp+68h] [xbp+68h]
_DWORD *v22; // [xsp+70h] [xbp+70h]
if ( *((_BYTE *)this + 529) )
{
v3 = *((char **)this + 69);
v4 = (char *)this + 560;
v17 = nullptr;
v18 = nullptr;
v19 = nullptr;
v20 = nullptr;
v21 = nullptr;
v22 = nullptr;
if ( v3 != (char *)this + 560 )
{
LABEL_10:
std::vector::__push_back_slow_path((__int64)&v17, (_DWORD *)v3 + 7);
v6 = *((char **)v3 + 1);
if ( !v6 )
{
do
{
LABEL_11:
v7 = v3;
v3 = *((char **)v3 + 2);
if ( v7 == *(char **)v3 )
break;
v8 = v3;
v3 = *((char **)v3 + 2);
}
while ( v8 != *(char **)v3 );
goto LABEL_8;
}
while ( 1 )
{
do
{
v3 = v6;
v6 = *(char **)v6;
}
while ( v6 );
LABEL_8:
if ( v4 == v3 )
break;
v5 = v18;
if ( v19 == v18 )
goto LABEL_10;
if ( v18 )
{
*v18 = *((_DWORD *)v3 + 7);
v5 = v18;
}
v18 = v5 + 1;
v6 = *((char **)v3 + 1);
if ( !v6 )
goto LABEL_11;
}
}
v9 = *((char **)this + 72);
v10 = (char *)this + 584;
while ( v10 != v9 )
{
v11 = v21;
if ( v21 == v22 )
{
std::vector::__push_back_slow_path((__int64)&v20, (_DWORD *)v9 + 7);
}
else
{
if ( v21 )
{
*v21 = *((_DWORD *)v9 + 7);
v11 = v21;
}
v21 = v11 + 1;
}
v12 = *((char **)v9 + 1);
if ( v12 )
{
do
{
v9 = v12;
v12 = *(char **)v12;
}
while ( v12 );
}
else
{
do
{
v15 = v9;
v9 = *((char **)v9 + 2);
if ( v15 == *(char **)v9 )
break;
v16 = v9;
v9 = *((char **)v9 + 2);
}
while ( v16 != *(char **)v9 );
}
}
v13 = AudioAssetsBrowser::create(&v17, &v20);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1312LL))(v13);
if ( v20 )
{
if ( v20 != v21 )
v21 += ~((unsigned __int64)((char *)(v21 - 1) - (_BYTE *)v20) >> 2);
operator delete(v20);
}
if ( v17 )
{
if ( v17 != v18 )
v18 += ~((unsigned __int64)((char *)(v18 - 1) - (_BYTE *)v17) >> 2);
operator delete(v17);
}
}
return _stack_chk_guard;
}