//
// CCURLObject::create from 0x10035fc70 to 0x10035fd7e (270 bytes)
//
// 25 xrefs:
// > LevelAreaInnerLayer::onInfo @ 0x1002674a2
// > LevelAreaInnerLayer::onInfo @ 0x10026756b
// > LevelAreaInnerLayer::onInfo @ 0x100267607
// > LevelAreaInnerLayer::onInfo @ 0x1002676a3
// > LevelAreaInnerLayer::onInfo @ 0x100267757
// > LevelAreaInnerLayer::onInfo @ 0x1002677f6
// > SupportLayer::onLinks @ 0x100382c9a
// > SupportLayer::onLinks @ 0x100382d3c
// > SupportLayer::onLinks @ 0x100382df3
// > SupportLayer::onLinks @ 0x100382eb1
// > SupportLayer::onLinks @ 0x100382f70
// > SupportLayer::onLinks @ 0x100383030
// > SupportLayer::onLinks @ 0x1003830fc
// > SupportLayer::onLinks @ 0x1003831a3
// > SupportLayer::onLinks @ 0x100383251
// > SupportLayer::onLinks @ 0x10038331a
// > SupportLayer::onLinks @ 0x1003833c1
// > SupportLayer::onSFX @ 0x100383873
// > SupportLayer::onSFX @ 0x100383921
// > SupportLayer::onSFX @ 0x1003839a8
// > SupportLayer::onSFX @ 0x100383a46
// > SupportLayer::onSFX @ 0x100383ae9
// > SupportLayer::onSFX @ 0x100383b85
// > MusicDownloadManager::parseSFXLibrary @ 0x1006600e8
// > MusicDownloadManager::parseSFXLibrary @ 0x100660606
//
// 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:28:55 +0000
//
char *__fastcall CCURLObject::create(std::string *a1, std::string *a2)
{
char *v2; // rbx
std::string __str; // [rsp+0h] [rbp-50h] BYREF
std::string v5; // [rsp+20h] [rbp-30h] BYREF
v2 = (char *)operator new(0x68u);
*(_OWORD *)v2 = 0;
*((_OWORD *)v2 + 1) = 0;
*((_OWORD *)v2 + 2) = 0;
*((_OWORD *)v2 + 3) = 0;
*((_OWORD *)v2 + 4) = 0;
*((_OWORD *)v2 + 5) = 0;
*((_QWORD *)v2 + 12) = 0;
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v2 = off_100B27108;
*(_OWORD *)(v2 + 56) = 0;
*(_OWORD *)(v2 + 72) = 0;
*(_OWORD *)(v2 + 88) = 0;
if ( (*(_BYTE *)&a1->__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&__str, a1->__r_.__value_.__l.__data_, a1->__r_.__value_.__l.__size_);
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_3;
}
else
{
__str = *a1;
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v5, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_);
goto LABEL_6;
}
}
v5 = *a2;
LABEL_6:
std::string::operator=((std::string *)(v2 + 56), &__str);
std::string::operator=((std::string *)(v2 + 80), &v5);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease(v2);
return v2;
}