//
// URLViewLayer::init from 0x1002e5060 to 0x1002e5120 (192 bytes)
//
// 1 xrefs:
// > URLViewLayer::create @ 0x1002e4fe0
//
// 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
//
bool __fastcall URLViewLayer::init(__int64 a1, const char *a2, cocos2d::CCObject *a3)
{
_BOOL8 inited; // x20
cocos2d::CCDirector *v6; // x0
CustomListView *v7; // x21
if ( a2[23] < 0 )
a2 = *(const char **)a2;
inited = GJDropDownLayer::init_1((GJDropDownLayer *)a1, a2);
if ( inited )
{
if ( a3 )
{
*(_QWORD *)(a1 + 608) = a3;
cocos2d::CCObject::retain(a3);
}
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6);
v7 = CustomListView::create(*(cocos2d::CCArray **)(a1 + 608), nullptr, 220.0, 356.0, 0, URL, 0.0);
((void (__fastcall *)(CustomListView *, __int64))v7->setTag)(v7, 9);
(*(void (__fastcall **)(_QWORD, CustomListView *, __int64))(**(_QWORD **)(a1 + 568) + 448LL))(
*(_QWORD *)(a1 + 568),
v7,
6);
}
return inited;
}