{"type": "func", "start": 4298189584, "end": 4298189828, "name": "GameManager::iconTypeToUnlockType", "pseudocode": "// \n// GameManager::iconTypeToUnlockType from 0x100312b10 to 0x100312c04 (244 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::getItems @ 0x1003056cc\n// > GJGarageLayer::onSelect @ 0x1003059d4\n// > GJGarageLayer::onSelect @ 0x100305d90\n// > GJGarageLayer::onToggleItem @ 0x100305fc0\n// > GameManager::isIconUnlocked @ 0x100312ac8\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  if ( a2 > Robot )\n  {\n    if ( a2 <= 97 )\n    {\n      switch ( a2 )\n      {\n        case Spider:\n          return 9;\n        case Swing:\n          return GJItem|0x1;\n        case Jetpack:\n          return GJItem|Col1;\n      }\n    }\n    else\n    {\n      if ( a2 <= Special )\n      {\n        if ( a2 == DeathEffect )\n          return Death;\n        else\n          return Streak;\n      }\n      if ( a2 == Item )\n        return GJItem;\n      if ( a2 == ShipFire )\n        return GJItem|Col2;\n    }\n    return 0;\n  }\n  if ( a2 <= Ball )\n  {\n    switch ( a2 )\n    {\n      case Cube:\n        return 1;\n      case Ship:\n        return 4;\n      case Ball:\n        return 5;\n    }\n    return 0;\n  }\n  if ( a2 == Ufo )\n    return Bird;\n  if ( a2 == Wave )\n    return Dart;\n  return 8;\n}", "assembly": "; \n; GameManager::iconTypeToUnlockType from 0x100312b10 to 0x100312c04 (244 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::getItems @ 0x1003056cc\n; > GJGarageLayer::onSelect @ 0x1003059d4\n; > GJGarageLayer::onSelect @ 0x100305d90\n; > GJGarageLayer::onToggleItem @ 0x100305fc0\n; > GameManager::isIconUnlocked @ 0x100312ac8\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             W1, #5                                                 ; +0x0, 0x100312b10\nB.LE            loc_100312B40                                          ; +0x4, 0x100312b14\nCMP             W1, #0x61 ; 'a'                                        ; +0x8, 0x100312b18\nB.LE            loc_100312B64                                          ; +0xc, 0x100312b1c\nCMP             W1, #0x63 ; 'c'                                        ; +0x10, 0x100312b20\nB.GT            loc_100312BA4                                          ; +0x14, 0x100312b24\nCMP             W1, #0x62 ; 'b'                                        ; +0x18, 0x100312b28\nB.EQ            loc_100312BBC                                          ; +0x1c, 0x100312b2c\nCMP             W1, #0x63 ; 'c'                                        ; +0x20, 0x100312b30\nB.NE            loc_100312BFC                                          ; +0x24, 0x100312b34\nMOV             W0, #0xA                                               ; +0x28, 0x100312b38\nRET                                                                    ; +0x2c, 0x100312b3c\nCMP             W1, #2                                                 ; +0x30, 0x100312b40\nB.GT            loc_100312B84                                          ; +0x34, 0x100312b44\nCBZ             W1, loc_100312BDC                                      ; +0x38, 0x100312b48\nCMP             W1, #1                                                 ; +0x3c, 0x100312b4c\nB.EQ            loc_100312BEC                                          ; +0x40, 0x100312b50\nCMP             W1, #2                                                 ; +0x44, 0x100312b54\nB.NE            loc_100312BFC                                          ; +0x48, 0x100312b58\nMOV             W0, #5                                                 ; +0x4c, 0x100312b5c\nRET                                                                    ; +0x50, 0x100312b60\nCMP             W1, #6                                                 ; +0x54, 0x100312b64\nB.EQ            loc_100312BCC                                          ; +0x58, 0x100312b68\nCMP             W1, #7                                                 ; +0x5c, 0x100312b6c\nB.EQ            loc_100312BD4                                          ; +0x60, 0x100312b70\nCMP             W1, #8                                                 ; +0x64, 0x100312b74\nB.NE            loc_100312BFC                                          ; +0x68, 0x100312b78\nMOV             W0, #0xE                                               ; +0x6c, 0x100312b7c\nRET                                                                    ; +0x70, 0x100312b80\nCMP             W1, #3                                                 ; +0x74, 0x100312b84\nB.EQ            loc_100312BE4                                          ; +0x78, 0x100312b88\nCMP             W1, #4                                                 ; +0x7c, 0x100312b8c\nB.EQ            loc_100312BF4                                          ; +0x80, 0x100312b90\nCMP             W1, #5                                                 ; +0x84, 0x100312b94\nB.NE            loc_100312BFC                                          ; +0x88, 0x100312b98\nMOV             W0, #8                                                 ; +0x8c, 0x100312b9c\nRET                                                                    ; +0x90, 0x100312ba0\nCMP             W1, #0x64 ; 'd'                                        ; +0x94, 0x100312ba4\nB.EQ            loc_100312BC4                                          ; +0x98, 0x100312ba8\nCMP             W1, #0x65 ; 'e'                                        ; +0x9c, 0x100312bac\nB.NE            loc_100312BFC                                          ; +0xa0, 0x100312bb0\nMOV             W0, #0xF                                               ; +0xa4, 0x100312bb4\nRET                                                                    ; +0xa8, 0x100312bb8\nMOV             W0, #0xB                                               ; +0xac, 0x100312bbc\nRET                                                                    ; +0xb0, 0x100312bc0\nMOV             W0, #0xC                                               ; +0xb4, 0x100312bc4\nRET                                                                    ; +0xb8, 0x100312bc8\nMOV             W0, #9                                                 ; +0xbc, 0x100312bcc\nRET                                                                    ; +0xc0, 0x100312bd0\nMOV             W0, #0xD                                               ; +0xc4, 0x100312bd4\nRET                                                                    ; +0xc8, 0x100312bd8\nMOV             W0, #1                                                 ; +0xcc, 0x100312bdc\nRET                                                                    ; +0xd0, 0x100312be0\nMOV             W0, #6                                                 ; +0xd4, 0x100312be4\nRET                                                                    ; +0xd8, 0x100312be8\nMOV             W0, #4                                                 ; +0xdc, 0x100312bec\nRET                                                                    ; +0xe0, 0x100312bf0\nMOV             W0, #7                                                 ; +0xe4, 0x100312bf4\nRET                                                                    ; +0xe8, 0x100312bf8\nMOV             W0, #0                                                 ; +0xec, 0x100312bfc\nRET                                                                    ; +0xf0, 0x100312c00", "xrefs": ["GJGarageLayer::getItems @ 0x1003056cc", "GJGarageLayer::onSelect @ 0x1003059d4", "GJGarageLayer::onSelect @ 0x100305d90", "GJGarageLayer::onToggleItem @ 0x100305fc0", "GameManager::isIconUnlocked @ 0x100312ac8"], "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"}