//
// URLViewLayer::create from 0x10037fddc to 0x10037fed0 (244 bytes)
//
// 4 xrefs:
// > sub_1002250B0 @ 0x1002254b0
// > sub_1002257FC @ 0x100225a44
// > LevelAreaInnerLayer::onInfo @ 0x1003e4ebc
// > sub_1005278F8 @ 0x10052793c
//
// 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 11:03:30 +0000
//
_QWORD *__fastcall URLViewLayer::create(__int64 a1, __int64 a2)
{
_QWORD *v4; // x19
int v5; // w0
int v6; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v9; // [xsp+10h] [xbp-30h]
v4 = operator new(0x268u);
GJDropDownLayer::GJDropDownLayer((__int64)v4);
*v4 = off_100936F38;
v4[40] = off_1009374B0;
v4[41] = &off_100937520;
v4[42] = off_100937538;
v4[43] = &off_100937558;
v4[44] = off_100937580;
v4[51] = off_1009375B0;
v4[54] = off_100937630;
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a1;
v9 = *(_QWORD *)(a1 + 16);
}
v5 = URLViewLayer::init(v4, __p, a2);
v6 = v5;
if ( SHIBYTE(v9) < 0 )
{
operator delete(__p[0]);
if ( v6 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);
return nullptr;
}
if ( !v5 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}