//
// CustomMusicCell::loadFromObject from 0x100229b50 to 0x100229c86 (310 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x100227f7a
//
// This function is hookable on this platform (idp: pc, 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:27:06 +0000
//
__int64 __fastcall CustomMusicCell::loadFromObject(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v4; // rdi
int v5; // eax
int v6; // r10d
_BYTE *v7; // r14
__int64 result; // rax
_QWORD v9[4]; // [rsp+0h] [rbp-20h] BYREF
v9[0] = v2;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);
*(_QWORD *)(a1 + 560) = a2;
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 416) + 632LL);
if ( !v4 || (v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4), v6 = 0, v5 == 1) )
v6 = 1;
v7 = (_BYTE *)CustomSongWidget::create(*(_QWORD *)(a1 + 560), (int)a1 + 552, 1, 1, 1, 0, 0, 1, v6, 1, 0);
(*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v7, 2);
sub_100278250(v9, *(float *)(a1 + 520) * 0.5, 0.5 * *(float *)(a1 + 524));
(*(void (__fastcall **)(_BYTE *, _QWORD *))(*(_QWORD *)v7 + 184LL))(v7, v9);
v7[512] = 1;
CustomSongWidget::addExtraVisuals(
v7,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 560) + 448LL),
*(_DWORD *)(*(_QWORD *)(a1 + 560) + 452LL) > 0);
LODWORD(v7) = *(_DWORD *)(*(_QWORD *)(a1 + 560) + 316LL);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1160LL))(a1);
*(_BYTE *)(a1 + 568) = (_DWORD)v7 == (_DWORD)result;
return result;
}