{"type": "func", "start": 4298831908, "end": 4298832152, "name": "GameManager::iconTypeToUnlockType", "pseudocode": "// \n// GameManager::iconTypeToUnlockType from 0x1003af824 to 0x1003af918 (244 bytes)\n// \n// 6 xrefs:\n// > sub_10022E664 @ 0x10022e694\n// > GJGarageLayer::getItems @ 0x1003a23dc\n// > GJGarageLayer::onSelect @ 0x1003a26e4\n// > GJGarageLayer::onSelect @ 0x1003a2aa0\n// > sub_1003A2C94 @ 0x1003a2cd0\n// > GameManager::isIconUnlocked @ 0x1003af7dc\n// \n// This function is hookable on this platform (idp: arm, 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 11:03:53 +0000\n// \n\n__int64 __fastcall GameManager::iconTypeToUnlockType(__int64 a1, int a2)\n{\n  if ( a2 > 5 )\n  {\n    if ( a2 <= 97 )\n    {\n      switch ( a2 )\n      {\n        case 6:\n          return 9;\n        case 7:\n          return 13;\n        case 8:\n          return 14;\n      }\n    }\n    else\n    {\n      if ( a2 <= 99 )\n      {\n        if ( a2 == 98 )\n          return 11;\n        else\n          return 10;\n      }\n      if ( a2 == 100 )\n        return 12;\n      if ( a2 == 101 )\n        return 15;\n    }\n    return 0;\n  }\n  if ( a2 <= 2 )\n  {\n    switch ( a2 )\n    {\n      case 0:\n        return 1;\n      case 1:\n        return 4;\n      case 2:\n        return 5;\n    }\n    return 0;\n  }\n  if ( a2 == 3 )\n    return 6;\n  if ( a2 == 4 )\n    return 7;\n  return 8;\n}", "assembly": "; \n; GameManager::iconTypeToUnlockType from 0x1003af824 to 0x1003af918 (244 bytes)\n; \n; 6 xrefs:\n; > sub_10022E664 @ 0x10022e694\n; > GJGarageLayer::getItems @ 0x1003a23dc\n; > GJGarageLayer::onSelect @ 0x1003a26e4\n; > GJGarageLayer::onSelect @ 0x1003a2aa0\n; > sub_1003A2C94 @ 0x1003a2cd0\n; > GameManager::isIconUnlocked @ 0x1003af7dc\n; \n; This function is hookable on this platform (idp: arm, 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 11:03:53 +0000\n; \nCMP             W1, #5                                                 ; +0x0, 0x1003af824\nB.LE            loc_1003AF854                                          ; +0x4, 0x1003af828\nCMP             W1, #0x61 ; 'a'                                        ; +0x8, 0x1003af82c\nB.LE            loc_1003AF878                                          ; +0xc, 0x1003af830\nCMP             W1, #0x63 ; 'c'                                        ; +0x10, 0x1003af834\nB.GT            loc_1003AF8B8                                          ; +0x14, 0x1003af838\nCMP             W1, #0x62 ; 'b'                                        ; +0x18, 0x1003af83c\nB.EQ            loc_1003AF8D0                                          ; +0x1c, 0x1003af840\nCMP             W1, #0x63 ; 'c'                                        ; +0x20, 0x1003af844\nB.NE            loc_1003AF910                                          ; +0x24, 0x1003af848\nMOV             W0, #0xA                                               ; +0x28, 0x1003af84c\nRET                                                                    ; +0x2c, 0x1003af850\nCMP             W1, #2                                                 ; +0x30, 0x1003af854\nB.GT            loc_1003AF898                                          ; +0x34, 0x1003af858\nCBZ             W1, loc_1003AF8F0                                      ; +0x38, 0x1003af85c\nCMP             W1, #1                                                 ; +0x3c, 0x1003af860\nB.EQ            loc_1003AF900                                          ; +0x40, 0x1003af864\nCMP             W1, #2                                                 ; +0x44, 0x1003af868\nB.NE            loc_1003AF910                                          ; +0x48, 0x1003af86c\nMOV             W0, #5                                                 ; +0x4c, 0x1003af870\nRET                                                                    ; +0x50, 0x1003af874\nCMP             W1, #6                                                 ; +0x54, 0x1003af878\nB.EQ            loc_1003AF8E0                                          ; +0x58, 0x1003af87c\nCMP             W1, #7                                                 ; +0x5c, 0x1003af880\nB.EQ            loc_1003AF8E8                                          ; +0x60, 0x1003af884\nCMP             W1, #8                                                 ; +0x64, 0x1003af888\nB.NE            loc_1003AF910                                          ; +0x68, 0x1003af88c\nMOV             W0, #0xE                                               ; +0x6c, 0x1003af890\nRET                                                                    ; +0x70, 0x1003af894\nCMP             W1, #3                                                 ; +0x74, 0x1003af898\nB.EQ            loc_1003AF8F8                                          ; +0x78, 0x1003af89c\nCMP             W1, #4                                                 ; +0x7c, 0x1003af8a0\nB.EQ            loc_1003AF908                                          ; +0x80, 0x1003af8a4\nCMP             W1, #5                                                 ; +0x84, 0x1003af8a8\nB.NE            loc_1003AF910                                          ; +0x88, 0x1003af8ac\nMOV             W0, #8                                                 ; +0x8c, 0x1003af8b0\nRET                                                                    ; +0x90, 0x1003af8b4\nCMP             W1, #0x64 ; 'd'                                        ; +0x94, 0x1003af8b8\nB.EQ            loc_1003AF8D8                                          ; +0x98, 0x1003af8bc\nCMP             W1, #0x65 ; 'e'                                        ; +0x9c, 0x1003af8c0\nB.NE            loc_1003AF910                                          ; +0xa0, 0x1003af8c4\nMOV             W0, #0xF                                               ; +0xa4, 0x1003af8c8\nRET                                                                    ; +0xa8, 0x1003af8cc\nMOV             W0, #0xB                                               ; +0xac, 0x1003af8d0\nRET                                                                    ; +0xb0, 0x1003af8d4\nMOV             W0, #0xC                                               ; +0xb4, 0x1003af8d8\nRET                                                                    ; +0xb8, 0x1003af8dc\nMOV             W0, #9                                                 ; +0xbc, 0x1003af8e0\nRET                                                                    ; +0xc0, 0x1003af8e4\nMOV             W0, #0xD                                               ; +0xc4, 0x1003af8e8\nRET                                                                    ; +0xc8, 0x1003af8ec\nMOV             W0, #1                                                 ; +0xcc, 0x1003af8f0\nRET                                                                    ; +0xd0, 0x1003af8f4\nMOV             W0, #6                                                 ; +0xd4, 0x1003af8f8\nRET                                                                    ; +0xd8, 0x1003af8fc\nMOV             W0, #4                                                 ; +0xdc, 0x1003af900\nRET                                                                    ; +0xe0, 0x1003af904\nMOV             W0, #7                                                 ; +0xe4, 0x1003af908\nRET                                                                    ; +0xe8, 0x1003af90c\nMOV             W0, #0                                                 ; +0xec, 0x1003af910\nRET                                                                    ; +0xf0, 0x1003af914", "xrefs": ["sub_10022E664 @ 0x10022e694", "GJGarageLayer::getItems @ 0x1003a23dc", "GJGarageLayer::onSelect @ 0x1003a26e4", "GJGarageLayer::onSelect @ 0x1003a2aa0", "sub_1003A2C94 @ 0x1003a2cd0", "GameManager::isIconUnlocked @ 0x1003af7dc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}