{"type": "func", "start": 4298851540, "end": 4298851760, "name": "GameManager::countForType", "pseudocode": "// \n// GameManager::countForType from 0x1003b44d4 to 0x1003b45b0 (220 bytes)\n// \n// 4 xrefs:\n// > ProfilePage::loadPageFromUserInfo @ 0x10022bde8\n// > GJGarageLayer::onArrow @ 0x1003a1744\n// > GJGarageLayer::setupPage @ 0x1003a1930\n// > GJGarageLayer::getItems_1 @ 0x1003a25d8\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:56 +0000\n// \n\n__int64 __fastcall GameManager::countForType(__int64 a1, int a2)\n{\n  if ( a2 > 5 )\n  {\n    if ( a2 > 97 )\n    {\n      switch ( a2 )\n      {\n        case 'b':\n          return 20;\n        case 'c':\n          return 7;\n        case 'e':\n          return 6;\n      }\n    }\n    else\n    {\n      switch ( a2 )\n      {\n        case 6:\n          return 69;\n        case 7:\n          return 43;\n        case 8:\n          return 8;\n      }\n    }\n    return 0;\n  }\n  if ( a2 <= 2 )\n  {\n    switch ( a2 )\n    {\n      case 0:\n        return 485;\n      case 1:\n        return 169;\n      case 2:\n        return 118;\n    }\n    return 0;\n  }\n  if ( a2 == 3 )\n    return 149;\n  if ( a2 == 4 )\n    return 96;\n  return 68;\n}", "assembly": "; \n; GameManager::countForType from 0x1003b44d4 to 0x1003b45b0 (220 bytes)\n; \n; 4 xrefs:\n; > ProfilePage::loadPageFromUserInfo @ 0x10022bde8\n; > GJGarageLayer::onArrow @ 0x1003a1744\n; > GJGarageLayer::setupPage @ 0x1003a1930\n; > GJGarageLayer::getItems_1 @ 0x1003a25d8\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:56 +0000\n; \nCMP             W1, #5                                                 ; +0x0, 0x1003b44d4\nB.GT            loc_1003B4500                                          ; +0x4, 0x1003b44d8\nCMP             W1, #2                                                 ; +0x8, 0x1003b44dc\nB.GT            loc_1003B4528                                          ; +0xc, 0x1003b44e0\nCBZ             W1, loc_1003B4568                                      ; +0x10, 0x1003b44e4\nCMP             W1, #1                                                 ; +0x14, 0x1003b44e8\nB.EQ            loc_1003B4588                                          ; +0x18, 0x1003b44ec\nCMP             W1, #2                                                 ; +0x1c, 0x1003b44f0\nB.NE            loc_1003B45A8                                          ; +0x20, 0x1003b44f4\nMOV             W0, #0x76 ; 'v'                                        ; +0x24, 0x1003b44f8\nRET                                                                    ; +0x28, 0x1003b44fc\nCMP             W1, #0x61 ; 'a'                                        ; +0x2c, 0x1003b4500\nB.GT            loc_1003B4548                                          ; +0x30, 0x1003b4504\nCMP             W1, #6                                                 ; +0x34, 0x1003b4508\nB.EQ            loc_1003B4570                                          ; +0x38, 0x1003b450c\nCMP             W1, #7                                                 ; +0x3c, 0x1003b4510\nB.EQ            loc_1003B4590                                          ; +0x40, 0x1003b4514\nCMP             W1, #8                                                 ; +0x44, 0x1003b4518\nB.NE            loc_1003B45A8                                          ; +0x48, 0x1003b451c\nMOV             W0, #8                                                 ; +0x4c, 0x1003b4520\nRET                                                                    ; +0x50, 0x1003b4524\nCMP             W1, #3                                                 ; +0x54, 0x1003b4528\nB.EQ            loc_1003B4578                                          ; +0x58, 0x1003b452c\nCMP             W1, #4                                                 ; +0x5c, 0x1003b4530\nB.EQ            loc_1003B4598                                          ; +0x60, 0x1003b4534\nCMP             W1, #5                                                 ; +0x64, 0x1003b4538\nB.NE            loc_1003B45A8                                          ; +0x68, 0x1003b453c\nMOV             W0, #0x44 ; 'D'                                        ; +0x6c, 0x1003b4540\nRET                                                                    ; +0x70, 0x1003b4544\nCMP             W1, #0x62 ; 'b'                                        ; +0x74, 0x1003b4548\nB.EQ            loc_1003B4580                                          ; +0x78, 0x1003b454c\nCMP             W1, #0x63 ; 'c'                                        ; +0x7c, 0x1003b4550\nB.EQ            loc_1003B45A0                                          ; +0x80, 0x1003b4554\nCMP             W1, #0x65 ; 'e'                                        ; +0x84, 0x1003b4558\nB.NE            loc_1003B45A8                                          ; +0x88, 0x1003b455c\nMOV             W0, #6                                                 ; +0x8c, 0x1003b4560\nRET                                                                    ; +0x90, 0x1003b4564\nMOV             W0, #0x1E5                                             ; +0x94, 0x1003b4568\nRET                                                                    ; +0x98, 0x1003b456c\nMOV             W0, #0x45 ; 'E'                                        ; +0x9c, 0x1003b4570\nRET                                                                    ; +0xa0, 0x1003b4574\nMOV             W0, #0x95                                              ; +0xa4, 0x1003b4578\nRET                                                                    ; +0xa8, 0x1003b457c\nMOV             W0, #0x14                                              ; +0xac, 0x1003b4580\nRET                                                                    ; +0xb0, 0x1003b4584\nMOV             W0, #0xA9                                              ; +0xb4, 0x1003b4588\nRET                                                                    ; +0xb8, 0x1003b458c\nMOV             W0, #0x2B ; '+'                                        ; +0xbc, 0x1003b4590\nRET                                                                    ; +0xc0, 0x1003b4594\nMOV             W0, #0x60 ; '`'                                        ; +0xc4, 0x1003b4598\nRET                                                                    ; +0xc8, 0x1003b459c\nMOV             W0, #7                                                 ; +0xcc, 0x1003b45a0\nRET                                                                    ; +0xd0, 0x1003b45a4\nMOV             W0, #0                                                 ; +0xd4, 0x1003b45a8\nRET                                                                    ; +0xd8, 0x1003b45ac", "xrefs": ["ProfilePage::loadPageFromUserInfo @ 0x10022bde8", "GJGarageLayer::onArrow @ 0x1003a1744", "GJGarageLayer::setupPage @ 0x1003a1930", "GJGarageLayer::getItems_1 @ 0x1003a25d8"], "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"}