{"type": "func", "start": 5370267104, "end": 5370267220, "name": "GameManager::iconTypeToUnlockType", "pseudocode": "// \n// GameManager::iconTypeToUnlockType from 0x14017c5e0 to 0x14017c654 (116 bytes)\n// \n// 5 xrefs:\n// > GameManager::isIconUnlocked @ 0x14017c56f\n// > GJGarageLayer::getItems @ 0x140276875\n// > GJGarageLayer::onSelect @ 0x14027722b\n// > GJGarageLayer::onSelect @ 0x140277703\n// > GJGarageLayer::onToggleItem @ 0x140277886\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\nUnlockType GameManager::iconTypeToUnlockType(GameManager *a1, IconType a2)\n{\n  UnlockType result; // eax\n\n  switch ( a2 )\n  {\n    case Cube:\n      result = 1;\n      break;\n    case Ship:\n      result = 4;\n      break;\n    case Ball:\n      result = 5;\n      break;\n    case Ufo:\n      result = Bird;\n      break;\n    case Wave:\n      result = Dart;\n      break;\n    case Robot:\n      result = 8;\n      break;\n    case Spider:\n      result = 9;\n      break;\n    case Swing:\n      result = GJItem|0x1;\n      break;\n    case Jetpack:\n      result = GJItem|Col1;\n      break;\n    case DeathEffect:\n      result = Death;\n      break;\n    case Special:\n      result = Streak;\n      break;\n    case Item:\n      result = GJItem;\n      break;\n    case ShipFire:\n      result = GJItem|Col2;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::iconTypeToUnlockType from 0x14017c5e0 to 0x14017c654 (116 bytes)\n; \n; 5 xrefs:\n; > GameManager::isIconUnlocked @ 0x14017c56f\n; > GJGarageLayer::getItems @ 0x140276875\n; > GJGarageLayer::onSelect @ 0x14027722b\n; > GJGarageLayer::onSelect @ 0x140277703\n; > GJGarageLayer::onToggleItem @ 0x140277886\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\ncmp     edx, 65h; switch 102 cases                                     ; +0x0, 0x14017c5e0\nja      short def_14017C601; jumptable 000000014017C601 default case, cases 9-97 ; +0x3, 0x14017c5e3\nmovsxd  rax, edx                                                       ; +0x5, 0x14017c5e5\nlea     rdx, cs:140000000h                                             ; +0x8, 0x14017c5e8\nmovzx   eax, ds:(byte_14017C68C - 140000000h)[rdx+rax]                 ; +0xf, 0x14017c5ef\nmov     ecx, ds:(jpt_14017C601 - 140000000h)[rdx+rax*4]                ; +0x17, 0x14017c5f7\nadd     rcx, rdx                                                       ; +0x1e, 0x14017c5fe\njmp     rcx; switch jump                                               ; +0x21, 0x14017c601\nmov     eax, 1; jumptable 000000014017C601 case 0                      ; +0x23, 0x14017c603\nretn                                                                   ; +0x28, 0x14017c608\nmov     eax, 4; jumptable 000000014017C601 case 1                      ; +0x29, 0x14017c609\nretn                                                                   ; +0x2e, 0x14017c60e\nmov     eax, 5; jumptable 000000014017C601 case 2                      ; +0x2f, 0x14017c60f\nretn                                                                   ; +0x34, 0x14017c614\nmov     eax, 6; jumptable 000000014017C601 case 3                      ; +0x35, 0x14017c615\nretn                                                                   ; +0x3a, 0x14017c61a\nmov     eax, 7; jumptable 000000014017C601 case 4                      ; +0x3b, 0x14017c61b\nretn                                                                   ; +0x40, 0x14017c620\nmov     eax, 8; jumptable 000000014017C601 case 5                      ; +0x41, 0x14017c621\nretn                                                                   ; +0x46, 0x14017c626\nmov     eax, 9; jumptable 000000014017C601 case 6                      ; +0x47, 0x14017c627\nretn                                                                   ; +0x4c, 0x14017c62c\nmov     eax, 0Dh; jumptable 000000014017C601 case 7                    ; +0x4d, 0x14017c62d\nretn                                                                   ; +0x52, 0x14017c632\nmov     eax, 0Ah; jumptable 000000014017C601 case 99                   ; +0x53, 0x14017c633\nretn                                                                   ; +0x58, 0x14017c638\nmov     eax, 0Bh; jumptable 000000014017C601 case 98                   ; +0x59, 0x14017c639\nretn                                                                   ; +0x5e, 0x14017c63e\nmov     eax, 0Ch; jumptable 000000014017C601 case 100                  ; +0x5f, 0x14017c63f\nretn                                                                   ; +0x64, 0x14017c644\nmov     eax, 0Eh; jumptable 000000014017C601 case 8                    ; +0x65, 0x14017c645\nretn                                                                   ; +0x6a, 0x14017c64a\nmov     eax, 0Fh; jumptable 000000014017C601 case 101                  ; +0x6b, 0x14017c64b\nretn                                                                   ; +0x70, 0x14017c650\nxor     eax, eax; jumptable 000000014017C601 default case, cases 9-97  ; +0x71, 0x14017c651\nretn                                                                   ; +0x73, 0x14017c653", "xrefs": ["GameManager::isIconUnlocked @ 0x14017c56f", "GJGarageLayer::getItems @ 0x140276875", "GJGarageLayer::onSelect @ 0x14027722b", "GJGarageLayer::onSelect @ 0x140277703", "GJGarageLayer::onToggleItem @ 0x140277886"], "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"}