//
// CustomSongCell::loadFromObject from 0x140150370 to 0x14015053e (462 bytes)
//
// 3 xrefs:
// > CustomListView::loadCell @ 0x140145af9
// > CustomListView::reloadAll @ 0x140146f7b
// > ??> @ 0x140917738
//
// 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 11:27:17 +0000
//
bool __fastcall CustomSongCell::loadFromObject(__int64 a1, __int64 a2)
{
__int64 v3; // rbx
int v4; // edx
int v5; // r9d
__int64 v6; // rdi
__int64 v7; // rbx
__int64 v8; // rax
struct cocos2d::CCSprite *v9; // rax
cocos2d::CCObject *v10; // rax
struct cocos2d::CCMenu *v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
bool result; // al
char v15; // [rsp+80h] [rbp+8h] BYREF
v3 = a2;
LOBYTE(a2) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2);
*(_QWORD *)(a1 + 568) = v3;
v4 = a1 + 560;
LOBYTE(v5) = 1;
if ( !a1 )
v4 = 0;
v6 = CustomSongWidget::create(v3, v4, 1, v5, 0, 0, 0, 0, 0, 0, 0);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(*(_QWORD *)(a1 + 544), v6, 2);
v7 = *(_QWORD *)v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *(float *)(a1 + 528) * 0.5, *(float *)(a1 + 532) * 0.5);
(*(void (__fastcall **)(__int64, __int64))(v7 + 184))(v6, v8);
*(_BYTE *)(v6 + 512) = 1;
v9 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png");
LODWORD(v7) = (_DWORD)v9;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 160LL))(v9);
v10 = CCMenuItemSpriteExtra::create(v7, 0, a1, (__int64)CustomSongCell::onDelete);
*((_DWORD *)v10 + 93) = 1069547520;
v11 = cocos2d::CCMenu::create(v10, 0);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(
*(_QWORD *)(a1 + 544),
v11,
3);
v12 = *(_QWORD *)v11;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v15,
(float)(*(float *)(a1 + 528) * 0.5) + 90.0,
(float)(*(float *)(a1 + 532) * 0.5) - 24.0);
(*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v12 + 184))(v11, v13);
result = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 320LL) == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)(a1 + 560)
+ 8LL))(a1 + 560);
*(_BYTE *)(a1 + 576) = result;
return result;
}