; ; FMODAudioEngine::setChannelPitch from 0x140059180 to 0x140059282 (258 bytes) ; ; 5 xrefs: ; > FMODAudioEngine::updateChannelTweens @ 0x1400568d6 ; > FMODAudioEngine::updateChannel @ 0x140058c35 ; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244afd ; > GJBaseGameLayer::processSongState @ 0x140245787 ; > @ 0x1406c5214 ; ; 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 ; mov [rsp+arg_8], edx ; +0x0, 0x140059180 push rbx ; +0x4, 0x140059184 sub rsp, 40h ; +0x5, 0x140059185 movaps [rsp+48h+var_18], xmm6 ; +0x9, 0x140059189 movaps xmm6, xmm3 ; +0xe, 0x14005918e lea rdx, [rsp+48h+var_28] ; +0x11, 0x140059191 mov rbx, rcx ; +0x16, 0x140059196 cmp r8d, 1 ; +0x19, 0x140059199 jnz short loc_1400591E7 ; +0x1d, 0x14005919d add rcx, 3E8h ; +0x1f, 0x14005919f lea r8, [rsp+48h+arg_8] ; +0x26, 0x1400591a6 call sub_140060B20 ; +0x2b, 0x1400591ab xor r8d, r8d ; +0x30, 0x1400591b0 mov rcx, rbx ; +0x33, 0x1400591b3 mov rdx, [rax] ; +0x36, 0x1400591b6 movss dword ptr [rdx+14h], xmm6 ; +0x39, 0x1400591b9 mov edx, [rsp+48h+arg_8] ; +0x3e, 0x1400591be call FMODAudioEngine__getChannelGroup ; +0x42, 0x1400591c2 mov rcx, rax ; +0x47, 0x1400591c7 movaps xmm1, xmm6 ; +0x4a, 0x1400591ca call cs:?setPitch@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setPitch(float) ; +0x4d, 0x1400591cd mov edx, [rsp+48h+arg_8] ; +0x53, 0x1400591d3 mov r8b, 1 ; +0x57, 0x1400591d7 mov rcx, rbx ; +0x5a, 0x1400591da call FMODAudioEngine__getChannelGroup ; +0x5d, 0x1400591dd jmp loc_14005926B ; +0x62, 0x1400591e2 cmp r8d, 2 ; +0x67, 0x1400591e7 lea r8, [rsp+48h+arg_8] ; +0x6b, 0x1400591eb jnz short loc_140059246 ; +0x70, 0x1400591f0 add rcx, 4A8h ; +0x72, 0x1400591f2 call sub_140060B20 ; +0x79, 0x1400591f9 lea rdx, [rsp+48h+arg_10] ; +0x7e, 0x1400591fe mov rcx, [rax] ; +0x83, 0x140059203 movss dword ptr [rcx+14h], xmm6 ; +0x86, 0x140059206 lea rcx, [rbx+140h] ; +0x8b, 0x14005920b mov eax, [rsp+48h+arg_8] ; +0x92, 0x140059212 mov [rsp+48h+arg_10], eax ; +0x96, 0x140059216 call sub_14005F8D0 ; +0x9a, 0x14005921a test rax, rax ; +0x9f, 0x14005921f jz short loc_140059242 ; +0xa2, 0x140059222 lea r8, [rsp+48h+arg_10] ; +0xa4, 0x140059224 lea rdx, [rsp+48h+var_28] ; +0xa9, 0x140059229 lea rcx, [rbx+140h] ; +0xae, 0x14005922e call sub_140061560 ; +0xb5, 0x140059235 mov rcx, [rax] ; +0xba, 0x14005923a mov edx, [rcx+18h] ; +0xbd, 0x14005923d jmp short loc_14005925E ; +0xc0, 0x140059240 xor edx, edx ; +0xc2, 0x140059242 jmp short loc_14005925E ; +0xc4, 0x140059244 add rcx, 328h ; +0xc6, 0x140059246 call sub_140060B20 ; +0xcd, 0x14005924d mov rcx, [rax] ; +0xd2, 0x140059252 movss dword ptr [rcx+14h], xmm6 ; +0xd5, 0x140059255 mov edx, [rsp+48h+arg_8] ; +0xda, 0x14005925a mov rcx, rbx ; +0xde, 0x14005925e call FMODAudioEngine__channelForChannelID ; +0xe1, 0x140059261 test rax, rax ; +0xe6, 0x140059266 jz short loc_140059277 ; +0xe9, 0x140059269 movaps xmm1, xmm6 ; +0xeb, 0x14005926b mov rcx, rax ; +0xee, 0x14005926e call cs:?setPitch@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setPitch(float) ; +0xf1, 0x140059271 movaps xmm6, [rsp+48h+var_18] ; +0xf7, 0x140059277 add rsp, 40h ; +0xfc, 0x14005927c pop rbx ; +0x100, 0x140059280 retn ; +0x101, 0x140059281