//
// CustomSongCell::loadFromObject from 0x425780 to 0x4258c4 (324 bytes)
//
// 2 xrefs:
// > CustomListView::reloadAll @ 0x43134a
// > CustomListView::loadCell @ 0x434012
//
// 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 CustomSongCell::loadFromObject(CustomSongCell *this, SongInfoObject *a2)
{
_BYTE *v4; // r7
void (__fastcall *v5)(_BYTE *, _DWORD *); // r9
const char *v6; // r1
int v7; // r7
cocos2d::CCMenu *v8; // r7
int v9; // r7
void (__fastcall *v10)(int, _BYTE *); // r8
int v11; // r5
_BOOL4 result; // r0
bool v13; // [sp+1Ch] [bp-20h]
_BYTE v14[8]; // [sp+24h] [bp-18h] BYREF
_DWORD v15[2]; // [sp+2Ch] [bp-10h] BYREF
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
*((_DWORD *)this + 106) = a2;
v4 = (_BYTE *)CustomSongWidget::create(
a2,
(CustomSongCell *)((char *)this + 420),
(CustomSongDelegate *)((char *)&dword_0 + 1),
(bool)&dword_0 + 1,
0,
0,
0,
0,
0,
0,
0,
v13);
(*(void (__fastcall **)(_DWORD, _BYTE *, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v4, 2);
v5 = *(void (__fastcall **)(_BYTE *, _DWORD *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *((float *)this + 100) * 0.5, *((float *)this + 101) * 0.5);
v5(v4, v15);
v4[368] = 1;
v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_trashBtn_001.png", v6);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1058642330);
v15[0] = CustomSongCell::onDelete;
v15[1] = 0;
v8 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v7, 0, (int)this, (int)CustomSongCell::onDelete, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v8, 1.5);
v9 = cocos2d::CCMenu::create(v8, nullptr);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v9, 3);
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v14,
(float)(*((float *)this + 100) * 0.5) + 90.0,
(float)(*((float *)this + 101) * 0.5) - 24.0);
v10(v9, v14);
v11 = *(_DWORD *)(*((_DWORD *)this + 106) + 264);
result = v11 == (*(int (__fastcall **)(CustomSongCell *))(*(_DWORD *)this + 580))(this);
*((_BYTE *)this + 428) = result;
return result;
}