//
// CustomMusicCell::loadFromObject from 0x100127500 to 0x100127634 (308 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x10012602c
//
// 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 10:59:18 +0000
//
__int64 __fastcall CustomMusicCell::loadFromObject(__int64 a1, __int64 a2)
{
__int64 v4; // x0
_BOOL4 v5; // w8
_BYTE *v6; // x20
__int64 result; // x0
float v8; // [xsp+8h] [xbp-28h] BYREF
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);
*(_QWORD *)(a1 + 560) = a2;
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 416) + 632LL);
v5 = !v4 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == 1;
v6 = CustomSongWidget::create(*(_QWORD *)(a1 + 560), a1 + 552, 1, 1, 1, 0, 0, 1, v5, 1);
(*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v6, 2);
sub_1000262BC(&v8, *(float *)(a1 + 520) * 0.5, *(float *)(a1 + 524) * 0.5);
(*(void (__fastcall **)(_BYTE *, float *))(*(_QWORD *)v6 + 184LL))(v6, &v8);
v6[512] = 1;
CustomSongWidget::addExtraVisuals(
(__int64)v6,
*(_BYTE *)(*(_QWORD *)(a1 + 560) + 448LL),
*(_DWORD *)(*(_QWORD *)(a1 + 560) + 452LL) > 0);
LODWORD(v6) = *(_DWORD *)(*(_QWORD *)(a1 + 560) + 316LL);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1160LL))(a1);
*(_BYTE *)(a1 + 568) = (_DWORD)v6 == (_DWORD)result;
return result;
}