//
// URLViewLayer::create from 0x1403aaa10 to 0x1403aabe3 (467 bytes)
//
// 5 xrefs:
// > LevelAreaInnerLayer::onInfo @ 0x1403e1404
// > SFXChangelogPopup::onCredits @ 0x140621324
// > SupportLayer::onSFX @ 0x14066af96
// > SupportLayer::onLinks @ 0x14066c094
// > ??> @ 0x1409239f0
//
// 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 11:31:20 +0000
//
// Hidden C++ exception states: #wind=3
void *__fastcall URLViewLayer::create(__int64 a1, cocos2d::CCObject *a2)
{
void *v4; // rdi
__int64 *v5; // rax
__int64 v6; // rsi
__int64 v7; // rdx
__int64 v8; // rcx
__int64 v9; // rax
_QWORD *v10; // rbx
__int64 v12; // [rsp+20h] [rbp-68h]
_BYTE v13[8]; // [rsp+48h] [rbp-40h] BYREF
_BYTE v14[32]; // [rsp+50h] [rbp-38h] BYREF
__int64 v15; // [rsp+70h] [rbp-18h]
v15 = a1;
v4 = operator new(0x268u);
GJDropDownLayer::GJDropDownLayer((__int64)v4);
*(_QWORD *)v4 = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 40) = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 41) = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 42) = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 43) = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 44) = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 51) = &URLViewLayer::`vftable';
*((_QWORD *)v4 + 54) = &URLViewLayer::`vftable';
v5 = (__int64 *)sub_14003F4F0((__int64)v14, a1);
v6 = (__int64)v5;
LODWORD(v7) = (_DWORD)v5;
if ( (unsigned __int64)v5[3] > 0xF )
v7 = *v5;
if ( GJDropDownLayer::init((__int64 *)v4, v7, 220.0, 0) )
{
if ( a2 )
{
*((_QWORD *)v4 + 76) = a2;
cocos2d::CCObject::retain(a2);
}
v9 = cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getWinSize(v9, v13);
v10 = CustomListView::create(*((cocos2d::CCObject **)v4 + 76), 0, 220.0, 356.0, v12, 32);
(*(void (__fastcall **)(_QWORD *, __int64))(*v10 + 64LL))(v10, 9);
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**((_QWORD **)v4 + 71) + 456LL))(*((_QWORD *)v4 + 71), v10, 6);
sub_14003D310(v6);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
sub_14003D310(v6);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
v4 = nullptr;
}
sub_14003D310(a1);
return v4;
}