//
// CCURLObject::create from 0x3209e8 to 0x320a9c (180 bytes)
//
// 23 xrefs:
// > SupportLayer::onSFX @ 0x42c2a0
// > SupportLayer::onSFX @ 0x42c2d4
// > SupportLayer::onSFX @ 0x42c308
// > SupportLayer::onSFX @ 0x42c33c
// > SupportLayer::onSFX @ 0x42c370
// > SupportLayer::onSFX @ 0x42c3a4
// > SupportLayer::onLinks @ 0x42c4aa
// > SupportLayer::onLinks @ 0x42c4de
// > SupportLayer::onLinks @ 0x42c512
// > SupportLayer::onLinks @ 0x42c546
// > SupportLayer::onLinks @ 0x42c57a
// > SupportLayer::onLinks @ 0x42c5ae
// > SupportLayer::onLinks @ 0x42c5e2
// > SupportLayer::onLinks @ 0x42c616
// > SupportLayer::onLinks @ 0x42c64a
// > SupportLayer::onLinks @ 0x42c67e
// > MusicDownloadManager::parseSFXLibrary @ 0x45ab3e
// > LevelAreaInnerLayer::onInfo @ 0x56badc
// > LevelAreaInnerLayer::onInfo @ 0x56bb10
// > LevelAreaInnerLayer::onInfo @ 0x56bb44
// > LevelAreaInnerLayer::onInfo @ 0x56bb78
// > LevelAreaInnerLayer::onInfo @ 0x56bbac
// > LevelAreaInnerLayer::onInfo @ 0x56bbe0
//
// 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
//
cocos2d::CCObject *__fastcall CCURLObject::create(int a1, int a2, int a3, int a4)
{
cocos2d::CCObject *v6; // r4
int v7; // r6
cocos2d::CCObject_vtbl *v8; // r3
cocos2d::CCObject *v9; // r0
int v11; // [sp+4h] [bp-Ch] BYREF
_DWORD v12[2]; // [sp+8h] [bp-8h] BYREF
v11 = a2;
v12[0] = a3;
v12[1] = a4;
v6 = (cocos2d::CCObject *)operator new(0x3Cu);
memset(v6, 0, 0x3Cu);
cocos2d::CCObject::CCObject(v6);
v6->__vftable = (cocos2d::CCObject_vtbl *)&off_A45E50;
v6[1].__vftable = (cocos2d::CCObject_vtbl *)&unk_ACDDA8;
v6[1].m_uID = (unsigned int)&unk_ACDDA8;
sub_775C20(&v11, a1);
sub_775C20(v12, a2);
v7 = CCURLObject::init((int)v6, (int)&v11, (int)v12);
sub_774008(v12);
sub_774008(&v11);
if ( v7 )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
v8 = v6->__vftable;
v9 = v6;
v6 = nullptr;
v8->~CCObject_0(v9);
}
return v6;
}