{"type": "func", "start": 5371294896, "end": 5371295012, "name": "GameManager::iconTypeToUnlockType", "pseudocode": "// \n// GameManager::iconTypeToUnlockType from 0x1402774b0 to 0x140277524 (116 bytes)\n// \n// 6 xrefs:\n// > GameManager::isIconUnlocked @ 0x14027743f\n// > GJGarageLayer::getItems @ 0x14037f1d8\n// > GJGarageLayer::onSelect @ 0x14037fc16\n// > GJGarageLayer::onSelect @ 0x140380109\n// > GJGarageLayer::onToggleItem @ 0x140380286\n// > ProfilePage::onIconInfo @ 0x140555d29\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::iconTypeToUnlockType(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  switch ( a2 )\n  {\n    case 0:\n      result = 1;\n      break;\n    case 1:\n      result = 4;\n      break;\n    case 2:\n      result = 5;\n      break;\n    case 3:\n      result = 6;\n      break;\n    case 4:\n      result = 7;\n      break;\n    case 5:\n      result = 8;\n      break;\n    case 6:\n      result = 9;\n      break;\n    case 7:\n      result = 13;\n      break;\n    case 8:\n      result = 14;\n      break;\n    case 98:\n      result = 11;\n      break;\n    case 99:\n      result = 10;\n      break;\n    case 100:\n      result = 12;\n      break;\n    case 101:\n      result = 15;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::iconTypeToUnlockType from 0x1402774b0 to 0x140277524 (116 bytes)\n; \n; 6 xrefs:\n; > GameManager::isIconUnlocked @ 0x14027743f\n; > GJGarageLayer::getItems @ 0x14037f1d8\n; > GJGarageLayer::onSelect @ 0x14037fc16\n; > GJGarageLayer::onSelect @ 0x140380109\n; > GJGarageLayer::onToggleItem @ 0x140380286\n; > ProfilePage::onIconInfo @ 0x140555d29\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; \ncmp     edx, 65h; switch 102 cases                                     ; +0x0, 0x1402774b0\nja      short def_1402774D1; jumptable 00000001402774D1 default case, cases 9-97 ; +0x3, 0x1402774b3\nmovsxd  rax, edx                                                       ; +0x5, 0x1402774b5\nlea     rdx, cs:140000000h                                             ; +0x8, 0x1402774b8\nmovzx   eax, ds:(byte_14027755C - 140000000h)[rdx+rax]                 ; +0xf, 0x1402774bf\nmov     ecx, ds:(jpt_1402774D1 - 140000000h)[rdx+rax*4]                ; +0x17, 0x1402774c7\nadd     rcx, rdx                                                       ; +0x1e, 0x1402774ce\njmp     rcx; switch jump                                               ; +0x21, 0x1402774d1\nmov     eax, 1; jumptable 00000001402774D1 case 0                      ; +0x23, 0x1402774d3\nretn                                                                   ; +0x28, 0x1402774d8\nmov     eax, 4; jumptable 00000001402774D1 case 1                      ; +0x29, 0x1402774d9\nretn                                                                   ; +0x2e, 0x1402774de\nmov     eax, 5; jumptable 00000001402774D1 case 2                      ; +0x2f, 0x1402774df\nretn                                                                   ; +0x34, 0x1402774e4\nmov     eax, 6; jumptable 00000001402774D1 case 3                      ; +0x35, 0x1402774e5\nretn                                                                   ; +0x3a, 0x1402774ea\nmov     eax, 7; jumptable 00000001402774D1 case 4                      ; +0x3b, 0x1402774eb\nretn                                                                   ; +0x40, 0x1402774f0\nmov     eax, 8; jumptable 00000001402774D1 case 5                      ; +0x41, 0x1402774f1\nretn                                                                   ; +0x46, 0x1402774f6\nmov     eax, 9; jumptable 00000001402774D1 case 6                      ; +0x47, 0x1402774f7\nretn                                                                   ; +0x4c, 0x1402774fc\nmov     eax, 0Dh; jumptable 00000001402774D1 case 7                    ; +0x4d, 0x1402774fd\nretn                                                                   ; +0x52, 0x140277502\nmov     eax, 0Ah; jumptable 00000001402774D1 case 99                   ; +0x53, 0x140277503\nretn                                                                   ; +0x58, 0x140277508\nmov     eax, 0Bh; jumptable 00000001402774D1 case 98                   ; +0x59, 0x140277509\nretn                                                                   ; +0x5e, 0x14027750e\nmov     eax, 0Ch; jumptable 00000001402774D1 case 100                  ; +0x5f, 0x14027750f\nretn                                                                   ; +0x64, 0x140277514\nmov     eax, 0Eh; jumptable 00000001402774D1 case 8                    ; +0x65, 0x140277515\nretn                                                                   ; +0x6a, 0x14027751a\nmov     eax, 0Fh; jumptable 00000001402774D1 case 101                  ; +0x6b, 0x14027751b\nretn                                                                   ; +0x70, 0x140277520\nxor     eax, eax; jumptable 00000001402774D1 default case, cases 9-97  ; +0x71, 0x140277521\nretn                                                                   ; +0x73, 0x140277523", "xrefs": ["GameManager::isIconUnlocked @ 0x14027743f", "GJGarageLayer::getItems @ 0x14037f1d8", "GJGarageLayer::onSelect @ 0x14037fc16", "GJGarageLayer::onSelect @ 0x140380109", "GJGarageLayer::onToggleItem @ 0x140380286", "ProfilePage::onIconInfo @ 0x140555d29"], "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"}