//
// URLViewLayer::create from 0xa2b080 to 0xa2b26c (492 bytes)
//
// 5 xrefs:
// > SupportLayer::onSFX @ 0x901afc
// > SupportLayer::onLinks @ 0x9024b0
// > LevelAreaInnerLayer::onInfo @ 0xb5ae54
// > SFXChangelogPopup::onCredits @ 0xb984b8
// > ??> @ 0x60eb0
//
// 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:44 +0000
//
__int64 __fastcall URLViewLayer::create(char *a1, cocos2d::CCObject *a2)
{
__int64 v4; // x19
char v5; // w0
__int64 v6; // x0
__int64 v7; // x1
int v8; // w21
__int64 v9; // x1
__int64 v10; // x0
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v4 = operator new(0x268u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v4);
*(_QWORD *)v4 = &off_145E470;
*(_QWORD *)(v4 + 320) = off_145E9E8;
*(_QWORD *)(v4 + 328) = &off_145EA58;
*(_QWORD *)(v4 + 336) = off_145EA70;
*(_QWORD *)(v4 + 344) = off_145EA90;
*(_QWORD *)(v4 + 352) = off_145EAB8;
*(_QWORD *)(v4 + 408) = &off_145EAE8;
*(_QWORD *)(v4 + 432) = &off_145EB68;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 544));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 552));
*(_QWORD *)(v4 + 560) = 0;
*(_QWORD *)(v4 + 568) = 0;
*(_QWORD *)(v4 + 576) = 0;
*(_BYTE *)(v4 + 584) = 0;
*(_QWORD *)(v4 + 592) = 0;
*(_BYTE *)(v4 + 600) = 0;
*(_QWORD *)v4 = &off_1484730;
*(_QWORD *)(v4 + 320) = off_1484CA8;
*(_QWORD *)(v4 + 328) = &off_1484D18;
*(_QWORD *)(v4 + 336) = off_1484D30;
*(_QWORD *)(v4 + 344) = off_1484D50;
*(_QWORD *)(v4 + 352) = off_1484D78;
*(_QWORD *)(v4 + 408) = &off_1484DA8;
*(_QWORD *)(v4 + 432) = &off_1484E28;
v12 = 0;
v5 = *a1;
v13 = 0;
v14 = nullptr;
if ( (v5 & 1) != 0 )
{
std::string::__init(&v12, *((void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
v6 = *(_QWORD *)a1;
v7 = *((_QWORD *)a1 + 1);
v14 = *((void **)a1 + 2);
v12 = v6;
v13 = v7;
}
v8 = (unsigned __int8)URLViewLayer::init((GameToolbox **)v4, (char *)&v12, a2);
if ( (v12 & 1) != 0 )
operator delete(v14);
if ( v8 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
v9 = *(_QWORD *)v4;
v10 = v4;
v4 = 0;
(*(void (__fastcall **)(__int64))(v9 + 16))(v10);
}
return v4;
}