//
// CustomSFXCell::loadFromObject from 0x100102a10 to 0x100102ae0 (208 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x100100f88
// > CustomListView::reloadAll @ 0x10010bc9c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CustomSFXCell::loadFromObject(CustomSFXCell *a1, SFXInfoObject *a2)
{
CustomSFXWidget *v4; // x20
__n128 v5; // q0
__n128 v6; // q1
int v7; // [xsp+8h] [xbp-18h] BYREF
((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);
a1->m_sfxObject = a2;
v4 = CustomSFXWidget::create(a2, &a1->CustomSFXDelegate, 1, 1, 1, 0, a1->m_compactMode);
v5 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, CustomSFXWidget *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v4,
2);
v5.n128_f32[0] = a1->m_width * 0.5;
v6.n128_f32[0] = a1->m_height * 0.5;
sub_100022980(v5, v6, &v7);
((void (__fastcall *)(CustomSFXWidget *, int *))v4->setPosition)(v4, &v7);
LODWORD(v4) = a1->m_sfxObject->m_sfxID;
a1->m_selected = (_DWORD)v4 == ((unsigned int (__fastcall *)(CustomSFXCell *))a1->getActiveSFXID)(a1);
}