{"type": "func", "start": 4298547664, "end": 4298547779, "name": "GameManager::countForType", "pseudocode": "// \n// GameManager::countForType from 0x10036a1d0 to 0x10036a243 (115 bytes)\n// \n// 6 xrefs:\n// > GJGarageLayer::onArrow @ 0x100355f0e\n// > GJGarageLayer::setupPage @ 0x1003561dc\n// > GJGarageLayer::setupSpecialPage @ 0x100356834\n// > GJGarageLayer::setupSpecialPage @ 0x100356980\n// > GJGarageLayer::getItems_1 @ 0x100357239\n// > ProfilePage::loadPageFromUserInfo @ 0x1008a024f\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 12:28:59 +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 0x10036a1d0 to 0x10036a243 (115 bytes)\n; \n; 6 xrefs:\n; > GJGarageLayer::onArrow @ 0x100355f0e\n; > GJGarageLayer::setupPage @ 0x1003561dc\n; > GJGarageLayer::setupSpecialPage @ 0x100356834\n; > GJGarageLayer::setupSpecialPage @ 0x100356980\n; > GJGarageLayer::getItems_1 @ 0x100357239\n; > ProfilePage::loadPageFromUserInfo @ 0x1008a024f\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 12:28:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x10036a1d0\nmov     rbp, rsp                                                       ; +0x1, 0x10036a1d1\ncmp     esi, 65h; switch 102 cases                                     ; +0x4, 0x10036a1d4\nja      short def_10036A1E9; jumptable 000000010036A1E9 default case, cases 9-97,100 ; +0x7, 0x10036a1d7\nmov     eax, esi                                                       ; +0x9, 0x10036a1d9\nlea     rcx, jpt_10036A1E9                                             ; +0xb, 0x10036a1db\nmovsxd  rax, (jpt_10036A1E9 - 10036A244h)[rcx+rax*4]                   ; +0x12, 0x10036a1e2\nadd     rax, rcx                                                       ; +0x16, 0x10036a1e6\njmp     rax; switch jump                                               ; +0x19, 0x10036a1e9\nmov     eax, 1E5h; jumptable 000000010036A1E9 case 0                   ; +0x1b, 0x10036a1eb\npop     rbp                                                            ; +0x20, 0x10036a1f0\nretn                                                                   ; +0x21, 0x10036a1f1\nmov     eax, 7; jumptable 000000010036A1E9 case 99                     ; +0x22, 0x10036a1f2\npop     rbp                                                            ; +0x27, 0x10036a1f7\nretn                                                                   ; +0x28, 0x10036a1f8\nmov     eax, 76h ; 'v'; jumptable 000000010036A1E9 case 2              ; +0x29, 0x10036a1f9\npop     rbp                                                            ; +0x2e, 0x10036a1fe\nretn                                                                   ; +0x2f, 0x10036a1ff\nmov     eax, 44h ; 'D'; jumptable 000000010036A1E9 case 5              ; +0x30, 0x10036a200\npop     rbp                                                            ; +0x35, 0x10036a205\nretn                                                                   ; +0x36, 0x10036a206\nmov     eax, 6; jumptable 000000010036A1E9 case 101                    ; +0x37, 0x10036a207\npop     rbp                                                            ; +0x3c, 0x10036a20c\nretn                                                                   ; +0x3d, 0x10036a20d\nmov     eax, 0A9h; jumptable 000000010036A1E9 case 1                   ; +0x3e, 0x10036a20e\npop     rbp                                                            ; +0x43, 0x10036a213\nretn                                                                   ; +0x44, 0x10036a214\nmov     eax, 45h ; 'E'; jumptable 000000010036A1E9 case 6              ; +0x45, 0x10036a215\npop     rbp                                                            ; +0x4a, 0x10036a21a\nretn                                                                   ; +0x4b, 0x10036a21b\nmov     eax, 2Bh ; '+'; jumptable 000000010036A1E9 case 7              ; +0x4c, 0x10036a21c\npop     rbp                                                            ; +0x51, 0x10036a221\nretn                                                                   ; +0x52, 0x10036a222\nmov     eax, 95h; jumptable 000000010036A1E9 case 3                    ; +0x53, 0x10036a223\npop     rbp                                                            ; +0x58, 0x10036a228\nretn                                                                   ; +0x59, 0x10036a229\nmov     eax, 60h ; '`'; jumptable 000000010036A1E9 case 4              ; +0x5a, 0x10036a22a\npop     rbp                                                            ; +0x5f, 0x10036a22f\nretn                                                                   ; +0x60, 0x10036a230\nmov     eax, 14h; jumptable 000000010036A1E9 case 98                   ; +0x61, 0x10036a231\npop     rbp                                                            ; +0x66, 0x10036a236\nretn                                                                   ; +0x67, 0x10036a237\nmov     eax, 8; jumptable 000000010036A1E9 case 8                      ; +0x68, 0x10036a238\npop     rbp                                                            ; +0x6d, 0x10036a23d\nretn                                                                   ; +0x6e, 0x10036a23e\nxor     eax, eax; jumptable 000000010036A1E9 default case, cases 9-97,100 ; +0x6f, 0x10036a23f\npop     rbp                                                            ; +0x71, 0x10036a241\nretn                                                                   ; +0x72, 0x10036a242", "xrefs": ["GJGarageLayer::onArrow @ 0x100355f0e", "GJGarageLayer::setupPage @ 0x1003561dc", "GJGarageLayer::setupSpecialPage @ 0x100356834", "GJGarageLayer::setupSpecialPage @ 0x100356980", "GJGarageLayer::getItems_1 @ 0x100357239", "ProfilePage::loadPageFromUserInfo @ 0x1008a024f"], "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"}