//
// EnhancedGameObject::customSetup from 0x360bec to 0x361b28 (3900 bytes)
//
// 2 xrefs:
// > ParticleGameObject::customSetup @ 0x3e124c
// > EffectGameObject::customSetup @ 0x3ea90a
//
// 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
//
void EnhancedGameObject::customSetup(EnhancedGameObject *a1)
{
int m_objectID; // r3
unsigned int v3; // r3
bool v4; // cc
unsigned int v5; // r3
int v6; // r0
float *p_m_animationRandomizedStartValue; // r3
float v8; // s15
bool v9; // cc
int v10; // r2
bool v11; // cc
unsigned int v12; // r3
int v13; // r3
int v14; // r1
bool v15; // r3
int v16; // r0
int v17; // r2
bool v18; // r3
int v19; // r2
int v20; // r0
_BOOL4 m_disableRotation; // r5
unsigned int v22; // s14
EnhancedGameObject *v23; // r0
float v24; // r1
int v25; // r2
float v26; // s16
unsigned int v27; // s14
float v28; // s15
unsigned int v29; // s13
float m_height; // s15
float v31; // s15
float v32; // s15
float v33; // s14
unsigned int v34; // s13
float v35; // s13
bool v36; // zf
float v37; // s16
_BOOL4 v38; // r7
int v39; // r5
int v40; // r0
int v41; // s15
unsigned int v42; // s13
int v43; // r0
unsigned int v44; // s13
float v45; // s15
float v46; // s14
float v47; // r3
float v48; // r1
int v49; // r2
float v50; // r1
int v51; // r3
float v52; // r3
float m_width; // s15
float v54; // s14
float v55; // r1
int v56; // r3
cocos2d::CCParticleSystemQuad *v57; // r0
cocos2d::CCParticleSystemQuad *v58; // r5
void (__fastcall *v59)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r9
void (__fastcall *v60)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r9
cocos2d::CCParticleSystemQuad *v61; // r0
cocos2d::CCParticleSystemQuad *v62; // r5
void (__fastcall *setStartColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r9
void (__fastcall *setEndColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r9
cocos2d::CCPoint v65[2]; // [sp+Ch] [bp-18h] BYREF
m_objectID = a1->m_objectID;
if ( m_objectID <= 1528 )
{
if ( m_objectID > 1520 )
goto LABEL_164;
if ( m_objectID <= 680 )
{
if ( m_objectID >= 678 )
goto LABEL_233;
if ( m_objectID <= 182 )
{
if ( m_objectID >= 180 )
goto LABEL_151;
if ( m_objectID == 97 )
{
LABEL_156:
GameObject::setDefaultMainColorMode(a1, 1005);
v26 = 1.5;
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
m_disableRotation = a1->m_disableRotation;
if ( (unsigned int)(a1->m_objectID - 154) > 2 )
v26 = 1.0;
if ( a1->m_disableRotation )
goto LABEL_155;
v27 = rand();
v23 = a1;
v28 = v26 * (float)((float)(vcvts_n_f32_s32(v27, 0x1Fu) * 90.0) + 90.0);
goto LABEL_196;
}
if ( m_objectID <= 97 )
{
if ( m_objectID < 85 )
goto LABEL_286;
if ( m_objectID > 87 )
{
if ( m_objectID > 89 )
goto LABEL_286;
goto LABEL_199;
}
goto LABEL_156;
}
if ( m_objectID <= 139 )
{
if ( m_objectID < 137 )
{
if ( m_objectID != 98 )
goto LABEL_286;
goto LABEL_199;
}
LABEL_151:
GameObject::setDefaultMainColorMode(a1, 1006);
m_disableRotation = a1->m_disableRotation;
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
if ( !m_disableRotation )
{
v22 = rand();
v23 = a1;
v24 = (float)(vcvts_n_f32_s32(v22, 0x1Fu) * 90.0) + 90.0;
LABEL_153:
v25 = m_disableRotation;
LABEL_154:
EnhancedGameObject::createRotateAction(v23, v24, v25);
}
LABEL_155:
a1->m_hasCustomRotation = 1;
goto LABEL_286;
}
v3 = m_objectID - 154;
goto LABEL_22;
}
if ( m_objectID > 378 )
{
if ( m_objectID >= 400 )
{
if ( m_objectID < 675 )
goto LABEL_286;
goto LABEL_199;
}
if ( m_objectID > 396 )
goto LABEL_199;
if ( m_objectID < 394 )
goto LABEL_286;
goto LABEL_156;
}
if ( m_objectID <= 374 )
{
if ( m_objectID > 188 )
{
v3 = m_objectID - 222;
LABEL_22:
v4 = v3 > 2;
goto LABEL_39;
}
LABEL_233:
a1->m_objectType = Hazard;
a1->m_defaultZOrder = 1;
a1->m_hasCustomRotation = 1;
if ( m_objectID > 1618 )
{
a1->m_customGlowColor = 1;
a1->m_colorZLayerRelated = 0;
}
else if ( (unsigned int)(m_objectID - 678) > 2 )
{
a1->m_customGlowColor = 1;
}
else
{
a1->m_defaultZOrder = 0;
}
v49 = a1->m_disableRotation;
if ( a1->m_disableRotation )
goto LABEL_248;
if ( m_objectID == 1619 )
{
v50 = 720.0;
}
else
{
if ( m_objectID != 1620 )
{
if ( m_objectID == 186 )
v50 = 300.0;
else
v50 = 360.0;
goto LABEL_247;
}
v50 = 1080.0;
}
v49 = -1;
LABEL_247:
EnhancedGameObject::createRotateAction(a1, v50, v49);
LABEL_248:
v51 = a1->m_objectID;
if ( v51 == 187 )
goto LABEL_263;
if ( v51 <= 187 )
{
if ( v51 == 184 )
{
m_width = a1->m_width;
v54 = 0.34;
LABEL_277:
a1->m_objectRadius = m_width * v54;
goto LABEL_286;
}
if ( v51 != 186 )
{
if ( v51 == 183 )
goto LABEL_263;
goto LABEL_265;
}
goto LABEL_274;
}
if ( v51 == 679 )
{
LABEL_263:
m_width = a1->m_width;
LABEL_275:
v54 = 0.36;
goto LABEL_277;
}
if ( v51 >= 680 )
{
if ( v51 == 1619 )
{
v52 = 25.0;
goto LABEL_262;
}
if ( v51 == 1620 )
{
v52 = 15.0;
goto LABEL_262;
}
}
else if ( v51 == 678 )
{
v52 = 30.4;
LABEL_262:
a1->m_objectRadius = v52;
goto LABEL_286;
}
LABEL_265:
m_width = a1->m_width;
goto LABEL_276;
}
LABEL_164:
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
if ( m_objectID != 1522 )
{
if ( m_objectID <= 1522 )
{
if ( m_objectID != 377 )
{
if ( m_objectID < 378 )
{
if ( m_objectID != 375 )
goto LABEL_182;
LABEL_181:
GameObject::setDefaultMainColorMode(a1, 1005);
v37 = 1.4;
LABEL_186:
v38 = a1->m_disableRotation;
if ( a1->m_disableRotation )
goto LABEL_155;
if ( (float)((float)rand() * 4.6566e-10) <= 0.5 )
v39 = -1;
else
v39 = 1;
v40 = rand();
v25 = v38;
v41 = v40;
v23 = a1;
v24 = (float)(v37 * (float)((float)((float)((float)v41 * 4.6566e-10) * 90.0) + 90.0)) * (float)v39;
goto LABEL_154;
}
if ( m_objectID != 378 )
goto LABEL_181;
LABEL_184:
GameObject::setDefaultMainColorMode(a1, 1006);
v37 = 0.8;
goto LABEL_186;
}
goto LABEL_183;
}
if ( m_objectID == 1525 )
goto LABEL_181;
if ( m_objectID <= 1525 )
{
if ( m_objectID != 1523 )
{
v36 = m_objectID == 1524;
goto LABEL_179;
}
LABEL_183:
GameObject::setDefaultMainColorMode(a1, 1005);
goto LABEL_185;
}
if ( m_objectID == 1527 )
goto LABEL_183;
if ( m_objectID >= 1527 )
{
v36 = m_objectID == 1528;
LABEL_179:
if ( v36 )
goto LABEL_184;
LABEL_185:
v37 = 1.0;
goto LABEL_186;
}
}
LABEL_182:
GameObject::setDefaultMainColorMode(a1, 1006);
v37 = 1.2;
goto LABEL_186;
}
if ( m_objectID <= 1052 )
{
if ( m_objectID < 1050 )
{
if ( m_objectID <= 924 )
{
if ( m_objectID < 923 )
{
if ( m_objectID < 740 )
goto LABEL_286;
if ( m_objectID <= 742 )
{
a1->m_objectType = Hazard;
a1->m_defaultZOrder = 1;
a1->m_isInvisibleBlock = 1;
if ( !a1->m_disableRotation )
{
if ( m_objectID == 740 )
v55 = 300.0;
else
v55 = 360.0;
EnhancedGameObject::createRotateAction(a1, v55, a1->m_disableRotation);
}
a1->m_hasCustomRotation = 1;
v56 = a1->m_objectID;
if ( v56 != 740 )
{
m_width = a1->m_width;
if ( v56 == 741 )
goto LABEL_275;
LABEL_276:
v54 = 0.3;
goto LABEL_277;
}
LABEL_274:
v52 = 32.3;
goto LABEL_262;
}
v5 = m_objectID - 920;
goto LABEL_53;
}
LABEL_137:
a1->m_objectType = Decoration;
GameObject::setDefaultMainColorMode(a1, 1011);
a1->m_hasCustomAnimation = 1;
a1->m_randomFrameTime = (float)((float)((float)rand() * 4.6566e-10) * 0.4) + 0.8;
a1->m_animationRandomizedStart = 1;
LABEL_138:
if ( (float)((float)rand() * 4.6566e-10) > 0.7 )
{
a1->m_unk548 = 1;
a1->m_animationStart = -1.0;
goto LABEL_286;
}
v20 = rand();
p_m_animationRandomizedStartValue = (float *)&a1->m_animationRandomizedStartValue;
v8 = (float)((float)v20 * 4.6566e-10) * 0.5;
goto LABEL_129;
}
if ( m_objectID <= 1021 )
{
if ( m_objectID < 1019 )
{
v4 = (unsigned int)(m_objectID - 997) > 3;
LABEL_39:
if ( v4 )
goto LABEL_286;
goto LABEL_156;
}
GameObject::setDefaultMainColorMode(a1, 1005);
m_height = a1->m_height;
m_disableRotation = a1->m_disableRotation;
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
v31 = m_height + m_height;
a1->m_defaultZLayer = B1;
a1->m_updateCustomContentSize = 1;
a1->m_width = v31;
a1->m_height = v31;
if ( m_disableRotation )
goto LABEL_155;
byte_AC5CC0 ^= 1u;
v32 = 45.0;
v33 = 135.0;
v34 = rand();
v23 = a1;
v35 = vcvts_n_f32_s32(v34, 0x1Fu);
LABEL_195:
v28 = v32 + (float)(v35 * v33);
LABEL_196:
v24 = v28;
goto LABEL_153;
}
if ( m_objectID != 1022 )
goto LABEL_286;
a1->m_objectType = GreenRing;
a1->m_usesAudioScale = 1;
a1->m_spriteWidthScale = 1.2;
a1->m_spriteHeightScale = 1.2;
a1->m_defaultZOrder = 12;
a1->m_defaultZLayer = B1;
GameObject::setDefaultMainColorMode(a1, 0);
if ( !a1->m_editorEnabled )
{
v61 = GameObject::createAndAddParticle(a1, a1->m_objectType, "ringEffect.plist", 4, kCCPositionTypeGrouped);
v62 = v61;
if ( v61 )
{
v61->setPositionType(v61, kCCPositionTypeGrouped);
setStartColor = v62->setStartColor;
v65[1].y = 1.0;
v65[0].y = 1.0;
v65[0].x = 0.29412;
v65[1].x = 0.29412;
setStartColor(v62, (const cocos2d::ccColor4F *)v65);
setEndColor = v62->setEndColor;
memset(v65, 0, sizeof(v65));
v65[1].y = 1.0;
v65[0].y = 1.0;
setEndColor(v62, (const cocos2d::ccColor4F *)v65);
}
}
LABEL_281:
if ( a1->m_disableRotation )
goto LABEL_155;
v23 = a1;
v24 = 270.0;
v25 = 0;
goto LABEL_154;
}
v14 = 1007;
goto LABEL_124;
}
if ( m_objectID <= 1061 )
{
if ( m_objectID < 1058 )
{
if ( m_objectID <= 1054 )
goto LABEL_123;
GameObject::setDefaultMainColorMode(a1, 1007);
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_minAudioScale = 0.8;
a1->m_defaultZLayer = B1;
a1->m_usesAudioScale = 1;
a1->m_maxAudioScale = 1.2;
a1->m_customAudioScale = 1;
LABEL_193:
m_disableRotation = a1->m_disableRotation;
if ( a1->m_disableRotation )
goto LABEL_155;
v32 = 270.0;
v33 = 90.0;
v42 = rand();
v23 = a1;
v35 = vcvts_n_f32_s32(v42, 0x1Fu);
goto LABEL_195;
}
LABEL_192:
GameObject::setDefaultMainColorMode(a1, 1007);
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
goto LABEL_193;
}
if ( m_objectID != 1516 )
{
if ( m_objectID > 1516 )
{
v5 = m_objectID - 1518;
LABEL_53:
if ( v5 > 1 )
goto LABEL_286;
goto LABEL_137;
}
if ( m_objectID != 1330 )
goto LABEL_286;
a1->m_objectType = DropRing;
a1->m_usesAudioScale = 1;
a1->m_spriteWidthScale = 1.2;
a1->m_spriteHeightScale = 1.2;
a1->m_defaultZOrder = 12;
a1->m_defaultZLayer = B1;
GameObject::setDefaultMainColorMode(a1, 0);
if ( !a1->m_editorEnabled )
{
v57 = GameObject::createAndAddParticle(a1, a1->m_objectType, "ringEffect.plist", 4, kCCPositionTypeGrouped);
v58 = v57;
if ( v57 )
{
v57->setPositionType(v57, kCCPositionTypeGrouped);
v59 = v58->setStartColor;
v65[1].y = 1.0;
v65[0].x = 1.0;
v65[0].y = 1.0;
v65[1].x = 1.0;
v59(v58, (const cocos2d::ccColor4F *)v65);
v60 = v58->setEndColor;
memset(v65, 0, sizeof(v65));
v65[1].y = 1.0;
v60(v58, (const cocos2d::ccColor4F *)v65);
}
}
goto LABEL_281;
}
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
v15 = 1;
a1->m_hasCustomAnimation = 1;
LABEL_149:
a1->m_colorZLayerRelated = v15;
goto LABEL_286;
}
if ( m_objectID > 1939 )
{
if ( m_objectID <= 3002 )
{
if ( m_objectID >= 3000 )
goto LABEL_123;
if ( m_objectID > 2630 )
{
if ( m_objectID > 2865 )
{
v9 = (unsigned int)(m_objectID - 2867) > 0x1B;
LABEL_100:
if ( v9 )
goto LABEL_286;
goto LABEL_145;
}
if ( m_objectID >= 2864 )
{
LABEL_145:
a1->m_objectType = Decoration;
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_hasCustomAnimation = 1;
a1->m_colorZLayerRelated = 1;
a1->m_randomFrameTime = (float)((float)((float)rand() * 4.6566e-10) * 0.4) + 0.8;
a1->m_animationRandomizedStart = 1;
if ( (float)((float)rand() * 4.6566e-10) <= 0.7 )
{
*(float *)&a1->m_animationRandomizedStartValue = (float)((float)rand() * 4.6566e-10) * 0.5;
}
else
{
a1->m_unk548 = 1;
a1->m_animationStart = -1.0;
}
v15 = 0;
goto LABEL_149;
}
v10 = 2694;
goto LABEL_117;
}
if ( m_objectID < 2629 && m_objectID != 2223 )
{
if ( m_objectID < 2224 )
{
v9 = (unsigned int)(m_objectID - 2020) > 0x23;
goto LABEL_100;
}
if ( m_objectID != 2246 )
{
v10 = 2605;
goto LABEL_117;
}
}
LABEL_118:
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
a1->m_colorZLayerRelated = 1;
a1->m_hasCustomAnimation = 1;
v13 = a1->m_objectID;
if ( v13 != 2605 && v13 != 2694 )
a1->m_randomFrameTime = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.4) + 0.8;
GameObject::setupPixelScale(a1);
goto LABEL_286;
}
if ( m_objectID > 3484 )
{
if ( m_objectID == 4211 )
goto LABEL_118;
if ( m_objectID > 4211 )
{
v10 = 4300;
LABEL_117:
if ( m_objectID != v10 )
goto LABEL_286;
goto LABEL_118;
}
v12 = m_objectID - 3492;
}
else
{
if ( m_objectID >= 3482 || m_objectID == 3219 )
goto LABEL_118;
if ( m_objectID <= 3219 )
{
v11 = (unsigned int)(m_objectID - 3119) > 2;
goto LABEL_114;
}
v12 = m_objectID - 3303;
}
v11 = v12 > 1;
LABEL_114:
if ( v11 )
goto LABEL_286;
goto LABEL_118;
}
if ( m_objectID >= 1936 )
goto LABEL_137;
if ( m_objectID > 1710 )
{
if ( m_objectID <= 1834 )
{
if ( m_objectID < 1831 )
{
if ( m_objectID < 1734 )
goto LABEL_286;
if ( m_objectID <= 1736 )
{
LABEL_199:
a1->m_objectType = Hazard;
v45 = a1->m_width;
if ( m_objectID == 677 )
goto LABEL_227;
if ( m_objectID <= 677 )
{
if ( m_objectID != 397 )
{
if ( m_objectID < 398 )
{
if ( m_objectID != 88 )
{
if ( m_objectID != 89 )
goto LABEL_219;
LABEL_221:
v46 = 0.36;
goto LABEL_228;
}
goto LABEL_220;
}
if ( m_objectID != 675 )
{
if ( m_objectID < 676 )
{
if ( m_objectID != 398 )
goto LABEL_219;
LABEL_227:
v46 = 0.32;
goto LABEL_228;
}
LABEL_225:
a1->m_objectRadius = v45 * 0.34;
goto LABEL_226;
}
goto LABEL_224;
}
LABEL_222:
v47 = 28.9;
goto LABEL_223;
}
if ( m_objectID == 1709 )
goto LABEL_227;
if ( m_objectID > 1709 )
{
switch ( m_objectID )
{
case 1735:
goto LABEL_225;
case 1736:
goto LABEL_227;
case 1734:
LABEL_224:
v48 = 240.0;
a1->m_objectRadius = 32.0;
LABEL_229:
if ( !a1->m_disableRotation )
EnhancedGameObject::createRotateAction(a1, v48, a1->m_disableRotation);
a1->m_hasCustomRotation = 1;
a1->m_customGlowColor = 1;
a1->m_glowColorIsLBG = 1;
a1->m_defaultZOrder = 1;
if ( (unsigned int)(a1->m_objectID - 1705) <= 5 )
GameObject::setDefaultMainColorMode(a1, 1010);
goto LABEL_286;
}
}
else
{
switch ( m_objectID )
{
case 1706:
goto LABEL_221;
case 1708:
goto LABEL_222;
case 1705:
LABEL_220:
v47 = 32.3;
LABEL_223:
a1->m_objectRadius = v47;
LABEL_226:
v48 = 300.0;
goto LABEL_229;
}
}
LABEL_219:
v46 = 0.3;
LABEL_228:
v48 = 360.0;
a1->m_objectRadius = v45 * v46;
goto LABEL_229;
}
if ( m_objectID != 1752 )
goto LABEL_286;
GameObject::setDefaultMainColorMode(a1, 1007);
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
if ( !a1->m_disableRotation )
{
v43 = rand();
v25 = 1;
v44 = v43;
v23 = a1;
v24 = (float)(vcvts_n_f32_s32(v44, 0x1Fu) * 90.0) + 270.0;
goto LABEL_154;
}
goto LABEL_155;
}
goto LABEL_192;
}
if ( m_objectID > 1858 )
{
if ( m_objectID != 1860 )
goto LABEL_286;
}
else if ( m_objectID <= 1848 )
{
if ( (unsigned int)(m_objectID - 1839) <= 3 )
{
a1->m_animationShouldUseSpeed = 1;
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_hasCustomAnimation = 1;
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
}
goto LABEL_286;
}
a1->m_objectType = Decoration;
GameObject::setDefaultMainColorMode(a1, 1011);
v19 = a1->m_objectID;
a1->m_hasCustomAnimation = 1;
if ( v19 != 1857 && v19 != 1860 )
a1->m_colorZLayerRelated = 1;
a1->m_randomFrameTime = (float)((float)((float)rand() * 4.6566e-10) * 0.4) + 0.8;
a1->m_animationRandomizedStart = 1;
goto LABEL_138;
}
if ( m_objectID > 1704 )
goto LABEL_199;
if ( m_objectID == 1614 )
{
GameObject::commonInteractiveSetup(a1);
a1->m_width = 25.0;
a1->m_height = 20.0;
goto LABEL_125;
}
if ( m_objectID > 1614 )
{
if ( m_objectID > 1620 )
{
if ( (unsigned int)(m_objectID - 1697) > 2 )
goto LABEL_286;
GameObject::setDefaultMainColorMode(a1, 1006);
a1->m_hasCustomAnimation = 1;
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
*(float *)&a1->m_animationRandomizedStartValue = (float)((float)rand() * 4.6566e-10) * 0.5;
a1->m_animationRandomizedStart = 1;
v6 = rand();
p_m_animationRandomizedStartValue = &a1->m_randomFrameTime;
v8 = (float)((float)((float)v6 * 4.6566e-10) * 0.5) + 0.8;
LABEL_129:
*p_m_animationRandomizedStartValue = v8;
goto LABEL_286;
}
if ( m_objectID >= 1619 )
goto LABEL_233;
if ( m_objectID != 1618 )
goto LABEL_286;
GameObject::setDefaultMainColorMode(a1, 1011);
a1->m_hasCustomAnimation = 1;
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
*(float *)&a1->m_animationRandomizedStartValue = (float)((float)rand() * 4.6566e-10) * 0.5;
a1->m_animationRandomizedStart = 1;
LABEL_128:
v16 = rand();
p_m_animationRandomizedStartValue = &a1->m_randomFrameTime;
v8 = (float)((float)((float)v16 * 4.6566e-10) * 0.4) + 0.8;
goto LABEL_129;
}
if ( m_objectID == 1591 )
{
LABEL_127:
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_colorZLayerRelated = 1;
a1->m_objectType = Decoration;
a1->m_hasCustomAnimation = 1;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
*(float *)&a1->m_animationRandomizedStartValue = (float)((float)rand() * 4.6566e-10) * 0.5;
a1->m_animationRandomizedStart = 1;
a1->m_unkAnimationInt = 1;
goto LABEL_128;
}
if ( m_objectID >= 1592 )
{
if ( m_objectID != 1592 )
{
if ( m_objectID != 1593 )
goto LABEL_286;
goto LABEL_127;
}
LABEL_123:
v14 = 1;
LABEL_124:
GameObject::setDefaultMainColorMode(a1, v14);
a1->m_objectType = Decoration;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
LABEL_125:
a1->m_hasCustomAnimation = 1;
goto LABEL_286;
}
if ( m_objectID == 1582 )
{
m_disableRotation = 1;
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_objectType = Hazard;
a1->m_objectRadius = 4.0;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
a1->m_colorZLayerRelated = 1;
a1->m_usesAudioScale = 1;
a1->m_minAudioScale = 0.9;
a1->m_customAudioScale = 1;
a1->m_maxAudioScale = 1.2;
if ( a1->m_disableRotation )
goto LABEL_155;
v29 = rand();
v23 = a1;
v28 = (float)((float)(vcvts_n_f32_s32(v29, 0x1Fu) * 0.4) + 0.8) * 270.0;
goto LABEL_196;
}
if ( m_objectID == 1583 )
{
GameObject::setDefaultMainColorMode(a1, 1);
a1->m_objectType = Hazard;
a1->m_objectRadius = 4.0;
a1->m_defaultZOrder = 9;
a1->m_defaultZLayer = B1;
a1->m_colorZLayerRelated = 1;
a1->m_usesAudioScale = 1;
a1->m_minAudioScale = 0.9;
a1->m_customAudioScale = 1;
a1->m_hasCustomAnimation = 1;
a1->m_maxAudioScale = 1.1;
a1->m_unk4F8 = 1;
a1->m_randomFrameTime = (float)((float)((float)rand() * 4.6566e-10) * 0.4) + 0.8;
a1->m_animationRandomizedStart = 1;
if ( (float)((float)rand() * 4.6566e-10) <= 0.7 )
{
*(float *)&a1->m_animationRandomizedStartValue = (float)((float)rand() * 4.6566e-10) * 0.5;
}
else
{
a1->m_unk548 = 1;
a1->m_animationStart = -1.0;
}
if ( !a1->m_editorEnabled )
{
if ( !a1->m_hasNoEffects )
GameObject::createAndAddParticle(a1, a1->m_objectType, "fireballEffect.plist", -2, kCCPositionTypeRelative);
cocos2d::CCPoint::CCPoint(v65, 0.0, 0.0);
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_particleOffset, COERCE_FLOAT(v65), v17, v18);
a1->m_particleUseObjectColor = 1;
a1->m_particleLocked = 1;
}
}
LABEL_286:
GameObject::customSetup(a1);
}