//
// URLViewLayer::init from 0xa217e0 to 0xa218c8 (232 bytes)
//
// 2 xrefs:
// > URLViewLayer::create @ 0xa2b1a8
// > ??> @ 0xde1d8
//
// This function is hookable on this platform (idp: arm, 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:59:40 +0000
//
__int64 __fastcall URLViewLayer::init(GameToolbox **this, char *a2, cocos2d::CCObject *a3)
{
cocos2d::CCLabelBMFont *v5; // x1
char v6; // t1
unsigned __int64 v7; // x0
unsigned int v8; // w21
cocos2d::CCDirector *v9; // x0
__int64 v10; // x22
__int64 v13; // [xsp+40h] [xbp+40h] BYREF
v6 = *a2;
v5 = (cocos2d::CCLabelBMFont *)(a2 + 1);
if ( (v6 & 1) != 0 )
v5 = *((cocos2d::CCLabelBMFont **)a2 + 2);
v7 = (unsigned __int8)GJDropDownLayer::init(this, v5);
v8 = (unsigned __int8)v7;
if ( (_BYTE)v7 )
{
if ( a3 )
{
*(this + 76) = a3;
v7 = cocos2d::CCObject::retain(a3);
}
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v7);
cocos2d::CCDirector::getWinSize(&v13, v9);
v10 = CustomListView::create(*(this + 76), 0, 0, 32, 220.0, 356.0, 0.0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 72LL))(v10, 9);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 71) + 464LL))(*(this + 71), v10, 6);
}
return v8;
}