//
// CustomMusicCell::loadFromObject from 0x425c38 to 0x425d30 (248 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x434030
//
// 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:48:04 +0000
//
bool __fastcall CustomMusicCell::loadFromObject(CustomMusicCell *this, SongInfoObject *a2)
{
int v4; // r3
int v5; // r0
char v6; // r0
CustomSongWidget *v7; // r6
void (__fastcall *v8)(CustomSongWidget *, _BYTE *); // r9
int v9; // r5
_BOOL4 result; // r0
bool v11; // [sp+1Ch] [bp-18h]
_BYTE v12[8]; // [sp+24h] [bp-10h] BYREF
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
v4 = *((_DWORD *)this + 80);
*((_DWORD *)this + 106) = a2;
v5 = *(_DWORD *)(v4 + 464);
if ( v5 )
v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5) == 1;
else
v6 = 1;
v7 = (CustomSongWidget *)CustomSongWidget::create(
*((CustomSongWidget **)this + 106),
(CustomMusicCell *)((char *)this + 420),
(CustomSongDelegate *)((char *)&dword_0 + 1),
(bool)&dword_0 + 1,
(bool)&dword_0 + 1,
0,
0,
(bool)&dword_0 + 1,
v6,
(bool)&dword_0 + 1,
0,
v11);
(*(void (__fastcall **)(_DWORD, CustomSongWidget *, int))(**((_DWORD **)this + 103) + 232))(
*((_DWORD *)this + 103),
v7,
2);
v8 = *(void (__fastcall **)(CustomSongWidget *, _BYTE *))(*(_DWORD *)v7 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, *((float *)this + 100) * 0.5, *((float *)this + 101) * 0.5);
v8(v7, v12);
*((_BYTE *)v7 + 368) = (unsigned __int8)&dword_0 + 1;
CustomSongWidget::addExtraVisuals(
v7,
*(_BYTE *)(*((_DWORD *)this + 106) + 344),
*(_DWORD *)(*((_DWORD *)this + 106) + 348) > 0);
v9 = *(_DWORD *)(*((_DWORD *)this + 106) + 264);
result = v9 == (*(int (__fastcall **)(CustomMusicCell *))(*(_DWORD *)this + 580))(this);
*((_BYTE *)this + 428) = result;
return result;
}