//
// CustomSFXCell::loadFromObject from 0x1400b4bb0 to 0x1400b4c99 (233 bytes)
//
// 3 xrefs:
// > CustomListView::loadCell @ 0x1400ab796
// > CustomListView::reloadAll @ 0x1400ac681
// > ??> @ 0x1406c7b48
//
// 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 CustomSFXCell::loadFromObject(CustomSFXCell *a1, SFXInfoObject *a2)
{
SFXInfoObject *v3; // rbx
bool v4; // r9
CustomSFXDelegate *v5; // rdx
CustomSFXWidget *v6; // rdi
CustomSFXWidget_vtbl *v7; // rbx
const cocos2d::CCPoint *v8; // rax
bool v9; // [rsp+20h] [rbp-28h]
bool v10; // [rsp+28h] [rbp-20h]
cocos2d::CCPoint v11; // [rsp+50h] [rbp+8h] BYREF
v3 = a2;
LOBYTE(a2) = 1;
a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2);
a1->m_sfxObject = v3;
v5 = &a1->CustomSFXDelegate;
if ( !a1 )
v5 = nullptr;
v6 = CustomSFXWidget::create(v3, v5, 1, v4, v9, v10, a1->m_compactMode);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 2);
v7 = v6->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v11, a1->m_width * 0.5, a1->m_height * 0.5);
v7->setPosition_0(v6, v8);
a1->m_selected = a1->m_sfxObject->m_sfxID == a1->getActiveSFXID(&a1->CustomSFXDelegate);
}