//
// URLCell::loadFromObject from 0x100105a48 to 0x100105c14 (460 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x100101144
//
// 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 URLCell::loadFromObject(URLCell *a1, CCURLObject *a2)
{
std::string *p_m_name; // x0
cocos2d::CCLabelBMFont *v5; // x21
__n128 v6; // q0
__n128 v7; // q1
cocos2d::CCNode *v8; // x21
ButtonSprite *v9; // x20
CCMenuItemSpriteExtra *v10; // x20
__n128 v11; // q0
__n128 v12; // q1
cocos2d::CCPoint v13; // [xsp+0h] [xbp-40h] BYREF
int v14; // [xsp+8h] [xbp-38h] BYREF
cocos2d::CCPoint v15; // 0:kr00_8.8
cocos2d::SEL_MenuHandler v16; // 0:x3.16
((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);
a1->m_urlObject = a2;
p_m_name = &a2->m_name;
if ( a2->m_name.m_data.m_short.shortStorage.__elems_[22] < 0 )
p_m_name = (std::string *)p_m_name->m_data.m_long.capacitym1;
v5 = cocos2d::CCLabelBMFont::create_1((const char *)p_m_name, "bigFont.fnt");
cocos2d::CCLabelBMFont::limitLabelWidth(v5, 250.0, 0.5, 0.0);
v6 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(
a1->m_mainLayer,
v5);
v6.n128_u32[0] = 0;
v7.n128_u32[0] = 0.5;
sub_100022980(v6, v7, &v14);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int *))v5->setAnchorPoint)(v5, &v14);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float, float))v5->setPosition_0)(v5, 15.0, a1->m_height * 0.5);
v8 = (cocos2d::CCNode *)sub_1001D7ED0(0);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v8,
3);
v9 = ButtonSprite::create_1("Open", 100, 0, 0.7, 0, "bigFont.fnt", "GJ_button_01.png", 30.0);
((void (__fastcall *)(ButtonSprite *, float))v9->setScale)(v9, 0.6);
v16.ptr = (void (__cdecl *)(cocos2d::CCObject *))URLCell::onURL;
v16.adj = 0;
v10 = CCMenuItemSpriteExtra::create(v9, nullptr, a1, v16);
CCMenuItemSpriteExtra::setSizeMult(v10, 1.2);
v11 = ((__n128 (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v8->addChild)(v8, v10);
v11.n128_f32[0] = a1->m_width + -30.0;
v12.n128_f32[0] = a1->m_height * 0.5;
sub_100022980(v11, v12, &v13);
v15 = cocos2d::CCNode::convertToNodeSpace(v8, &v13);
((void (__fastcall *)(CCMenuItemSpriteExtra *, int *, float, float))v10->setPosition)(v10, &v14, v15.x, v15.y);
}