{"type": "func", "start": 4298640880, "end": 4298640995, "name": "GameManager::countForType", "pseudocode": "// \n// GameManager::countForType from 0x100380df0 to 0x100380e63 (115 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::onArrow @ 0x10036caee\n// > GJGarageLayer::setupPage @ 0x10036cdbc\n// > GJGarageLayer::setupSpecialPage @ 0x10036d414\n// > GJGarageLayer::setupSpecialPage @ 0x10036d560\n// > GJGarageLayer::getItems_1 @ 0x10036de19\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 __fastcall 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 0x100380df0 to 0x100380e63 (115 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::onArrow @ 0x10036caee\n; > GJGarageLayer::setupPage @ 0x10036cdbc\n; > GJGarageLayer::setupSpecialPage @ 0x10036d414\n; > GJGarageLayer::setupSpecialPage @ 0x10036d560\n; > GJGarageLayer::getItems_1 @ 0x10036de19\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\npush    rbp                                                            ; +0x0, 0x100380df0\nmov     rbp, rsp                                                       ; +0x1, 0x100380df1\ncmp     esi, 65h; switch 102 cases                                     ; +0x4, 0x100380df4\nja      short def_100380E09; jumptable 0000000100380E09 default case, cases 9-97,100 ; +0x7, 0x100380df7\nmov     eax, esi                                                       ; +0x9, 0x100380df9\nlea     rcx, jpt_100380E09                                             ; +0xb, 0x100380dfb\nmovsxd  rax, (jpt_100380E09 - 100380E64h)[rcx+rax*4]                   ; +0x12, 0x100380e02\nadd     rax, rcx                                                       ; +0x16, 0x100380e06\njmp     rax; switch jump                                               ; +0x19, 0x100380e09\nmov     eax, 1E5h; jumptable 0000000100380E09 case 0                   ; +0x1b, 0x100380e0b\npop     rbp                                                            ; +0x20, 0x100380e10\nretn                                                                   ; +0x21, 0x100380e11\nmov     eax, 7; jumptable 0000000100380E09 case 99                     ; +0x22, 0x100380e12\npop     rbp                                                            ; +0x27, 0x100380e17\nretn                                                                   ; +0x28, 0x100380e18\nmov     eax, 76h ; 'v'; jumptable 0000000100380E09 case 2              ; +0x29, 0x100380e19\npop     rbp                                                            ; +0x2e, 0x100380e1e\nretn                                                                   ; +0x2f, 0x100380e1f\nmov     eax, 44h ; 'D'; jumptable 0000000100380E09 case 5              ; +0x30, 0x100380e20\npop     rbp                                                            ; +0x35, 0x100380e25\nretn                                                                   ; +0x36, 0x100380e26\nmov     eax, 6; jumptable 0000000100380E09 case 101                    ; +0x37, 0x100380e27\npop     rbp                                                            ; +0x3c, 0x100380e2c\nretn                                                                   ; +0x3d, 0x100380e2d\nmov     eax, 0A9h; jumptable 0000000100380E09 case 1                   ; +0x3e, 0x100380e2e\npop     rbp                                                            ; +0x43, 0x100380e33\nretn                                                                   ; +0x44, 0x100380e34\nmov     eax, 45h ; 'E'; jumptable 0000000100380E09 case 6              ; +0x45, 0x100380e35\npop     rbp                                                            ; +0x4a, 0x100380e3a\nretn                                                                   ; +0x4b, 0x100380e3b\nmov     eax, 2Bh ; '+'; jumptable 0000000100380E09 case 7              ; +0x4c, 0x100380e3c\npop     rbp                                                            ; +0x51, 0x100380e41\nretn                                                                   ; +0x52, 0x100380e42\nmov     eax, 95h; jumptable 0000000100380E09 case 3                    ; +0x53, 0x100380e43\npop     rbp                                                            ; +0x58, 0x100380e48\nretn                                                                   ; +0x59, 0x100380e49\nmov     eax, 60h ; '`'; jumptable 0000000100380E09 case 4              ; +0x5a, 0x100380e4a\npop     rbp                                                            ; +0x5f, 0x100380e4f\nretn                                                                   ; +0x60, 0x100380e50\nmov     eax, 14h; jumptable 0000000100380E09 case 98                   ; +0x61, 0x100380e51\npop     rbp                                                            ; +0x66, 0x100380e56\nretn                                                                   ; +0x67, 0x100380e57\nmov     eax, 8; jumptable 0000000100380E09 case 8                      ; +0x68, 0x100380e58\npop     rbp                                                            ; +0x6d, 0x100380e5d\nretn                                                                   ; +0x6e, 0x100380e5e\nxor     eax, eax; jumptable 0000000100380E09 default case, cases 9-97,100 ; +0x6f, 0x100380e5f\npop     rbp                                                            ; +0x71, 0x100380e61\nretn                                                                   ; +0x72, 0x100380e62", "xrefs": ["GJGarageLayer::onArrow @ 0x10036caee", "GJGarageLayer::setupPage @ 0x10036cdbc", "GJGarageLayer::setupSpecialPage @ 0x10036d414", "GJGarageLayer::setupSpecialPage @ 0x10036d560", "GJGarageLayer::getItems_1 @ 0x10036de19"], "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"}