//
// URLViewLayer::create from 0x1002a4010 to 0x1002a41c3 (435 bytes)
//
// 4 xrefs:
// > LevelAreaInnerLayer::onInfo @ 0x10026785f
// > SupportLayer::onLinks @ 0x100383420
// > SupportLayer::onSFX @ 0x100383bda
// > SFXChangelogPopup::onCredits @ 0x100970daf
//
// 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
//
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_100B8B4F0;
*((_QWORD *)v2 + 40) = off_100B8BA68;
*((_QWORD *)v2 + 41) = &off_100B8BAD8;
*((_QWORD *)v2 + 42) = off_100B8BAF0;
*((_QWORD *)v2 + 43) = off_100B8BB10;
*((_QWORD *)v2 + 44) = off_100B8BB38;
*((_QWORD *)v2 + 51) = off_100B8BB68;
*((_QWORD *)v2 + 54) = off_100B8BBE8;
sub_1002782A0((_QWORD *)v2 + 68);
sub_1002782A0((_QWORD *)v2 + 69);
*((_QWORD *)v2 + 74) = 0;
v2[600] = 0;
*((_OWORD *)v2 + 35) = 0;
*(_OWORD *)(v2 + 569) = 0;
*(_QWORD *)v2 = off_100B044B0;
*((_QWORD *)v2 + 40) = off_100B04A28;
*((_QWORD *)v2 + 41) = &off_100B04A98;
*((_QWORD *)v2 + 42) = off_100B04AB0;
*((_QWORD *)v2 + 43) = off_100B04AD0;
*((_QWORD *)v2 + 44) = off_100B04AF8;
*((_QWORD *)v2 + 51) = off_100B04B28;
*((_QWORD *)v2 + 54) = off_100B04BA8;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_10001AD30(&v5, *((const void **)a1 + 2), *((_QWORD *)a1 + 1));
}
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(v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}