{"type": "func", "start": 4298851268, "end": 4298851540, "name": "GameManager::activeIconForType", "pseudocode": "// \n// GameManager::activeIconForType from 0x1003b43c4 to 0x1003b44d4 (272 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::onArrow @ 0x1003a1738\n// > GJGarageLayer::setupPage @ 0x1003a1920\n// > GJGarageLayer::getItems_1 @ 0x1003a25e8\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:55 +0000\n// \n\n__int64 __fastcall GameManager::activeIconForType(_DWORD *a1, int a2)\n{\n  __int64 result; // x0\n  int v4; // w9\n  int v5; // w8\n\n  result = 0;\n  if ( a2 > 5 )\n  {\n    if ( a2 > 97 )\n    {\n      switch ( a2 )\n      {\n        case 'b':\n          v4 = a1[218];\n          v5 = a1[219];\n          break;\n        case 'c':\n          v4 = a1[212];\n          v5 = a1[213];\n          break;\n        case 'e':\n          v4 = a1[215];\n          v5 = a1[216];\n          break;\n        default:\n          return result;\n      }\n    }\n    else\n    {\n      switch ( a2 )\n      {\n        case 6:\n          v4 = a1[197];\n          v5 = a1[198];\n          break;\n        case 7:\n          v4 = a1[200];\n          v5 = a1[201];\n          break;\n        case 8:\n          v4 = a1[221];\n          v5 = a1[222];\n          break;\n        default:\n          return result;\n      }\n    }\n  }\n  else if ( a2 > 2 )\n  {\n    if ( a2 == 3 )\n    {\n      v4 = a1[188];\n      v5 = a1[189];\n    }\n    else if ( a2 == 4 )\n    {\n      v4 = a1[191];\n      v5 = a1[192];\n    }\n    else\n    {\n      v4 = a1[194];\n      v5 = a1[195];\n    }\n  }\n  else if ( a2 )\n  {\n    if ( a2 == 1 )\n    {\n      v4 = a1[182];\n      v5 = a1[183];\n    }\n    else\n    {\n      if ( a2 != 2 )\n        return result;\n      v4 = a1[185];\n      v5 = a1[186];\n    }\n  }\n  else\n  {\n    v4 = a1[179];\n    v5 = a1[180];\n  }\n  return (unsigned int)(v4 - v5);\n}", "assembly": "; \n; GameManager::activeIconForType from 0x1003b43c4 to 0x1003b44d4 (272 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::onArrow @ 0x1003a1738\n; > GJGarageLayer::setupPage @ 0x1003a1920\n; > GJGarageLayer::getItems_1 @ 0x1003a25e8\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:55 +0000\n; \nMOV             X8, X0                                                 ; +0x0, 0x1003b43c4\nMOV             W0, #0                                                 ; +0x4, 0x1003b43c8\nCMP             W1, #5                                                 ; +0x8, 0x1003b43cc\nB.GT            loc_1003B43FC                                          ; +0xc, 0x1003b43d0\nCMP             W1, #2                                                 ; +0x10, 0x1003b43d4\nB.GT            loc_1003B4428                                          ; +0x14, 0x1003b43d8\nCBZ             W1, loc_1003B4470                                      ; +0x18, 0x1003b43dc\nCMP             W1, #1                                                 ; +0x1c, 0x1003b43e0\nB.EQ            loc_1003B44A0                                          ; +0x20, 0x1003b43e4\nCMP             W1, #2                                                 ; +0x24, 0x1003b43e8\nB.NE            locret_1003B44D0                                       ; +0x28, 0x1003b43ec\nLDR             W9, [X8,#0x2E4]                                        ; +0x2c, 0x1003b43f0\nLDR             W8, [X8,#0x2E8]                                        ; +0x30, 0x1003b43f4\nB               loc_1003B44CC                                          ; +0x34, 0x1003b43f8\nCMP             W1, #0x61 ; 'a'                                        ; +0x38, 0x1003b43fc\nB.GT            loc_1003B444C                                          ; +0x3c, 0x1003b4400\nCMP             W1, #6                                                 ; +0x40, 0x1003b4404\nB.EQ            loc_1003B447C                                          ; +0x44, 0x1003b4408\nCMP             W1, #7                                                 ; +0x48, 0x1003b440c\nB.EQ            loc_1003B44AC                                          ; +0x4c, 0x1003b4410\nCMP             W1, #8                                                 ; +0x50, 0x1003b4414\nB.NE            locret_1003B44D0                                       ; +0x54, 0x1003b4418\nLDR             W9, [X8,#0x374]                                        ; +0x58, 0x1003b441c\nLDR             W8, [X8,#0x378]                                        ; +0x5c, 0x1003b4420\nB               loc_1003B44CC                                          ; +0x60, 0x1003b4424\nCMP             W1, #3                                                 ; +0x64, 0x1003b4428\nB.EQ            loc_1003B4488                                          ; +0x68, 0x1003b442c\nCMP             W1, #4                                                 ; +0x6c, 0x1003b4430\nB.EQ            loc_1003B44B8                                          ; +0x70, 0x1003b4434\nCMP             W1, #5                                                 ; +0x74, 0x1003b4438\nB.NE            locret_1003B44D0                                       ; +0x78, 0x1003b443c\nLDR             W9, [X8,#0x308]                                        ; +0x7c, 0x1003b4440\nLDR             W8, [X8,#0x30C]                                        ; +0x80, 0x1003b4444\nB               loc_1003B44CC                                          ; +0x84, 0x1003b4448\nCMP             W1, #0x62 ; 'b'                                        ; +0x88, 0x1003b444c\nB.EQ            loc_1003B4494                                          ; +0x8c, 0x1003b4450\nCMP             W1, #0x63 ; 'c'                                        ; +0x90, 0x1003b4454\nB.EQ            loc_1003B44C4                                          ; +0x94, 0x1003b4458\nCMP             W1, #0x65 ; 'e'                                        ; +0x98, 0x1003b445c\nB.NE            locret_1003B44D0                                       ; +0x9c, 0x1003b4460\nLDR             W9, [X8,#0x35C]                                        ; +0xa0, 0x1003b4464\nLDR             W8, [X8,#0x360]                                        ; +0xa4, 0x1003b4468\nB               loc_1003B44CC                                          ; +0xa8, 0x1003b446c\nLDR             W9, [X8,#0x2CC]                                        ; +0xac, 0x1003b4470\nLDR             W8, [X8,#0x2D0]                                        ; +0xb0, 0x1003b4474\nB               loc_1003B44CC                                          ; +0xb4, 0x1003b4478\nLDR             W9, [X8,#0x314]                                        ; +0xb8, 0x1003b447c\nLDR             W8, [X8,#0x318]                                        ; +0xbc, 0x1003b4480\nB               loc_1003B44CC                                          ; +0xc0, 0x1003b4484\nLDR             W9, [X8,#0x2F0]                                        ; +0xc4, 0x1003b4488\nLDR             W8, [X8,#0x2F4]                                        ; +0xc8, 0x1003b448c\nB               loc_1003B44CC                                          ; +0xcc, 0x1003b4490\nLDR             W9, [X8,#0x368]                                        ; +0xd0, 0x1003b4494\nLDR             W8, [X8,#0x36C]                                        ; +0xd4, 0x1003b4498\nB               loc_1003B44CC                                          ; +0xd8, 0x1003b449c\nLDR             W9, [X8,#0x2D8]                                        ; +0xdc, 0x1003b44a0\nLDR             W8, [X8,#0x2DC]                                        ; +0xe0, 0x1003b44a4\nB               loc_1003B44CC                                          ; +0xe4, 0x1003b44a8\nLDR             W9, [X8,#0x320]                                        ; +0xe8, 0x1003b44ac\nLDR             W8, [X8,#0x324]                                        ; +0xec, 0x1003b44b0\nB               loc_1003B44CC                                          ; +0xf0, 0x1003b44b4\nLDR             W9, [X8,#0x2FC]                                        ; +0xf4, 0x1003b44b8\nLDR             W8, [X8,#0x300]                                        ; +0xf8, 0x1003b44bc\nB               loc_1003B44CC                                          ; +0xfc, 0x1003b44c0\nLDR             W9, [X8,#0x350]                                        ; +0x100, 0x1003b44c4\nLDR             W8, [X8,#0x354]                                        ; +0x104, 0x1003b44c8\nSUB             W0, W9, W8                                             ; +0x108, 0x1003b44cc\nRET                                                                    ; +0x10c, 0x1003b44d0", "xrefs": ["GJGarageLayer::onArrow @ 0x1003a1738", "GJGarageLayer::setupPage @ 0x1003a1920", "GJGarageLayer::getItems_1 @ 0x1003a25e8"], "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"}