{"type": "func", "start": 4115626, "end": 4115736, "name": "FMODAudioEngine::channelForChannelID", "pseudocode": "// \n// FMODAudioEngine::channelForChannelID from 0x3eccaa to 0x3ecd18 (110 bytes)\n// \n// 22 xrefs:\n// > FMODAudioEngine::stop @ 0x3ecd70\n// > FMODAudioEngine::resumeSuspendedAudio @ 0x3ece42\n// > FMODAudioEngine::stopAllMusic @ 0x3ecf6c\n// > FMODAudioEngine::pauseAllMusic @ 0x3ecfea\n// > FMODAudioEngine::resumeAllMusic @ 0x3ed010\n// > FMODAudioEngine::channelForUniqueID @ 0x3ed434\n// > FMODAudioEngine::startMusic @ 0x3ee59e\n// > FMODAudioEngine::setMusicTimeMS @ 0x3eeaca\n// > FMODAudioEngine::getMusicTimeMS @ 0x3eeb3a\n// > FMODAudioEngine::getMusicLengthMS @ 0x3eeba6\n// > FMODAudioEngine::setChannelVolume @ 0x3eedc2\n// > FMODAudioEngine::setChannelVolume @ 0x3eede2\n// > FMODAudioEngine::setChannelVolumeMod @ 0x3eeffa\n// > FMODAudioEngine::setChannelVolumeMod @ 0x3ef01a\n// > FMODAudioEngine::setChannelPitch @ 0x3ef0d4\n// > FMODAudioEngine::getActiveMusicChannel @ 0x3ef4a2\n// > FMODAudioEngine::stopAndRemoveMusic @ 0x3ef896\n// > FMODAudioEngine::loadMusic @ 0x3efbf2\n// > FMODAudioEngine::saveAudioState @ 0x3f0622\n// > FMODAudioEngine::playEffectAdvanced @ 0x3f0cec\n// > FMODAudioEngine::loadAudioState @ 0x3f148a\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b35f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:10 +0000\n// \n\n_DWORD *__fastcall FMODAudioEngine::channelForChannelID(FMODAudioEngine *this, unsigned int a2)\n{\n  unsigned int v3; // r5\n  unsigned int v5; // r6\n  unsigned int v6; // r10\n  _DWORD *result; // r0\n  _DWORD *i; // r4\n  unsigned int v9; // r0\n  int v10; // r1\n  unsigned int v11; // [sp+4h] [bp-4h] BYREF\n\n  v11 = a2;\n  v3 = *((_DWORD *)this + 193);\n  v11 = a2;\n  if ( !v3 )\n    return nullptr;\n  v5 = v3 - 1;\n  if ( ((v3 - 1) & v3) != 0 )\n    v6 = a2 % v3;\n  else\n    v6 = v5 & a2;\n  result = *(_DWORD **)(*((_DWORD *)this + 192) + 4 * v6);\n  if ( result )\n  {\n    for ( i = (_DWORD *)*result; i; i = (_DWORD *)*i )\n    {\n      v9 = i[1];\n      v10 = ((v3 - 1) & v3) != 0 ? v9 % v3 : v5 & v9;\n      if ( v10 != v6 )\n        break;\n      if ( i[2] == a2 )\n        return (_DWORD *)*std::unordered_map<int,FMOD::Channel *>::operator[]((int)this + 768, &v11);\n    }\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::channelForChannelID from 0x3eccaa to 0x3ecd18 (110 bytes)\n; \n; 22 xrefs:\n; > FMODAudioEngine::stop @ 0x3ecd70\n; > FMODAudioEngine::resumeSuspendedAudio @ 0x3ece42\n; > FMODAudioEngine::stopAllMusic @ 0x3ecf6c\n; > FMODAudioEngine::pauseAllMusic @ 0x3ecfea\n; > FMODAudioEngine::resumeAllMusic @ 0x3ed010\n; > FMODAudioEngine::channelForUniqueID @ 0x3ed434\n; > FMODAudioEngine::startMusic @ 0x3ee59e\n; > FMODAudioEngine::setMusicTimeMS @ 0x3eeaca\n; > FMODAudioEngine::getMusicTimeMS @ 0x3eeb3a\n; > FMODAudioEngine::getMusicLengthMS @ 0x3eeba6\n; > FMODAudioEngine::setChannelVolume @ 0x3eedc2\n; > FMODAudioEngine::setChannelVolume @ 0x3eede2\n; > FMODAudioEngine::setChannelVolumeMod @ 0x3eeffa\n; > FMODAudioEngine::setChannelVolumeMod @ 0x3ef01a\n; > FMODAudioEngine::setChannelPitch @ 0x3ef0d4\n; > FMODAudioEngine::getActiveMusicChannel @ 0x3ef4a2\n; > FMODAudioEngine::stopAndRemoveMusic @ 0x3ef896\n; > FMODAudioEngine::loadMusic @ 0x3efbf2\n; > FMODAudioEngine::saveAudioState @ 0x3f0622\n; > FMODAudioEngine::playEffectAdvanced @ 0x3f0cec\n; > FMODAudioEngine::loadAudioState @ 0x3f148a\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b35f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:10 +0000\n; \nPUSH.W          {R0,R1,R4-R10,LR}                                      ; +0x0, 0x3eccaa\nMOV             R7, R0                                                 ; +0x4, 0x3eccae\nLDR.W           R5, [R0,#0x304]                                        ; +0x6, 0x3eccb0\nMOV             R9, R1                                                 ; +0xa, 0x3eccb4\nSTR             R1, [SP,#8+var_4]                                      ; +0xc, 0x3eccb6\nCBZ             R5, loc_3ECCF8                                         ; +0xe, 0x3eccb8\nSUBS            R6, R5, #1                                             ; +0x10, 0x3eccba\nANDS.W          R8, R6, R5                                             ; +0x12, 0x3eccbc\nBNE             loc_3ECCC8                                             ; +0x16, 0x3eccc0\nAND.W           R10, R6, R1                                            ; +0x18, 0x3eccc2\nB               loc_3ECCD2                                             ; +0x1c, 0x3eccc6\nMOV             R0, R1                                                 ; +0x1e, 0x3eccc8\nMOV             R1, R5                                                 ; +0x20, 0x3eccca\nBLX             __aeabi_uidivmod                                       ; +0x22, 0x3ecccc\nMOV             R10, R1                                                ; +0x26, 0x3eccd0\nLDR.W           R3, [R7,#0x300]                                        ; +0x28, 0x3eccd2\nLDR.W           R0, [R3,R10,LSL#2]                                     ; +0x2c, 0x3eccd6\nCBZ             R0, loc_3ECD12                                         ; +0x30, 0x3eccda\nLDR             R4, [R0]                                               ; +0x32, 0x3eccdc\nCBZ             R4, loc_3ECCF8                                         ; +0x34, 0x3eccde\nLDR             R0, [R4,#4]                                            ; +0x36, 0x3ecce0\nCMP.W           R8, #0                                                 ; +0x38, 0x3ecce2\nBNE             loc_3ECCEE                                             ; +0x3c, 0x3ecce6\nAND.W           R1, R6, R0                                             ; +0x3e, 0x3ecce8\nB               loc_3ECCF4                                             ; +0x42, 0x3eccec\nMOV             R1, R5                                                 ; +0x44, 0x3eccee\nBLX             __aeabi_uidivmod                                       ; +0x46, 0x3eccf0\nCMP             R1, R10                                                ; +0x4a, 0x3eccf4\nBEQ             loc_3ECCFC                                             ; +0x4c, 0x3eccf6\nMOVS            R0, #0                                                 ; +0x4e, 0x3eccf8\nB               loc_3ECD12                                             ; +0x50, 0x3eccfa\nLDR             R3, [R4,#8]                                            ; +0x52, 0x3eccfc\nCMP             R3, R9                                                 ; +0x54, 0x3eccfe\nBEQ             loc_3ECD06                                             ; +0x56, 0x3ecd00\nLDR             R4, [R4]                                               ; +0x58, 0x3ecd02\nB               loc_3ECCDE                                             ; +0x5a, 0x3ecd04\nADD.W           R0, R7, #0x300                                         ; +0x5c, 0x3ecd06\nADD             R1, SP, #8+var_4                                       ; +0x60, 0x3ecd0a\nBL              _ZNSt6__ndk113unordered_mapIiPN4FMOD7ChannelENS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS3_EEEEEixERSA_; std::unordered_map<int,FMOD::Channel *>::operator[](int const&) ; +0x62, 0x3ecd0c\nLDR             R0, [R0]                                               ; +0x66, 0x3ecd10\nADD             SP, SP, #8                                             ; +0x68, 0x3ecd12\nPOP.W           {R4-R10,PC}                                            ; +0x6a, 0x3ecd14", "xrefs": ["FMODAudioEngine::stop @ 0x3ecd70", "FMODAudioEngine::resumeSuspendedAudio @ 0x3ece42", "FMODAudioEngine::stopAllMusic @ 0x3ecf6c", "FMODAudioEngine::pauseAllMusic @ 0x3ecfea", "FMODAudioEngine::resumeAllMusic @ 0x3ed010", "FMODAudioEngine::channelForUniqueID @ 0x3ed434", "FMODAudioEngine::startMusic @ 0x3ee59e", "FMODAudioEngine::setMusicTimeMS @ 0x3eeaca", "FMODAudioEngine::getMusicTimeMS @ 0x3eeb3a", "FMODAudioEngine::getMusicLengthMS @ 0x3eeba6", "FMODAudioEngine::setChannelVolume @ 0x3eedc2", "FMODAudioEngine::setChannelVolume @ 0x3eede2", "FMODAudioEngine::setChannelVolumeMod @ 0x3eeffa", "FMODAudioEngine::setChannelVolumeMod @ 0x3ef01a", "FMODAudioEngine::setChannelPitch @ 0x3ef0d4", "FMODAudioEngine::getActiveMusicChannel @ 0x3ef4a2", "FMODAudioEngine::stopAndRemoveMusic @ 0x3ef896", "FMODAudioEngine::loadMusic @ 0x3efbf2", "FMODAudioEngine::saveAudioState @ 0x3f0622", "FMODAudioEngine::playEffectAdvanced @ 0x3f0cec", "FMODAudioEngine::loadAudioState @ 0x3f148a", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x5b35f8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}