//
// URLCell::loadFromObject from 0x426f30 to 0x427082 (338 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x43413e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:04 +0000
//
int __fastcall URLCell::loadFromObject(URLCell *this, CCURLObject *a2)
{
const char *v4; // r2
cocos2d::CCLabelBMFont *v5; // r0
cocos2d::CCLabelBMFont *v6; // r5
void (__fastcall *v7)(cocos2d::CCLabelBMFont *, _DWORD *); // r9
cocos2d::CCMenuItem *v8; // r1
const cocos2d::CCPoint *v9; // r7
ButtonSprite *v10; // r8
int v11; // r5
int (__fastcall *v12)(int, _BYTE *); // r9
float v14; // [sp+10h] [bp-14h]
_BYTE v15[8]; // [sp+14h] [bp-10h] BYREF
_BYTE v16[8]; // [sp+1Ch] [bp-8h] BYREF
_DWORD v17[2]; // [sp+24h] [bp+0h] BYREF
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
*((_DWORD *)this + 105) = a2;
if ( (*((_BYTE *)a2 + 52) & 1) != 0 )
v5 = *((cocos2d::CCLabelBMFont **)a2 + 15);
else
v5 = (CCURLObject *)((char *)a2 + 53);
v6 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v5, "bigFont.fnt", v4);
cocos2d::CCLabelBMFont::limitLabelWidth(v6, 250.0, 0.5, 0.0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v6);
v7 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v6 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, 0.5);
v7(v6, v17);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int, _DWORD))(*(_DWORD *)v6 + 100))(
v6,
1097859072,
*((float *)this + 101) * 0.5);
v9 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(nullptr, v8);
(*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 103) + 232))(
*((_DWORD *)this + 103),
v9,
3);
v10 = ButtonSprite::create(
(ButtonSprite *)"Open",
(const char *)&dword_64,
0,
0.7,
0,
"bigFont.fnt",
"GJ_button_01.png",
COERCE_CONST_CHAR_(30.0),
v14);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v10 + 80))(v10, 1058642330);
v17[0] = URLCell::onURL;
v17[1] = 0;
v11 = CCMenuItemSpriteExtra::create((int)v10, 0, (int)this, (int)URLCell::onURL, 0);
CCMenuItemSpriteExtra::setSizeMult(v11, 1.2);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))((char *)&dword_E4 + *(_DWORD *)v9))(v9, v11);
v12 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *((float *)this + 100) - 30.0, *((float *)this + 101) * 0.5);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v16, v9);
return v12(v11, v16);
}