//
// URLCell::loadFromObject from 0x14015fab0 to 0x14015fce5 (565 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x140145caa
// > ??> @ 0x140917c90
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:27:24 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall URLCell::loadFromObject(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
const char *v4; // rcx
cocos2d::CCLabelBMFont *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
struct cocos2d::CCMenu *v8; // r14
cocos2d::CCObject *v9; // rbx
cocos2d::CCObject *v10; // rdi
__int64 v11; // rbx
__int64 v12; // rax
__int64 v13; // rax
void *v15; // [rsp+90h] [rbp+8h] BYREF
char v16; // [rsp+98h] [rbp+10h] BYREF
v2 = a2;
LOBYTE(a2) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2);
*(_QWORD *)(a1 + 560) = v2;
v4 = (const char *)(v2 + 56);
if ( *(_QWORD *)(v2 + 80) > 0xFu )
v4 = *(const char **)v4;
v5 = cocos2d::CCLabelBMFont::create(v4, (const char *)&qword_140704F78);
cocos2d::CCLabelBMFont::limitLabelWidth(v5, 250.0, 0.5, 0.0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))(
*(_QWORD *)(a1 + 544),
v5);
v6 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 0.5);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v6 + 288))(v5, v7);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v5 + 176LL))(v5);
v8 = cocos2d::CCMenu::create(nullptr);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(
*(_QWORD *)(a1 + 544),
v8,
3);
v15 = operator new(0x2C8u);
v9 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v15);
if ( v9 )
{
if ( ButtonSprite::init_1(
(__int64)v9,
(__int64)"Open",
100,
0,
1060320051,
0,
&qword_140704F78,
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
v9 = nullptr;
}
}
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 160LL))(v9);
v10 = CCMenuItemSpriteExtra::create((int)v9, 0, a1, (__int64)URLCell::onURL);
*((_DWORD *)v10 + 93) = 1067030938;
(*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v8 + 464LL))(v8, v10);
v11 = *(_QWORD *)v10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *(float *)(a1 + 528) - 30.0, *(float *)(a1 + 532) * 0.5);
cocos2d::CCNode::convertToNodeSpace(v8, &v16, v12);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *, __int64))(v11 + 184))(v10, v13);
}