//
// PlayerObject::init from 0x44710c to 0x447eec (3552 bytes)
//
// 1 xrefs:
// > PlayerObject::create @ 0x44897c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:31 +0000
//
cocos2d::CCNode *__fastcall PlayerObject::init(
PlayerObject *this,
const char *a2,
const char *a3,
GJBaseGameLayer *a4,
cocos2d::CCLayer *a5,
bool a6)
{
const char *v7; // r5
const char *v9; // r6
GameManager *v10; // r0
GameManager *IconRequestID; // r0
int **v12; // r0
GameManager *Icon; // r0
int **v14; // r0
cocos2d::CCString *v15; // r0
size_t v16; // r0
cocos2d::CCString *v17; // r0
size_t v18; // r0
cocos2d::CCSprite *v19; // r1
cocos2d::CCNode *v20; // r0
int v21; // r0
int *v22; // r0
GameManager *v23; // r0
GameManager *GameVariable; // r0
GameManager *v25; // r0
GameManager *v26; // r0
GameManager *v27; // r0
GameStatsManager *v28; // r0
int v29; // r0
GameStatsManager *isItemEnabled; // r0
int v31; // r0
GameStatsManager *v32; // r0
int v33; // r0
char v34; // r0
cocos2d::CCArray *v35; // r0
cocos2d::CCObject *v36; // r0
const char *v37; // r1
cocos2d::CCSprite *v38; // r0
int v39; // r0
const char *v40; // r1
cocos2d::CCSprite *v41; // r0
int v42; // r0
int v43; // r9
void (__fastcall *v44)(int, _DWORD *); // r10
cocos2d::CCSprite *v45; // r0
int v46; // r0
int v47; // r9
void (__fastcall *v48)(int, _DWORD *); // r10
cocos2d::CCString *v49; // r0
const char *v50; // r10
size_t v51; // r0
cocos2d::CCString *v52; // r0
const char *v53; // r9
size_t v54; // r0
cocos2d::CCString *v55; // r0
const char *v56; // r9
size_t v57; // r0
const char *v58; // r1
cocos2d::CCSprite *v59; // r0
int v60; // r0
const char *v61; // r1
cocos2d::CCSprite *v62; // r0
int v63; // r0
int v64; // r9
void (__fastcall *v65)(int, _DWORD *); // r10
const char *v66; // r1
cocos2d::CCSprite *v67; // r0
int v68; // r0
int v69; // r9
void (__fastcall *v70)(int, _DWORD *); // r10
cocos2d::CCSprite *v71; // r0
int v72; // r0
int v73; // r9
void (__fastcall *v74)(int, _DWORD *); // r10
cocos2d::CCString *v75; // r0
const char *v76; // r10
size_t v77; // r0
GameManager *v78; // r0
int v79; // r0
PlayerFireBoostSprite *Robot; // r0
cocos2d::CCSprite *v81; // r0
GameManager *v82; // r0
int v83; // r0
PlayerFireBoostSprite *Spider; // r0
int i; // r10
cocos2d::CCSprite *v86; // r9
int v87; // r3
int v88; // s15
int v89; // r9
void (__fastcall *v90)(int, _DWORD *); // r10
int v91; // r9
void (__fastcall *v92)(int, _DWORD *); // r10
int v93; // r9
double (__fastcall *v94)(int, _DWORD *); // r10
double v95; // r0
cocos2d::CCNode *updated; // r0
cocos2d::CCObject *v97; // r0
cocos2d::CCDictionary *v98; // r0
cocos2d::CCObject *v99; // r0
cocos2d::CCDictionary *v100; // r0
cocos2d::CCObject *v101; // r0
cocos2d::CCDictionary *v102; // r0
cocos2d::CCObject *v103; // r0
cocos2d::CCDictionary *v104; // r0
cocos2d::CCObject *v105; // r0
cocos2d::CCArray *v106; // r0
cocos2d::CCObject *v107; // r0
GJActionManager *v108; // r0
cocos2d::CCObject *v109; // r0
bool v110; // r2
int v111; // r0
bool v112; // r2
int v113; // r0
bool v114; // r2
int v115; // r0
bool v116; // r2
int v117; // r0
bool v118; // r2
int v119; // r0
int v120; // r9
void (__fastcall *v121)(int, _DWORD *); // r10
bool v122; // r2
int v123; // r0
int v124; // r9
void (__fastcall *v125)(int, _DWORD); // r10
float v126; // r0
int v127; // r9
void (__fastcall *v128)(int, _DWORD); // r10
float v129; // r0
int v130; // r9
void (__fastcall *v131)(int, _DWORD *); // r10
int v132; // r9
void (__fastcall *v133)(int, _DWORD); // r10
float v134; // r0
int v135; // r9
void (__fastcall *v136)(int, _DWORD); // r10
float v137; // r0
int v138; // r9
void (__fastcall *v139)(int, _DWORD); // r10
float v140; // r0
int v141; // r9
void (__fastcall *v142)(int, _DWORD); // r10
float v143; // r0
int v144; // r9
void (__fastcall *v145)(int, _DWORD); // r10
float v146; // r0
int v147; // r10
void (__fastcall *v148)(int, _DWORD *); // r9
int v149; // r10
void (__fastcall *v150)(int, _DWORD *); // r9
int v151; // r10
void (__fastcall *v152)(int, _DWORD *); // r9
int v153; // r10
void (__fastcall *v154)(int, _DWORD *); // r9
bool v155; // r2
int j; // r10
cocos2d::CCObject *v157; // r8
int v158; // r0
bool v159; // r2
int v160; // r0
int v161; // r2
int v162; // r0
cocos2d::CCString *v163; // r0
const char *v164; // r6
size_t v165; // r0
cocos2d::CCSprite *v166; // r0
int v167; // r0
const char *v168; // r1
int v169; // r0
int v170; // r9
void (__fastcall *v171)(int, _DWORD *); // r11
const char *v172; // r1
int v173; // r9
void (__fastcall *v174)(int, _DWORD *); // r10
const char *v175; // r1
cocos2d::CCSprite *v176; // r0
int v177; // r0
cocos2d::CCString *v178; // r0
const char *v179; // r9
size_t v180; // r0
const char *v181; // r1
cocos2d::CCSprite *v182; // r0
int v183; // r0
GameManager *v184; // r0
GameManager *v185; // r0
GameManager *v186; // r0
GameManager *v187; // r0
GameManager *v188; // r0
GameManager *v189; // r0
char v190; // r0
int v191; // r1
int v192; // r3
unsigned int v193; // r1
int v194; // r3
int v195; // r1
const char *CString; // [sp+Ch] [bp-98h]
const char *v198; // [sp+Ch] [bp-98h]
cocos2d::CCNode *v199; // [sp+Ch] [bp-98h]
void (__fastcall *v200)(cocos2d::CCObject *, _DWORD *); // [sp+14h] [bp-90h]
void (__fastcall *v201)(cocos2d::CCObject *, _DWORD *); // [sp+14h] [bp-90h]
char v202[8]; // [sp+24h] [bp-80h] BYREF
int v203[2]; // [sp+2Ch] [bp-78h] BYREF
cocos2d::CCSprite *v204; // [sp+34h] [bp-70h]
int v205[2]; // [sp+38h] [bp-6Ch] BYREF
cocos2d::CCSprite *v206; // [sp+40h] [bp-64h]
int v207[3]; // [sp+44h] [bp-60h] BYREF
int v208[2]; // [sp+50h] [bp-54h] BYREF
cocos2d::CCSprite *v209; // [sp+58h] [bp-4Ch]
int v210[2]; // [sp+5Ch] [bp-48h] BYREF
cocos2d::CCSprite *v211; // [sp+64h] [bp-40h]
int v212[3]; // [sp+68h] [bp-3Ch] BYREF
int v213[2]; // [sp+74h] [bp-30h] BYREF
cocos2d::CCSprite *v214; // [sp+7Ch] [bp-28h]
int v215[2]; // [sp+80h] [bp-24h] BYREF
cocos2d::CCSprite *v216; // [sp+88h] [bp-1Ch]
_DWORD v217[4]; // [sp+8Ch] [bp-18h] BYREF
v7 = a3;
if ( (int)a2 <= 0 )
{
v9 = (_BYTE *)(&dword_0 + 1);
}
else
{
if ( (int)a2 >= 485 )
a2 = (_BYTE *)(&stru_1DC + 9);
v9 = a2;
}
if ( (int)a3 <= 0 )
{
v7 = (_BYTE *)(&dword_0 + 1);
}
else if ( (int)a3 >= 169 )
{
v7 = (_BYTE *)(&dword_A8 + 1);
}
v10 = (GameManager *)GameManager::sharedState(this);
IconRequestID = (GameManager *)GameManager::getIconRequestID(v10);
*((_DWORD *)this + 604) = IconRequestID;
v12 = (int **)GameManager::sharedState(IconRequestID);
Icon = (GameManager *)GameManager::loadIcon(v12, (int)v9, 0, *((_DWORD *)this + 604));
v14 = (int **)GameManager::sharedState(Icon);
GameManager::loadIcon(v14, (int)v7, 1, *((_DWORD *)this + 604));
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"player_%02d_001.png", v9);
v203[0] = 0;
v203[1] = 0;
v204 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v15);
v16 = strlen(CString);
std::string::__init(v203, CString, v16);
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"player_%02d_2_001.png", v9);
v198 = (const char *)cocos2d::CCString::getCString(v17);
v205[0] = 0;
v205[1] = 0;
v206 = nullptr;
v18 = strlen(v198);
std::string::__init(v205, v198, v18);
if ( (v203[0] & 1) != 0 )
v19 = v204;
else
v19 = (cocos2d::CCSprite *)((char *)v203 + 1);
v20 = (cocos2d::CCNode *)GameObject::init(this, (const char *)v19);
v199 = v20;
if ( v20 )
{
*((_BYTE *)this + 261) = 0;
*((_BYTE *)this + 471) = 1;
v21 = cocos2d::CCNode::create(v20);
*((_DWORD *)this + 293) = v21;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v21 + 160))(v21, &unk_D2B84C);
(*(void (__fastcall **)(PlayerObject *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 293));
v22 = std::string::assign((int *)this + 600, "run");
v23 = (GameManager *)GameManager::sharedState((GameManager *)v22);
GameVariable = (GameManager *)GameManager::getGameVariable(v23, "0096");
*((_BYTE *)this + 1674) = (_BYTE)GameVariable;
v25 = (GameManager *)GameManager::sharedState(GameVariable);
v26 = (GameManager *)GameManager::getGameVariable(v25, "0100");
*((_BYTE *)this + 1675) = (_BYTE)v26;
v27 = (GameManager *)GameManager::sharedState(v26);
v28 = (GameStatsManager *)GameManager::getGameVariable(v27, "0123");
*((_BYTE *)this + 2412) = (_BYTE)v28;
v29 = GameStatsManager::sharedState(v28);
isItemEnabled = (GameStatsManager *)GameStatsManager::isItemEnabled(v29, 12, 18);
*((_BYTE *)this + 2461) = (_BYTE)isItemEnabled;
v31 = GameStatsManager::sharedState(isItemEnabled);
v32 = (GameStatsManager *)GameStatsManager::isItemEnabled(v31, 12, 19);
*((_BYTE *)this + 2462) = (_BYTE)v32;
v33 = GameStatsManager::sharedState(v32);
v34 = GameStatsManager::isItemEnabled(v33, 12, 20);
*((_DWORD *)this + 371) = 0;
*((_BYTE *)this + 2463) = v34;
*((_DWORD *)this + 330) = v9;
*((_DWORD *)this + 503) = 1063675494;
v35 = (cocos2d::CCArray *)rand();
*((float *)this + 594) = (float)(vcvts_n_f32_s32((unsigned int)v35, 0x1Fu) * 10.0) + 5.0;
*((_BYTE *)this + 1604) = a6;
*((_DWORD *)this + 610) = a4;
*((_DWORD *)this + 611) = a5;
*((_BYTE *)this + 1605) = !a6;
v36 = (cocos2d::CCObject *)cocos2d::CCArray::create(v35);
*((_DWORD *)this + 519) = v36;
cocos2d::CCObject::retain(v36);
(*(void (__fastcall **)(PlayerObject *, void *))(*(_DWORD *)this + 568))(this, &unk_D2B83C);
if ( (v203[0] & 1) != 0 )
v38 = v204;
else
v38 = (cocos2d::CCSprite *)((char *)v203 + 1);
v39 = cocos2d::CCSprite::createWithSpriteFrameName(v38, v37);
*((_DWORD *)this + 373) = v39;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 293) + 232))(*((_DWORD *)this + 293), v39, 1);
if ( (v205[0] & 1) != 0 )
v41 = v206;
else
v41 = (cocos2d::CCSprite *)((char *)v205 + 1);
v42 = cocos2d::CCSprite::createWithSpriteFrameName(v41, v40);
*((_DWORD *)this + 374) = v42;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 373) + 232))(*((_DWORD *)this + 373), v42, -1);
v43 = *((_DWORD *)this + 374);
v44 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, *((const cocos2d::CCPoint **)this + 373));
v44(v43, v217);
if ( (v205[0] & 1) != 0 )
v45 = v206;
else
v45 = (cocos2d::CCSprite *)((char *)v205 + 1);
v46 = cocos2d::CCSprite::createWithSpriteFrameName(v45, (const char *)(LOBYTE(v205[0]) << 31));
*((_DWORD *)this + 375) = v46;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 373) + 232))(*((_DWORD *)this + 373), v46, 2);
v47 = *((_DWORD *)this + 375);
v48 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v47 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, *((const cocos2d::CCPoint **)this + 373));
v48(v47, v217);
v49 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"player_%02d_extra_001.png", v9);
v50 = (const char *)cocos2d::CCString::getCString(v49);
memset(v207, 0, sizeof(v207));
v51 = strlen(v50);
std::string::__init(v207, v50, v51);
PlayerObject::updatePlayerSpriteExtra(this, (int)v207);
std::string::~string((int)v207);
v52 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"ship_%02d_001.png", v7);
v53 = (const char *)cocos2d::CCString::getCString(v52);
v208[0] = 0;
v208[1] = 0;
v209 = nullptr;
v54 = strlen(v53);
std::string::__init(v208, v53, v54);
v55 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"ship_%02d_2_001.png", v7);
v56 = (const char *)cocos2d::CCString::getCString(v55);
v210[0] = 0;
v210[1] = 0;
v211 = nullptr;
v57 = strlen(v56);
std::string::__init(v210, v56, v57);
if ( (v208[0] & 1) != 0 )
v59 = v209;
else
v59 = (cocos2d::CCSprite *)((char *)v208 + 1);
v60 = cocos2d::CCSprite::createWithSpriteFrameName(v59, v58);
*((_DWORD *)this + 377) = v60;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 293) + 232))(*((_DWORD *)this + 293), v60, 2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 377) + 172))(*((_DWORD *)this + 377), 0);
if ( (v210[0] & 1) != 0 )
v62 = v211;
else
v62 = (cocos2d::CCSprite *)((char *)v210 + 1);
v63 = cocos2d::CCSprite::createWithSpriteFrameName(v62, v61);
*((_DWORD *)this + 378) = v63;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 377) + 232))(*((_DWORD *)this + 377), v63, -1);
v64 = *((_DWORD *)this + 378);
v65 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, *((const cocos2d::CCPoint **)this + 377));
v65(v64, v217);
if ( (v210[0] & 1) != 0 )
v67 = v211;
else
v67 = (cocos2d::CCSprite *)((char *)v210 + 1);
v68 = cocos2d::CCSprite::createWithSpriteFrameName(v67, v66);
*((_DWORD *)this + 379) = v68;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 377) + 232))(*((_DWORD *)this + 377), v68, -2);
v69 = *((_DWORD *)this + 379);
v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v69 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, *((const cocos2d::CCPoint **)this + 377));
v70(v69, v217);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 379) + 172))(*((_DWORD *)this + 379), 0);
if ( (v210[0] & 1) != 0 )
v71 = v211;
else
v71 = (cocos2d::CCSprite *)((char *)v210 + 1);
v72 = cocos2d::CCSprite::createWithSpriteFrameName(v71, (const char *)(LOBYTE(v210[0]) << 31));
*((_DWORD *)this + 380) = v72;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 377) + 232))(*((_DWORD *)this + 377), v72, 1);
v73 = *((_DWORD *)this + 380);
v74 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v73 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, *((const cocos2d::CCPoint **)this + 377));
v74(v73, v217);
v75 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"ship_%02d_extra_001.png", v7);
v76 = (const char *)cocos2d::CCString::getCString(v75);
memset(v212, 0, sizeof(v212));
v77 = strlen(v76);
std::string::__init(v212, v76, v77);
PlayerObject::updateShipSpriteExtra(this, (int)v212);
v78 = (GameManager *)std::string::~string((int)v212);
v79 = GameManager::sharedState(v78);
Robot = (PlayerFireBoostSprite *)PlayerObject::createRobot(
this,
(GJRobotSprite *)(*(_DWORD *)(v79 + 576) - *(_DWORD *)(v79 + 580)));
v81 = PlayerFireBoostSprite::create(Robot);
*((_DWORD *)this + 608) = v81;
(*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *, int))(**((_DWORD **)this + 293) + 232))(
*((_DWORD *)this + 293),
v81,
-1);
v82 = (GameManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 608) + 172))(
*((_DWORD *)this + 608),
0);
v83 = GameManager::sharedState(v82);
Spider = (PlayerFireBoostSprite *)PlayerObject::createSpider(
this,
(GJSpiderSprite *)(*(_DWORD *)(v83 + 588) - *(_DWORD *)(v83 + 592)));
for ( i = 0; i != 3; ++i )
{
v86 = PlayerFireBoostSprite::create(Spider);
(*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *, int))(**((_DWORD **)this + 293) + 232))(
*((_DWORD *)this + 293),
v86,
-1);
v87 = *(_DWORD *)v86;
if ( i )
v88 = 1060655596;
else
v88 = 1064682128;
*((_DWORD *)v86 + 127) = v88;
Spider = (PlayerFireBoostSprite *)(*(int (__fastcall **)(cocos2d::CCSprite *, _DWORD))(v87 + 172))(v86, 0);
if ( i )
{
if ( i == 1 )
*((_DWORD *)this + 383) = v86;
else
*((_DWORD *)this + 384) = v86;
}
else
{
*((_DWORD *)this + 382) = v86;
}
}
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 382) + 180))(*((_DWORD *)this + 382), 1119092736);
v89 = *((_DWORD *)this + 382);
v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, -14.0, 0.0);
v90(v89, v217);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 383) + 180))(*((_DWORD *)this + 383), 1110704128);
v91 = *((_DWORD *)this + 383);
v92 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v91 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, -9.5, -10.0);
v92(v91, v217);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 384) + 180))(*((_DWORD *)this + 384), 1124532224);
v93 = *((_DWORD *)this + 384);
v94 = *(double (__fastcall **)(int, _DWORD *))(*(_DWORD *)v93 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, -9.5, 10.0);
v95 = v94(v93, v217);
LODWORD(v95) = this;
PlayerObject::setYVelocity(v95, 0.0, 51);
*((_BYTE *)this + 2052) = 0;
*((_BYTE *)this + 1961) = 0;
*((_BYTE *)this + 2036) = 0;
*((_BYTE *)this + 1960) = 0;
*((_DWORD *)this + 502) = 1065353216;
*((_DWORD *)this + 536) = 1106247680;
updated = PlayerObject::updateTimeMod(this, 0.9, 0);
*((_DWORD *)this + 431) = 0;
v97 = (cocos2d::CCObject *)cocos2d::CCNode::create(updated);
*((_DWORD *)this + 311) = v97;
v98 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v97);
v99 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v98);
*((_DWORD *)this + 312) = v99;
v100 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v99);
v101 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v100);
*((_DWORD *)this + 313) = v101;
v102 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v101);
v103 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v102);
*((_DWORD *)this + 314) = v103;
v104 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v103);
v105 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v104);
*((_DWORD *)this + 315) = v105;
v106 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v105);
v107 = (cocos2d::CCObject *)cocos2d::CCArray::create(v106);
*((_DWORD *)this + 356) = v107;
v108 = (GJActionManager *)cocos2d::CCObject::retain(v107);
v109 = (cocos2d::CCObject *)GJActionManager::create(v108);
*((_DWORD *)this + 612) = v109;
cocos2d::CCObject::retain(v109);
v111 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"dragEffect.plist", nullptr, v110);
*((_DWORD *)this + 436) = v111;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v111 + 784))(v111, 1);
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 436));
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 436));
*((_BYTE *)this + 1606) = 0;
v113 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"dashEffect.plist", nullptr, v112);
*((_DWORD *)this + 442) = v113;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v113 + 784))(v113, 1);
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 442));
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 442));
v115 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"burstEffect.plist", nullptr, v114);
*((_DWORD *)this + 440) = v115;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v115 + 784))(v115, 1);
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 440));
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 440));
v117 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"burstEffect2.plist", nullptr, v116);
*((_DWORD *)this + 441) = v117;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v117 + 784))(v117, 1);
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 441));
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 441));
v119 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"dragEffect.plist", nullptr, v118);
*((_DWORD *)this + 437) = v119;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v119 + 784))(v119, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 437));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 437));
*((_DWORD *)this + 396) = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 484))(*((_DWORD *)this + 437));
v120 = *((_DWORD *)this + 437);
v121 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v120 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, 0.0, 2.0);
v121(v120, v217);
v123 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"dragEffect.plist", nullptr, v122);
*((_DWORD *)this + 438) = v123;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v123 + 784))(v123, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 438));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 438));
v124 = *((_DWORD *)this + 437);
v125 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v124 + 532);
v126 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v124 + 528))(v124));
v125(v124, v126 * 0.2);
v127 = *((_DWORD *)this + 437);
v128 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v127 + 540);
v129 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v127 + 536))(v127));
v128(v127, v129 * 0.2);
v130 = *((_DWORD *)this + 438);
v131 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v130 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, 0.0, 2.0);
v131(v130, v217);
v132 = *((_DWORD *)this + 438);
v133 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v132 + 532);
v134 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v132 + 528))(v132));
v133(v132, v134 + v134);
v135 = *((_DWORD *)this + 438);
v136 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v135 + 540);
v137 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v135 + 536))(v135));
v136(v135, v137 + v137);
v138 = *((_DWORD *)this + 438);
v139 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v138 + 512);
v140 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v138 + 508))(v138));
v139(v138, v140 + v140);
v141 = *((_DWORD *)this + 438);
v142 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v141 + 648);
v143 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v141 + 644))(v141));
v142(v141, v143 * 1.5);
v144 = *((_DWORD *)this + 438);
v145 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v144 + 656);
v146 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v144 + 652))(v144));
v145(v144, v146 * 1.5);
v147 = *((_DWORD *)this + 437);
*((_BYTE *)this + 1607) = 0;
v148 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v147 + 680);
memset(v217, 0, sizeof(v217));
v217[3] = 1065353216;
v217[0] = 1065353216;
v217[1] = 1053345993;
v148(v147, v217);
v149 = *((_DWORD *)this + 437);
v150 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v149 + 696);
memset(v217, 0, sizeof(v217));
v217[3] = 1065353216;
v217[0] = 1065353216;
v150(v149, v217);
v151 = *((_DWORD *)this + 438);
v152 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v151 + 680);
memset(v217, 0, sizeof(v217));
v217[3] = 1065353216;
v217[0] = 1065353216;
v217[1] = 1061076671;
v152(v151, v217);
v153 = *((_DWORD *)this + 438);
v154 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v153 + 696);
memset(v217, 0, sizeof(v217));
v217[3] = 1065353216;
v217[0] = 1065353216;
v154(v153, v217);
for ( j = 0; ; j = 1 )
{
v157 = (cocos2d::CCObject *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"swingBurstEffect.plist",
nullptr,
v155);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v157 + 784))(v157, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), v157);
cocos2d::CCParticleSystem::stopSystem(v157);
v200 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v157 + 680);
memset(v217, 0, sizeof(v217));
v217[1] = 1053345993;
v217[3] = 1065353216;
v217[0] = 1065353216;
v200(v157, v217);
v201 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v157 + 696);
memset(v217, 0, sizeof(v217));
v217[3] = 1065353216;
v217[0] = 1065353216;
v201(v157, v217);
if ( j )
break;
*((_DWORD *)this + 443) = v157;
}
*((_DWORD *)this + 444) = v157;
v158 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"shipDragEffect.plist", nullptr, v155);
*((_DWORD *)this + 439) = v158;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v158 + 784))(v158, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 439));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 439));
v160 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"landEffect.plist", nullptr, v159);
*((_DWORD *)this + 446) = v160;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v160 + 784))(v160, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 446));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 446));
*((_DWORD *)this + 448) = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 446) + 500))(*((_DWORD *)this + 446));
v161 = *(_DWORD *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 446) + 520))(*((_DWORD *)this + 446)) + 4);
*((_DWORD *)this + 449) = v161;
v162 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"landEffect.plist", nullptr, v161);
*((_DWORD *)this + 447) = v162;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v162 + 784))(v162, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 356), *((cocos2d::CCObject **)this + 447));
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 447));
PlayerObject::setupStreak(this);
v163 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"player_%02d_glow_001.png", v9);
v164 = (const char *)cocos2d::CCString::getCString(v163);
v213[0] = 0;
v213[1] = 0;
v214 = nullptr;
v165 = strlen(v164);
v166 = (cocos2d::CCSprite *)std::string::__init(v213, v164, v165);
v167 = cocos2d::CCSprite::create(v166);
*((_DWORD *)this + 385) = v167;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v167 + 568))(v167, &unk_D2B83C);
*(_BYTE *)(*((_DWORD *)this + 385) + 471) = 1;
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 293) + 232))(
*((_DWORD *)this + 293),
*((_DWORD *)this + 385),
-1);
v169 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerDash2_001.png", v168);
*((_DWORD *)this + 347) = v169;
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v169 + 540))(v169, 770, 1);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 385) + 228))(
*((_DWORD *)this + 385),
*((_DWORD *)this + 347));
v170 = *((_DWORD *)this + 347);
v171 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v170 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v202, 0.0, 0.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, this);
v171(v170, v217);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 347) + 172))(*((_DWORD *)this + 347), 0);
v173 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerDash2_outline_001.png", v172);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 347) + 232))(*((_DWORD *)this + 347), v173, 1);
v174 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v173 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v217, *((const cocos2d::CCPoint **)this + 347));
v174(v173, v217);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v173 + 456))(v173, 150);
if ( (v213[0] & 1) != 0 )
v176 = v214;
else
v176 = (cocos2d::CCSprite *)((char *)v213 + 1);
v177 = cocos2d::CCSprite::createWithSpriteFrameName(v176, v175);
*((_DWORD *)this + 376) = v177;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v177 + 172))(v177, 0);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 385) + 232))(
*((_DWORD *)this + 385),
*((_DWORD *)this + 376),
2);
v178 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"ship_%02d_glow_001.png", v7);
v179 = (const char *)cocos2d::CCString::getCString(v178);
v215[0] = 0;
v215[1] = 0;
v216 = nullptr;
v180 = strlen(v179);
std::string::__init(v215, v179, v180);
if ( (v215[0] & 1) != 0 )
v182 = v216;
else
v182 = (cocos2d::CCSprite *)((char *)v215 + 1);
v183 = cocos2d::CCSprite::createWithSpriteFrameName(v182, v181);
*((_DWORD *)this + 381) = v183;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 385) + 232))(*((_DWORD *)this + 385), v183, -3);
v184 = (GameManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 381) + 172))(
*((_DWORD *)this + 381),
0);
*((_DWORD *)this + 162) = 1106247680;
*((_DWORD *)this + 163) = 1106247680;
*((_DWORD *)this + 536) = 1106247680;
v185 = (GameManager *)GameManager::sharedState(v184);
v186 = (GameManager *)GameManager::getGameVariable(v185, "0060");
*((_BYTE *)this + 2152) = (_BYTE)v186;
v187 = (GameManager *)GameManager::sharedState(v186);
v188 = (GameManager *)GameManager::getGameVariable(v187, "0061");
*((_BYTE *)this + 2153) = (_BYTE)v188;
v189 = (GameManager *)GameManager::sharedState(v188);
v190 = GameManager::getGameVariable(v189, "0062");
v191 = *((_DWORD *)this + 541);
v217[0] = 0;
v192 = *((_DWORD *)this + 540);
*((_BYTE *)this + 2154) = v190;
v193 = (v191 - v192) >> 2;
if ( v193 > 0xC7 )
{
if ( v193 != 200 )
{
v194 = v192 + 800;
while ( 1 )
{
v195 = *((_DWORD *)this + 541);
if ( v194 == v195 )
break;
*((_DWORD *)this + 541) = v195 - 4;
}
}
}
else
{
std::vector::__append((int)this + 2160, 200 - v193, v217);
}
PlayerObject::updateCheckpointMode((int)this, 0);
std::string::~string((int)v215);
std::string::~string((int)v213);
std::string::~string((int)v210);
std::string::~string((int)v208);
}
std::string::~string((int)v205);
std::string::~string((int)v203);
return v199;
}