{"type": "func", "start": 5371318288, "end": 5371318398, "name": "GameManager::countForType", "pseudocode": "// \n// GameManager::countForType from 0x14027d010 to 0x14027d07e (110 bytes)\n// \n// 4 xrefs:\n// > GJGarageLayer::onArrow @ 0x14037e7cf\n// > GJGarageLayer::setupPage @ 0x14037ea5a\n// > GJGarageLayer::getItems_1 @ 0x14037f11b\n// > ProfilePage::loadPageFromUserInfo @ 0x140553ace\n// \n// This function is hookable on this platform (idp: pc, 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:28:58 +0000\n// \n\n__int64 __fastcall GameManager::countForType(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  switch ( a2 )\n  {\n    case 0:\n      result = 485;\n      break;\n    case 1:\n      result = 169;\n      break;\n    case 2:\n      result = 118;\n      break;\n    case 3:\n      result = 149;\n      break;\n    case 4:\n      result = 96;\n      break;\n    case 5:\n      result = 68;\n      break;\n    case 6:\n      result = 69;\n      break;\n    case 7:\n      result = 43;\n      break;\n    case 8:\n      result = 8;\n      break;\n    case 98:\n      result = 20;\n      break;\n    case 99:\n      result = 7;\n      break;\n    case 101:\n      result = 6;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::countForType from 0x14027d010 to 0x14027d07e (110 bytes)\n; \n; 4 xrefs:\n; > GJGarageLayer::onArrow @ 0x14037e7cf\n; > GJGarageLayer::setupPage @ 0x14037ea5a\n; > GJGarageLayer::getItems_1 @ 0x14037f11b\n; > ProfilePage::loadPageFromUserInfo @ 0x140553ace\n; \n; This function is hookable on this platform (idp: pc, 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:28:58 +0000\n; \ncmp     edx, 65h; switch 102 cases                                     ; +0x0, 0x14027d010\nja      short def_14027D031; jumptable 000000014027D031 default case, cases 9-97,100 ; +0x3, 0x14027d013\nmovsxd  rax, edx                                                       ; +0x5, 0x14027d015\nlea     rdx, cs:140000000h                                             ; +0x8, 0x14027d018\nmovzx   eax, ds:(byte_14027D0B4 - 140000000h)[rdx+rax]                 ; +0xf, 0x14027d01f\nmov     ecx, ds:(jpt_14027D031 - 140000000h)[rdx+rax*4]                ; +0x17, 0x14027d027\nadd     rcx, rdx                                                       ; +0x1e, 0x14027d02e\njmp     rcx; switch jump                                               ; +0x21, 0x14027d031\nmov     eax, 1E5h; jumptable 000000014027D031 case 0                   ; +0x23, 0x14027d033\nretn                                                                   ; +0x28, 0x14027d038\nmov     eax, 0A9h; jumptable 000000014027D031 case 1                   ; +0x29, 0x14027d039\nretn                                                                   ; +0x2e, 0x14027d03e\nmov     eax, 76h ; 'v'; jumptable 000000014027D031 case 2              ; +0x2f, 0x14027d03f\nretn                                                                   ; +0x34, 0x14027d044\nmov     eax, 95h; jumptable 000000014027D031 case 3                    ; +0x35, 0x14027d045\nretn                                                                   ; +0x3a, 0x14027d04a\nmov     eax, 60h ; '`'; jumptable 000000014027D031 case 4              ; +0x3b, 0x14027d04b\nretn                                                                   ; +0x40, 0x14027d050\nmov     eax, 44h ; 'D'; jumptable 000000014027D031 case 5              ; +0x41, 0x14027d051\nretn                                                                   ; +0x46, 0x14027d056\nmov     eax, 45h ; 'E'; jumptable 000000014027D031 case 6              ; +0x47, 0x14027d057\nretn                                                                   ; +0x4c, 0x14027d05c\nmov     eax, 2Bh ; '+'; jumptable 000000014027D031 case 7              ; +0x4d, 0x14027d05d\nretn                                                                   ; +0x52, 0x14027d062\nmov     eax, 7; jumptable 000000014027D031 case 99                     ; +0x53, 0x14027d063\nretn                                                                   ; +0x58, 0x14027d068\nmov     eax, 14h; jumptable 000000014027D031 case 98                   ; +0x59, 0x14027d069\nretn                                                                   ; +0x5e, 0x14027d06e\nmov     eax, 8; jumptable 000000014027D031 case 8                      ; +0x5f, 0x14027d06f\nretn                                                                   ; +0x64, 0x14027d074\nmov     eax, 6; jumptable 000000014027D031 case 101                    ; +0x65, 0x14027d075\nretn                                                                   ; +0x6a, 0x14027d07a\nxor     eax, eax; jumptable 000000014027D031 default case, cases 9-97,100 ; +0x6b, 0x14027d07b\nretn                                                                   ; +0x6d, 0x14027d07d", "xrefs": ["GJGarageLayer::onArrow @ 0x14037e7cf", "GJGarageLayer::setupPage @ 0x14037ea5a", "GJGarageLayer::getItems_1 @ 0x14037f11b", "ProfilePage::loadPageFromUserInfo @ 0x140553ace"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}