//
// CustomSFXCell::loadFromObject from 0x4259b0 to 0x425aaa (250 bytes)
//
// 2 xrefs:
// > CustomListView::reloadAll @ 0x43132c
// > CustomListView::loadCell @ 0x43406c
//
// 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
//
int __fastcall CustomSFXCell::loadFromObject(CustomSFXCell *this, SFXInfoObject *a2)
{
int v4; // r3
int v5; // r0
int v6; // r8
void (__fastcall *v7)(int, _BYTE *); // r9
int v8; // r6
int v9; // r5
bool v10; // r0
int v11; // r3
int result; // r0
bool v13; // [sp+14h] [bp-18h]
_BYTE v14[8]; // [sp+1Ch] [bp-10h] BYREF
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
v4 = *((_DWORD *)this + 80);
*((_DWORD *)this + 106) = a2;
v5 = *(_DWORD *)(v4 + 464);
if ( v5 )
LOBYTE(v5) = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 12))(v5);
v6 = CustomSFXWidget::create(
*((CustomSFXWidget **)this + 106),
(CustomSFXCell *)((char *)this + 420),
(CustomSFXDelegate *)((char *)&dword_0 + 1),
(bool)&dword_0 + 1,
(bool)&dword_0 + 1,
0,
*((_BYTE *)this + 430),
(bool)&dword_0 + 1,
v5,
v13);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v6, 2);
v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, *((float *)this + 100) * 0.5, *((float *)this + 101) * 0.5);
v7(v6, v14);
v8 = *(_DWORD *)(*((_DWORD *)this + 106) + 52);
if ( v8 == (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 580))(this) )
{
v9 = *(_DWORD *)(*((_DWORD *)this + 106) + 72);
v10 = v9 == (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 584))(this);
}
else
{
v10 = 0;
}
v11 = *((_DWORD *)this + 106);
*((_BYTE *)this + 428) = v10;
if ( *(int *)(v11 + 72) <= 0 )
result = 0;
else
result = (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 600))(this);
*((_BYTE *)this + 429) = result;
return result;
}