//
// CustomSFXCell::loadFromObject from 0x140150920 to 0x140150a77 (343 bytes)
//
// 3 xrefs:
// > CustomListView::loadCell @ 0x140145bca
// > CustomListView::reloadAll @ 0x140146eea
// > ??> @ 0x140917780
//
// 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
//
char __fastcall CustomSFXCell::loadFromObject(__int64 a1, __int64 a2)
{
__int64 v3; // rbx
int v4; // r8d
int v5; // r9d
__int64 v6; // rax
__int64 v7; // rcx
__int64 v8; // r14
int v9; // edx
__int64 *v10; // rdi
__int64 v11; // rbx
__int64 v12; // rax
int v13; // eax
__int64 v14; // rcx
int v15; // eax
char result; // al
char v17; // [rsp+60h] [rbp+8h] BYREF
v3 = a2;
LOBYTE(a2) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2);
v6 = *(_QWORD *)(a1 + 416);
*(_QWORD *)(a1 + 568) = v3;
v7 = *(_QWORD *)(v6 + 624);
if ( v7 )
(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 24LL))(v7);
v8 = a1 + 560;
v9 = a1 + 560;
if ( !a1 )
v9 = 0;
LOBYTE(v4) = 1;
v10 = (__int64 *)CustomSFXWidget::create(*(_QWORD *)(a1 + 568), v9, v4, v5);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(*(_QWORD *)(a1 + 544), v10, 2);
v11 = *v10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, *(float *)(a1 + 528) * 0.5, *(float *)(a1 + 532) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v11 + 184))(v10, v12);
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 8LL))(a1 + 560);
v14 = *(_QWORD *)(a1 + 568);
result = false;
if ( *(_DWORD *)(v14 + 56) == v13 )
{
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 16LL))(a1 + 560);
v14 = *(_QWORD *)(a1 + 568);
if ( *(_DWORD *)(v14 + 76) == v15 )
result = true;
}
*(_BYTE *)(a1 + 576) = result;
*(_BYTE *)(a1 + 577) = *(int *)(v14 + 76) > 0
&& (result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 56LL))(a1 + 560)) != 0;
return result;
}