//
// CustomSFXCell::loadFromObject from 0x738494 to 0x738630 (412 bytes)
//
// 3 xrefs:
// > CustomListView::reloadAll @ 0x7490f8
// > CustomListView::loadCell @ 0x74d324
// > ??> @ 0x4ba60
//
// 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
//
__int64 __fastcall CustomSFXCell::loadFromObject(CustomSFXCell *this, SFXInfoObject *a2)
{
__int64 v4; // x0
char v5; // w0
__int64 v6; // x22
void (__fastcall *v7)(__int64, _BYTE *); // x21
bool v8; // zf
bool v9; // w0
__int64 v10; // x1
char v11; // w0
int v13; // w21
bool v14; // [xsp+8h] [xbp-8h]
_BYTE v15[8]; // [xsp+50h] [xbp+40h] BYREF
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1);
*((_QWORD *)this + 70) = a2;
v4 = *(_QWORD *)(*((_QWORD *)this + 52) + 632LL);
if ( v4 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 24LL))(v4);
a2 = *((SFXInfoObject **)this + 70);
}
else
{
v5 = 0;
}
v6 = CustomSFXWidget::create(
a2,
(CustomSFXCell *)((char *)this + 552),
(CustomSFXDelegate *)((char *)&dword_0 + 1),
(bool)&dword_0 + 1,
(bool)&dword_0 + 1,
0,
*((_BYTE *)this + 570),
(bool)&dword_0 + 1,
v5,
v14);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v6, 2);
v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *((float *)this + 130) * 0.5, *((float *)this + 131) * 0.5);
v7(v6, v15);
LODWORD(v7) = *(_DWORD *)(*((_QWORD *)this + 70) + 56LL);
v8 = (_DWORD)v7 == (*(unsigned int (__fastcall **)(CustomSFXCell *))(*(_QWORD *)this + 1160LL))(this);
v9 = 0;
if ( v8 )
{
v13 = *(_DWORD *)(*((_QWORD *)this + 70) + 76LL);
v9 = v13 == (*(unsigned int (__fastcall **)(CustomSFXCell *))(*(_QWORD *)this + 1168LL))(this);
}
v10 = *((_QWORD *)this + 70);
*((_BYTE *)this + 568) = v9;
if ( *(int *)(v10 + 76) <= 0 )
v11 = 0;
else
v11 = (*(__int64 (__fastcall **)(CustomSFXCell *))(*(_QWORD *)this + 1200LL))(this);
*((_BYTE *)this + 569) = v11;
return _stack_chk_guard;
}