{"type": "func", "start": 5369074048, "end": 5369074306, "name": "FMODAudioEngine::setChannelPitch", "pseudocode": "// \n// FMODAudioEngine::setChannelPitch from 0x140059180 to 0x140059282 (258 bytes)\n// \n// 5 xrefs:\n// > FMODAudioEngine::updateChannelTweens @ 0x1400568d6\n// > FMODAudioEngine::updateChannel @ 0x140058c35\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244afd\n// > GJBaseGameLayer::processSongState @ 0x140245787\n// > <???> @ 0x1406c5214\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid FMODAudioEngine::setChannelPitch(FMODAudioEngine *a1, int a2, AudioTargetType a3, float a4)\n{\n  FMOD::ChannelGroup *ChannelGroup; // rax\n  FMOD::ChannelControl *v6; // rax\n  int v7; // edx\n  _BYTE v8[16]; // [rsp+20h] [rbp-28h] BYREF\n  int v9; // [rsp+58h] [rbp+10h] BYREF\n  int v10; // [rsp+60h] [rbp+18h] BYREF\n\n  v9 = a2;\n  if ( a3 == SFXGroup )\n  {\n    *(float *)(*(_QWORD *)sub_140060B20(&a1->m_audioState.m_pitchForEffectGroups, v8, &v9) + 20LL) = a4;\n    ChannelGroup = FMODAudioEngine::getChannelGroup(a1, v9, 0);\n    FMOD::ChannelControl::setPitch(ChannelGroup, a4);\n    v6 = FMODAudioEngine::getChannelGroup(a1, v9, 1);\nLABEL_9:\n    FMOD::ChannelControl::setPitch(v6, a4);\n    return;\n  }\n  if ( a3 == MusicChannel )\n  {\n    *(float *)(*(_QWORD *)sub_140060B20(&a1->m_audioState.m_pitchForMusicChannels, v8, &v9) + 20LL) = a4;\n    v10 = v9;\n    if ( sub_14005F8D0(&a1->m_fmodMusic, &v10) )\n      v7 = *(_DWORD *)(*(_QWORD *)sub_140061560(&a1->m_fmodMusic, v8, &v10) + 24LL);\n    else\n      v7 = 0;\n  }\n  else\n  {\n    *(float *)(*(_QWORD *)sub_140060B20(&a1->m_audioState.m_pitchForEffectChannels, v8, &v9) + 20LL) = a4;\n    v7 = v9;\n  }\n  v6 = FMODAudioEngine::channelForChannelID(a1, v7);\n  if ( v6 )\n    goto LABEL_9;\n}", "assembly": "; \n; FMODAudioEngine::setChannelPitch from 0x140059180 to 0x140059282 (258 bytes)\n; \n; 5 xrefs:\n; > FMODAudioEngine::updateChannelTweens @ 0x1400568d6\n; > FMODAudioEngine::updateChannel @ 0x140058c35\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244afd\n; > GJBaseGameLayer::processSongState @ 0x140245787\n; > <???> @ 0x1406c5214\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], edx                                               ; +0x0, 0x140059180\npush    rbx                                                            ; +0x4, 0x140059184\nsub     rsp, 40h                                                       ; +0x5, 0x140059185\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x9, 0x140059189\nmovaps  xmm6, xmm3                                                     ; +0xe, 0x14005918e\nlea     rdx, [rsp+48h+var_28]                                          ; +0x11, 0x140059191\nmov     rbx, rcx                                                       ; +0x16, 0x140059196\ncmp     r8d, 1                                                         ; +0x19, 0x140059199\njnz     short loc_1400591E7                                            ; +0x1d, 0x14005919d\nadd     rcx, 3E8h                                                      ; +0x1f, 0x14005919f\nlea     r8, [rsp+48h+arg_8]                                            ; +0x26, 0x1400591a6\ncall    sub_140060B20                                                  ; +0x2b, 0x1400591ab\nxor     r8d, r8d                                                       ; +0x30, 0x1400591b0\nmov     rcx, rbx                                                       ; +0x33, 0x1400591b3\nmov     rdx, [rax]                                                     ; +0x36, 0x1400591b6\nmovss   dword ptr [rdx+14h], xmm6                                      ; +0x39, 0x1400591b9\nmov     edx, [rsp+48h+arg_8]                                           ; +0x3e, 0x1400591be\ncall    FMODAudioEngine__getChannelGroup                               ; +0x42, 0x1400591c2\nmov     rcx, rax                                                       ; +0x47, 0x1400591c7\nmovaps  xmm1, xmm6                                                     ; +0x4a, 0x1400591ca\ncall    cs:?setPitch@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setPitch(float) ; +0x4d, 0x1400591cd\nmov     edx, [rsp+48h+arg_8]                                           ; +0x53, 0x1400591d3\nmov     r8b, 1                                                         ; +0x57, 0x1400591d7\nmov     rcx, rbx                                                       ; +0x5a, 0x1400591da\ncall    FMODAudioEngine__getChannelGroup                               ; +0x5d, 0x1400591dd\njmp     loc_14005926B                                                  ; +0x62, 0x1400591e2\ncmp     r8d, 2                                                         ; +0x67, 0x1400591e7\nlea     r8, [rsp+48h+arg_8]                                            ; +0x6b, 0x1400591eb\njnz     short loc_140059246                                            ; +0x70, 0x1400591f0\nadd     rcx, 4A8h                                                      ; +0x72, 0x1400591f2\ncall    sub_140060B20                                                  ; +0x79, 0x1400591f9\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x7e, 0x1400591fe\nmov     rcx, [rax]                                                     ; +0x83, 0x140059203\nmovss   dword ptr [rcx+14h], xmm6                                      ; +0x86, 0x140059206\nlea     rcx, [rbx+140h]                                                ; +0x8b, 0x14005920b\nmov     eax, [rsp+48h+arg_8]                                           ; +0x92, 0x140059212\nmov     [rsp+48h+arg_10], eax                                          ; +0x96, 0x140059216\ncall    sub_14005F8D0                                                  ; +0x9a, 0x14005921a\ntest    rax, rax                                                       ; +0x9f, 0x14005921f\njz      short loc_140059242                                            ; +0xa2, 0x140059222\nlea     r8, [rsp+48h+arg_10]                                           ; +0xa4, 0x140059224\nlea     rdx, [rsp+48h+var_28]                                          ; +0xa9, 0x140059229\nlea     rcx, [rbx+140h]                                                ; +0xae, 0x14005922e\ncall    sub_140061560                                                  ; +0xb5, 0x140059235\nmov     rcx, [rax]                                                     ; +0xba, 0x14005923a\nmov     edx, [rcx+18h]                                                 ; +0xbd, 0x14005923d\njmp     short loc_14005925E                                            ; +0xc0, 0x140059240\nxor     edx, edx                                                       ; +0xc2, 0x140059242\njmp     short loc_14005925E                                            ; +0xc4, 0x140059244\nadd     rcx, 328h                                                      ; +0xc6, 0x140059246\ncall    sub_140060B20                                                  ; +0xcd, 0x14005924d\nmov     rcx, [rax]                                                     ; +0xd2, 0x140059252\nmovss   dword ptr [rcx+14h], xmm6                                      ; +0xd5, 0x140059255\nmov     edx, [rsp+48h+arg_8]                                           ; +0xda, 0x14005925a\nmov     rcx, rbx                                                       ; +0xde, 0x14005925e\ncall    FMODAudioEngine__channelForChannelID                           ; +0xe1, 0x140059261\ntest    rax, rax                                                       ; +0xe6, 0x140059266\njz      short loc_140059277                                            ; +0xe9, 0x140059269\nmovaps  xmm1, xmm6                                                     ; +0xeb, 0x14005926b\nmov     rcx, rax                                                       ; +0xee, 0x14005926e\ncall    cs:?setPitch@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setPitch(float) ; +0xf1, 0x140059271\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xf7, 0x140059277\nadd     rsp, 40h                                                       ; +0xfc, 0x14005927c\npop     rbx                                                            ; +0x100, 0x140059280\nretn                                                                   ; +0x101, 0x140059281", "xrefs": ["FMODAudioEngine::updateChannelTweens @ 0x1400568d6", "FMODAudioEngine::updateChannel @ 0x140058c35", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244afd", "GJBaseGameLayer::processSongState @ 0x140245787", "<???> @ 0x1406c5214"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}