//
// URLViewLayer::init from 0x1002b6220 to 0x1002b62e0 (192 bytes)
//
// 1 xrefs:
// > URLViewLayer::create @ 0x1002b61a4
//
// 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, __int64 a2, cocos2d::CCObject *a3)
{
__int64 v3; // rax
bool result; // al
bool v6; // r15
CustomListView *v7; // r14
__int64 v8; // [rsp+0h] [rbp-20h] BYREF
v8 = v3;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
result = GJDropDownLayer::init_1((GJDropDownLayer *)a1, *(const char **)(a2 + 16));
if ( !result )
return result;
}
else
{
result = GJDropDownLayer::init_1((GJDropDownLayer *)a1, (const char *)(a2 + 1));
if ( !result )
return result;
}
v6 = result;
if ( a3 )
{
*(_QWORD *)(a1 + 608) = a3;
cocos2d::CCObject::retain(a3);
}
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v8);
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 v6;
}