//
// CustomSongCell::loadFromObject from 0x738168 to 0x738344 (476 bytes)
//
// 3 xrefs:
// > CustomListView::reloadAll @ 0x7490dc
// > CustomListView::loadCell @ 0x74d44c
// > ??> @ 0x8a220
//
// 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
//
bool __fastcall CustomSongCell::loadFromObject(CustomSongCell *this, SongInfoObject *a2)
{
_BYTE *v4; // x22
void (__fastcall *v5)(_BYTE *, _BYTE *); // x23
__int64 v6; // x22
cocos2d::CCMenu *v7; // x22
__int64 v8; // x22
void (__fastcall *v9)(__int64, _BYTE *); // x23
int v10; // w20
_BOOL8 result; // x0
bool v12; // [xsp+18h] [xbp-8h]
_BYTE v13[8]; // [xsp+60h] [xbp+40h] BYREF
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1);
*((_QWORD *)this + 70) = a2;
v4 = (_BYTE *)CustomSongWidget::create(
a2,
(CustomSongCell *)((char *)this + 552),
(CustomSongDelegate *)((char *)&dword_0 + 1),
(bool)&dword_0 + 1,
0,
0,
0,
0,
0,
0,
0,
v12);
(*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v4, 2);
v5 = *(void (__fastcall **)(_BYTE *, _BYTE *))(*(_QWORD *)v4 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *((float *)this + 130) * 0.5, *((float *)this + 131) * 0.5);
v5(v4, v13);
v4[512] = (unsigned __int8)&dword_0 + 1;
v6 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_trashBtn_001.png",
(const char *)&dword_0 + 1);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 0.6);
v7 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v6, 0, (__int64)this, (__int64)CustomSongCell::onDelete, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v7, 1.5);
v8 = cocos2d::CCMenu::create(v7, nullptr);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v8, 3);
v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v13,
(float)(*((float *)this + 130) * 0.5) + 90.0,
(float)(*((float *)this + 131) * 0.5) + -24.0);
v9(v8, v13);
v10 = *(_DWORD *)(*((_QWORD *)this + 70) + 316LL);
result = v10 == (*(unsigned int (__fastcall **)(CustomSongCell *))(*(_QWORD *)this + 1160LL))(this);
*((_BYTE *)this + 568) = result;
return result;
}