{"type": "func", "start": 5370267392, "end": 5370267496, "name": "GameManager::unlockTypeToIconType", "pseudocode": "// \n// GameManager::unlockTypeToIconType from 0x14017c700 to 0x14017c768 (104 bytes)\n// \n// 2 xrefs:\n// > GJItemIcon::init @ 0x14027ae74\n// > ItemInfoPopup::init @ 0x14027c28a\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\nIconType GameManager::unlockTypeToIconType(GameManager *a1, int a2)\n{\n  IconType result; // eax\n\n  switch ( a2 )\n  {\n    case 4:\n      result = Ship;\n      break;\n    case 5:\n      result = Ball;\n      break;\n    case 6:\n      result = Ufo;\n      break;\n    case 7:\n      result = Wave;\n      break;\n    case 8:\n      result = Robot;\n      break;\n    case 9:\n      result = Spider;\n      break;\n    case 10:\n      result = Special;\n      break;\n    case 11:\n      result = DeathEffect;\n      break;\n    case 12:\n      result = Item;\n      break;\n    case 13:\n      result = Swing;\n      break;\n    case 14:\n      result = Jetpack;\n      break;\n    case 15:\n      result = ShipFire;\n      break;\n    default:\n      result = Cube;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::unlockTypeToIconType from 0x14017c700 to 0x14017c768 (104 bytes)\n; \n; 2 xrefs:\n; > GJItemIcon::init @ 0x14027ae74\n; > ItemInfoPopup::init @ 0x14027c28a\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\ndec     edx; switch 15 cases                                           ; +0x0, 0x14017c700\ncmp     edx, 0Eh                                                       ; +0x2, 0x14017c702\nja      short def_14017C71B; jumptable 000000014017C71B default case, cases 1-3 ; +0x5, 0x14017c705\nmovsxd  rax, edx                                                       ; +0x7, 0x14017c707\nlea     rdx, cs:140000000h                                             ; +0xa, 0x14017c70a\nmov     ecx, ds:(jpt_14017C71B - 140000000h)[rdx+rax*4]                ; +0x11, 0x14017c711\nadd     rcx, rdx                                                       ; +0x18, 0x14017c718\njmp     rcx; switch jump                                               ; +0x1b, 0x14017c71b\nmov     eax, 1; jumptable 000000014017C71B case 4                      ; +0x1d, 0x14017c71d\nretn                                                                   ; +0x22, 0x14017c722\nmov     eax, 2; jumptable 000000014017C71B case 5                      ; +0x23, 0x14017c723\nretn                                                                   ; +0x28, 0x14017c728\nmov     eax, 3; jumptable 000000014017C71B case 6                      ; +0x29, 0x14017c729\nretn                                                                   ; +0x2e, 0x14017c72e\nmov     eax, 4; jumptable 000000014017C71B case 7                      ; +0x2f, 0x14017c72f\nretn                                                                   ; +0x34, 0x14017c734\nmov     eax, 5; jumptable 000000014017C71B case 8                      ; +0x35, 0x14017c735\nretn                                                                   ; +0x3a, 0x14017c73a\nmov     eax, 6; jumptable 000000014017C71B case 9                      ; +0x3b, 0x14017c73b\nretn                                                                   ; +0x40, 0x14017c740\nmov     eax, 7; jumptable 000000014017C71B case 13                     ; +0x41, 0x14017c741\nretn                                                                   ; +0x46, 0x14017c746\nmov     eax, 63h ; 'c'; jumptable 000000014017C71B case 10             ; +0x47, 0x14017c747\nretn                                                                   ; +0x4c, 0x14017c74c\nmov     eax, 62h ; 'b'; jumptable 000000014017C71B case 11             ; +0x4d, 0x14017c74d\nretn                                                                   ; +0x52, 0x14017c752\nmov     eax, 64h ; 'd'; jumptable 000000014017C71B case 12             ; +0x53, 0x14017c753\nretn                                                                   ; +0x58, 0x14017c758\nmov     eax, 8; jumptable 000000014017C71B case 14                     ; +0x59, 0x14017c759\nretn                                                                   ; +0x5e, 0x14017c75e\nmov     eax, 65h ; 'e'; jumptable 000000014017C71B case 15             ; +0x5f, 0x14017c75f\nretn                                                                   ; +0x64, 0x14017c764\nxor     eax, eax; jumptable 000000014017C71B default case, cases 1-3   ; +0x65, 0x14017c765\nretn                                                                   ; +0x67, 0x14017c767", "xrefs": ["GJItemIcon::init @ 0x14027ae74", "ItemInfoPopup::init @ 0x14027c28a"], "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"}