{"type": "func", "start": 3140532, "end": 3140746, "name": "FMODAudioEngine::reverbToString", "pseudocode": "// \n// FMODAudioEngine::reverbToString from 0x2febb4 to 0x2fec8a (214 bytes)\n// \n// 1 xrefs:\n// > SetupReverbPopup::updateReverbLabel @ 0x575b5c\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\nint __fastcall FMODAudioEngine::reverbToString(int a1, int a2)\n{\n  char *v3; // r1\n\n  switch ( a2 )\n  {\n    case 0:\n      v3 = \"GENERIC\";\n      break;\n    case 1:\n      v3 = \"PADDEDCELL\";\n      break;\n    case 2:\n      v3 = \"ROOM\";\n      break;\n    case 3:\n      v3 = \"BATHROOM\";\n      break;\n    case 4:\n      v3 = \"LIVINGROOM\";\n      break;\n    case 5:\n      v3 = \"STONEROOM\";\n      break;\n    case 6:\n      v3 = \"AUDITORIUM\";\n      break;\n    case 7:\n      v3 = \"CONCERTHALL\";\n      break;\n    case 8:\n      v3 = \"CAVE\";\n      break;\n    case 9:\n      v3 = \"ARENA\";\n      break;\n    case 10:\n      v3 = \"HANGAR\";\n      break;\n    case 11:\n      v3 = \"CARPETTEDHALLWAY\";\n      break;\n    case 12:\n      v3 = \"HALLWAY\";\n      break;\n    case 13:\n      v3 = \"STONECORRIDOR\";\n      break;\n    case 14:\n      v3 = \"ALLEY\";\n      break;\n    case 15:\n      v3 = \"FOREST\";\n      break;\n    case 16:\n      v3 = \"CITY\";\n      break;\n    case 17:\n      v3 = \"MOUNTAINS\";\n      break;\n    case 18:\n      v3 = \"QUARRY\";\n      break;\n    case 19:\n      v3 = \"PLAIN\";\n      break;\n    case 20:\n      v3 = \"PARKINGLOT\";\n      break;\n    case 21:\n      v3 = \"SEWERPIPE\";\n      break;\n    case 22:\n      v3 = \"UNDERWATER\";\n      break;\n    default:\n      v3 = \"NA\";\n      break;\n  }\n  sub_776584(a1, v3);\n  return a1;\n}", "assembly": "; \n; FMODAudioEngine::reverbToString from 0x2febb4 to 0x2fec8a (214 bytes)\n; \n; 1 xrefs:\n; > SetupReverbPopup::updateReverbLabel @ 0x575b5c\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2FEBBC)                ; +0x0, 0x2febb4\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x2febb6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x2febb8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x2febba\nMOV             R4, R0                                                 ; +0x8, 0x2febbc\nLDR             R2, [R3]                                               ; +0xa, 0x2febbe\nMOV             R5, R3                                                 ; +0xc, 0x2febc0\nSTR             R2, [SP,#0xC+var_8]                                    ; +0xe, 0x2febc2\nMOV             R2, SP                                                 ; +0x10, 0x2febc4\nCMP             R1, #0x16; switch 23 cases                             ; +0x12, 0x2febc6\nBHI             def_2FEBCA; jumptable 002FEBCA default case            ; +0x14, 0x2febc8\nTBB.W           [PC,R1]; switch jump                                   ; +0x16, 0x2febca\nDCB 0xC; jump table for switch statement                               ; +0x1a, 0x2febce\nDCB 0xF                                                                ; +0x1b, 0x2febcf\nDCB 0x12                                                               ; +0x1c, 0x2febd0\nDCB 0x15                                                               ; +0x1d, 0x2febd1\nDCB 0x18; int                                                          ; +0x1e, 0x2febd2\nDCB 0x1B                                                               ; +0x1f, 0x2febd3\nDCB 0x1E                                                               ; +0x20, 0x2febd4\nDCB 0x21                                                               ; +0x21, 0x2febd5\nDCB 0x24                                                               ; +0x22, 0x2febd6\nDCB 0x27                                                               ; +0x23, 0x2febd7\nDCB 0x2A                                                               ; +0x24, 0x2febd8\nDCB 0x2D                                                               ; +0x25, 0x2febd9\nDCB 0x30                                                               ; +0x26, 0x2febda\nDCB 0x33                                                               ; +0x27, 0x2febdb\nDCB 0x36                                                               ; +0x28, 0x2febdc\nDCB 0x39                                                               ; +0x29, 0x2febdd\nDCB 0x3C                                                               ; +0x2a, 0x2febde\nDCB 0x3F                                                               ; +0x2b, 0x2febdf\nDCB 0x42                                                               ; +0x2c, 0x2febe0\nDCB 0x45                                                               ; +0x2d, 0x2febe1\nDCB 0x48                                                               ; +0x2e, 0x2febe2\nDCB 0x4B                                                               ; +0x2f, 0x2febe3\nDCB 0x4E                                                               ; +0x30, 0x2febe4\nALIGN 2                                                                ; +0x31, 0x2febe5\nLDR             R1, =(aGeneric - 0x2FEBEC); jumptable 002FEBCA case 0  ; +0x32, 0x2febe6\nADD             R1, PC; \"GENERIC\"                                      ; +0x34, 0x2febe8\nB               loc_2FEC74                                             ; +0x36, 0x2febea\nLDR             R1, =(aPaddedcell - 0x2FEBF2); jumptable 002FEBCA case 1 ; +0x38, 0x2febec\nADD             R1, PC; \"PADDEDCELL\"                                   ; +0x3a, 0x2febee\nB               loc_2FEC74                                             ; +0x3c, 0x2febf0\nLDR             R1, =(aRoom - 0x2FEBF8); jumptable 002FEBCA case 2     ; +0x3e, 0x2febf2\nADD             R1, PC; \"ROOM\"                                         ; +0x40, 0x2febf4\nB               loc_2FEC74                                             ; +0x42, 0x2febf6\nLDR             R1, =(aBathroom - 0x2FEBFE); jumptable 002FEBCA case 3 ; +0x44, 0x2febf8\nADD             R1, PC; \"BATHROOM\"                                     ; +0x46, 0x2febfa\nB               loc_2FEC74                                             ; +0x48, 0x2febfc\nLDR             R1, =(aLivingroom - 0x2FEC04); jumptable 002FEBCA case 4 ; +0x4a, 0x2febfe\nADD             R1, PC; \"LIVINGROOM\"                                   ; +0x4c, 0x2fec00\nB               loc_2FEC74                                             ; +0x4e, 0x2fec02\nLDR             R1, =(aStoneroom - 0x2FEC0A); jumptable 002FEBCA case 5 ; +0x50, 0x2fec04\nADD             R1, PC; \"STONEROOM\"                                    ; +0x52, 0x2fec06\nB               loc_2FEC74                                             ; +0x54, 0x2fec08\nLDR             R1, =(aAuditorium - 0x2FEC10); jumptable 002FEBCA case 6 ; +0x56, 0x2fec0a\nADD             R1, PC; \"AUDITORIUM\"                                   ; +0x58, 0x2fec0c\nB               loc_2FEC74                                             ; +0x5a, 0x2fec0e\nLDR             R1, =(aConcerthall - 0x2FEC16); jumptable 002FEBCA case 7 ; +0x5c, 0x2fec10\nADD             R1, PC; \"CONCERTHALL\"                                  ; +0x5e, 0x2fec12\nB               loc_2FEC74                                             ; +0x60, 0x2fec14\nLDR             R1, =(aCave - 0x2FEC1C); jumptable 002FEBCA case 8     ; +0x62, 0x2fec16\nADD             R1, PC; \"CAVE\"                                         ; +0x64, 0x2fec18\nB               loc_2FEC74                                             ; +0x66, 0x2fec1a\nLDR             R1, =(aArena - 0x2FEC22); jumptable 002FEBCA case 9    ; +0x68, 0x2fec1c\nADD             R1, PC; \"ARENA\"                                        ; +0x6a, 0x2fec1e\nB               loc_2FEC74                                             ; +0x6c, 0x2fec20\nLDR             R1, =(aHangar - 0x2FEC28); jumptable 002FEBCA case 10  ; +0x6e, 0x2fec22\nADD             R1, PC; \"HANGAR\"                                       ; +0x70, 0x2fec24\nB               loc_2FEC74                                             ; +0x72, 0x2fec26\nLDR             R1, =(aCarpettedhallw - 0x2FEC2E); jumptable 002FEBCA case 11 ; +0x74, 0x2fec28\nADD             R1, PC; \"CARPETTEDHALLWAY\"                             ; +0x76, 0x2fec2a\nB               loc_2FEC74                                             ; +0x78, 0x2fec2c\nLDR             R1, =(aHallway - 0x2FEC34); jumptable 002FEBCA case 12 ; +0x7a, 0x2fec2e\nADD             R1, PC; \"HALLWAY\"                                      ; +0x7c, 0x2fec30\nB               loc_2FEC74                                             ; +0x7e, 0x2fec32\nLDR             R1, =(aStonecorridor - 0x2FEC3A); jumptable 002FEBCA case 13 ; +0x80, 0x2fec34\nADD             R1, PC; \"STONECORRIDOR\"                                ; +0x82, 0x2fec36\nB               loc_2FEC74                                             ; +0x84, 0x2fec38\nLDR             R1, =(aAlley - 0x2FEC40); jumptable 002FEBCA case 14   ; +0x86, 0x2fec3a\nADD             R1, PC; \"ALLEY\"                                        ; +0x88, 0x2fec3c\nB               loc_2FEC74                                             ; +0x8a, 0x2fec3e\nLDR             R1, =(aForest - 0x2FEC46); jumptable 002FEBCA case 15  ; +0x8c, 0x2fec40\nADD             R1, PC; \"FOREST\"                                       ; +0x8e, 0x2fec42\nB               loc_2FEC74                                             ; +0x90, 0x2fec44\nLDR             R1, =(aCity - 0x2FEC4C); jumptable 002FEBCA case 16    ; +0x92, 0x2fec46\nADD             R1, PC; \"CITY\"                                         ; +0x94, 0x2fec48\nB               loc_2FEC74                                             ; +0x96, 0x2fec4a\nLDR             R1, =(aMountains - 0x2FEC52); jumptable 002FEBCA case 17 ; +0x98, 0x2fec4c\nADD             R1, PC; \"MOUNTAINS\"                                    ; +0x9a, 0x2fec4e\nB               loc_2FEC74                                             ; +0x9c, 0x2fec50\nLDR             R1, =(aQuarry - 0x2FEC58); jumptable 002FEBCA case 18  ; +0x9e, 0x2fec52\nADD             R1, PC; \"QUARRY\"                                       ; +0xa0, 0x2fec54\nB               loc_2FEC74                                             ; +0xa2, 0x2fec56\nLDR             R1, =(aPlain - 0x2FEC5E); jumptable 002FEBCA case 19   ; +0xa4, 0x2fec58\nADD             R1, PC; \"PLAIN\"                                        ; +0xa6, 0x2fec5a\nB               loc_2FEC74                                             ; +0xa8, 0x2fec5c\nLDR             R1, =(aParkinglot - 0x2FEC64); jumptable 002FEBCA case 20 ; +0xaa, 0x2fec5e\nADD             R1, PC; \"PARKINGLOT\"                                   ; +0xac, 0x2fec60\nB               loc_2FEC74                                             ; +0xae, 0x2fec62\nLDR             R1, =(aSewerpipe - 0x2FEC6A); jumptable 002FEBCA case 21 ; +0xb0, 0x2fec64\nADD             R1, PC; \"SEWERPIPE\"                                    ; +0xb2, 0x2fec66\nB               loc_2FEC74                                             ; +0xb4, 0x2fec68\nLDR             R1, =(aUnderwater - 0x2FEC70); jumptable 002FEBCA case 22 ; +0xb6, 0x2fec6a\nADD             R1, PC; \"UNDERWATER\"                                   ; +0xb8, 0x2fec6c\nB               loc_2FEC74                                             ; +0xba, 0x2fec6e\nLDR             R1, =(aNa - 0x2FEC76); jumptable 002FEBCA default case ; +0xbc, 0x2fec70\nADD             R1, PC; \"NA\"                                           ; +0xbe, 0x2fec72\nBL              sub_776584                                             ; +0xc0, 0x2fec74\nLDR             R2, [SP,#0xC+var_8]                                    ; +0xc4, 0x2fec78\nLDR             R3, [R5]                                               ; +0xc6, 0x2fec7a\nMOV             R0, R4                                                 ; +0xc8, 0x2fec7c\nCMP             R2, R3                                                 ; +0xca, 0x2fec7e\nBEQ             loc_2FEC86                                             ; +0xcc, 0x2fec80\nBLX             __stack_chk_fail                                       ; +0xce, 0x2fec82\nADD             SP, SP, #0xC                                           ; +0xd2, 0x2fec86\nPOP             {R4,R5,PC}                                             ; +0xd4, 0x2fec88", "xrefs": ["SetupReverbPopup::updateReverbLabel @ 0x575b5c"], "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"}