//
// URLViewLayer::init from 0x5d5840 to 0x5d58c4 (132 bytes)
//
// 1 xrefs:
// > URLViewLayer::create @ 0x5d8a2e
//
// 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:54:08 +0000
//
cocos2d::CCDirector *__fastcall URLViewLayer::init(int a1, int a2, cocos2d::CCObject *a3)
{
cocos2d::CCLabelBMFont *v5; // r1
cocos2d::CCDirector *v6; // r0
cocos2d::CCDirector *v7; // r7
cocos2d::CCLayer *v8; // r6
char v10[8]; // [sp+14h] [bp-10h] BYREF
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(cocos2d::CCLabelBMFont **)(a2 + 8);
else
v5 = (cocos2d::CCLabelBMFont *)(a2 + 1);
v6 = (cocos2d::CCDirector *)GJDropDownLayer::init((GameToolbox **)a1, v5);
v7 = v6;
if ( v6 )
{
if ( a3 )
{
*(_DWORD *)(a1 + 480) = a3;
v6 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a3);
}
cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10);
v8 = CustomListView::create(*(cocos2d::CCObject **)(a1 + 480), 0, 1130102784, 1135738880, 0, 32, 0);
(*(void (__fastcall **)(cocos2d::CCLayer *, int))(*(_DWORD *)v8 + 36))(v8, 9);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLayer *, int))(**(_DWORD **)(a1 + 460) + 232))(
*(_DWORD *)(a1 + 460),
v8,
6);
}
return v7;
}