//
// URLCell::loadFromObject from 0x33b8f8 to 0x33ba3e (326 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x33bc84
//
// 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 URLCell::loadFromObject(URLCell *a1, CCURLObject *a2)
{
cocos2d::CCLabelBMFont *v4; // r5
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCMenuItem *v6; // r1
cocos2d::CCNode *v7; // r7
ButtonSprite *v8; // r8
CCMenuItemSpriteExtra *v9; // r5
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
float v11; // [sp+10h] [bp-14h]
cocos2d::CCPoint v12; // [sp+14h] [bp-10h] BYREF
cocos2d::CCPoint v13; // [sp+1Ch] [bp-8h] BYREF
cocos2d::CCPoint v14; // [sp+24h] [bp+0h] BYREF
a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);
a1->m_urlObject = a2;
v4 = cocos2d::CCLabelBMFont::create();
cocos2d::CCLabelBMFont::limitLabelWidth(v4, 250.0, 0.5, 0.0);
a1->m_mainLayer->addChild(a1->m_mainLayer, v4);
setAnchorPoint = v4->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v14, 0.0, 0.5);
setAnchorPoint(v4, &v14);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int, _DWORD))v4->setPosition_0)(v4, 1097859072, a1->m_height * 0.5);
v7 = (cocos2d::CCNode *)cocos2d::CCMenu::create(nullptr, v6);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 3);
v8 = ButtonSprite::create(
(ButtonSprite *)"Open",
(const char *)&dword_64,
0,
0.7,
0,
"bigFont.fnt",
"GJ_button_01.png",
COERCE_CONST_CHAR_(30.0),
v11);
((void (__fastcall *)(ButtonSprite *, int))v8->setScale)(v8, 1058642330);
LODWORD(v14.x) = URLCell::onURL;
v14.y = 0.0;
v9 = CCMenuItemSpriteExtra::create(
v8,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(URLCell::onURL, (unsigned int)a1));
CCMenuItemSpriteExtra::setSizeMult(v9, 1.2);
(*(void (__fastcall **)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))((char *)&v7->copyWithZone + (unsigned int)off_DC))(
v7,
v9);
setPosition = v9->setPosition;
cocos2d::CCPoint::CCPoint(&v12, a1->m_width - 30.0, a1->m_height * 0.5);
cocos2d::CCNode::convertToNodeSpace(&v13, v7, &v12);
setPosition(v9, &v13);
}