// // PlayLayer::tryShowDeathMarkers from 0x72cf90 to 0x72d6f0 (1888 bytes) // // 1 xrefs: // > PlayLayer::destroyPlayer @ 0x405ccc // // 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:58:17 +0000 // int __fastcall PlayLayer::tryShowDeathMarkers(PlayLayer *this, const cocos2d::CCPoint *a2, int a3, int a4) { float v6; // r0 GameManager *v7; // r0 GameManager *IntGameVariable; // r0 int v9; // r5 GameManager *v10; // r0 GameManager *v11; // r0 GameManager *GameVariable; // r10 GameManager *v13; // r0 int v14; // r8 float v15; // s16 int v16; // r6 float *v17; // r7 float v18; // s16 int NormalPercent; // r0 float v20; // s20 float *v21; // r7 float v22; // s17 float v23; // s16 _BOOL4 v24; // r3 int *v25; // r3 int *v26; // r3 int v27; // r9 int v28; // r0 float v29; // s18 _BOOL4 v30; // r9 int v31; // r0 time_t v32; // r0 int v33; // r3 time_t v34; // r12 int v35; // r0 _DWORD *v36; // r3 unsigned int v37; // r0 _BOOL4 v38; // r3 int v39; // r2 float v40; // s16 int v41; // r1 int *v42; // r3 int *v43; // r3 int *v44; // r3 int *v45; // r3 time_t *v46; // r3 int v47; // r0 int v48; // r0 PlayLayer *v49; // r0 GameManager *v50; // r0 DeathMarkerLayer *v51; // r0 unsigned __int8 v52; // r6 float v53; // s16 int v54; // r9 int v55; // r11 int v56; // r0 int v57; // r0 int v58; // r8 int v59; // r10 int v60; // r9 int v61; // r0 GameManager *v62; // r0 GameManager *v63; // r0 DeathMarkerLayer *v64; // r0 int v65; // r3 float v66; // s15 DeathMarkerLayer *v67; // r0 int v68; // r2 float v69; // s17 GameManager *v70; // r0 int v71; // r3 int v72; // r2 int *v73; // r3 GameManager *v74; // r0 GameManager *v75; // r0 EditorSFXManager *hasSoundsForAction; // r0 int v77; // r2 int v78; // r3 int v79; // r3 EditorSFXManager *v81; // r0 EditorSFXManager *v82; // r0 int v83; // r2 int v84; // r3 EditorSFXManager *v85; // r0 int v86; // r3 int v87; // r1 EditorSFXManager *v88; // r0 _BOOL4 v89; // [sp+24h] [bp-58h] int v90; // [sp+24h] [bp-58h] _BOOL4 v91; // [sp+28h] [bp-54h] int v92; // [sp+2Ch] [bp-50h] unsigned int v93; // [sp+3Ch] [bp-40h] int v95; // [sp+48h] [bp-34h] BYREF int v96; // [sp+4Ch] [bp-30h] BYREF int v97; // [sp+50h] [bp-2Ch] BYREF time_t v98; // [sp+54h] [bp-28h] BYREF char *v99[3]; // [sp+58h] [bp-24h] BYREF float v100[4]; // [sp+64h] [bp-18h] BYREF v6 = GJGameLevel::cellForPosition((float *)a2, &v95, &v96); v7 = (GameManager *)GameManager::sharedState((GameManager *)LODWORD(v6)); IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v7, "0205"); if ( (int)IntGameVariable <= 0 ) { v9 = 2; } else if ( (int)IntGameVariable > 5 ) { v9 = 5; } else { v9 = (int)IntGameVariable - 1; } v10 = (GameManager *)GameManager::sharedState(IntGameVariable); if ( GameManager::getGameVariable(v10, "0207") ) { GameVariable = nullptr; v14 = 0; } else { v11 = (GameManager *)GameManager::sharedState(nullptr); GameVariable = (GameManager *)GameManager::getGameVariable(v11, "0200"); v13 = (GameManager *)GameManager::sharedState(GameVariable); v14 = GameManager::getGameVariable(v13, "0202"); } if ( *((_BYTE *)this + 12032) ) { if ( GameVariable || v14 ) PlayLayer::dtRebuildLiveMarkers(this); goto LABEL_13; } if ( !v9 || !GameVariable && !v14 ) goto LABEL_13; v16 = 4 * v9; v17 = (float *)((char *)&unk_BF0410 + 4 * v9); v18 = *v17; NormalPercent = GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 352)); v20 = v17[6]; v21 = (float *)((char *)this + 12012); v22 = v18 * (float)NormalPercent; v23 = *((float *)this + 3003); if ( v23 < v22 ) v23 = v22; if ( *((_BYTE *)this + 10614) ) v24 = 0; else v24 = (float)a3 >= v23; v89 = v24; v25 = *((int **)this + 3005); if ( v25 == *((int **)this + 3006) ) { std::vector::__push_back_slow_path((int)this + 12016, &v95); } else { if ( v25 ) *v25 = v95; *((_DWORD *)this + 3005) += 4; } v26 = *((int **)this + 3005); if ( v26 == *((int **)this + 3006) ) { std::vector::__push_back_slow_path((int)this + 12016, &v96); } else { if ( v26 ) *v26 = v96; *((_DWORD *)this + 3005) += 4; } v27 = *(_DWORD *)((char *)&unk_BF0410 + v16 + 48); v28 = GJGameLevel::countDeathsNear((int *)this + 3004, v95, v96, 8); v91 = v27 > 0 && v28 >= v27; v97 = 0; v29 = *(float *)((char *)&unk_BF0410 + v16 + 72); if ( v29 <= 0.0 ) goto LABEL_44; if ( !v14 ) { v30 = 0; goto LABEL_45; } if ( *((int *)this + 3002) <= 0 ) { LABEL_44: v30 = 0; } else { v100[0] = 0.0; GJGameLevel::accumulateDeathsInRadius((int *)this + 2989, v95, v96, 8, v100, &v97); v30 = v97 > 4 && (float)v97 >= (float)(v29 * (float)*((int *)this + 3002)); v31 = GJGameLevel::countDeathsNear((int *)this + 3009, v95, v96, 8); if ( v30 ) v30 = v31 <= 0; } LABEL_45: v32 = time(nullptr); v33 = *((unsigned __int8 *)this + 10614); v34 = v32; v98 = v32; if ( v33 ) { v35 = *(_DWORD *)((char *)&unk_BF0410 + v16 + 96); if ( v35 <= 0 ) { LABEL_53: v33 = 0; } else { v92 = v35 * v35; v36 = *((_DWORD **)this + 3012); v93 = (*((_DWORD *)this + 3013) - (int)v36) >> 2; v37 = 0; while ( 1 ) { v37 += 3; if ( v37 > v93 ) break; if ( (v36[1] - v96) * (v36[1] - v96) + (*v36 - v95) * (*v36 - v95) <= v92 && v34 - v36[2] < *(_DWORD *)((char *)&unk_BF0410 + v16 + 120) ) { goto LABEL_53; } v36 += 3; } v33 = 1; } } v38 = v9 == 5 || (v89 || v33 || v91 || v30) && !PlayLayer::dtDeathIsBarren(this, v95, v96, (int)GameVariable, v14); v39 = *(_DWORD *)((char *)&unk_BF0410 + v16 + 144); if ( v38 && !a4 && v39 > 0 ) v38 = v98 - *((_DWORD *)this + 3007) >= v39; if ( !*((_BYTE *)this + 10614) ) { if ( v89 ) { if ( v38 ) { *v21 = (float)(a3 + *(_DWORD *)((char *)&unk_BF0410 + v16 + 168)); goto LABEL_72; } goto LABEL_13; } v40 = v23 * v20; if ( v22 >= v40 ) v40 = v22; *v21 = v40; } if ( v38 ) { LABEL_72: v41 = v95; *((_DWORD *)this + 3007) = v98; GJGameLevel::clearDeathsNear((char **)this + 3004, v41, v96, 8); if ( v30 ) { v42 = *((int **)this + 3010); if ( v42 == *((int **)this + 3011) ) { std::vector::__push_back_slow_path((int)this + 12036, &v95); } else { if ( v42 ) *v42 = v95; *((_DWORD *)this + 3010) += 4; } v43 = *((int **)this + 3010); if ( v43 == *((int **)this + 3011) ) { std::vector::__push_back_slow_path((int)this + 12036, &v96); } else { if ( v43 ) *v43 = v96; *((_DWORD *)this + 3010) += 4; } } if ( *((_BYTE *)this + 10614) ) { v44 = *((int **)this + 3013); if ( v44 == *((int **)this + 3014) ) { std::vector::__push_back_slow_path((int)this + 12048, &v95); } else { if ( v44 ) *v44 = v95; *((_DWORD *)this + 3013) += 4; } v45 = *((int **)this + 3013); if ( v45 == *((int **)this + 3014) ) { std::vector::__push_back_slow_path((int)this + 12048, &v96); } else { if ( v45 ) *v45 = v96; *((_DWORD *)this + 3013) += 4; } v46 = *((time_t **)this + 3013); if ( v46 == *((time_t **)this + 3014) ) { std::vector::__push_back_slow_path((int)this + 12048, &v98); } else { if ( v46 ) *v46 = v98; *((_DWORD *)this + 3013) += 4; } } memset(v99, 0, sizeof(v99)); if ( GameVariable ) PlayLayer::dtLocalCellTriples((int)this, (int *)v99); v47 = *((_DWORD *)this + 354); if ( v47 ) { (*(void (__fastcall **)(int))(*(_DWORD *)v47 + 260))(v47); *((_DWORD *)this + 354) = 0; } v48 = *((_DWORD *)this + 353); if ( v48 ) { (*(void (__fastcall **)(int))(*(_DWORD *)v48 + 260))(v48); *((_DWORD *)this + 353) = 0; } v49 = PlayLayer::dtMarkerVisibleRect((PlayLayer *)v100, (float *)this); v50 = (GameManager *)GameManager::sharedState(v49); v51 = (DeathMarkerLayer *)(GameManager::getGameVariable(v50, "0201") ^ 1); v52 = (unsigned __int8)v51; v53 = COERCE_FLOAT(DeathMarkerLayer::timescale(v51)); if ( v14 ) { v54 = *((_DWORD *)this + 611); v55 = v95; v90 = v96; v56 = sub_72C870((GameManager *)((char *)&dword_0 + 1)); v57 = GJBaseGameLayer::addDeathMarkerLayer( this, v54, 1, (_DWORD *)this + 2989, v52, (int)v100, v55, v90, v53 * 0.5, v53 * 1.5, v53, v56); } else { v57 = 0; } *((_DWORD *)this + 354) = v57; if ( GameVariable ) { v58 = *((_DWORD *)this + 611); v59 = v95; v60 = v96; v61 = sub_72C870(nullptr); v62 = (GameManager *)GJBaseGameLayer::addDeathMarkerLayer( this, v58, 0, v99, v52, (int)v100, v59, v60, v53 * 0.5, v53 * 1.5, v53, v61); } else { v62 = nullptr; } *((_DWORD *)this + 353) = v62; v63 = (GameManager *)GameManager::sharedState(v62); v64 = (DeathMarkerLayer *)GameManager::getGameVariable(v63, "0208"); if ( v64 ) { v67 = *((DeathMarkerLayer **)this + 354); if ( v67 ) DeathMarkerLayer::setLabelsVisible(v67, 0); v64 = *((DeathMarkerLayer **)this + 353); if ( v64 ) v64 = (DeathMarkerLayer *)DeathMarkerLayer::setLabelsVisible(v64, 0); } v65 = *((_DWORD *)this + 354); if ( v65 ) v66 = *(float *)(v65 + 332); else v66 = 0.0; v68 = *((_DWORD *)this + 353); if ( v68 ) { v69 = *(float *)(v68 + 332); if ( v66 >= v69 ) { LABEL_121: if ( !v65 ) { v69 = 0.0; goto LABEL_134; } v69 = *(float *)(v65 + 332); LABEL_126: if ( *(int *)(v65 + 340) >= 0 ) { v70 = (GameManager *)GameManager::sharedState(v64); v64 = (DeathMarkerLayer *)GameManager::getGameVariable(v70, "0208"); if ( !v64 ) { v71 = *((_DWORD *)this + 354); v72 = *(_DWORD *)(v71 + 340); v69 = v69 + (float)(v53 * 0.5); if ( v72 >= 0 ) { v73 = (int *)(*(_DWORD *)(v71 + 264) + 72 * v72); if ( v73[13] > 0 || v73[14] > 1 || v73[15] > 1 ) v69 = v69 + (float)(v53 * 0.2); } } } LABEL_134: v74 = (GameManager *)GameManager::sharedState(v64); if ( GameManager::getGameVariable(v74, "0208") || (v75 = (GameManager *)GameManager::sharedState(nullptr), (hasSoundsForAction = (EditorSFXManager *)GameManager::getGameVariable(v75, "0206")) != nullptr) ) { LABEL_139: v15 = v53 + v69; std::__vector_base::~__vector_base(v99); return LODWORD(v15); } v77 = *((_DWORD *)this + 354); if ( !v77 || (v78 = *(_DWORD *)(v77 + 340), v78 < 0) ) { LABEL_138: v79 = *((_DWORD *)this + 353); if ( v79 ) { if ( *(int *)(v79 + 340) >= 0 ) { v82 = (EditorSFXManager *)EditorSFXManager::sharedState(hasSoundsForAction); if ( EditorSFXManager::hasSoundsForAction(v82, 272) ) DeathMarkerLayer::queueDeathLabelSound(*((DeathMarkerLayer **)this + 353), 272); } } goto LABEL_139; } if ( *(int *)(*(_DWORD *)(v77 + 264) + 72 * v78 + 52) > 0 && (v81 = (EditorSFXManager *)EditorSFXManager::sharedState(nullptr), (hasSoundsForAction = (EditorSFXManager *)EditorSFXManager::hasSoundsForAction(v81, 271)) != nullptr) ) { v87 = 271; } else { v83 = *((_DWORD *)this + 354); v84 = *(_DWORD *)(v83 + 340); if ( v84 >= 0 && ((v86 = *(_DWORD *)(v83 + 264) + 72 * v84, *(int *)(v86 + 56) > 1) || *(int *)(v86 + 60) > 1) && (v88 = (EditorSFXManager *)EditorSFXManager::sharedState(nullptr), (hasSoundsForAction = (EditorSFXManager *)EditorSFXManager::hasSoundsForAction(v88, 273)) != nullptr) ) { v87 = 273; } else { v85 = (EditorSFXManager *)EditorSFXManager::sharedState(hasSoundsForAction); hasSoundsForAction = (EditorSFXManager *)EditorSFXManager::hasSoundsForAction(v85, 270); if ( !hasSoundsForAction ) goto LABEL_138; v87 = 270; } } hasSoundsForAction = (EditorSFXManager *)DeathMarkerLayer::queueDeathLabelSound( *((DeathMarkerLayer **)this + 354), v87); goto LABEL_138; } } else { if ( v66 >= 0.0 ) goto LABEL_121; v69 = 0.0; } if ( !v65 ) goto LABEL_134; goto LABEL_126; } LABEL_13: v15 = 0.0; return LODWORD(v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source