{"type": "func", "start": 4296258584, "end": 4296258912, "name": "FMODAudioEngine::pitchForIdx", "pseudocode": "// \n// FMODAudioEngine::pitchForIdx from 0x10013b418 to 0x10013b560 (328 bytes)\n// \n// 19 xrefs:\n// > SetupSFXPopup::onClose @ 0x100180d58\n// > SetupSFXPopup::updateLength @ 0x100180e50\n// > SetupSongTriggerPopup::updateLength @ 0x1001c3224\n// > SetupSongTriggerPopup::onPlayback @ 0x1001c3598\n// > GJBaseGameLayer::activateSongTrigger @ 0x100202e40\n// > GJBaseGameLayer::applySFXEditTrigger @ 0x100205330\n// > GJBaseGameLayer::activatedAudioTrigger @ 0x100205ba8\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206664\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206d90\n// > GJBaseGameLayer::processSongState @ 0x100207128\n// > GJBaseGameLayer::processSongState @ 0x100207228\n// > GameManager::playSFXTrigger @ 0x100312514\n// > GameManager::playSFXTrigger @ 0x100312528\n// > GameManager::playSFXTrigger @ 0x100312580\n// > GameManager::playSFXTrigger @ 0x100312594\n// > GameManager::playSFXTrigger @ 0x1003125ac\n// > GameManager::playSFXTrigger @ 0x100312614\n// > GameManager::playSFXTrigger @ 0x100312628\n// > GameManager::playSFXTrigger @ 0x100312640\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 v1; // s1\n  float result; // s0\n\n  v1 = 0.5;\n  result = 1.0;\n  switch ( a1 )\n  {\n    case -12:\n      return v1;\n    case -11:\n      return 0.52973;\n    case -10:\n      return 0.56123;\n    case -9:\n      return 0.5946;\n    case -8:\n      return 0.62996;\n    case -7:\n      return 0.66742;\n    case -6:\n      return 0.70711;\n    case -5:\n      return 0.74915;\n    case -4:\n      return 0.7937;\n    case -3:\n      return 0.8409;\n    case -2:\n      return 0.8909;\n    case -1:\n      return 0.94387;\n    case 0:\n      return result;\n    case 1:\n      return 1.0595;\n    case 2:\n      return 1.1226;\n    case 3:\n      return 1.1892;\n    case 4:\n      return 1.2599;\n    case 5:\n      return 1.3348;\n    case 6:\n      return 1.4142;\n    case 7:\n      return 1.4983;\n    case 8:\n      return 1.5874;\n    case 9:\n      return 1.6818;\n    case 10:\n      return 1.7818;\n    case 11:\n      return 1.8877;\n    case 12:\n      return 2.0;\n    default:\n      return 1.0;\n  }\n}", "assembly": "; \n; FMODAudioEngine::pitchForIdx from 0x10013b418 to 0x10013b560 (328 bytes)\n; \n; 19 xrefs:\n; > SetupSFXPopup::onClose @ 0x100180d58\n; > SetupSFXPopup::updateLength @ 0x100180e50\n; > SetupSongTriggerPopup::updateLength @ 0x1001c3224\n; > SetupSongTriggerPopup::onPlayback @ 0x1001c3598\n; > GJBaseGameLayer::activateSongTrigger @ 0x100202e40\n; > GJBaseGameLayer::applySFXEditTrigger @ 0x100205330\n; > GJBaseGameLayer::activatedAudioTrigger @ 0x100205ba8\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206664\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206d90\n; > GJBaseGameLayer::processSongState @ 0x100207128\n; > GJBaseGameLayer::processSongState @ 0x100207228\n; > GameManager::playSFXTrigger @ 0x100312514\n; > GameManager::playSFXTrigger @ 0x100312528\n; > GameManager::playSFXTrigger @ 0x100312580\n; > GameManager::playSFXTrigger @ 0x100312594\n; > GameManager::playSFXTrigger @ 0x1003125ac\n; > GameManager::playSFXTrigger @ 0x100312614\n; > GameManager::playSFXTrigger @ 0x100312628\n; > GameManager::playSFXTrigger @ 0x100312640\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\nADD             W8, W0, #0xC                                           ; +0x0, 0x10013b418\nCMP             W8, #0x18; switch 25 cases                             ; +0x4, 0x10013b41c\nB.HI            def_10013B440; jumptable 000000010013B440 default case ; +0x8, 0x10013b420\nFMOV            S1, #0.5                                               ; +0xc, 0x10013b424\nFMOV            S0, #1.0                                               ; +0x10, 0x10013b428\nADRL            X9, jpt_10013B440                                      ; +0x14, 0x10013b42c\nADR             X10, loc_10013B444; jumptable 000000010013B440 case 1  ; +0x1c, 0x10013b434\nLDRB            W11, [X9,X8]                                           ; +0x20, 0x10013b438\nADD             X10, X10, X11,LSL#2                                    ; +0x24, 0x10013b43c\nBR              X10; switch jump                                       ; +0x28, 0x10013b440\nADRP            X8, #dword_100637FA4@PAGE; jumptable 000000010013B440 case 1 ; +0x2c, 0x10013b444\nLDR             S1, [X8,#dword_100637FA4@PAGEOFF]                      ; +0x30, 0x10013b448\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x34, 0x10013b44c\nADRP            X8, #dword_100637F6C@PAGE; jumptable 000000010013B440 case 16 ; +0x38, 0x10013b450\nLDR             S1, [X8,#dword_100637F6C@PAGEOFF]                      ; +0x3c, 0x10013b454\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x40, 0x10013b458\nADRP            X8, #dword_100637F74@PAGE; jumptable 000000010013B440 case 14 ; +0x44, 0x10013b45c\nLDR             S1, [X8,#dword_100637F74@PAGEOFF]                      ; +0x48, 0x10013b460\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x4c, 0x10013b464\nADRP            X8, #dword_100637F80@PAGE; jumptable 000000010013B440 case 10 ; +0x50, 0x10013b468\nLDR             S1, [X8,#dword_100637F80@PAGEOFF]                      ; +0x54, 0x10013b46c\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x58, 0x10013b470\nADRP            X8, #dword_100637F9C@PAGE; jumptable 000000010013B440 case 3 ; +0x5c, 0x10013b474\nLDR             S1, [X8,#dword_100637F9C@PAGEOFF]                      ; +0x60, 0x10013b478\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x64, 0x10013b47c\nADRP            X8, #dword_100637F7C@PAGE; jumptable 000000010013B440 case 11 ; +0x68, 0x10013b480\nLDR             S1, [X8,#dword_100637F7C@PAGEOFF]                      ; +0x6c, 0x10013b484\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x70, 0x10013b488\nADRP            X8, #dword_100637F88@PAGE; jumptable 000000010013B440 case 8 ; +0x74, 0x10013b48c\nLDR             S1, [X8,#dword_100637F88@PAGEOFF]                      ; +0x78, 0x10013b490\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x7c, 0x10013b494\nFMOV            S1, #2.0; jumptable 000000010013B440 case 24           ; +0x80, 0x10013b498\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x84, 0x10013b49c\nADRP            X8, #dword_100637F70@PAGE; jumptable 000000010013B440 case 15 ; +0x88, 0x10013b4a0\nLDR             S1, [X8,#dword_100637F70@PAGEOFF]                      ; +0x8c, 0x10013b4a4\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x90, 0x10013b4a8\nADRP            X8, #dword_100637FA0@PAGE; jumptable 000000010013B440 case 2 ; +0x94, 0x10013b4ac\nLDR             S1, [X8,#dword_100637FA0@PAGEOFF]                      ; +0x98, 0x10013b4b0\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x9c, 0x10013b4b4\nADRP            X8, #dword_100637F90@PAGE; jumptable 000000010013B440 case 6 ; +0xa0, 0x10013b4b8\nLDR             S1, [X8,#dword_100637F90@PAGEOFF]                      ; +0xa4, 0x10013b4bc\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xa8, 0x10013b4c0\nADRP            X8, #dword_100637F68@PAGE; jumptable 000000010013B440 case 17 ; +0xac, 0x10013b4c4\nLDR             S1, [X8,#dword_100637F68@PAGEOFF]                      ; +0xb0, 0x10013b4c8\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xb4, 0x10013b4cc\nADRP            X8, #dword_100637F5C@PAGE; jumptable 000000010013B440 case 20 ; +0xb8, 0x10013b4d0\nLDR             S1, [X8,#dword_100637F5C@PAGEOFF]                      ; +0xbc, 0x10013b4d4\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xc0, 0x10013b4d8\nADRP            X8, #dword_100637F98@PAGE; jumptable 000000010013B440 case 4 ; +0xc4, 0x10013b4dc\nLDR             S1, [X8,#dword_100637F98@PAGEOFF]                      ; +0xc8, 0x10013b4e0\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xcc, 0x10013b4e4\nADRP            X8, #dword_100637F58@PAGE; jumptable 000000010013B440 case 21 ; +0xd0, 0x10013b4e8\nLDR             S1, [X8,#dword_100637F58@PAGEOFF]                      ; +0xd4, 0x10013b4ec\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xd8, 0x10013b4f0\nADRP            X8, #dword_100637F78@PAGE; jumptable 000000010013B440 case 13 ; +0xdc, 0x10013b4f4\nLDR             S1, [X8,#dword_100637F78@PAGEOFF]                      ; +0xe0, 0x10013b4f8\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xe4, 0x10013b4fc\nADRP            X8, #dword_100637F94@PAGE; jumptable 000000010013B440 case 5 ; +0xe8, 0x10013b500\nLDR             S1, [X8,#dword_100637F94@PAGEOFF]                      ; +0xec, 0x10013b504\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xf0, 0x10013b508\nADRP            X8, #dword_100637F64@PAGE; jumptable 000000010013B440 case 18 ; +0xf4, 0x10013b50c\nLDR             S1, [X8,#dword_100637F64@PAGEOFF]                      ; +0xf8, 0x10013b510\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0xfc, 0x10013b514\nADRP            X8, #dword_100637F84@PAGE; jumptable 000000010013B440 case 9 ; +0x100, 0x10013b518\nLDR             S1, [X8,#dword_100637F84@PAGEOFF]                      ; +0x104, 0x10013b51c\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x108, 0x10013b520\nADRP            X8, #dword_100637F8C@PAGE; jumptable 000000010013B440 case 7 ; +0x10c, 0x10013b524\nLDR             S1, [X8,#dword_100637F8C@PAGEOFF]                      ; +0x110, 0x10013b528\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x114, 0x10013b52c\nADRP            X8, #dword_100637F54@PAGE; jumptable 000000010013B440 case 22 ; +0x118, 0x10013b530\nLDR             S1, [X8,#dword_100637F54@PAGEOFF]                      ; +0x11c, 0x10013b534\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x120, 0x10013b538\nADRP            X8, #dword_100637F60@PAGE; jumptable 000000010013B440 case 19 ; +0x124, 0x10013b53c\nLDR             S1, [X8,#dword_100637F60@PAGEOFF]                      ; +0x128, 0x10013b540\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x12c, 0x10013b544\nADRP            X8, #dword_100637F50@PAGE; jumptable 000000010013B440 case 23 ; +0x130, 0x10013b548\nLDR             S1, [X8,#dword_100637F50@PAGEOFF]                      ; +0x134, 0x10013b54c\nB               loc_10013B558; jumptable 000000010013B440 case 0       ; +0x138, 0x10013b550\nFMOV            S1, #1.0; jumptable 000000010013B440 default case      ; +0x13c, 0x10013b554\nFMOV            S0, S1; jumptable 000000010013B440 case 0              ; +0x140, 0x10013b558\nRET; jumptable 000000010013B440 case 12                                ; +0x144, 0x10013b55c", "xrefs": ["SetupSFXPopup::onClose @ 0x100180d58", "SetupSFXPopup::updateLength @ 0x100180e50", "SetupSongTriggerPopup::updateLength @ 0x1001c3224", "SetupSongTriggerPopup::onPlayback @ 0x1001c3598", "GJBaseGameLayer::activateSongTrigger @ 0x100202e40", "GJBaseGameLayer::applySFXEditTrigger @ 0x100205330", "GJBaseGameLayer::activatedAudioTrigger @ 0x100205ba8", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206664", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206d90", "GJBaseGameLayer::processSongState @ 0x100207128", "GJBaseGameLayer::processSongState @ 0x100207228", "GameManager::playSFXTrigger @ 0x100312514", "GameManager::playSFXTrigger @ 0x100312528", "GameManager::playSFXTrigger @ 0x100312580", "GameManager::playSFXTrigger @ 0x100312594", "GameManager::playSFXTrigger @ 0x1003125ac", "GameManager::playSFXTrigger @ 0x100312614", "GameManager::playSFXTrigger @ 0x100312628", "GameManager::playSFXTrigger @ 0x100312640"], "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"}