//
// cocos2d::CCParticleSystem::initWithDictionary from 0x1007c6f20 to 0x1007c8782 (6242 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystem::initWithFile @ 0x1007c6d67
// > cocos2d::CCParticleSystem::initWithFile @ 0x1007c6ddc
// > cocos2d::CCParticleSystem::initWithDictionary_1 @ 0x1007c88de
//
// 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
//
bool __fastcall cocos2d::CCParticleSystem::initWithDictionary(
cocos2d::CCParticleSystem *a1,
cocos2d::CCDictionary *a2,
const char *a3,
bool a4)
{
cocos2d::CCString *v7; // rax
unsigned int v8; // r12d
cocos2d::CCString *v9; // rax
cocos2d::CCString *v10; // rax
cocos2d::CCString *v11; // rax
cocos2d::CCString *v12; // rax
cocos2d::CCString *v13; // rax
cocos2d::CCString *v14; // rax
cocos2d::CCString *v15; // rax
cocos2d::CCString *v16; // rax
cocos2d::CCString *v17; // rax
cocos2d::CCString *v18; // rax
cocos2d::CCString *v19; // rax
cocos2d::CCString *v20; // rax
cocos2d::CCString *v21; // rax
cocos2d::CCString *v22; // rax
cocos2d::CCString *v23; // rax
cocos2d::CCString *v24; // rax
cocos2d::CCString *v25; // rax
cocos2d::CCString *v26; // rax
cocos2d::CCString *v27; // rax
cocos2d::CCString *v28; // rax
cocos2d::CCString *v29; // rax
cocos2d::CCString *v30; // rax
cocos2d::CCString *v31; // rax
cocos2d::CCString *v32; // rax
cocos2d::CCString *v33; // rax
cocos2d::CCString *v34; // rax
cocos2d::CCString *v35; // rax
float v36; // xmm0_4
float v37; // xmm1_4
cocos2d::CCString *v38; // rax
cocos2d::CCString *v39; // rax
cocos2d::CCString *v40; // rax
cocos2d::CCString *v41; // rax
cocos2d::CCString *v42; // rax
cocos2d::CCString *v43; // rax
cocos2d::CCString *v44; // rax
int m_nEmitterMode; // eax
cocos2d::CCString *v46; // rax
cocos2d::CCString *v47; // rax
cocos2d::CCString *v48; // rax
cocos2d::CCString *v49; // rax
cocos2d::CCString *v50; // rax
cocos2d::CCString *v51; // rax
cocos2d::CCString *v52; // rax
cocos2d::CCString *v53; // rax
cocos2d::CCString *v54; // rax
cocos2d::CCString *v55; // rax
cocos2d::CCString *v56; // rax
cocos2d::CCString *v57; // rax
cocos2d::CCString *v58; // rax
cocos2d::CCString *v59; // rax
cocos2d::CCString *v60; // rax
cocos2d::CCString *v61; // rax
double v62; // xmm0_8
bool v63; // r12
cocos2d::CCString *v64; // rax
size_t v65; // rax
std::string::size_type v66; // r13
char *data; // r12
void *v68; // rsi
size_t v69; // r15
std::string::size_type v70; // rax
__int128 v71; // rdi
size_t v72; // rax
std::string::size_type v73; // r15
char *v74; // r12
char *v75; // rsi
std::string::size_type v76; // r13
char *v77; // r12
size_t v78; // r15
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v79; // r15
size_t v80; // rax
char v81; // r13
void *v82; // r12
std::string::pointer v83; // rdi
std::string::size_type size; // rax
std::string::pointer v85; // rsi
std::string::size_type v86; // r15
char *v87; // r13
size_t v88; // r12
size_t v89; // rax
std::string::size_type v90; // r15
char *v91; // r12
char *v92; // rsi
size_t v93; // r13
const std::string::value_type *v94; // rsi
std::string::size_type v95; // rdx
std::string *v96; // rax
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v97; // r15
std::string::value_type v98; // r12
std::string::size_type v99; // r13
cocos2d::CCFileUtils *v100; // rax
unsigned __int8 v101; // r15
cocos2d::CCFileUtils *v102; // rax
cocos2d::CCTextureCache *v103; // rax
const char *v104; // rsi
cocos2d::CCTexture2D *v105; // r13
cocos2d::CCFileUtils *v106; // rax
cocos2d::CCString *v107; // rax
const char *CString; // r14
signed int v109; // eax
unsigned int v110; // eax
int v111; // eax
int v112; // r15d
cocos2d::CCImage *v113; // r14
cocos2d::CCTextureCache *v114; // rax
const char *v115; // rdx
size_t v117; // r13
const std::string::value_type *v118; // rsi
std::string::size_type v119; // rdx
std::string *v120; // rax
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v121; // r15
std::string::value_type v122; // r12
std::string::size_type v123; // r13
cocos2d::CCTexture2D *v124; // rax
void *v125; // [rsp+18h] [rbp-B8h] BYREF
void *v126; // [rsp+20h] [rbp-B0h] BYREF
std::string::size_type v127; // [rsp+28h] [rbp-A8h]
void *v128; // [rsp+30h] [rbp-A0h]
void *__src; // [rsp+38h] [rbp-98h]
char *__s; // [rsp+40h] [rbp-90h]
std::string v131; // [rsp+48h] [rbp-88h] BYREF
std::string __dst; // [rsp+60h] [rbp-70h] BYREF
_BYTE v133[14]; // [rsp+78h] [rbp-58h]
std::string v134; // [rsp+88h] [rbp-48h] BYREF
__s = (char *)a3;
v125 = nullptr;
v126 = nullptr;
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24;
strcpy(__dst.__r_.__value_.__s.__data_, "maxParticles");
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
v8 = cocos2d::CCString::intValue(v7);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
if ( !((unsigned __int8 (__fastcall *)(cocos2d::CCParticleSystem *, _QWORD, bool))a1->initWithTotalParticles)(
a1,
v8,
a4) )
goto LABEL_199;
strcpy((char *)&__dst, "\nangle");
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fAngle = cocos2d::CCString::floatValue(v9);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26;
strcpy(__dst.__r_.__value_.__s.__data_, "angleVariance");
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fAngleVar = cocos2d::CCString::floatValue(v10);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(__dst.__r_.__value_.__s.__data_, "duration");
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fDuration = cocos2d::CCString::floatValue(v11);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "blendFuncSource");
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tBlendFunc.src = cocos2d::CCString::intValue(v12);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "(blendFuncDestination");
v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tBlendFunc.dst = cocos2d::CCString::intValue(v13);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26;
strcpy(__dst.__r_.__value_.__s.__data_, "startColorRed");
v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColor.r = cocos2d::CCString::floatValue(v14);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "startColorGreen");
v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColor.g = cocos2d::CCString::floatValue(v15);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28;
strcpy(__dst.__r_.__value_.__s.__data_, "startColorBlue");
v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColor.b = cocos2d::CCString::floatValue(v16);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "startColorAlpha");
v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColor.a = cocos2d::CCString::floatValue(v17);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "*startColorVarianceRed");
v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColorVar.r = cocos2d::CCString::floatValue(v18);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "startColorVarianceGreen");
v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColorVar.g = cocos2d::CCString::floatValue(v19);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, ",startColorVarianceBlue");
v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColorVar.b = cocos2d::CCString::floatValue(v20);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "startColorVarianceAlpha");
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tStartColorVar.a = cocos2d::CCString::floatValue(v21);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28;
strcpy(__dst.__r_.__value_.__s.__data_, "finishColorRed");
v22 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColor.r = cocos2d::CCString::floatValue(v22);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, " finishColorGreen");
v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColor.g = cocos2d::CCString::floatValue(v23);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "finishColorBlue");
v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColor.b = cocos2d::CCString::floatValue(v24);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, " finishColorAlpha");
v25 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColor.a = cocos2d::CCString::floatValue(v25);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, ",finishColorVarianceRed");
v26 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColorVar.r = cocos2d::CCString::floatValue(v26);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
__dst.__r_.__value_.__r.__words[0] = 33;
__dst.__r_.__value_.__l.__size_ = 24;
strcpy(__dst.__r_.__value_.__l.__data_, "finishColorVarianceGreen");
v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColorVar.g = cocos2d::CCString::floatValue(v27);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "finishColorVarianceBlue");
v28 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColorVar.b = cocos2d::CCString::floatValue(v28);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
__dst.__r_.__value_.__r.__words[0] = 33;
__dst.__r_.__value_.__l.__size_ = 24;
strcpy(__dst.__r_.__value_.__l.__data_, "finishColorVarianceAlpha");
v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tEndColorVar.a = cocos2d::CCString::floatValue(v29);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "\"startParticleSize");
v30 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fStartSize = cocos2d::CCString::floatValue(v30);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
__dst.__r_.__value_.__r.__words[0] = 33;
__dst.__r_.__value_.__l.__size_ = 25;
strcpy(__dst.__r_.__value_.__l.__data_, "startParticleSizeVariance");
v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fStartSizeVar = cocos2d::CCString::floatValue(v31);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "$finishParticleSize");
v32 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fEndSize = cocos2d::CCString::floatValue(v32);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
__dst.__r_.__value_.__r.__words[0] = 33;
__dst.__r_.__value_.__l.__size_ = 26;
strcpy(__dst.__r_.__value_.__l.__data_, "finishParticleSizeVariance");
v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fEndSizeVar = cocos2d::CCString::floatValue(v33);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "sourcePositionx");
v34 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
LODWORD(__src) = cocos2d::CCString::floatValue(v34);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "sourcePositiony");
v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
v36 = cocos2d::CCString::floatValue(v35);
v37 = v36;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
*(float *)&v127 = v36;
operator delete(__dst.__r_.__value_.__l.__data_);
v37 = v36;
}
sub_10028CBE0((float *)&__dst, *(float *)&__src, v37);
((void (__fastcall *)(cocos2d::CCParticleSystem *, std::string *))a1->setPosition)(a1, &__dst);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "sourcePositionVariancex");
v38 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tPosVar.x = cocos2d::CCString::floatValue(v38);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "sourcePositionVariancey");
v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_tPosVar.y = cocos2d::CCString::floatValue(v39);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26;
strcpy(__dst.__r_.__value_.__s.__data_, "rotationStart");
v40 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fStartSpin = cocos2d::CCString::floatValue(v40);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "*rotationStartVariance");
v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fStartSpinVar = cocos2d::CCString::floatValue(v41);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)22;
strcpy(__dst.__r_.__value_.__s.__data_, "rotationEnd");
v42 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fEndSpin = cocos2d::CCString::floatValue(v42);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "&rotationEndVariance");
v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fEndSpinVar = cocos2d::CCString::floatValue(v43);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)22;
strcpy(__dst.__r_.__value_.__s.__data_, "emitterType");
v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
m_nEmitterMode = cocos2d::CCString::intValue(v44);
a1->m_nEmitterMode = m_nEmitterMode;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(__dst.__r_.__value_.__l.__data_);
m_nEmitterMode = a1->m_nEmitterMode;
}
if ( m_nEmitterMode == 1 )
{
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18;
strcpy(__dst.__r_.__value_.__s.__data_, "maxRadius");
v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeB.startRadius = cocos2d::CCString::floatValue(v55);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "\"maxRadiusVariance");
v56 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeB.startRadiusVar = cocos2d::CCString::floatValue(v56);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18;
strcpy(__dst.__r_.__value_.__s.__data_, "minRadius");
v57 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeB.endRadius = cocos2d::CCString::floatValue(v57);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
a1->modeB.endRadiusVar = 0.0;
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(__dst.__r_.__value_.__s.__data_, "rotatePerSecond");
v58 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeB.rotatePerSecond = cocos2d::CCString::floatValue(v58);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "rotatePerSecondVariance");
v59 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeB.rotatePerSecondVar = cocos2d::CCString::floatValue(v59);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_102;
LABEL_101:
operator delete(__dst.__r_.__value_.__l.__data_);
goto LABEL_102;
}
if ( m_nEmitterMode )
{
LABEL_199:
v63 = 0;
goto LABEL_200;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(__dst.__r_.__value_.__s.__data_, "gravityx");
v46 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.gravity.x = cocos2d::CCString::floatValue(v46);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(__dst.__r_.__value_.__s.__data_, "gravityy");
v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.gravity.y = cocos2d::CCString::floatValue(v47);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "\nspeed");
v48 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.speed = cocos2d::CCString::floatValue(v48);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26;
strcpy(__dst.__r_.__value_.__s.__data_, "speedVariance");
v49 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.speedVar = cocos2d::CCString::floatValue(v49);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "$radialAcceleration");
v50 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.radialAccel = cocos2d::CCString::floatValue(v50);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, "&radialAccelVariance");
v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.radialAccelVar = cocos2d::CCString::floatValue(v51);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
strcpy((char *)&__dst, ",tangentialAcceleration");
v52 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.tangentialAccel = cocos2d::CCString::floatValue(v52);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au);
__dst.__r_.__value_.__r.__words[0] = 27;
__dst.__r_.__value_.__l.__size_ = 23;
strcpy(__dst.__r_.__value_.__l.__data_, "tangentialAccelVariance");
v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.tangentialAccelVar = cocos2d::CCString::floatValue(v53);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26;
strcpy(__dst.__r_.__value_.__s.__data_, "rotationIsDir");
v54 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->modeA.rotationIsDir = cocos2d::CCString::boolValue(v54);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_101;
LABEL_102:
strcpy((char *)&__dst, " particleLifespan");
v60 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fLife = cocos2d::CCString::floatValue(v60);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
__dst.__r_.__value_.__r.__words[0] = 33;
__dst.__r_.__value_.__l.__size_ = 24;
strcpy(__dst.__r_.__value_.__l.__data_, "particleLifespanVariance");
v61 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&__dst);
a1->m_fLifeVar = cocos2d::CCString::floatValue(v61);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCParticleSystem *))a1->updateEmissionRate)(a1);
*(__m128 *)&a1->m_fDefaultStartSize = _mm_shuffle_ps(
_mm_movelh_ps(
(__m128)LODWORD(a1->m_fStartSize),
(__m128)*(unsigned __int64 *)&a1->m_fStartSizeVar),
(__m128)*(unsigned __int64 *)&a1->m_fStartSizeVar,
88);
sub_10028CC90(&a1->m_tDefaultPosVar, (double *)&a1->m_tPosVar);
*(_QWORD *)&v62 = LODWORD(a1->m_fAngle);
a1->m_fDefaultAngle = *(float *)&v62;
if ( a1->m_nEmitterMode )
{
v63 = 1;
if ( a1->m_pBatchNode )
goto LABEL_200;
}
else
{
a1->m_fDefaultModeASpeed = ((float (__fastcall *)(cocos2d::CCParticleSystem *))a1->getSpeed)(a1);
*(float *)&v62 = ((float (__fastcall *)(cocos2d::CCParticleSystem *))a1->getSpeedVar)(a1);
a1->m_fDefaultModeASpeedVar = *(float *)&v62;
v63 = 1;
if ( a1->m_pBatchNode )
goto LABEL_200;
}
a1->m_bOpacityModifyRGB = 0;
v131.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(v131.__r_.__value_.__s.__data_, "textureFileName");
v64 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&v131);
__src = (void *)cocos2d::CCString::getCString(v64);
v65 = strlen((const char *)__src);
if ( v65 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v62);
v66 = v65;
if ( v65 >= 0x17 )
{
v69 = 26;
if ( (v65 | 7) != 0x17 )
v69 = (v65 | 7) + 1;
v68 = __src;
data = (char *)operator new(v69);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__r.__words[0] = v69 | 1;
__dst.__r_.__value_.__l.__size_ = v66;
goto LABEL_117;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v65);
data = __dst.__r_.__value_.__s.__data_;
v68 = __src;
if ( v65 )
LABEL_117:
memmove(data, v68, v66);
data[v66] = 0;
if ( (*(_BYTE *)&v131.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v131.__r_.__value_.__l.__data_);
v70 = std::string::rfind(&__dst, 47, 0xFFFFFFFFFFFFFFFFLL);
if ( v70 != -1 )
{
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v71 = *(_OWORD *)&__dst.__r_.__value_.__r.__words[1];
}
else
{
*(_QWORD *)&v71 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
*((_QWORD *)&v71 + 1) = (char *)__dst.__r_.__value_.__r.__words + 1;
}
v76 = v70 + 1;
if ( (unsigned __int64)v71 < v70 + 1 )
v76 = v71;
if ( v76 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v62);
v127 = v70;
__src = (void *)(v70 + 1);
if ( v76 >= 0x17 )
{
v128 = *((void **)&v71 + 1);
v78 = 26;
if ( (v76 | 7) != 0x17 )
v78 = (v76 | 7) + 1;
v77 = (char *)operator new(v78);
v131.__r_.__value_.__r.__words[2] = (std::string::size_type)v77;
v131.__r_.__value_.__r.__words[0] = v78 | 1;
v131.__r_.__value_.__l.__size_ = v76;
*((_QWORD *)&v71 + 1) = v128;
}
else
{
v131.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v76);
v77 = v131.__r_.__value_.__s.__data_;
if ( !(_QWORD)v71 )
{
LABEL_139:
v77[v76] = 0;
v79 = v131.__r_.__value_.__s.0;
if ( !__s )
goto LABEL_178;
v80 = strlen(__s);
v81 = *(_BYTE *)&v131.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&v131.__r_.__value_.__s.0 & 1) != 0 )
{
v82 = __src;
if ( v80 != v131.__r_.__value_.__l.__size_ )
goto LABEL_147;
if ( v80 == -1 )
sub_1000547C0();
v83 = v131.__r_.__value_.__l.__data_;
}
else
{
v82 = __src;
if ( v80 != *(_BYTE *)&v131.__r_.__value_.__l.0 >> 1 )
goto LABEL_147;
v83 = v131.__r_.__value_.__s.__data_;
}
if ( !memcmp(v83, __s, v80) )
goto LABEL_178;
LABEL_147:
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
size = __dst.__r_.__value_.__l.__size_;
if ( __dst.__r_.__value_.__l.__size_ <= v127 )
goto LABEL_222;
v85 = __dst.__r_.__value_.__l.__data_;
}
else
{
size = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v85 = __dst.__r_.__value_.__s.__data_;
if ( v127 >= size )
{
LABEL_222:
LOBYTE(v128) = *(_BYTE *)&v79 & 1;
sub_1000547C0();
}
}
v86 = size - (_QWORD)v82;
if ( size - (unsigned __int64)v82 >= 0xFFFFFFFFFFFFFFF8LL )
{
LOBYTE(v128) = v81;
sub_100006BF0(v62);
}
if ( v86 >= 0x17 )
{
v127 = (std::string::size_type)v85;
LOBYTE(v128) = v81;
v88 = 26;
if ( (v86 | 7) != 0x17 )
v88 = (v86 | 7) + 1;
v87 = (char *)operator new(v88);
v134.__r_.__value_.__r.__words[2] = (std::string::size_type)v87;
v134.__r_.__value_.__r.__words[0] = v88 | 1;
v134.__r_.__value_.__l.__size_ = v86;
v82 = __src;
v85 = (std::string::pointer)v127;
}
else
{
v134.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v86);
v87 = v134.__r_.__value_.__s.__data_;
if ( (void *)size == v82 )
{
LABEL_160:
v87[v86] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst = v134;
v89 = strlen(__s);
if ( v89 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(*(double *)v134.__r_.__value_.__r.__words);
v90 = v89;
if ( v89 >= 0x17 )
{
v93 = 26;
if ( (v89 | 7) != 0x17 )
v93 = (v89 | 7) + 1;
v91 = (char *)operator new(v93);
v134.__r_.__value_.__r.__words[2] = (std::string::size_type)v91;
v134.__r_.__value_.__r.__words[0] = v93 | 1;
v134.__r_.__value_.__l.__size_ = v90;
v92 = __s;
}
else
{
v134.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v89);
v91 = v134.__r_.__value_.__s.__data_;
v92 = __s;
if ( !v89 )
goto LABEL_170;
}
memcpy(v91, v92, v90);
LABEL_170:
v91[v90] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v94 = __dst.__r_.__value_.__l.__data_;
v95 = __dst.__r_.__value_.__l.__size_;
}
else
{
v95 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v94 = __dst.__r_.__value_.__s.__data_;
}
v96 = std::string::append(&v134, v94, v95);
v97 = v96->__r_.__value_.__s.0;
v98 = v96->__r_.__value_.__s.__data_[0];
*(_QWORD *)&v133[6] = v96->__r_.__value_.__l.__size_;
*(_QWORD *)v133 = *(std::string::size_type *)((char *)v96->__r_.__value_.__r.__words + 2);
v99 = v96->__r_.__value_.__r.__words[2];
*(_OWORD *)&v96->__r_.__value_.__l.0 = 0;
v96->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = v97;
__dst.__r_.__value_.__s.__data_[0] = v98;
*(std::string::size_type *)((char *)__dst.__r_.__value_.__r.__words + 2) = *(_QWORD *)v133;
__dst.__r_.__value_.__l.__size_ = *(_QWORD *)&v133[6];
__dst.__r_.__value_.__r.__words[2] = v99;
if ( (*(_BYTE *)&v134.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v134.__r_.__value_.__l.__data_);
v79 = v131.__r_.__value_.__s.0;
LABEL_178:
if ( (*(_BYTE *)&v79 & 1) == 0 )
goto LABEL_180;
goto LABEL_179;
}
}
memmove(v87, &v85[(_QWORD)v82], v86);
goto LABEL_160;
}
}
memmove(v77, *((const void **)&v71 + 1), v76);
goto LABEL_139;
}
if ( !__s )
goto LABEL_180;
v72 = strlen(__s);
if ( v72 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v62);
v73 = v72;
if ( v72 >= 0x17 )
{
v117 = 26;
if ( (v72 | 7) != 0x17 )
v117 = (v72 | 7) + 1;
v74 = (char *)operator new(v117);
v131.__r_.__value_.__r.__words[2] = (std::string::size_type)v74;
v131.__r_.__value_.__r.__words[0] = v117 | 1;
v131.__r_.__value_.__l.__size_ = v73;
v75 = __s;
goto LABEL_208;
}
v131.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v72);
v74 = v131.__r_.__value_.__s.__data_;
v75 = __s;
if ( v72 )
LABEL_208:
memcpy(v74, v75, v73);
v74[v73] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
v118 = __dst.__r_.__value_.__l.__data_;
v119 = __dst.__r_.__value_.__l.__size_;
}
else
{
v119 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1;
v118 = __dst.__r_.__value_.__s.__data_;
}
v120 = std::string::append(&v131, v118, v119);
v121 = v120->__r_.__value_.__s.0;
v122 = v120->__r_.__value_.__s.__data_[0];
*(std::string::size_type *)((char *)v134.__r_.__value_.__r.__words + 6) = v120->__r_.__value_.__l.__size_;
v134.__r_.__value_.__r.__words[0] = *(std::string::size_type *)((char *)v120->__r_.__value_.__r.__words + 2);
v123 = v120->__r_.__value_.__r.__words[2];
*(_OWORD *)&v120->__r_.__value_.__l.0 = 0;
v120->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
__dst.__r_.__value_.__s.0 = v121;
__dst.__r_.__value_.__s.__data_[0] = v122;
*(std::string::size_type *)((char *)__dst.__r_.__value_.__r.__words + 2) = v134.__r_.__value_.__r.__words[0];
__dst.__r_.__value_.__l.__size_ = *(std::string::size_type *)((char *)v134.__r_.__value_.__r.__words + 6);
__dst.__r_.__value_.__r.__words[2] = v123;
if ( (*(_BYTE *)&v131.__r_.__value_.__s.0 & 1) != 0 )
LABEL_179:
operator delete(v131.__r_.__value_.__l.__data_);
LABEL_180:
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !__dst.__r_.__value_.__l.__size_ )
goto LABEL_189;
}
else if ( !(*(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_189;
}
v100 = cocos2d::CCFileUtils::sharedFileUtils();
v101 = ((__int64 (__fastcall *)(cocos2d::CCFileUtils *))v100->removeFullPath)(v100);
v102 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(cocos2d::CCFileUtils *, _QWORD))v102->purgeCachedEntries)(v102, 0);
v103 = cocos2d::CCTextureCache::sharedTextureCache();
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
v104 = __dst.__r_.__value_.__l.__data_;
else
v104 = __dst.__r_.__value_.__s.__data_;
v105 = cocos2d::CCTextureCache::addImage(v103, v104, 0);
v106 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(cocos2d::CCFileUtils *, _QWORD))v106->purgeCachedEntries)(v106, v101);
if ( v105 )
{
((void (__fastcall *)(cocos2d::CCParticleSystem *, cocos2d::CCTexture2D *))a1->setTexture)(a1, v105);
v63 = 1;
goto LABEL_218;
}
LABEL_189:
strcpy((char *)&v131, " textureImageData");
v107 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)a2, (__int64)&v131);
CString = cocos2d::CCString::getCString(v107);
v63 = 1;
if ( (*(_BYTE *)&v131.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v131.__r_.__value_.__l.__data_);
v109 = strlen(CString);
if ( !v109 )
goto LABEL_218;
v110 = sub_1003292A0((__int64)CString, v109, &v125, 0);
if ( !v125
|| (v111 = sub_1002055A0((__int64)v125, v110, &v126), !v126)
|| (v112 = v111,
v113 = (cocos2d::CCImage *)operator new(0x50u),
cocos2d::CCImage::CCImage((__int64)v113),
!cocos2d::CCImage::initWithImageData(v113, v126, v112, kFmtUnKnown, 0, 0, 8, 0)) )
{
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
goto LABEL_199;
}
v114 = cocos2d::CCTextureCache::sharedTextureCache();
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
v115 = __dst.__r_.__value_.__l.__data_;
else
v115 = __dst.__r_.__value_.__s.__data_;
v124 = cocos2d::CCTextureCache::addUIImage(v114, v113, v115);
((void (__fastcall *)(cocos2d::CCParticleSystem *, cocos2d::CCTexture2D *))a1->setTexture)(a1, v124);
cocos2d::CCObject::release(v113);
LABEL_218:
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
LABEL_200:
if ( v125 )
{
operator delete[](v125);
v125 = nullptr;
}
if ( v126 )
operator delete[](v126);
return v63;
}