{"type": "func", "start": 4298967712, "end": 4298967990, "name": "FMODAudioEngine::pitchForIdx", "pseudocode": "// \n// FMODAudioEngine::pitchForIdx from 0x1003d0aa0 to 0x1003d0bb6 (278 bytes)\n// \n// 23 xrefs:\n// > GJBaseGameLayer::activateSongTrigger @ 0x100139952\n// > GJBaseGameLayer::applySFXEditTrigger @ 0x10013def1\n// > GJBaseGameLayer::activatedAudioTrigger @ 0x10013eb1c\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x10013fc36\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100140fae\n// > GJBaseGameLayer::processSongState @ 0x100141688\n// > GJBaseGameLayer::processSongState @ 0x100141864\n// > SetupSongTriggerPopup::init @ 0x1002c00f3\n// > SetupSongTriggerPopup::updateLength @ 0x1002c0887\n// > SetupSongTriggerPopup::onPlayback @ 0x1002c0be7\n// > SetupSongTriggerPopup::valueDidChange @ 0x1002c0dc5\n// > GameManager::playSFXTrigger @ 0x10036091e\n// > GameManager::playSFXTrigger @ 0x100360940\n// > GameManager::playSFXTrigger @ 0x1003609d0\n// > GameManager::playSFXTrigger @ 0x100360a0a\n// > GameManager::playSFXTrigger @ 0x100360a25\n// > GameManager::playSFXTrigger @ 0x100360aea\n// > GameManager::playSFXTrigger @ 0x100360c16\n// > GameManager::playSFXTrigger @ 0x100360c31\n// > SetupSFXPopup::createSFXWidget @ 0x1004b325c\n// > SetupSFXPopup::onClose @ 0x1004b350a\n// > SetupSFXPopup::updateLength @ 0x1004b35f0\n// > SetupSFXPopup::valueDidChange @ 0x1004b3834\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:29:39 +0000\n// \n\nfloat __fastcall FMODAudioEngine::pitchForIdx(int a1)\n{\n  float result; // xmm0_4\n\n  switch ( a1 )\n  {\n    case -12:\n      result = 0.5;\n      break;\n    case -11:\n      result = 0.52973157;\n      break;\n    case -10:\n      result = 0.56123102;\n      break;\n    case -9:\n      result = 0.59460354;\n      break;\n    case -8:\n      result = 0.62996054;\n      break;\n    case -7:\n      result = 0.66741991;\n      break;\n    case -6:\n      result = 0.70710677;\n      break;\n    case -5:\n      result = 0.74915355;\n      break;\n    case -4:\n      result = 0.79370052;\n      break;\n    case -3:\n      result = 0.84089643;\n      break;\n    case -2:\n      result = 0.8908987;\n      break;\n    case -1:\n      result = 0.9438743;\n      break;\n    case 1:\n      result = 1.0594631;\n      break;\n    case 2:\n      result = 1.1225621;\n      break;\n    case 3:\n      result = 1.1892071;\n      break;\n    case 4:\n      result = 1.2599211;\n      break;\n    case 5:\n      result = 1.3348398;\n      break;\n    case 6:\n      result = 1.4142135;\n      break;\n    case 7:\n      result = 1.4983071;\n      break;\n    case 8:\n      result = 1.587401;\n      break;\n    case 9:\n      result = 1.6817929;\n      break;\n    case 10:\n      result = 1.7817974;\n      break;\n    case 11:\n      result = 1.8877486;\n      break;\n    case 12:\n      result = 2.0;\n      break;\n    default:\n      result = 1.0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::pitchForIdx from 0x1003d0aa0 to 0x1003d0bb6 (278 bytes)\n; \n; 23 xrefs:\n; > GJBaseGameLayer::activateSongTrigger @ 0x100139952\n; > GJBaseGameLayer::applySFXEditTrigger @ 0x10013def1\n; > GJBaseGameLayer::activatedAudioTrigger @ 0x10013eb1c\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x10013fc36\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100140fae\n; > GJBaseGameLayer::processSongState @ 0x100141688\n; > GJBaseGameLayer::processSongState @ 0x100141864\n; > SetupSongTriggerPopup::init @ 0x1002c00f3\n; > SetupSongTriggerPopup::updateLength @ 0x1002c0887\n; > SetupSongTriggerPopup::onPlayback @ 0x1002c0be7\n; > SetupSongTriggerPopup::valueDidChange @ 0x1002c0dc5\n; > GameManager::playSFXTrigger @ 0x10036091e\n; > GameManager::playSFXTrigger @ 0x100360940\n; > GameManager::playSFXTrigger @ 0x1003609d0\n; > GameManager::playSFXTrigger @ 0x100360a0a\n; > GameManager::playSFXTrigger @ 0x100360a25\n; > GameManager::playSFXTrigger @ 0x100360aea\n; > GameManager::playSFXTrigger @ 0x100360c16\n; > GameManager::playSFXTrigger @ 0x100360c31\n; > SetupSFXPopup::createSFXWidget @ 0x1004b325c\n; > SetupSFXPopup::onClose @ 0x1004b350a\n; > SetupSFXPopup::updateLength @ 0x1004b35f0\n; > SetupSFXPopup::valueDidChange @ 0x1004b3834\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:29:39 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003d0aa0\nmov     rbp, rsp                                                       ; +0x1, 0x1003d0aa1\nadd     edi, 0Ch; switch 25 cases                                      ; +0x4, 0x1003d0aa4\ncmp     edi, 18h                                                       ; +0x7, 0x1003d0aa7\nja      short def_1003D0ABA; jumptable 00000001003D0ABA default case, case 0 ; +0xa, 0x1003d0aaa\nlea     rax, jpt_1003D0ABA                                             ; +0xc, 0x1003d0aac\nmovsxd  rcx, (jpt_1003D0ABA - 1003D0BB8h)[rax+rdi*4]                   ; +0x13, 0x1003d0ab3\nadd     rcx, rax                                                       ; +0x17, 0x1003d0ab7\njmp     rcx; switch jump                                               ; +0x1a, 0x1003d0aba\nmovss   xmm0, cs:dword_100A03578; jumptable 00000001003D0ABA case -12  ; +0x1c, 0x1003d0abc\npop     rbp                                                            ; +0x24, 0x1003d0ac4\nretn                                                                   ; +0x25, 0x1003d0ac5\nmovss   xmm0, cs:alpha; jumptable 00000001003D0ABA default case, case 0 ; +0x26, 0x1003d0ac6\npop     rbp                                                            ; +0x2e, 0x1003d0ace\nretn                                                                   ; +0x2f, 0x1003d0acf\nmovss   xmm0, cs:dword_100A095F4; jumptable 00000001003D0ABA case 4    ; +0x30, 0x1003d0ad0\npop     rbp                                                            ; +0x38, 0x1003d0ad8\nretn                                                                   ; +0x39, 0x1003d0ad9\nmovss   xmm0, cs:dword_100A095FC; jumptable 00000001003D0ABA case 2    ; +0x3a, 0x1003d0ada\npop     rbp                                                            ; +0x42, 0x1003d0ae2\nretn                                                                   ; +0x43, 0x1003d0ae3\nmovss   xmm0, cs:dword_100A09608; jumptable 00000001003D0ABA case -2   ; +0x44, 0x1003d0ae4\npop     rbp                                                            ; +0x4c, 0x1003d0aec\nretn                                                                   ; +0x4d, 0x1003d0aed\nmovss   xmm0, cs:dword_100A09624; jumptable 00000001003D0ABA case -9   ; +0x4e, 0x1003d0aee\npop     rbp                                                            ; +0x56, 0x1003d0af6\nretn                                                                   ; +0x57, 0x1003d0af7\nmovss   xmm0, cs:dword_100A09604; jumptable 00000001003D0ABA case -1   ; +0x58, 0x1003d0af8\npop     rbp                                                            ; +0x60, 0x1003d0b00\nretn                                                                   ; +0x61, 0x1003d0b01\nmovss   xmm0, cs:dword_100A09610; jumptable 00000001003D0ABA case -4   ; +0x62, 0x1003d0b02\npop     rbp                                                            ; +0x6a, 0x1003d0b0a\nretn                                                                   ; +0x6b, 0x1003d0b0b\nmovss   xmm0, cs:width; jumptable 00000001003D0ABA case 12             ; +0x6c, 0x1003d0b0c\npop     rbp                                                            ; +0x74, 0x1003d0b14\nretn                                                                   ; +0x75, 0x1003d0b15\nmovss   xmm0, cs:dword_100A0962C; jumptable 00000001003D0ABA case -11  ; +0x76, 0x1003d0b16\npop     rbp                                                            ; +0x7e, 0x1003d0b1e\nretn                                                                   ; +0x7f, 0x1003d0b1f\nmovss   xmm0, cs:dword_100A095F8; jumptable 00000001003D0ABA case 3    ; +0x80, 0x1003d0b20\npop     rbp                                                            ; +0x88, 0x1003d0b28\nretn                                                                   ; +0x89, 0x1003d0b29\nmovss   xmm0, cs:dword_100A09628; jumptable 00000001003D0ABA case -10  ; +0x8a, 0x1003d0b2a\npop     rbp                                                            ; +0x92, 0x1003d0b32\nretn                                                                   ; +0x93, 0x1003d0b33\nmovss   xmm0, cs:dword_100A09618; jumptable 00000001003D0ABA case -6   ; +0x94, 0x1003d0b34\npop     rbp                                                            ; +0x9c, 0x1003d0b3c\nretn                                                                   ; +0x9d, 0x1003d0b3d\nmovss   xmm0, cs:dword_100A095F0; jumptable 00000001003D0ABA case 5    ; +0x9e, 0x1003d0b3e\npop     rbp                                                            ; +0xa6, 0x1003d0b46\nretn                                                                   ; +0xa7, 0x1003d0b47\nmovss   xmm0, cs:dword_100A095E8; jumptable 00000001003D0ABA case 8    ; +0xa8, 0x1003d0b48\npop     rbp                                                            ; +0xb0, 0x1003d0b50\nretn                                                                   ; +0xb1, 0x1003d0b51\nmovss   xmm0, cs:dword_100A09620; jumptable 00000001003D0ABA case -8   ; +0xb2, 0x1003d0b52\npop     rbp                                                            ; +0xba, 0x1003d0b5a\nretn                                                                   ; +0xbb, 0x1003d0b5b\nmovss   xmm0, cs:dword_100A095E4; jumptable 00000001003D0ABA case 9    ; +0xbc, 0x1003d0b5c\npop     rbp                                                            ; +0xc4, 0x1003d0b64\nretn                                                                   ; +0xc5, 0x1003d0b65\nmovss   xmm0, cs:dword_100A09600; jumptable 00000001003D0ABA case 1    ; +0xc6, 0x1003d0b66\npop     rbp                                                            ; +0xce, 0x1003d0b6e\nretn                                                                   ; +0xcf, 0x1003d0b6f\nmovss   xmm0, cs:dword_100A0961C; jumptable 00000001003D0ABA case -7   ; +0xd0, 0x1003d0b70\npop     rbp                                                            ; +0xd8, 0x1003d0b78\nretn                                                                   ; +0xd9, 0x1003d0b79\nmovss   xmm0, cs:dword_100A093A0; jumptable 00000001003D0ABA case 6    ; +0xda, 0x1003d0b7a\npop     rbp                                                            ; +0xe2, 0x1003d0b82\nretn                                                                   ; +0xe3, 0x1003d0b83\nmovss   xmm0, cs:dword_100A0960C; jumptable 00000001003D0ABA case -3   ; +0xe4, 0x1003d0b84\npop     rbp                                                            ; +0xec, 0x1003d0b8c\nretn                                                                   ; +0xed, 0x1003d0b8d\nmovss   xmm0, cs:dword_100A09614; jumptable 00000001003D0ABA case -5   ; +0xee, 0x1003d0b8e\npop     rbp                                                            ; +0xf6, 0x1003d0b96\nretn                                                                   ; +0xf7, 0x1003d0b97\nmovss   xmm0, cs:dword_100A095E0; jumptable 00000001003D0ABA case 10   ; +0xf8, 0x1003d0b98\npop     rbp                                                            ; +0x100, 0x1003d0ba0\nretn                                                                   ; +0x101, 0x1003d0ba1\nmovss   xmm0, cs:dword_100A095EC; jumptable 00000001003D0ABA case 7    ; +0x102, 0x1003d0ba2\npop     rbp                                                            ; +0x10a, 0x1003d0baa\nretn                                                                   ; +0x10b, 0x1003d0bab\nmovss   xmm0, cs:dword_100A095DC; jumptable 00000001003D0ABA case 11   ; +0x10c, 0x1003d0bac\npop     rbp                                                            ; +0x114, 0x1003d0bb4\nretn                                                                   ; +0x115, 0x1003d0bb5", "xrefs": ["GJBaseGameLayer::activateSongTrigger @ 0x100139952", "GJBaseGameLayer::applySFXEditTrigger @ 0x10013def1", "GJBaseGameLayer::activatedAudioTrigger @ 0x10013eb1c", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x10013fc36", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x100140fae", "GJBaseGameLayer::processSongState @ 0x100141688", "GJBaseGameLayer::processSongState @ 0x100141864", "SetupSongTriggerPopup::init @ 0x1002c00f3", "SetupSongTriggerPopup::updateLength @ 0x1002c0887", "SetupSongTriggerPopup::onPlayback @ 0x1002c0be7", "SetupSongTriggerPopup::valueDidChange @ 0x1002c0dc5", "GameManager::playSFXTrigger @ 0x10036091e", "GameManager::playSFXTrigger @ 0x100360940", "GameManager::playSFXTrigger @ 0x1003609d0", "GameManager::playSFXTrigger @ 0x100360a0a", "GameManager::playSFXTrigger @ 0x100360a25", "GameManager::playSFXTrigger @ 0x100360aea", "GameManager::playSFXTrigger @ 0x100360c16", "GameManager::playSFXTrigger @ 0x100360c31", "SetupSFXPopup::createSFXWidget @ 0x1004b325c", "SetupSFXPopup::onClose @ 0x1004b350a", "SetupSFXPopup::updateLength @ 0x1004b35f0", "SetupSFXPopup::valueDidChange @ 0x1004b3834"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}