{"type": "func", "start": 4298604528, "end": 4298604650, "name": "GameManager::iconTypeToUnlockType", "pseudocode": "// \n// GameManager::iconTypeToUnlockType from 0x100377ff0 to 0x10037806a (122 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::getItems @ 0x10036db4b\n// > GJGarageLayer::onSelect @ 0x10036df67\n// > GJGarageLayer::onSelect @ 0x10036e35f\n// > GJGarageLayer::onToggleItem @ 0x10036e742\n// > GameManager::isIconUnlocked @ 0x100377fa6\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 __fastcall 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 0x100377ff0 to 0x10037806a (122 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::getItems @ 0x10036db4b\n; > GJGarageLayer::onSelect @ 0x10036df67\n; > GJGarageLayer::onSelect @ 0x10036e35f\n; > GJGarageLayer::onToggleItem @ 0x10036e742\n; > GameManager::isIconUnlocked @ 0x100377fa6\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\npush    rbp                                                            ; +0x0, 0x100377ff0\nmov     rbp, rsp                                                       ; +0x1, 0x100377ff1\ncmp     esi, 65h; switch 102 cases                                     ; +0x4, 0x100377ff4\nja      short def_100378009; jumptable 0000000100378009 default case, cases 9-97 ; +0x7, 0x100377ff7\nmov     eax, esi                                                       ; +0x9, 0x100377ff9\nlea     rcx, jpt_100378009                                             ; +0xb, 0x100377ffb\nmovsxd  rax, (jpt_100378009 - 10037806Ch)[rcx+rax*4]                   ; +0x12, 0x100378002\nadd     rax, rcx                                                       ; +0x16, 0x100378006\njmp     rax; switch jump                                               ; +0x19, 0x100378009\nmov     eax, 1; jumptable 0000000100378009 case 0                      ; +0x1b, 0x10037800b\npop     rbp                                                            ; +0x20, 0x100378010\nretn                                                                   ; +0x21, 0x100378011\nmov     eax, 0Ah; jumptable 0000000100378009 case 99                   ; +0x22, 0x100378012\npop     rbp                                                            ; +0x27, 0x100378017\nretn                                                                   ; +0x28, 0x100378018\nmov     eax, 7; jumptable 0000000100378009 case 4                      ; +0x29, 0x100378019\npop     rbp                                                            ; +0x2e, 0x10037801e\nretn                                                                   ; +0x2f, 0x10037801f\nmov     eax, 0Fh; jumptable 0000000100378009 case 101                  ; +0x30, 0x100378020\npop     rbp                                                            ; +0x35, 0x100378025\nretn                                                                   ; +0x36, 0x100378026\nmov     eax, 8; jumptable 0000000100378009 case 5                      ; +0x37, 0x100378027\npop     rbp                                                            ; +0x3c, 0x10037802c\nretn                                                                   ; +0x3d, 0x10037802d\nmov     eax, 0Ch; jumptable 0000000100378009 case 100                  ; +0x3e, 0x10037802e\npop     rbp                                                            ; +0x43, 0x100378033\nretn                                                                   ; +0x44, 0x100378034\nmov     eax, 6; jumptable 0000000100378009 case 3                      ; +0x45, 0x100378035\npop     rbp                                                            ; +0x4a, 0x10037803a\nretn                                                                   ; +0x4b, 0x10037803b\nxor     eax, eax; jumptable 0000000100378009 default case, cases 9-97  ; +0x4c, 0x10037803c\npop     rbp                                                            ; +0x4e, 0x10037803e\nretn                                                                   ; +0x4f, 0x10037803f\nmov     eax, 5; jumptable 0000000100378009 case 2                      ; +0x50, 0x100378040\npop     rbp                                                            ; +0x55, 0x100378045\nretn                                                                   ; +0x56, 0x100378046\nmov     eax, 4; jumptable 0000000100378009 case 1                      ; +0x57, 0x100378047\npop     rbp                                                            ; +0x5c, 0x10037804c\nretn                                                                   ; +0x5d, 0x10037804d\nmov     eax, 9; jumptable 0000000100378009 case 6                      ; +0x5e, 0x10037804e\npop     rbp                                                            ; +0x63, 0x100378053\nretn                                                                   ; +0x64, 0x100378054\nmov     eax, 0Dh; jumptable 0000000100378009 case 7                    ; +0x65, 0x100378055\npop     rbp                                                            ; +0x6a, 0x10037805a\nretn                                                                   ; +0x6b, 0x10037805b\nmov     eax, 0Bh; jumptable 0000000100378009 case 98                   ; +0x6c, 0x10037805c\npop     rbp                                                            ; +0x71, 0x100378061\nretn                                                                   ; +0x72, 0x100378062\nmov     eax, 0Eh; jumptable 0000000100378009 case 8                    ; +0x73, 0x100378063\npop     rbp                                                            ; +0x78, 0x100378068\nretn                                                                   ; +0x79, 0x100378069", "xrefs": ["GJGarageLayer::getItems @ 0x10036db4b", "GJGarageLayer::onSelect @ 0x10036df67", "GJGarageLayer::onSelect @ 0x10036e35f", "GJGarageLayer::onToggleItem @ 0x10036e742", "GameManager::isIconUnlocked @ 0x100377fa6"], "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"}