// // GJBaseGameLayer::processActivatedAudioTriggers from 0x5b2db8 to 0x5b3c04 (3660 bytes) // // 4 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x41194a // > PlayLayer::startMusic @ 0x412152 // > LevelEditorLayer::onPlaytest @ 0x468560 // > LevelEditorLayer::updateGameObjects @ 0x46cef0 // // 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:53:35 +0000 // int __fastcall GJBaseGameLayer::processActivatedAudioTriggers(unsigned int this, float a2) { GJBaseGameLayer *v2; // r10 double *v4; // r7 SongTriggerGameObject *v5; // r1 int v6; // r5 float v7; // s14 int v8; // r1 FMODAudioEngine *v9; // r4 float v10; // s18 MusicDownloadManager *v11; // r11 MusicDownloadManager *v12; // r0 FMODAudioEngine *v13; // r0 float v14; // r6 void *v15; // r8 _DWORD *v16; // r0 int v17; // r3 int v18; // r4 int v19; // r6 float v20; // s15 unsigned int v21; // s15 _DWORD *v22; // r0 unsigned int v23; // r6 _DWORD *i; // r5 unsigned int v25; // r1 float v26; // s15 unsigned int v27; // r1 void **v28; // r3 unsigned int v29; // r1 FMODAudioEngine *v30; // r0 FMODAudioEngine *canProcessSFX; // r0 unsigned int *v32; // r5 unsigned int v33; // r6 int v34; // r3 _DWORD *v35; // r0 _DWORD *v36; // r2 _DWORD *v37; // r2 int v38; // r1 cocos2d::CCObject *Group; // r0 cocos2d::CCObject *v40; // r4 _DWORD *v41; // r3 int *v42; // r11 int v43; // r3 int v44; // t1 unsigned int **v45; // r0 unsigned int *v46; // r9 _DWORD *j; // r4 _DWORD *v48; // r0 unsigned int **v49; // r0 unsigned int *v50; // r9 unsigned int v51; // r4 unsigned int v52; // r8 unsigned int v53; // t1 unsigned int v54; // r11 int v55; // r7 _DWORD *v56; // r3 unsigned int v57; // r0 int v58; // r1 float v59; // s15 bool v60; // r7 unsigned int v61; // r7 unsigned int v62; // r1 _DWORD *v63; // r3 unsigned int v64; // r0 int v65; // r1 _DWORD *k; // r4 _DWORD *v67; // r0 _DWORD *v68; // r7 int m; // r4 double *n; // r6 double v71; // d3 int v72; // r8 double v73; // d4 int v74; // s16 float v75; // s14 int v76; // r0 int v77; // r5 int v78; // r4 int v79; // r3 float *v80; // r0 float v81; // s14 char v82; // r8 float v83; // s18 int v84; // r1 float v85; // s15 unsigned int v86; // r8 int v87; // r0 FMODAudioEngine *updated; // r0 int v89; // r0 FMODAudioEngine *v90; // r0 FMODAudioEngine *v91; // r0 FMOD::Channel *v92; // r8 float v93; // s20 double v94; // d9 double v95; // r0 float v96; // s18 float v97; // s15 int v98; // r2 int v99; // r3 FMODAudioEngine *v101; // r0 unsigned int v102; // r4 unsigned int v103; // r8 unsigned int v104; // r11 unsigned int v105; // r6 void **v106; // r3 unsigned int v107; // r1 float v108; // s15 bool v109; // r6 unsigned int v110; // r6 unsigned int v111; // r1 void **v112; // r3 unsigned int v113; // r1 unsigned int **v114; // r0 unsigned int *v115; // r9 unsigned int v116; // r4 unsigned int v117; // r8 unsigned int v118; // t1 unsigned int v119; // r2 int v120; // r7 _DWORD *v121; // r3 unsigned int v122; // r0 int v123; // r1 float v124; // s15 bool v125; // r7 unsigned int v126; // r7 unsigned int v127; // r1 _DWORD *v128; // r3 unsigned int v129; // r0 int v130; // r1 unsigned int v131; // r4 unsigned int v132; // r8 unsigned int v133; // t1 unsigned int v134; // r11 int v135; // r7 _DWORD *v136; // r3 unsigned int v137; // r0 int v138; // r1 float v139; // s15 bool v140; // r7 unsigned int v141; // r7 unsigned int v142; // r1 _DWORD *v143; // r3 unsigned int v144; // r0 int v145; // r1 int v146; // [sp+18h] [bp-124h] int v147; // [sp+18h] [bp-124h] MusicDownloadManager *v148; // [sp+1Ch] [bp-120h] unsigned int v149; // [sp+20h] [bp-11Ch] int *v150; // [sp+20h] [bp-11Ch] unsigned int *v151; // [sp+20h] [bp-11Ch] unsigned int *v152; // [sp+20h] [bp-11Ch] unsigned int *v153; // [sp+24h] [bp-118h] unsigned int *v154; // [sp+24h] [bp-118h] unsigned int *v155; // [sp+24h] [bp-118h] unsigned int *v156; // [sp+28h] [bp-114h] unsigned int v157; // [sp+40h] [bp-FCh] BYREF unsigned __int8 v158[12]; // [sp+44h] [bp-F8h] BYREF unsigned __int8 v159[12]; // [sp+50h] [bp-ECh] BYREF _DWORD *v160; // [sp+5Ch] [bp-E0h] BYREF _DWORD *v161; // [sp+68h] [bp-D4h] BYREF void *v162[3]; // [sp+74h] [bp-C8h] BYREF void ***v163; // [sp+80h] [bp-BCh] BYREF unsigned int v164; // [sp+84h] [bp-B8h] void *v165; // [sp+88h] [bp-B4h] BYREF int v166; // [sp+8Ch] [bp-B0h] float v167; // [sp+90h] [bp-ACh] _DWORD v168[5]; // [sp+94h] [bp-A8h] BYREF _DWORD v169[5]; // [sp+A8h] [bp-94h] BYREF _DWORD v170[5]; // [sp+BCh] [bp-80h] BYREF _DWORD v171[5]; // [sp+D0h] [bp-6Ch] BYREF _DWORD v172[5]; // [sp+E4h] [bp-58h] BYREF _DWORD v173[5]; // [sp+F8h] [bp-44h] BYREF _DWORD v174[5]; // [sp+10Ch] [bp-30h] BYREF void *v175; // [sp+120h] [bp-1Ch] BYREF unsigned int v176; // [sp+124h] [bp-18h] _DWORD *v177; // [sp+128h] [bp-14h] BYREF int v178; // [sp+12Ch] [bp-10h] float v179; // [sp+130h] [bp-Ch] v2 = (GJBaseGameLayer *)this; v163 = nullptr; v164 = 0; *(_BYTE *)(this + 11569) = 1; v4 = *(double **)(this + 1328); v165 = nullptr; v166 = 0; v167 = 1.0; v146 = 0; while ( v4 ) { v175 = *((void **)v4 + 2); v5 = *((SongTriggerGameObject **)v4 + 8); if ( v5 ) GJBaseGameLayer::activateSongTrigger(v2, v5); v6 = *((_DWORD *)v4 + 4); if ( v6 ) { v7 = v4[3]; *(float *)(v6 + 1624) = v7; FMODAudioEngine::sharedEngine((FMODAudioEngine *)this); v9 = (FMODAudioEngine *)FMODAudioEngine::pitchForIdx(*(FMODAudioEngine **)(v6 + 1672), v8); v10 = *(float *)(v6 + 1680); v11 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(v9); v12 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v11); MusicDownloadManager::pathForSong((MusicDownloadManager *)v158, v12, *(_DWORD *)(v6 + 1660)); FMODAudioEngine::loadMusic( (int)v11, v158, *(float *)&v9, 0, v10, *(_BYTE *)(v6 + 1702), (unsigned int)v175, 0, *(_BYTE *)(v6 + 1704)); v13 = (FMODAudioEngine *)std::string::~string((int)v158); if ( *(_BYTE *)(v6 + 1702) && (*(int *)(v6 + 1684) > 0 || *(int *)(v6 + 1692) > 0) ) { v101 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v13); FMODAudioEngine::startMusic( v101, *(_DWORD *)(v6 + 1684), *(_DWORD *)(v6 + 1692), 0, 0, 1, (int)v175, 1, *(_BYTE *)(v6 + 1704)); } v14 = *(float *)(v6 + 1624); v15 = v175; v149 = *(_DWORD *)(v6 + 1684); v16 = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( (_DWORD *)v2 + 335, (unsigned int *)&v175); if ( v16 ) v16 = std::unordered_map>::operator[]((int)v2 + 1340, (unsigned int *)&v175); this = GJBaseGameLayer::processSongState(*(float *)&v2, (unsigned int)v15, v14, a2, v149, v10, (int)v9, v16, v6); if ( this ) { v102 = v164; v103 = (unsigned int)v175; if ( v164 ) { v104 = v164 - 1; if ( ((v164 - 1) & v164) != 0 ) v105 = (unsigned int)v175 % v164; else v105 = v104 & (unsigned int)v175; v106 = v163[v105]; if ( v106 ) { while ( 1 ) { v106 = (void **)*v106; if ( !v106 ) break; this = (unsigned int)v106[1]; if ( ((v164 - 1) & v164) != 0 ) { v107 = this % v164; this /= v164; } else { v107 = v104 & this; } if ( v107 != v105 ) break; if ( v106[2] == v175 ) goto LABEL_10; } } } else { v105 = 0; } this = std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v174, (int)&v163, (int)v175, &v175); v108 = (float)(unsigned int)(v166 + 1); if ( v108 > (float)((float)v102 * v167) ) { v109 = v102 > 2 && ((v102 - 1) & v102) == 0; LABEL_176: v110 = 2 * v102 + !v109; v111 = (unsigned int)ceilf(v108 / v167); if ( v111 < v110 ) v111 = v110; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v163, v111); v102 = v164; if ( ((v164 - 1) & v164) != 0 ) { this = v103 / v164; v105 = v103 % v164; } else { v105 = (v164 - 1) & v103; } } else if ( !v102 ) { v109 = 0; goto LABEL_176; } v112 = v163[v105]; if ( v112 ) { *(_DWORD *)v174[0] = *v112; *v112 = (void *)v174[0]; } else { *(_DWORD *)v174[0] = v165; v165 = (void *)v174[0]; v163[v105] = &v165; if ( *(_DWORD *)v174[0] ) { this = *(_DWORD *)(*(_DWORD *)v174[0] + 4); if ( ((v102 - 1) & v102) != 0 ) { v113 = this % v102; this /= v102; } else { v113 = (v102 - 1) & this; } v163[v113] = (void **)v174[0]; } } ++v166; } } LABEL_10: if ( !v175 ) { if ( v6 ) { v17 = 1; } else { v17 = v146; if ( v4[3] > 0.0 ) v17 = 1; } v146 = v17; } v4 = *(double **)v4; } if ( !v146 ) { v18 = *((unsigned __int8 *)v2 + 1372); if ( !*((_BYTE *)v2 + 1372) ) { v19 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)this); GJGameLevel::getAudioFileName((GJGameLevel *)v159, *((_DWORD *)v2 + 352)); FMODAudioEngine::loadMusic( v19, v159, 1.0, 0, 1.0, *((_BYTE *)v2 + 10614), 0, 0, *(_BYTE *)(*((_DWORD *)v2 + 521) + 290)); std::string::~string((int)v159); v20 = *(float *)(*((_DWORD *)v2 + 521) + 284); v175 = nullptr; v21 = (int)(float)(v20 * 1000.0); v22 = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( (_DWORD *)v2 + 335, (unsigned int *)&v175); if ( v22 ) { v157 = 0; v22 = std::unordered_map>::operator[]((int)v2 + 1340, &v157); } this = GJBaseGameLayer::processSongState(*(float *)&v2, 0, 0.0, a2, v21, 1.0, COERCE_INT(1.0), v22, 0); if ( this ) { v23 = v164; v174[0] = 0; if ( v164 && *v163 ) { for ( i = **v163; i; i = (_DWORD *)*i ) { this = i[1]; if ( ((v164 - 1) & v164) != 0 ) { v25 = this % v164; this /= v164; } else { v25 = (v164 - 1) & this; } if ( v25 ) break; if ( !i[2] ) goto LABEL_46; } } this = std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v175, (int)&v163, 0, v174); v26 = (float)(unsigned int)(v166 + 1); if ( v26 > (float)((float)v23 * v167) || !v23 ) { if ( v23 > 2 ) v18 = ((v23 - 1) & v23) == 0; v27 = (unsigned int)ceilf(v26 / v167); if ( v27 < 2 * v23 + (v18 ^ 1) ) v27 = 2 * v23 + (v18 ^ 1); std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v163, v27); v23 = v164; } v28 = *v163; if ( *v163 ) { *(_DWORD *)v175 = *v28; *v28 = v175; } else { *(_DWORD *)v175 = v165; v165 = v175; *v163 = &v165; if ( *(_DWORD *)v175 ) { this = *(_DWORD *)(*(_DWORD *)v175 + 4); if ( ((v23 - 1) & v23) != 0 ) { v29 = this % v23; this /= v23; } else { v29 = (v23 - 1) & this; } v163[v29] = (void **)v175; } } ++v166; } } } LABEL_46: v30 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this); canProcessSFX = (FMODAudioEngine *)FMODAudioEngine::stopMusicNotInSet(v30, &v163); v168[4] = 1.0; memset(v168, 0, 16); memset(v169, 0, 16); v169[4] = 1.0; memset(v170, 0, 16); v170[4] = 1.0; memset(v171, 0, 16); v171[4] = 1.0; memset(v172, 0, 16); v172[4] = 1.0; memset(v173, 0, 16); v173[4] = 1.0; memset(v174, 0, 16); v174[4] = 1.0; v32 = *((unsigned int **)v2 + 340); v148 = *((MusicDownloadManager **)v2 + 341); LABEL_47: if ( v32 != (unsigned int *)v148 ) { v33 = *v32; v34 = *(_DWORD *)(*v32 + 892); if ( v34 == 3602 ) { canProcessSFX = (FMODAudioEngine *)GJBaseGameLayer::canProcessSFX( (int)v2, (int)v32, v170, v171, (_DWORD *)v2 + 340); if ( canProcessSFX ) { v175 = *(void **)(v33 + 780); v35 = std::unordered_map>::operator[]((int)v168, (unsigned int *)&v175); v36 = (_DWORD *)v35[1]; if ( v36 == (_DWORD *)v35[2] ) { std::vector::__push_back_slow_path((int)v35, v32 + 1); } else { if ( v36 ) *v36 = v32[1]; v35[1] += 4; } canProcessSFX = (FMODAudioEngine *)std::unordered_map::operator[]((int)v172, v32 + 1); *(_DWORD *)canProcessSFX = v32[14]; if ( *(int *)(v33 + 1748) > 0 ) { canProcessSFX = (FMODAudioEngine *)std::unordered_map>::operator[]( (int)v169, (unsigned int *)(v33 + 1748)); v37 = *((_DWORD **)canProcessSFX + 1); if ( v37 == *((_DWORD **)canProcessSFX + 2) ) { std::vector::__push_back_slow_path((int)canProcessSFX, v32 + 1); } else { if ( v37 ) *v37 = v32[1]; *((_DWORD *)canProcessSFX + 1) += 4; } } } else { *((_BYTE *)v32 + 60) = 1; } goto LABEL_120; } if ( v34 != 3603 ) goto LABEL_120; v175 = nullptr; v176 = 0; v177 = nullptr; v178 = 0; v179 = 1.0; v38 = *(_DWORD *)(v33 + 1756); if ( v38 > 0 ) { Group = GJBaseGameLayer::getGroup(v2, v38); v40 = Group; if ( Group ) { if ( cocos2d::CCArray::count(Group) ) { v41 = *((_DWORD **)v40 + 13); if ( *v41 ) { v42 = (int *)v41[3]; v150 = &v42[*v41 - 1]; do { LABEL_68: if ( v42 <= v150 ) { v44 = *v42++; v43 = v44; if ( v44 ) continue; } goto LABEL_70; } while ( *(_DWORD *)(v43 + 892) != 3602 ); v162[0] = *(void **)(v43 + 780); v114 = (unsigned int **)std::unordered_map>::operator[]( (int)v168, (unsigned int *)v162); v115 = *v114; v155 = v114[1]; LABEL_198: while ( 2 ) { v156 = v115; if ( v115 == v155 ) goto LABEL_68; v116 = v176; v118 = *v115++; v117 = v118; if ( v176 ) { v119 = v176 - 1; if ( ((v176 - 1) & v176) != 0 ) { v119 = v176 - 1; v120 = v117 % v176; } else { v120 = v117 & v119; } v121 = *((_DWORD **)v175 + v120); if ( v121 ) { while ( 1 ) { v121 = (_DWORD *)*v121; if ( !v121 ) break; v122 = v121[1]; v123 = ((v176 - 1) & v176) != 0 ? v122 % v176 : v119 & v122; if ( v123 != v120 ) break; if ( v121[2] == v117 ) goto LABEL_198; } } } else { v120 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v160, (int)&v175, v117, v156); v124 = (float)(unsigned int)(v178 + 1); if ( v124 > (float)((float)v116 * v179) ) { v125 = v116 > 2 && ((v116 - 1) & v116) == 0; LABEL_214: v126 = 2 * v116 + !v125; v127 = (unsigned int)ceilf(v124 / v179); if ( v127 < v126 ) v127 = v126; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v175, v127); v116 = v176; if ( ((v176 - 1) & v176) != 0 ) v120 = v117 % v176; else v120 = v117 & (v176 - 1); } else if ( !v116 ) { v125 = 0; goto LABEL_214; } v128 = *((_DWORD **)v175 + v120); if ( v128 ) { *v160 = *v128; *v128 = v160; } else { *v160 = v177; v177 = v160; *((_DWORD *)v175 + v120) = &v177; if ( *v160 ) { v129 = *(_DWORD *)(*v160 + 4); if ( ((v116 - 1) & v116) != 0 ) v130 = v129 % v116; else v130 = (v116 - 1) & v129; *((_DWORD *)v175 + v130) = v160; } } ++v178; continue; } } } } } LABEL_70: if ( *(int *)(v33 + 1708) > 0 && std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v170, (unsigned int *)(v33 + 1708)) ) { v162[0] = *(void **)(*(_DWORD *)(*((_DWORD *)v2 + 340) + 160 * *std::unordered_map::operator[]((int)v170, (unsigned int *)(v33 + 1708))) + 780); v45 = (unsigned int **)std::unordered_map>::operator[]((int)v168, (unsigned int *)v162); v46 = *v45; v151 = v45[1]; while ( 1 ) { LABEL_73: v153 = v46; if ( v46 == v151 ) break; v131 = v176; v133 = *v46++; v132 = v133; if ( v176 ) { v134 = v176 - 1; if ( ((v176 - 1) & v176) != 0 ) v135 = v132 % v176; else v135 = v132 & v134; v136 = *((_DWORD **)v175 + v135); if ( v136 ) { while ( 1 ) { v136 = (_DWORD *)*v136; if ( !v136 ) break; v137 = v136[1]; v138 = ((v176 - 1) & v176) != 0 ? v137 % v176 : v134 & v137; if ( v138 != v135 ) break; if ( v136[2] == v132 ) goto LABEL_73; } } } else { v135 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v161, (int)&v175, v132, v153); v139 = (float)(unsigned int)(v178 + 1); if ( v139 > (float)((float)v131 * v179) ) { v140 = v131 > 2 && ((v131 - 1) & v131) == 0; } else { if ( v131 ) goto LABEL_252; v140 = 0; } v141 = 2 * v131 + !v140; v142 = (unsigned int)ceilf(v139 / v179); if ( v142 < v141 ) v142 = v141; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v175, v142); v131 = v176; if ( ((v176 - 1) & v176) != 0 ) v135 = v132 % v176; else v135 = v132 & (v176 - 1); LABEL_252: v143 = *((_DWORD **)v175 + v135); if ( v143 ) { *v161 = *v143; *v143 = v161; } else { *v161 = v177; v177 = v161; *((_DWORD *)v175 + v135) = &v177; if ( *v161 ) { v144 = *(_DWORD *)(*v161 + 4); if ( ((v131 - 1) & v131) != 0 ) v145 = v144 % v131; else v145 = (v131 - 1) & v144; *((_DWORD *)v175 + v145) = v161; } } ++v178; } } for ( j = v177; j; j = (_DWORD *)*j ) { v48 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v172, j + 2); if ( v48 ) GJBaseGameLayer::processSFXState((int)v2, *((_DWORD *)v2 + 340) + 160 * v48[3], v32, 0, a2); } if ( *(int *)(v33 + 1748) <= 0 ) goto LABEL_80; std::__hash_table,std::equal_to,std::allocator>::clear(&v175); v49 = (unsigned int **)std::unordered_map>::operator[]((int)v169, (unsigned int *)(v33 + 1748)); v50 = *v49; v152 = v49[1]; while ( 1 ) { LABEL_82: v154 = v50; if ( v50 == v152 ) { for ( k = v177; k; k = (_DWORD *)*k ) { v67 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( v172, k + 2); if ( v67 ) GJBaseGameLayer::processSFXState((int)v2, *((_DWORD *)v2 + 340) + 160 * v67[3], v32, 1, a2); } if ( *(_BYTE *)(v33 + 1754) ) processSFXGroupEdit((double *)v32, v32[10], (int)v173); if ( *(_BYTE *)(v33 + 1753) ) processSFXGroupEdit((double *)v32, v32[12], (int)v174); LABEL_80: canProcessSFX = (FMODAudioEngine *)std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v175); LABEL_120: v32 += 40; goto LABEL_47; } v51 = v176; v53 = *v50++; v52 = v53; if ( v176 ) { v54 = v176 - 1; if ( ((v176 - 1) & v176) != 0 ) v55 = v52 % v176; else v55 = v52 & v54; v56 = *((_DWORD **)v175 + v55); if ( v56 ) { while ( 1 ) { v56 = (_DWORD *)*v56; if ( !v56 ) break; v57 = v56[1]; v58 = ((v176 - 1) & v176) != 0 ? v57 % v176 : v54 & v57; if ( v58 != v55 ) break; if ( v56[2] == v52 ) goto LABEL_82; } } } else { v55 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)v162, (int)&v175, v52, v154); v59 = (float)(unsigned int)(v178 + 1); if ( v59 > (float)((float)v51 * v179) ) { v60 = v51 > 2 && ((v51 - 1) & v51) == 0; } else { if ( v51 ) goto LABEL_103; v60 = 0; } v61 = 2 * v51 + !v60; v62 = (unsigned int)ceilf(v59 / v179); if ( v62 < v61 ) v62 = v61; std::__hash_table,std::equal_to,std::allocator>::rehash((int)&v175, v62); v51 = v176; if ( ((v176 - 1) & v176) != 0 ) v55 = v52 % v176; else v55 = v52 & (v176 - 1); LABEL_103: v63 = *((_DWORD **)v175 + v55); if ( v63 ) { *(_DWORD *)v162[0] = *v63; *v63 = v162[0]; } else { *(_DWORD *)v162[0] = v177; v177 = v162[0]; *((_DWORD *)v175 + v55) = &v177; if ( *(_DWORD *)v162[0] ) { v64 = *(_DWORD *)(*(_DWORD *)v162[0] + 4); if ( ((v51 - 1) & v51) != 0 ) v65 = v64 % v51; else v65 = (v51 - 1) & v64; *((void **)v175 + v65) = v162[0]; } } ++v178; } } v68 = v173; for ( m = 0; ; m = 1 ) { for ( n = (double *)v68[2]; n; n = *(double **)n ) { v71 = n[2]; v72 = *((_DWORD *)n + 2); v73 = n[3]; v74 = *((int *)n + 8); if ( v71 + v73 > a2 ) { v75 = a2 - v71; *(float *)&v74 = *((float *)n + 9) + (float)(*(float *)&v74 - *((float *)n + 9)) * (v75 / v73); } v76 = FMODAudioEngine::sharedEngine(canProcessSFX); canProcessSFX = FMODAudioEngine::updateChannel(v76, v72, 1, (FMOD::ChannelControl *)(m ^ 1), 0.0, v74); } v68 = v174; if ( m ) break; } v77 = *((_DWORD *)v2 + 340) + 160; v147 = *((_DWORD *)v2 + 341); while ( v77 - 160 != v147 ) { GJBaseGameLayer::processSFXState((int)v2, v77 - 160, nullptr, 0, a2); v78 = *(_DWORD *)(v77 - 160); v79 = *(_DWORD *)(v78 + 892); if ( v79 == 3602 ) { if ( !*(_BYTE *)(v77 - 100) ) { v80 = (float *)FMODAudioEngine::sharedEngine(canProcessSFX); v81 = *(double *)(v77 - 152); v80[107] = v81; v82 = *(_BYTE *)(v78 + 1741); *(_BYTE *)(v78 + 1741) = 1; v83 = (float)*(int *)(v78 + 1692); if ( !*(_BYTE *)(v78 + 1702) && *(_DWORD *)(v78 + 1696) ) { if ( *(int *)(v78 + 1692) <= 0 ) { if ( *(_DWORD *)(v78 + 1672) ) { FMODAudioEngine::sharedEngine((FMODAudioEngine *)v80); v85 = COERCE_FLOAT(FMODAudioEngine::pitchForIdx(*(FMODAudioEngine **)(v78 + 1672), v84)); } else { v85 = 1.0; } *(_DWORD *)(v78 + 1692) = (int)(float)((float)(*(float *)(v78 + 1772) * 1000.0) * v85); } *(_DWORD *)(v78 + 1692) = (int)((double)*(int *)(v78 + 1692) - *(double *)(v77 - 144)); } canProcessSFX = (FMODAudioEngine *)GJBaseGameLayer::activateSFXTrigger(v2, (SFXTriggerGameObject *)v78); *(_BYTE *)(v78 + 1741) = v82; v86 = (unsigned int)canProcessSFX; *(_DWORD *)(v78 + 1692) = (int)v83; if ( (int)canProcessSFX > 0 ) { v87 = FMODAudioEngine::sharedEngine(canProcessSFX); updated = FMODAudioEngine::updateChannel( v87, v86, 0, (FMOD::ChannelControl *)((char *)&dword_0 + 1), 0.0, *(_DWORD *)(v77 - 120)); v89 = FMODAudioEngine::sharedEngine(updated); v90 = FMODAudioEngine::updateChannel(v89, v86, 0, nullptr, 0.0, *(_DWORD *)(v77 - 112)); v91 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v90); canProcessSFX = (FMODAudioEngine *)FMODAudioEngine::channelForChannelID(v91, v86); v92 = canProcessSFX; if ( canProcessSFX ) { if ( *(_BYTE *)(v78 + 1702) && !*(_BYTE *)(v77 - 99) ) FMOD::Channel::setLoopCount(canProcessSFX, *(unsigned __int8 *)(v77 - 99)); v93 = *(float *)(v77 - 108); v94 = *(double *)(v77 - 144); v95 = floor(v94 / v93); canProcessSFX = (FMODAudioEngine *)FMOD::Channel::setPosition( v92, (unsigned int)((double)*(int *)(v78 + 1684) + v94 - (double)(int)(float)((float)(int)v95 * v93)), 1u); } } } } else if ( v79 == 3603 ) { v96 = *(float *)(v78 + 1272); v97 = (float)(v96 + *(float *)(v78 + 1624)) - a2; *(float *)(v78 + 1272) = v97; if ( v97 < 0.0 ) *(_BYTE *)(v78 + 1776) = 1; if ( *(int *)(v78 + 1284) > 0 || !*(_BYTE *)(v78 + 1776) ) GJBaseGameLayer::activateSFXEditTrigger(v2, (SFXTriggerGameObject *)v78); *(float *)(v78 + 1272) = v96; *(_BYTE *)(v78 + 1776) = 0; } v77 += 160; } v98 = *((_DWORD *)v2 + 340); while ( 1 ) { v99 = *((_DWORD *)v2 + 341); if ( v98 == v99 ) break; *((_DWORD *)v2 + 341) = v99 - 160; } *(float *)(FMODAudioEngine::sharedEngine(canProcessSFX) + 428) = a2; *((_BYTE *)v2 + 11569) = 0; std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v174); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v173); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v172); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v171); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)v170); std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)v169); std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::~__hash_table((int)v168); return std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v163); }
GD Web Decomp Icon

GD Web Decomp

Raw Source