{"type": "func", "start": 4299044272, "end": 4299044550, "name": "FMODAudioEngine::pitchForIdx", "pseudocode": "// \n// FMODAudioEngine::pitchForIdx from 0x1003e35b0 to 0x1003e36c6 (278 bytes)\n// \n// 23 xrefs:\n// > GJBaseGameLayer::activateSongTrigger @ 0x10015a482\n// > GJBaseGameLayer::applySFXEditTrigger @ 0x10015e691\n// > GJBaseGameLayer::activatedAudioTrigger @ 0x10015f33c\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100160456\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1001617ce\n// > GJBaseGameLayer::processSongState @ 0x100161ea8\n// > GJBaseGameLayer::processSongState @ 0x100162084\n// > SetupSongTriggerPopup::init @ 0x1002d3550\n// > SetupSongTriggerPopup::updateLength @ 0x1002d3ce7\n// > SetupSongTriggerPopup::onPlayback @ 0x1002d4047\n// > SetupSongTriggerPopup::valueDidChange @ 0x1002d4225\n// > GameManager::playSFXTrigger @ 0x10037758e\n// > GameManager::playSFXTrigger @ 0x1003775b0\n// > GameManager::playSFXTrigger @ 0x100377640\n// > GameManager::playSFXTrigger @ 0x10037767a\n// > GameManager::playSFXTrigger @ 0x100377695\n// > GameManager::playSFXTrigger @ 0x10037775a\n// > GameManager::playSFXTrigger @ 0x100377886\n// > GameManager::playSFXTrigger @ 0x1003778a1\n// > SetupSFXPopup::createSFXWidget @ 0x1004ba16a\n// > SetupSFXPopup::onClose @ 0x1004ba40a\n// > SetupSFXPopup::updateLength @ 0x1004ba4f0\n// > SetupSFXPopup::valueDidChange @ 0x1004ba6db\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 __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 0x1003e35b0 to 0x1003e36c6 (278 bytes)\n; \n; 23 xrefs:\n; > GJBaseGameLayer::activateSongTrigger @ 0x10015a482\n; > GJBaseGameLayer::applySFXEditTrigger @ 0x10015e691\n; > GJBaseGameLayer::activatedAudioTrigger @ 0x10015f33c\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100160456\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1001617ce\n; > GJBaseGameLayer::processSongState @ 0x100161ea8\n; > GJBaseGameLayer::processSongState @ 0x100162084\n; > SetupSongTriggerPopup::init @ 0x1002d3550\n; > SetupSongTriggerPopup::updateLength @ 0x1002d3ce7\n; > SetupSongTriggerPopup::onPlayback @ 0x1002d4047\n; > SetupSongTriggerPopup::valueDidChange @ 0x1002d4225\n; > GameManager::playSFXTrigger @ 0x10037758e\n; > GameManager::playSFXTrigger @ 0x1003775b0\n; > GameManager::playSFXTrigger @ 0x100377640\n; > GameManager::playSFXTrigger @ 0x10037767a\n; > GameManager::playSFXTrigger @ 0x100377695\n; > GameManager::playSFXTrigger @ 0x10037775a\n; > GameManager::playSFXTrigger @ 0x100377886\n; > GameManager::playSFXTrigger @ 0x1003778a1\n; > SetupSFXPopup::createSFXWidget @ 0x1004ba16a\n; > SetupSFXPopup::onClose @ 0x1004ba40a\n; > SetupSFXPopup::updateLength @ 0x1004ba4f0\n; > SetupSFXPopup::valueDidChange @ 0x1004ba6db\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\npush    rbp                                                            ; +0x0, 0x1003e35b0\nmov     rbp, rsp                                                       ; +0x1, 0x1003e35b1\nadd     edi, 0Ch; switch 25 cases                                      ; +0x4, 0x1003e35b4\ncmp     edi, 18h                                                       ; +0x7, 0x1003e35b7\nja      short def_1003E35CA; jumptable 00000001003E35CA default case, case 0 ; +0xa, 0x1003e35ba\nlea     rax, jpt_1003E35CA                                             ; +0xc, 0x1003e35bc\nmovsxd  rcx, (jpt_1003E35CA - 1003E36C8h)[rax+rdi*4]                   ; +0x13, 0x1003e35c3\nadd     rcx, rax                                                       ; +0x17, 0x1003e35c7\njmp     rcx; switch jump                                               ; +0x1a, 0x1003e35ca\nmovss   xmm0, cs:dword_100814FA8; jumptable 00000001003E35CA case -12  ; +0x1c, 0x1003e35cc\npop     rbp                                                            ; +0x24, 0x1003e35d4\nretn                                                                   ; +0x25, 0x1003e35d5\nmovss   xmm0, cs:alpha; jumptable 00000001003E35CA default case, case 0 ; +0x26, 0x1003e35d6\npop     rbp                                                            ; +0x2e, 0x1003e35de\nretn                                                                   ; +0x2f, 0x1003e35df\nmovss   xmm0, cs:dword_10081B054; jumptable 00000001003E35CA case 4    ; +0x30, 0x1003e35e0\npop     rbp                                                            ; +0x38, 0x1003e35e8\nretn                                                                   ; +0x39, 0x1003e35e9\nmovss   xmm0, cs:dword_10081B05C; jumptable 00000001003E35CA case 2    ; +0x3a, 0x1003e35ea\npop     rbp                                                            ; +0x42, 0x1003e35f2\nretn                                                                   ; +0x43, 0x1003e35f3\nmovss   xmm0, cs:dword_10081B068; jumptable 00000001003E35CA case -2   ; +0x44, 0x1003e35f4\npop     rbp                                                            ; +0x4c, 0x1003e35fc\nretn                                                                   ; +0x4d, 0x1003e35fd\nmovss   xmm0, cs:dword_10081B084; jumptable 00000001003E35CA case -9   ; +0x4e, 0x1003e35fe\npop     rbp                                                            ; +0x56, 0x1003e3606\nretn                                                                   ; +0x57, 0x1003e3607\nmovss   xmm0, cs:dword_10081B064; jumptable 00000001003E35CA case -1   ; +0x58, 0x1003e3608\npop     rbp                                                            ; +0x60, 0x1003e3610\nretn                                                                   ; +0x61, 0x1003e3611\nmovss   xmm0, cs:dword_10081B070; jumptable 00000001003E35CA case -4   ; +0x62, 0x1003e3612\npop     rbp                                                            ; +0x6a, 0x1003e361a\nretn                                                                   ; +0x6b, 0x1003e361b\nmovss   xmm0, cs:width; jumptable 00000001003E35CA case 12             ; +0x6c, 0x1003e361c\npop     rbp                                                            ; +0x74, 0x1003e3624\nretn                                                                   ; +0x75, 0x1003e3625\nmovss   xmm0, cs:dword_10081B08C; jumptable 00000001003E35CA case -11  ; +0x76, 0x1003e3626\npop     rbp                                                            ; +0x7e, 0x1003e362e\nretn                                                                   ; +0x7f, 0x1003e362f\nmovss   xmm0, cs:dword_10081B058; jumptable 00000001003E35CA case 3    ; +0x80, 0x1003e3630\npop     rbp                                                            ; +0x88, 0x1003e3638\nretn                                                                   ; +0x89, 0x1003e3639\nmovss   xmm0, cs:dword_10081B088; jumptable 00000001003E35CA case -10  ; +0x8a, 0x1003e363a\npop     rbp                                                            ; +0x92, 0x1003e3642\nretn                                                                   ; +0x93, 0x1003e3643\nmovss   xmm0, cs:dword_10081B078; jumptable 00000001003E35CA case -6   ; +0x94, 0x1003e3644\npop     rbp                                                            ; +0x9c, 0x1003e364c\nretn                                                                   ; +0x9d, 0x1003e364d\nmovss   xmm0, cs:dword_10081B050; jumptable 00000001003E35CA case 5    ; +0x9e, 0x1003e364e\npop     rbp                                                            ; +0xa6, 0x1003e3656\nretn                                                                   ; +0xa7, 0x1003e3657\nmovss   xmm0, cs:dword_10081B048; jumptable 00000001003E35CA case 8    ; +0xa8, 0x1003e3658\npop     rbp                                                            ; +0xb0, 0x1003e3660\nretn                                                                   ; +0xb1, 0x1003e3661\nmovss   xmm0, cs:dword_10081B080; jumptable 00000001003E35CA case -8   ; +0xb2, 0x1003e3662\npop     rbp                                                            ; +0xba, 0x1003e366a\nretn                                                                   ; +0xbb, 0x1003e366b\nmovss   xmm0, cs:dword_10081B044; jumptable 00000001003E35CA case 9    ; +0xbc, 0x1003e366c\npop     rbp                                                            ; +0xc4, 0x1003e3674\nretn                                                                   ; +0xc5, 0x1003e3675\nmovss   xmm0, cs:dword_10081B060; jumptable 00000001003E35CA case 1    ; +0xc6, 0x1003e3676\npop     rbp                                                            ; +0xce, 0x1003e367e\nretn                                                                   ; +0xcf, 0x1003e367f\nmovss   xmm0, cs:dword_10081B07C; jumptable 00000001003E35CA case -7   ; +0xd0, 0x1003e3680\npop     rbp                                                            ; +0xd8, 0x1003e3688\nretn                                                                   ; +0xd9, 0x1003e3689\nmovss   xmm0, cs:dword_10081AE80; jumptable 00000001003E35CA case 6    ; +0xda, 0x1003e368a\npop     rbp                                                            ; +0xe2, 0x1003e3692\nretn                                                                   ; +0xe3, 0x1003e3693\nmovss   xmm0, cs:dword_10081B06C; jumptable 00000001003E35CA case -3   ; +0xe4, 0x1003e3694\npop     rbp                                                            ; +0xec, 0x1003e369c\nretn                                                                   ; +0xed, 0x1003e369d\nmovss   xmm0, cs:dword_10081B074; jumptable 00000001003E35CA case -5   ; +0xee, 0x1003e369e\npop     rbp                                                            ; +0xf6, 0x1003e36a6\nretn                                                                   ; +0xf7, 0x1003e36a7\nmovss   xmm0, cs:dword_10081B040; jumptable 00000001003E35CA case 10   ; +0xf8, 0x1003e36a8\npop     rbp                                                            ; +0x100, 0x1003e36b0\nretn                                                                   ; +0x101, 0x1003e36b1\nmovss   xmm0, cs:dword_10081B04C; jumptable 00000001003E35CA case 7    ; +0x102, 0x1003e36b2\npop     rbp                                                            ; +0x10a, 0x1003e36ba\nretn                                                                   ; +0x10b, 0x1003e36bb\nmovss   xmm0, cs:dword_10081B03C; jumptable 00000001003E35CA case 11   ; +0x10c, 0x1003e36bc\npop     rbp                                                            ; +0x114, 0x1003e36c4\nretn                                                                   ; +0x115, 0x1003e36c5", "xrefs": ["GJBaseGameLayer::activateSongTrigger @ 0x10015a482", "GJBaseGameLayer::applySFXEditTrigger @ 0x10015e691", "GJBaseGameLayer::activatedAudioTrigger @ 0x10015f33c", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x100160456", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x1001617ce", "GJBaseGameLayer::processSongState @ 0x100161ea8", "GJBaseGameLayer::processSongState @ 0x100162084", "SetupSongTriggerPopup::init @ 0x1002d3550", "SetupSongTriggerPopup::updateLength @ 0x1002d3ce7", "SetupSongTriggerPopup::onPlayback @ 0x1002d4047", "SetupSongTriggerPopup::valueDidChange @ 0x1002d4225", "GameManager::playSFXTrigger @ 0x10037758e", "GameManager::playSFXTrigger @ 0x1003775b0", "GameManager::playSFXTrigger @ 0x100377640", "GameManager::playSFXTrigger @ 0x10037767a", "GameManager::playSFXTrigger @ 0x100377695", "GameManager::playSFXTrigger @ 0x10037775a", "GameManager::playSFXTrigger @ 0x100377886", "GameManager::playSFXTrigger @ 0x1003778a1", "SetupSFXPopup::createSFXWidget @ 0x1004ba16a", "SetupSFXPopup::onClose @ 0x1004ba40a", "SetupSFXPopup::updateLength @ 0x1004ba4f0", "SetupSFXPopup::valueDidChange @ 0x1004ba6db"], "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"}