{"type": "func", "start": 4298511232, "end": 4298511354, "name": "GameManager::iconTypeToUnlockType", "pseudocode": "// \n// GameManager::iconTypeToUnlockType from 0x100361380 to 0x1003613fa (122 bytes)\n// \n// 6 xrefs:\n// > GJGarageLayer::getItems @ 0x100356f6b\n// > GJGarageLayer::onSelect @ 0x100357387\n// > GJGarageLayer::onSelect @ 0x10035777f\n// > GJGarageLayer::onToggleItem @ 0x100357b62\n// > GameManager::isIconUnlocked @ 0x100361336\n// > ProfilePage::onIconInfo @ 0x1008a3320\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 12: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 0x100361380 to 0x1003613fa (122 bytes)\n; \n; 6 xrefs:\n; > GJGarageLayer::getItems @ 0x100356f6b\n; > GJGarageLayer::onSelect @ 0x100357387\n; > GJGarageLayer::onSelect @ 0x10035777f\n; > GJGarageLayer::onToggleItem @ 0x100357b62\n; > GameManager::isIconUnlocked @ 0x100361336\n; > ProfilePage::onIconInfo @ 0x1008a3320\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 12:28:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x100361380\nmov     rbp, rsp                                                       ; +0x1, 0x100361381\ncmp     esi, 65h; switch 102 cases                                     ; +0x4, 0x100361384\nja      short def_100361399; jumptable 0000000100361399 default case, cases 9-97 ; +0x7, 0x100361387\nmov     eax, esi                                                       ; +0x9, 0x100361389\nlea     rcx, jpt_100361399                                             ; +0xb, 0x10036138b\nmovsxd  rax, (jpt_100361399 - 1003613FCh)[rcx+rax*4]                   ; +0x12, 0x100361392\nadd     rax, rcx                                                       ; +0x16, 0x100361396\njmp     rax; switch jump                                               ; +0x19, 0x100361399\nmov     eax, 1; jumptable 0000000100361399 case 0                      ; +0x1b, 0x10036139b\npop     rbp                                                            ; +0x20, 0x1003613a0\nretn                                                                   ; +0x21, 0x1003613a1\nmov     eax, 0Ah; jumptable 0000000100361399 case 99                   ; +0x22, 0x1003613a2\npop     rbp                                                            ; +0x27, 0x1003613a7\nretn                                                                   ; +0x28, 0x1003613a8\nmov     eax, 7; jumptable 0000000100361399 case 4                      ; +0x29, 0x1003613a9\npop     rbp                                                            ; +0x2e, 0x1003613ae\nretn                                                                   ; +0x2f, 0x1003613af\nmov     eax, 0Fh; jumptable 0000000100361399 case 101                  ; +0x30, 0x1003613b0\npop     rbp                                                            ; +0x35, 0x1003613b5\nretn                                                                   ; +0x36, 0x1003613b6\nmov     eax, 8; jumptable 0000000100361399 case 5                      ; +0x37, 0x1003613b7\npop     rbp                                                            ; +0x3c, 0x1003613bc\nretn                                                                   ; +0x3d, 0x1003613bd\nmov     eax, 0Ch; jumptable 0000000100361399 case 100                  ; +0x3e, 0x1003613be\npop     rbp                                                            ; +0x43, 0x1003613c3\nretn                                                                   ; +0x44, 0x1003613c4\nmov     eax, 6; jumptable 0000000100361399 case 3                      ; +0x45, 0x1003613c5\npop     rbp                                                            ; +0x4a, 0x1003613ca\nretn                                                                   ; +0x4b, 0x1003613cb\nxor     eax, eax; jumptable 0000000100361399 default case, cases 9-97  ; +0x4c, 0x1003613cc\npop     rbp                                                            ; +0x4e, 0x1003613ce\nretn                                                                   ; +0x4f, 0x1003613cf\nmov     eax, 5; jumptable 0000000100361399 case 2                      ; +0x50, 0x1003613d0\npop     rbp                                                            ; +0x55, 0x1003613d5\nretn                                                                   ; +0x56, 0x1003613d6\nmov     eax, 4; jumptable 0000000100361399 case 1                      ; +0x57, 0x1003613d7\npop     rbp                                                            ; +0x5c, 0x1003613dc\nretn                                                                   ; +0x5d, 0x1003613dd\nmov     eax, 9; jumptable 0000000100361399 case 6                      ; +0x5e, 0x1003613de\npop     rbp                                                            ; +0x63, 0x1003613e3\nretn                                                                   ; +0x64, 0x1003613e4\nmov     eax, 0Dh; jumptable 0000000100361399 case 7                    ; +0x65, 0x1003613e5\npop     rbp                                                            ; +0x6a, 0x1003613ea\nretn                                                                   ; +0x6b, 0x1003613eb\nmov     eax, 0Bh; jumptable 0000000100361399 case 98                   ; +0x6c, 0x1003613ec\npop     rbp                                                            ; +0x71, 0x1003613f1\nretn                                                                   ; +0x72, 0x1003613f2\nmov     eax, 0Eh; jumptable 0000000100361399 case 8                    ; +0x73, 0x1003613f3\npop     rbp                                                            ; +0x78, 0x1003613f8\nretn                                                                   ; +0x79, 0x1003613f9", "xrefs": ["GJGarageLayer::getItems @ 0x100356f6b", "GJGarageLayer::onSelect @ 0x100357387", "GJGarageLayer::onSelect @ 0x10035777f", "GJGarageLayer::onToggleItem @ 0x100357b62", "GameManager::isIconUnlocked @ 0x100361336", "ProfilePage::onIconInfo @ 0x1008a3320"], "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"}