//
// URLViewLayer::init from 0x1002a4200 to 0x1002a42c0 (192 bytes)
//
// 1 xrefs:
// > URLViewLayer::create @ 0x1002a4184
//
// 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 12:27:55 +0000
//
__int64 __fastcall URLViewLayer::init(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
__int64 v5; // rbx
__int64 v6; // rsi
__int64 result; // rax
unsigned int v8; // r15d
__int64 v9; // rax
char *v10; // r14
_QWORD v11[4]; // [rsp+0h] [rbp-20h] BYREF
v11[0] = v3;
v5 = a1;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v6 = *(_QWORD *)(a2 + 16);
result = GJDropDownLayer::init_1(a1, v6);
if ( !(_BYTE)result )
return result;
}
else
{
v6 = a2 + 1;
result = GJDropDownLayer::init_1(a1, v6);
if ( !(_BYTE)result )
return result;
}
v8 = result;
if ( a3 )
{
*(_QWORD *)(a1 + 608) = a3;
a1 = a3;
cocos2d::CCObject::retain(a3);
}
v9 = cocos2d::CCDirector::sharedDirector(a1, v6);
cocos2d::CCDirector::getWinSize(v11, v9);
v10 = CustomListView::create(*(_QWORD *)(v5 + 608), 0, 0, 0x20u, 220.0, 356.0, 0.0);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v10 + 72LL))(v10, 9);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v5 + 568) + 464LL))(*(_QWORD *)(v5 + 568), v10, 6);
return v8;
}