{"type": "func", "start": 5370289152, "end": 5370289262, "name": "GameManager::countForType", "pseudocode": "// \n// GameManager::countForType from 0x140181c00 to 0x140181c6e (110 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::onArrow @ 0x140275efc\n// > GJGarageLayer::setupPage @ 0x140276173\n// > GJGarageLayer::getItems_1 @ 0x1402767bb\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint GameManager::countForType(GameManager *a1, IconType a2)\n{\n  int result; // eax\n\n  switch ( a2 )\n  {\n    case Cube:\n      result = 485;\n      break;\n    case Ship:\n      result = 169;\n      break;\n    case Ball:\n      result = 118;\n      break;\n    case Ufo:\n      result = 149;\n      break;\n    case Wave:\n      result = 96;\n      break;\n    case Robot:\n      result = 68;\n      break;\n    case Spider:\n      result = 69;\n      break;\n    case Swing:\n      result = 43;\n      break;\n    case Jetpack:\n      result = 8;\n      break;\n    case DeathEffect:\n      result = 20;\n      break;\n    case Special:\n      result = 7;\n      break;\n    case ShipFire:\n      result = 6;\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::countForType from 0x140181c00 to 0x140181c6e (110 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::onArrow @ 0x140275efc\n; > GJGarageLayer::setupPage @ 0x140276173\n; > GJGarageLayer::getItems_1 @ 0x1402767bb\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     edx, 65h; switch 102 cases                                     ; +0x0, 0x140181c00\nja      short def_140181C21; jumptable 0000000140181C21 default case, cases 9-97,100 ; +0x3, 0x140181c03\nmovsxd  rax, edx                                                       ; +0x5, 0x140181c05\nlea     rdx, cs:140000000h                                             ; +0x8, 0x140181c08\nmovzx   eax, ds:(byte_140181CA4 - 140000000h)[rdx+rax]                 ; +0xf, 0x140181c0f\nmov     ecx, ds:(jpt_140181C21 - 140000000h)[rdx+rax*4]                ; +0x17, 0x140181c17\nadd     rcx, rdx                                                       ; +0x1e, 0x140181c1e\njmp     rcx; switch jump                                               ; +0x21, 0x140181c21\nmov     eax, 1E5h; jumptable 0000000140181C21 case 0                   ; +0x23, 0x140181c23\nretn                                                                   ; +0x28, 0x140181c28\nmov     eax, 0A9h; jumptable 0000000140181C21 case 1                   ; +0x29, 0x140181c29\nretn                                                                   ; +0x2e, 0x140181c2e\nmov     eax, 76h ; 'v'; jumptable 0000000140181C21 case 2              ; +0x2f, 0x140181c2f\nretn                                                                   ; +0x34, 0x140181c34\nmov     eax, 95h; jumptable 0000000140181C21 case 3                    ; +0x35, 0x140181c35\nretn                                                                   ; +0x3a, 0x140181c3a\nmov     eax, 60h ; '`'; jumptable 0000000140181C21 case 4              ; +0x3b, 0x140181c3b\nretn                                                                   ; +0x40, 0x140181c40\nmov     eax, 44h ; 'D'; jumptable 0000000140181C21 case 5              ; +0x41, 0x140181c41\nretn                                                                   ; +0x46, 0x140181c46\nmov     eax, 45h ; 'E'; jumptable 0000000140181C21 case 6              ; +0x47, 0x140181c47\nretn                                                                   ; +0x4c, 0x140181c4c\nmov     eax, 2Bh ; '+'; jumptable 0000000140181C21 case 7              ; +0x4d, 0x140181c4d\nretn                                                                   ; +0x52, 0x140181c52\nmov     eax, 7; jumptable 0000000140181C21 case 99                     ; +0x53, 0x140181c53\nretn                                                                   ; +0x58, 0x140181c58\nmov     eax, 14h; jumptable 0000000140181C21 case 98                   ; +0x59, 0x140181c59\nretn                                                                   ; +0x5e, 0x140181c5e\nmov     eax, 8; jumptable 0000000140181C21 case 8                      ; +0x5f, 0x140181c5f\nretn                                                                   ; +0x64, 0x140181c64\nmov     eax, 6; jumptable 0000000140181C21 case 101                    ; +0x65, 0x140181c65\nretn                                                                   ; +0x6a, 0x140181c6a\nxor     eax, eax; jumptable 0000000140181C21 default case, cases 9-97,100 ; +0x6b, 0x140181c6b\nretn                                                                   ; +0x6d, 0x140181c6d", "xrefs": ["GJGarageLayer::onArrow @ 0x140275efc", "GJGarageLayer::setupPage @ 0x140276173", "GJGarageLayer::getItems_1 @ 0x1402767bb"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}