//
// URLViewLayer::create from 0x4b3778 to 0x4b38a8 (304 bytes)
//
// 4 xrefs:
// > SupportLayer::onSFX @ 0x42c3cc
// > SupportLayer::onLinks @ 0x42c6a6
// > LevelAreaInnerLayer::onInfo @ 0x56bc08
// > SFXBrowser::onCredits @ 0x582ed8
//
// 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
//
int __fastcall URLViewLayer::create(const char *a1, char *a2)
{
int v3; // r4
_BOOL4 v4; // r6
int v5; // r3
int v6; // r0
const char *v8[2]; // [sp+0h] [bp-8h] BYREF
v8[0] = a1;
v8[1] = a2;
v3 = operator new(0x1E4u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
*(_DWORD *)v3 = &off_A5F2D8;
*(_DWORD *)(v3 + 264) = &off_A5F58C;
*(_DWORD *)(v3 + 268) = &off_A5F5C4;
*(_DWORD *)(v3 + 272) = &off_A5F5D0;
*(_DWORD *)(v3 + 276) = &off_A5F5E0;
*(_DWORD *)(v3 + 280) = &off_A5F5F0;
*(_DWORD *)(v3 + 316) = &off_A5F604;
*(_DWORD *)(v3 + 332) = &off_A5F644;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 440));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 448));
*(_DWORD *)(v3 + 456) = 0;
*(_DWORD *)(v3 + 460) = 0;
*(_DWORD *)(v3 + 464) = 0;
*(_BYTE *)(v3 + 468) = 0;
*(_DWORD *)(v3 + 472) = 0;
*(_BYTE *)(v3 + 476) = 0;
*(_DWORD *)v3 = &off_A70BF0;
*(_DWORD *)(v3 + 264) = &off_A70EA4;
*(_DWORD *)(v3 + 268) = &off_A70EDC;
*(_DWORD *)(v3 + 272) = &off_A70EE8;
*(_DWORD *)(v3 + 276) = &off_A70EF8;
*(_DWORD *)(v3 + 280) = &off_A70F08;
*(_DWORD *)(v3 + 316) = &off_A70F1C;
*(_DWORD *)(v3 + 332) = &off_A70F5C;
sub_775C20(v8);
v4 = URLViewLayer::init(v3, v8, (cocos2d::CCObject *)a2);
sub_774008(v8);
if ( v4 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v5 = *(_DWORD *)v3;
v6 = v3;
v3 = 0;
(*(void (__fastcall **)(int))(v5 + 8))(v6);
}
return v3;
}