{"type": "func", "start": 5369063904, "end": 5369064171, "name": "FMODAudioEngine::pitchForIdx", "pseudocode": "// \n// FMODAudioEngine::pitchForIdx from 0x1400569e0 to 0x140056aeb (267 bytes)\n// \n// 20 xrefs:\n// > GameManager::playSFXTrigger @ 0x14017bd9c\n// > GameManager::playSFXTrigger @ 0x14017bdeb\n// > GameManager::playSFXTrigger @ 0x14017be93\n// > GameManager::playSFXTrigger @ 0x14017bee4\n// > GameManager::playSFXTrigger @ 0x14017bf28\n// > GameManager::playSFXTrigger @ 0x14017bfe6\n// > GameManager::playSFXTrigger @ 0x14017c037\n// > GameManager::playSFXTrigger @ 0x14017c07b\n// > GJBaseGameLayer::activateSongTrigger @ 0x1402418b9\n// > GJBaseGameLayer::applySFXEditTrigger @ 0x14024222c\n// > GJBaseGameLayer::activatedAudioTrigger @ 0x140242fa5\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243aa8\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244a33\n// > GJBaseGameLayer::processSongState @ 0x1402454cc\n// > GJBaseGameLayer::processSongState @ 0x14024561d\n// > SetupSFXPopup::onClose @ 0x1404487dc\n// > SetupSFXPopup::updateLength @ 0x1404488da\n// > SetupSFXPopup::createSFXWidget @ 0x140448bc2\n// > SetupSongTriggerPopup::updateLength @ 0x14045d601\n// > SetupSongTriggerPopup::onPlayback @ 0x14045d8b7\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\nfloat FMODAudioEngine::pitchForIdx(int a1)\n{\n  float result; // xmm0_4\n\n  if ( !a1 )\n    return 1.0;\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      return 1.0;\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::pitchForIdx from 0x1400569e0 to 0x140056aeb (267 bytes)\n; \n; 20 xrefs:\n; > GameManager::playSFXTrigger @ 0x14017bd9c\n; > GameManager::playSFXTrigger @ 0x14017bdeb\n; > GameManager::playSFXTrigger @ 0x14017be93\n; > GameManager::playSFXTrigger @ 0x14017bee4\n; > GameManager::playSFXTrigger @ 0x14017bf28\n; > GameManager::playSFXTrigger @ 0x14017bfe6\n; > GameManager::playSFXTrigger @ 0x14017c037\n; > GameManager::playSFXTrigger @ 0x14017c07b\n; > GJBaseGameLayer::activateSongTrigger @ 0x1402418b9\n; > GJBaseGameLayer::applySFXEditTrigger @ 0x14024222c\n; > GJBaseGameLayer::activatedAudioTrigger @ 0x140242fa5\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243aa8\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244a33\n; > GJBaseGameLayer::processSongState @ 0x1402454cc\n; > GJBaseGameLayer::processSongState @ 0x14024561d\n; > SetupSFXPopup::onClose @ 0x1404487dc\n; > SetupSFXPopup::updateLength @ 0x1404488da\n; > SetupSFXPopup::createSFXWidget @ 0x140448bc2\n; > SetupSongTriggerPopup::updateLength @ 0x14045d601\n; > SetupSongTriggerPopup::onPlayback @ 0x14045d8b7\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\ntest    ecx, ecx                                                       ; +0x0, 0x1400569e0\njz      def_140056A08; jumptable 0000000140056A08 default case, case 0 ; +0x2, 0x1400569e2\nadd     ecx, 0Ch; switch 25 cases                                      ; +0x8, 0x1400569e8\ncmp     ecx, 18h                                                       ; +0xb, 0x1400569eb\nja      def_140056A08; jumptable 0000000140056A08 default case, case 0 ; +0xe, 0x1400569ee\nmovsxd  rax, ecx                                                       ; +0x14, 0x1400569f4\nlea     rdx, cs:140000000h                                             ; +0x17, 0x1400569f7\nmov     ecx, ds:(jpt_140056A08 - 140000000h)[rdx+rax*4]                ; +0x1e, 0x1400569fe\nadd     rcx, rdx                                                       ; +0x25, 0x140056a05\njmp     rcx; switch jump                                               ; +0x28, 0x140056a08\nmovss   xmm0, cs:dword_140622B08; jumptable 0000000140056A08 case -12  ; +0x2a, 0x140056a0a\nretn                                                                   ; +0x32, 0x140056a12\nmovss   xmm0, cs:dword_140622B18; jumptable 0000000140056A08 case -11  ; +0x33, 0x140056a13\nretn                                                                   ; +0x3b, 0x140056a1b\nmovss   xmm0, cs:dword_140622B28; jumptable 0000000140056A08 case -10  ; +0x3c, 0x140056a1c\nretn                                                                   ; +0x44, 0x140056a24\nmovss   xmm0, cs:dword_140622B34; jumptable 0000000140056A08 case -9   ; +0x45, 0x140056a25\nretn                                                                   ; +0x4d, 0x140056a2d\nmovss   xmm0, cs:dword_140622B50; jumptable 0000000140056A08 case -8   ; +0x4e, 0x140056a2e\nretn                                                                   ; +0x56, 0x140056a36\nmovss   xmm0, cs:dword_140622B6C; jumptable 0000000140056A08 case -7   ; +0x57, 0x140056a37\nretn                                                                   ; +0x5f, 0x140056a3f\nmovss   xmm0, cs:dword_140622B78; jumptable 0000000140056A08 case -6   ; +0x60, 0x140056a40\nretn                                                                   ; +0x68, 0x140056a48\nmovss   xmm0, cs:dword_140622B88; jumptable 0000000140056A08 case -5   ; +0x69, 0x140056a49\nretn                                                                   ; +0x71, 0x140056a51\nmovss   xmm0, cs:dword_140622BA0; jumptable 0000000140056A08 case -4   ; +0x72, 0x140056a52\nretn                                                                   ; +0x7a, 0x140056a5a\nmovss   xmm0, cs:dword_140622BC0; jumptable 0000000140056A08 case -3   ; +0x7b, 0x140056a5b\nretn                                                                   ; +0x83, 0x140056a63\nmovss   xmm0, cs:dword_140622BD4; jumptable 0000000140056A08 case -2   ; +0x84, 0x140056a64\nretn                                                                   ; +0x8c, 0x140056a6c\nmovss   xmm0, cs:dword_140622BF0; jumptable 0000000140056A08 case -1   ; +0x8d, 0x140056a6d\nretn                                                                   ; +0x95, 0x140056a75\nmovss   xmm0, cs:dword_140622C4C; jumptable 0000000140056A08 case 1    ; +0x96, 0x140056a76\nretn                                                                   ; +0x9e, 0x140056a7e\nmovss   xmm0, cs:dword_140622C5C; jumptable 0000000140056A08 case 2    ; +0x9f, 0x140056a7f\nretn                                                                   ; +0xa7, 0x140056a87\nmovss   xmm0, cs:dword_140622C80; jumptable 0000000140056A08 case 3    ; +0xa8, 0x140056a88\nretn                                                                   ; +0xb0, 0x140056a90\nmovss   xmm0, cs:dword_140622C98; jumptable 0000000140056A08 case 4    ; +0xb1, 0x140056a91\nretn                                                                   ; +0xb9, 0x140056a99\nmovss   xmm0, cs:dword_140622CC0; jumptable 0000000140056A08 case 5    ; +0xba, 0x140056a9a\nretn                                                                   ; +0xc2, 0x140056aa2\nmovss   xmm0, cs:dword_140622CDC; jumptable 0000000140056A08 case 6    ; +0xc3, 0x140056aa3\nretn                                                                   ; +0xcb, 0x140056aab\nmovss   xmm0, cs:dword_140622D00; jumptable 0000000140056A08 case 7    ; +0xcc, 0x140056aac\nretn                                                                   ; +0xd4, 0x140056ab4\nmovss   xmm0, cs:dword_140622D20; jumptable 0000000140056A08 case 8    ; +0xd5, 0x140056ab5\nretn                                                                   ; +0xdd, 0x140056abd\nmovss   xmm0, cs:dword_140622D68; jumptable 0000000140056A08 case 9    ; +0xde, 0x140056abe\nretn                                                                   ; +0xe6, 0x140056ac6\nmovss   xmm0, cs:dword_140622DB8; jumptable 0000000140056A08 case 10   ; +0xe7, 0x140056ac7\nretn                                                                   ; +0xef, 0x140056acf\nmovss   xmm0, cs:dword_140622E30; jumptable 0000000140056A08 case 11   ; +0xf0, 0x140056ad0\nretn                                                                   ; +0xf8, 0x140056ad8\nmovss   xmm0, cs:width; jumptable 0000000140056A08 case 12             ; +0xf9, 0x140056ad9\nretn                                                                   ; +0x101, 0x140056ae1\nmovss   xmm0, cs:flt_140622C24; jumptable 0000000140056A08 default case, case 0 ; +0x102, 0x140056ae2\nretn                                                                   ; +0x10a, 0x140056aea", "xrefs": ["GameManager::playSFXTrigger @ 0x14017bd9c", "GameManager::playSFXTrigger @ 0x14017bdeb", "GameManager::playSFXTrigger @ 0x14017be93", "GameManager::playSFXTrigger @ 0x14017bee4", "GameManager::playSFXTrigger @ 0x14017bf28", "GameManager::playSFXTrigger @ 0x14017bfe6", "GameManager::playSFXTrigger @ 0x14017c037", "GameManager::playSFXTrigger @ 0x14017c07b", "GJBaseGameLayer::activateSongTrigger @ 0x1402418b9", "GJBaseGameLayer::applySFXEditTrigger @ 0x14024222c", "GJBaseGameLayer::activatedAudioTrigger @ 0x140242fa5", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x140243aa8", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244a33", "GJBaseGameLayer::processSongState @ 0x1402454cc", "GJBaseGameLayer::processSongState @ 0x14024561d", "SetupSFXPopup::onClose @ 0x1404487dc", "SetupSFXPopup::updateLength @ 0x1404488da", "SetupSFXPopup::createSFXWidget @ 0x140448bc2", "SetupSongTriggerPopup::updateLength @ 0x14045d601", "SetupSongTriggerPopup::onPlayback @ 0x14045d8b7"], "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"}