//
// GJEditorSoundConfig::create from 0x1004dddd4 to 0x1004de254 (1152 bytes)
//
// 2 xrefs:
// > sub_10009EAB4 @ 0x10009ec78
// > sub_1000B8150 @ 0x1000b8218
//
// 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 11:06:35 +0000
//
char *__fastcall GJEditorSoundConfig::create(__int64 a1)
{
char *v2; // x0
char *v3; // x19
void *v4; // x0
void *v5; // x0
char *CString; // x0
void *v7; // x0
char *v8; // x0
void *v9; // x0
void *v10; // x0
void *v11; // x0
char *v12; // x0
void *v13; // x0
void *v14; // x0
void *v15; // x0
void *v16; // x0
void *v17; // x0
void *v18; // x0
void *v19; // x0
void *v20; // x0
void *v21; // x0
char *v22; // x0
void *v23; // x0
char *v24; // x0
void *v25; // x0
std::string v27; // [xsp+0h] [xbp-C0h] BYREF
void *__p[2]; // [xsp+20h] [xbp-A0h] BYREF
char v29; // [xsp+37h] [xbp-89h]
std::string v30; // [xsp+38h] [xbp-88h] BYREF
std::string v31; // [xsp+50h] [xbp-70h] BYREF
std::string v32; // [xsp+68h] [xbp-58h] BYREF
std::string __str; // [xsp+80h] [xbp-40h] BYREF
std::string v34; // [xsp+98h] [xbp-28h] BYREF
v2 = GJEditorSoundConfig::create_1();
v3 = v2;
if ( a1 && v2 )
{
sub_100009900(&v34, "1");
v4 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 79) = cocos2d::CCString::intValue((__int64)v4);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "2");
v5 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
CString = (char *)cocos2d::CCString::getCString((__int64)v5);
sub_100009900(&__str, CString);
std::string::operator=((std::string *)(v3 + 376), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "3");
v7 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
v8 = (char *)cocos2d::CCString::getCString((__int64)v7);
sub_100009900(&v32, v8);
std::string::operator=((std::string *)(v3 + 400), &v32);
if ( SHIBYTE(v32.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v32.__r_.__value_.__l.__data_);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "5");
v9 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 82) = cocos2d::CCString::intValue((__int64)v9);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "49");
v10 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 85) = cocos2d::CCString::intValue((__int64)v10);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "50");
v11 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
v12 = (char *)cocos2d::CCString::getCString((__int64)v11);
sub_100009900(&v31, v12);
std::string::operator=((std::string *)(v3 + 448), &v31);
if ( SHIBYTE(v31.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v31.__r_.__value_.__l.__data_);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "10");
v13 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 86) = cocos2d::CCString::intValue((__int64)v13);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "14");
v14 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 87) = cocos2d::CCString::intValue((__int64)v14);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "19");
v15 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
v3[372] = cocos2d::CCString::boolValue((__int64)v15);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "28");
v16 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 91) = cocos2d::CCString::intValue((__int64)v16);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "29");
v17 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 92) = cocos2d::CCString::intValue((__int64)v17);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "59");
v18 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 88) = cocos2d::CCString::intValue((__int64)v18);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "60");
v19 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 89) = cocos2d::CCString::intValue((__int64)v19);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "61");
v20 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
*((_DWORD *)v3 + 90) = cocos2d::CCString::intValue((__int64)v20);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(&v34, "64");
v21 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v34);
v22 = (char *)cocos2d::CCString::getCString((__int64)v21);
sub_100009900(&v30, v22);
std::string::operator=((std::string *)(v3 + 424), &v30);
if ( SHIBYTE(v30.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v30.__r_.__value_.__l.__data_);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
sub_100009900(__p, "51");
v23 = cocos2d::CCDictionary::valueForKey(a1, (__int64)__p);
v24 = (char *)cocos2d::CCString::getCString((__int64)v23);
sub_100009900(&v34, v24);
if ( v29 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&v27, v34.__r_.__value_.__l.__data_, v34.__r_.__value_.__l.__size_);
else
v27 = v34;
std::string::operator=((std::string *)(v3 + 472), &v27);
if ( SHIBYTE(v27.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v27.__r_.__value_.__l.__data_);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
{
v25 = (void *)v34.__r_.__value_.__r.__words[0];
v3[496] = v34.__r_.__value_.__l.__size_ != 0;
operator delete(v25);
}
else
{
v3[496] = SHIBYTE(v34.__r_.__value_.__r.__words[2]) != 0;
}
}
return v3;
}