{"type": "func", "start": 5371295184, "end": 5371295288, "name": "GameManager::unlockTypeToIconType", "pseudocode": "// \n// GameManager::unlockTypeToIconType from 0x1402775d0 to 0x140277638 (104 bytes)\n// \n// 2 xrefs:\n// > GJItemIcon::init @ 0x14038389a\n// > ItemInfoPopup::init @ 0x140384d35\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:28:56 +0000\n// \n\n__int64 __fastcall GameManager::unlockTypeToIconType(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  switch ( a2 )\n  {\n    case 4:\n      result = 1;\n      break;\n    case 5:\n      result = 2;\n      break;\n    case 6:\n      result = 3;\n      break;\n    case 7:\n      result = 4;\n      break;\n    case 8:\n      result = 5;\n      break;\n    case 9:\n      result = 6;\n      break;\n    case 10:\n      result = 99;\n      break;\n    case 11:\n      result = 98;\n      break;\n    case 12:\n      result = 100;\n      break;\n    case 13:\n      result = 7;\n      break;\n    case 14:\n      result = 8;\n      break;\n    case 15:\n      result = 101;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::unlockTypeToIconType from 0x1402775d0 to 0x140277638 (104 bytes)\n; \n; 2 xrefs:\n; > GJItemIcon::init @ 0x14038389a\n; > ItemInfoPopup::init @ 0x140384d35\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:28:56 +0000\n; \ndec     edx; switch 15 cases                                           ; +0x0, 0x1402775d0\ncmp     edx, 0Eh                                                       ; +0x2, 0x1402775d2\nja      short def_1402775EB; jumptable 00000001402775EB default case, cases 1-3 ; +0x5, 0x1402775d5\nmovsxd  rax, edx                                                       ; +0x7, 0x1402775d7\nlea     rdx, cs:140000000h                                             ; +0xa, 0x1402775da\nmov     ecx, ds:(jpt_1402775EB - 140000000h)[rdx+rax*4]                ; +0x11, 0x1402775e1\nadd     rcx, rdx                                                       ; +0x18, 0x1402775e8\njmp     rcx; switch jump                                               ; +0x1b, 0x1402775eb\nmov     eax, 1; jumptable 00000001402775EB case 4                      ; +0x1d, 0x1402775ed\nretn                                                                   ; +0x22, 0x1402775f2\nmov     eax, 2; jumptable 00000001402775EB case 5                      ; +0x23, 0x1402775f3\nretn                                                                   ; +0x28, 0x1402775f8\nmov     eax, 3; jumptable 00000001402775EB case 6                      ; +0x29, 0x1402775f9\nretn                                                                   ; +0x2e, 0x1402775fe\nmov     eax, 4; jumptable 00000001402775EB case 7                      ; +0x2f, 0x1402775ff\nretn                                                                   ; +0x34, 0x140277604\nmov     eax, 5; jumptable 00000001402775EB case 8                      ; +0x35, 0x140277605\nretn                                                                   ; +0x3a, 0x14027760a\nmov     eax, 6; jumptable 00000001402775EB case 9                      ; +0x3b, 0x14027760b\nretn                                                                   ; +0x40, 0x140277610\nmov     eax, 7; jumptable 00000001402775EB case 13                     ; +0x41, 0x140277611\nretn                                                                   ; +0x46, 0x140277616\nmov     eax, 63h ; 'c'; jumptable 00000001402775EB case 10             ; +0x47, 0x140277617\nretn                                                                   ; +0x4c, 0x14027761c\nmov     eax, 62h ; 'b'; jumptable 00000001402775EB case 11             ; +0x4d, 0x14027761d\nretn                                                                   ; +0x52, 0x140277622\nmov     eax, 64h ; 'd'; jumptable 00000001402775EB case 12             ; +0x53, 0x140277623\nretn                                                                   ; +0x58, 0x140277628\nmov     eax, 8; jumptable 00000001402775EB case 14                     ; +0x59, 0x140277629\nretn                                                                   ; +0x5e, 0x14027762e\nmov     eax, 65h ; 'e'; jumptable 00000001402775EB case 15             ; +0x5f, 0x14027762f\nretn                                                                   ; +0x64, 0x140277634\nxor     eax, eax; jumptable 00000001402775EB default case, cases 1-3   ; +0x65, 0x140277635\nretn                                                                   ; +0x67, 0x140277637", "xrefs": ["GJItemIcon::init @ 0x14038389a", "ItemInfoPopup::init @ 0x140384d35"], "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"}