{"type": "func", "start": 5373312880, "end": 5373312986, "name": "LevelTools::artistForAudio", "pseudocode": "// \n// LevelTools::artistForAudio from 0x140463f70 to 0x140463fda (106 bytes)\n// \n// 3 xrefs:\n// > SongCell::loadFromObject @ 0x14014fe32\n// > LevelTools::getSongObject @ 0x140467d78\n// > SongInfoLayer::create_1 @ 0x140634330\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 11:32:34 +0000\n// \n\n__int64 __fastcall LevelTools::artistForAudio(int a1)\n{\n  __int64 result; // rax\n\n  switch ( a1 )\n  {\n    case -1:\n      result = 2;\n      break;\n    case 0:\n      result = 3;\n      break;\n    case 2:\n      result = 4;\n      break;\n    case 6:\n    case 7:\n    case 10:\n    case 12:\n    case 15:\n    case 16:\n    case 18:\n    case 32:\n    case 33:\n      result = 1;\n      break;\n    case 11:\n    case 13:\n    case 14:\n    case 17:\n      result = 5;\n      break;\n    case 19:\n    case 23:\n    case 24:\n    case 25:\n    case 36:\n      result = 6;\n      break;\n    case 20:\n    case 21:\n    case 37:\n      result = 7;\n      break;\n    case 22:\n      result = 11;\n      break;\n    case 27:\n    case 28:\n    case 29:\n    case 30:\n    case 31:\n    case 34:\n    case 35:\n      result = 8;\n      break;\n    case 38:\n      result = 10;\n      break;\n    case 39:\n      result = 9;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; LevelTools::artistForAudio from 0x140463f70 to 0x140463fda (106 bytes)\n; \n; 3 xrefs:\n; > SongCell::loadFromObject @ 0x14014fe32\n; > LevelTools::getSongObject @ 0x140467d78\n; > SongInfoLayer::create_1 @ 0x140634330\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 11:32:34 +0000\n; \ninc     ecx; switch 41 cases                                           ; +0x0, 0x140463f70\ncmp     ecx, 28h                                                       ; +0x2, 0x140463f72\nja      short def_140463F93; jumptable 0000000140463F93 default case, cases 1,3-5,8,9,26 ; +0x5, 0x140463f75\nmovsxd  rax, ecx                                                       ; +0x7, 0x140463f77\nlea     rdx, cs:140000000h                                             ; +0xa, 0x140463f7a\nmovzx   eax, ds:(byte_140464010 - 140000000h)[rdx+rax]                 ; +0x11, 0x140463f81\nmov     ecx, ds:(jpt_140463F93 - 140000000h)[rdx+rax*4]                ; +0x19, 0x140463f89\nadd     rcx, rdx                                                       ; +0x20, 0x140463f90\njmp     rcx; switch jump                                               ; +0x23, 0x140463f93\nmov     eax, 4; jumptable 0000000140463F93 case 2                      ; +0x25, 0x140463f95\nretn                                                                   ; +0x2a, 0x140463f9a\nmov     eax, 3; jumptable 0000000140463F93 case 0                      ; +0x2b, 0x140463f9b\nretn                                                                   ; +0x30, 0x140463fa0\nmov     eax, 2; jumptable 0000000140463F93 case -1                     ; +0x31, 0x140463fa1\nretn                                                                   ; +0x36, 0x140463fa6\nmov     eax, 5; jumptable 0000000140463F93 cases 11,13,14,17           ; +0x37, 0x140463fa7\nretn                                                                   ; +0x3c, 0x140463fac\nmov     eax, 7; jumptable 0000000140463F93 cases 20,21,37              ; +0x3d, 0x140463fad\nretn                                                                   ; +0x42, 0x140463fb2\nmov     eax, 1; jumptable 0000000140463F93 cases 6,7,10,12,15,16,18,32,33 ; +0x43, 0x140463fb3\nretn                                                                   ; +0x48, 0x140463fb8\nmov     eax, 8; jumptable 0000000140463F93 cases 27-31,34,35           ; +0x49, 0x140463fb9\nretn                                                                   ; +0x4e, 0x140463fbe\nmov     eax, 6; jumptable 0000000140463F93 cases 19,23-25,36           ; +0x4f, 0x140463fbf\nretn                                                                   ; +0x54, 0x140463fc4\nmov     eax, 0Ah; jumptable 0000000140463F93 case 38                   ; +0x55, 0x140463fc5\nretn                                                                   ; +0x5a, 0x140463fca\nmov     eax, 9; jumptable 0000000140463F93 case 39                     ; +0x5b, 0x140463fcb\nretn                                                                   ; +0x60, 0x140463fd0\nmov     eax, 0Bh; jumptable 0000000140463F93 case 22                   ; +0x61, 0x140463fd1\nretn                                                                   ; +0x66, 0x140463fd6\nxor     eax, eax; jumptable 0000000140463F93 default case, cases 1,3-5,8,9,26 ; +0x67, 0x140463fd7\nretn                                                                   ; +0x69, 0x140463fd9", "xrefs": ["SongCell::loadFromObject @ 0x14014fe32", "LevelTools::getSongObject @ 0x140467d78", "SongInfoLayer::create_1 @ 0x140634330"], "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"}