//
// URLViewLayer::create from 0x1002b6030 to 0x1002b61e3 (435 bytes)
//
// 4 xrefs:
// > LevelAreaInnerLayer::onInfo @ 0x10027b25f
// > SupportLayer::onLinks @ 0x1003999be
// > SupportLayer::onSFX @ 0x10039a14a
// > SFXBrowser::onCredits @ 0x10043f82f
//
// 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
//
char *__fastcall URLViewLayer::create(__int128 *a1, __int64 a2)
{
char *v2; // rbx
char v3; // r14
__int128 v5; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v2 = (char *)operator new(0x268u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*(_QWORD *)v2 = off_100978158;
*((_QWORD *)v2 + 40) = off_1009786C0;
*((_QWORD *)v2 + 41) = &off_100978730;
*((_QWORD *)v2 + 42) = off_100978748;
*((_QWORD *)v2 + 43) = off_100978768;
*((_QWORD *)v2 + 44) = off_100978788;
*((_QWORD *)v2 + 51) = off_1009787B0;
*((_QWORD *)v2 + 54) = off_100978830;
sub_10028CC30((_QWORD *)v2 + 68);
sub_10028CC30((_QWORD *)v2 + 69);
*((_QWORD *)v2 + 74) = 0;
v2[600] = 0;
*((_OWORD *)v2 + 35) = 0;
*(_OWORD *)(v2 + 569) = 0;
*(_QWORD *)v2 = off_1008FCF40;
*((_QWORD *)v2 + 40) = off_1008FD4A8;
*((_QWORD *)v2 + 41) = &off_1008FD518;
*((_QWORD *)v2 + 42) = off_1008FD530;
*((_QWORD *)v2 + 43) = off_1008FD550;
*((_QWORD *)v2 + 44) = off_1008FD570;
*((_QWORD *)v2 + 51) = off_1008FD598;
*((_QWORD *)v2 + 54) = off_1008FD618;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_100006B70(&v5, *((const void **)a1 + 2), *((_QWORD *)a1 + 1), 0.0);
}
else
{
__p = *((void **)a1 + 2);
v5 = *a1;
}
v3 = URLViewLayer::init(v2, &v5, a2);
if ( (v5 & 1) != 0 )
operator delete(__p);
if ( v3 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}