{"type": "func", "start": 4298209104, "end": 4298209324, "name": "GameManager::countForType", "pseudocode": "// \n// GameManager::countForType from 0x100317750 to 0x10031782c (220 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::onArrow @ 0x100304a34\n// > GJGarageLayer::setupPage @ 0x100304c20\n// > GJGarageLayer::getItems_1 @ 0x1003058c8\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  if ( a2 > Robot )\n  {\n    if ( a2 > 97 )\n    {\n      switch ( a2 )\n      {\n        case DeathEffect:\n          return 20;\n        case Special:\n          return 7;\n        case ShipFire:\n          return 6;\n      }\n    }\n    else\n    {\n      switch ( a2 )\n      {\n        case Spider:\n          return 69;\n        case Swing:\n          return 43;\n        case Jetpack:\n          return 8;\n      }\n    }\n    return 0;\n  }\n  if ( a2 <= Ball )\n  {\n    switch ( a2 )\n    {\n      case Cube:\n        return 485;\n      case Ship:\n        return 169;\n      case Ball:\n        return 118;\n    }\n    return 0;\n  }\n  if ( a2 == Ufo )\n    return 149;\n  if ( a2 == Wave )\n    return 96;\n  return 68;\n}", "assembly": "; \n; GameManager::countForType from 0x100317750 to 0x10031782c (220 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::onArrow @ 0x100304a34\n; > GJGarageLayer::setupPage @ 0x100304c20\n; > GJGarageLayer::getItems_1 @ 0x1003058c8\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             W1, #5                                                 ; +0x0, 0x100317750\nB.GT            loc_10031777C                                          ; +0x4, 0x100317754\nCMP             W1, #2                                                 ; +0x8, 0x100317758\nB.GT            loc_1003177A4                                          ; +0xc, 0x10031775c\nCBZ             W1, loc_1003177E4                                      ; +0x10, 0x100317760\nCMP             W1, #1                                                 ; +0x14, 0x100317764\nB.EQ            loc_100317804                                          ; +0x18, 0x100317768\nCMP             W1, #2                                                 ; +0x1c, 0x10031776c\nB.NE            loc_100317824                                          ; +0x20, 0x100317770\nMOV             W0, #0x76 ; 'v'                                        ; +0x24, 0x100317774\nRET                                                                    ; +0x28, 0x100317778\nCMP             W1, #0x61 ; 'a'                                        ; +0x2c, 0x10031777c\nB.GT            loc_1003177C4                                          ; +0x30, 0x100317780\nCMP             W1, #6                                                 ; +0x34, 0x100317784\nB.EQ            loc_1003177EC                                          ; +0x38, 0x100317788\nCMP             W1, #7                                                 ; +0x3c, 0x10031778c\nB.EQ            loc_10031780C                                          ; +0x40, 0x100317790\nCMP             W1, #8                                                 ; +0x44, 0x100317794\nB.NE            loc_100317824                                          ; +0x48, 0x100317798\nMOV             W0, #8                                                 ; +0x4c, 0x10031779c\nRET                                                                    ; +0x50, 0x1003177a0\nCMP             W1, #3                                                 ; +0x54, 0x1003177a4\nB.EQ            loc_1003177F4                                          ; +0x58, 0x1003177a8\nCMP             W1, #4                                                 ; +0x5c, 0x1003177ac\nB.EQ            loc_100317814                                          ; +0x60, 0x1003177b0\nCMP             W1, #5                                                 ; +0x64, 0x1003177b4\nB.NE            loc_100317824                                          ; +0x68, 0x1003177b8\nMOV             W0, #0x44 ; 'D'                                        ; +0x6c, 0x1003177bc\nRET                                                                    ; +0x70, 0x1003177c0\nCMP             W1, #0x62 ; 'b'                                        ; +0x74, 0x1003177c4\nB.EQ            loc_1003177FC                                          ; +0x78, 0x1003177c8\nCMP             W1, #0x63 ; 'c'                                        ; +0x7c, 0x1003177cc\nB.EQ            loc_10031781C                                          ; +0x80, 0x1003177d0\nCMP             W1, #0x65 ; 'e'                                        ; +0x84, 0x1003177d4\nB.NE            loc_100317824                                          ; +0x88, 0x1003177d8\nMOV             W0, #6                                                 ; +0x8c, 0x1003177dc\nRET                                                                    ; +0x90, 0x1003177e0\nMOV             W0, #0x1E5                                             ; +0x94, 0x1003177e4\nRET                                                                    ; +0x98, 0x1003177e8\nMOV             W0, #0x45 ; 'E'                                        ; +0x9c, 0x1003177ec\nRET                                                                    ; +0xa0, 0x1003177f0\nMOV             W0, #0x95                                              ; +0xa4, 0x1003177f4\nRET                                                                    ; +0xa8, 0x1003177f8\nMOV             W0, #0x14                                              ; +0xac, 0x1003177fc\nRET                                                                    ; +0xb0, 0x100317800\nMOV             W0, #0xA9                                              ; +0xb4, 0x100317804\nRET                                                                    ; +0xb8, 0x100317808\nMOV             W0, #0x2B ; '+'                                        ; +0xbc, 0x10031780c\nRET                                                                    ; +0xc0, 0x100317810\nMOV             W0, #0x60 ; '`'                                        ; +0xc4, 0x100317814\nRET                                                                    ; +0xc8, 0x100317818\nMOV             W0, #7                                                 ; +0xcc, 0x10031781c\nRET                                                                    ; +0xd0, 0x100317820\nMOV             W0, #0                                                 ; +0xd4, 0x100317824\nRET                                                                    ; +0xd8, 0x100317828", "xrefs": ["GJGarageLayer::onArrow @ 0x100304a34", "GJGarageLayer::setupPage @ 0x100304c20", "GJGarageLayer::getItems_1 @ 0x1003058c8"], "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"}