//
// CustomMusicCell::loadFromObject from 0x738888 to 0x738a04 (380 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x74d2f4
// > ??> @ 0xa1aa0
//
// 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:52:40 +0000
//
__int64 __fastcall CustomMusicCell::loadFromObject(CustomMusicCell *this, SongInfoObject *a2)
{
__int64 v4; // x0
bool v5; // zf
CustomSongWidget *v6; // x0
bool v7; // w8
CustomSongWidget *v8; // x21
void (__fastcall *v9)(CustomSongWidget *, _BYTE *); // x23
int v10; // w20
bool v12; // [xsp+18h] [xbp-8h]
_BYTE v13[8]; // [xsp+70h] [xbp+50h] BYREF
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1);
*((_QWORD *)this + 70) = a2;
v4 = *(_QWORD *)(*((_QWORD *)this + 52) + 632LL);
if ( v4 )
{
v5 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == 1;
v6 = *((CustomSongWidget **)this + 70);
v7 = v5;
}
else
{
v6 = a2;
v7 = 1;
}
v8 = (CustomSongWidget *)CustomSongWidget::create(
v6,
(CustomMusicCell *)((char *)this + 552),
(CustomSongDelegate *)((char *)&dword_0 + 1),
(bool)&dword_0 + 1,
(bool)&dword_0 + 1,
0,
0,
(bool)&dword_0 + 1,
v7,
(bool)&dword_0 + 1,
0,
v12);
(*(void (__fastcall **)(_QWORD, CustomSongWidget *, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v8,
2);
v9 = *(void (__fastcall **)(CustomSongWidget *, _BYTE *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *((float *)this + 130) * 0.5, *((float *)this + 131) * 0.5);
v9(v8, v13);
*((_BYTE *)v8 + 512) = (unsigned __int8)&dword_0 + 1;
CustomSongWidget::addExtraVisuals(
v8,
*(_BYTE *)(*((_QWORD *)this + 70) + 448LL),
*(_DWORD *)(*((_QWORD *)this + 70) + 452LL) > 0);
v10 = *(_DWORD *)(*((_QWORD *)this + 70) + 316LL);
*((_BYTE *)this + 568) = v10 == (*(unsigned int (__fastcall **)(CustomMusicCell *))(*(_QWORD *)this + 1160LL))(this);
return _stack_chk_guard;
}