{"type": "func", "start": 4298640256, "end": 4298640457, "name": "GameManager::activeIconForType", "pseudocode": "// \n// GameManager::activeIconForType from 0x100380b80 to 0x100380c49 (201 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::onArrow @ 0x10036cadb\n// > GJGarageLayer::setupPage @ 0x10036cda9\n// > GJGarageLayer::setupSpecialPage @ 0x10036d428\n// > GJGarageLayer::setupSpecialPage @ 0x10036d574\n// > GJGarageLayer::getItems_1 @ 0x10036de2b\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::activeIconForType(GameManager *a1, IconType a2)\n{\n  int result; // eax\n\n  result = 0;\n  switch ( a2 )\n  {\n    case Cube:\n      result = a1->m_playerFrame.random - a1->m_playerFrame.seed;\n      break;\n    case Ship:\n      result = a1->m_playerShip.random - a1->m_playerShip.seed;\n      break;\n    case Ball:\n      result = a1->m_playerBall.random - a1->m_playerBall.seed;\n      break;\n    case Ufo:\n      result = a1->m_playerBird.random - a1->m_playerBird.seed;\n      break;\n    case Wave:\n      result = a1->m_playerDart.random - a1->m_playerDart.seed;\n      break;\n    case Robot:\n      result = a1->m_playerRobot.random - a1->m_playerRobot.seed;\n      break;\n    case Spider:\n      result = a1->m_playerSpider.random - a1->m_playerSpider.seed;\n      break;\n    case Swing:\n      result = a1->m_playerSwing.random - a1->m_playerSwing.seed;\n      break;\n    case Jetpack:\n      result = a1->m_playerJetpack.random - a1->m_playerJetpack.seed;\n      break;\n    case DeathEffect:\n      result = a1->m_playerDeathEffect.random - a1->m_playerDeathEffect.seed;\n      break;\n    case Special:\n      result = a1->m_playerStreak.random - a1->m_playerStreak.seed;\n      break;\n    case ShipFire:\n      result = a1->m_playerShipFire.random - a1->m_playerShipFire.seed;\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::activeIconForType from 0x100380b80 to 0x100380c49 (201 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::onArrow @ 0x10036cadb\n; > GJGarageLayer::setupPage @ 0x10036cda9\n; > GJGarageLayer::setupSpecialPage @ 0x10036d428\n; > GJGarageLayer::setupSpecialPage @ 0x10036d574\n; > GJGarageLayer::getItems_1 @ 0x10036de2b\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, 0x100380b80\nmov     rbp, rsp                                                       ; +0x1, 0x100380b81\nxor     eax, eax                                                       ; +0x4, 0x100380b84\ncmp     esi, 65h; switch 102 cases                                     ; +0x6, 0x100380b86\nja      def_100380B9F; jumptable 0000000100380B9F default case, cases 9-97,100 ; +0x9, 0x100380b89\nmov     ecx, esi                                                       ; +0xf, 0x100380b8f\nlea     rdx, jpt_100380B9F                                             ; +0x11, 0x100380b91\nmovsxd  rcx, (jpt_100380B9F - 100380C4Ch)[rdx+rcx*4]                   ; +0x18, 0x100380b98\nadd     rcx, rdx                                                       ; +0x1c, 0x100380b9c\njmp     rcx; switch jump                                               ; +0x1f, 0x100380b9f\nmov     eax, [rdi+2A4h]; jumptable 0000000100380B9F case 0             ; +0x21, 0x100380ba1\nsub     eax, [rdi+2A8h]                                                ; +0x27, 0x100380ba7\npop     rbp                                                            ; +0x2d, 0x100380bad\nretn                                                                   ; +0x2e, 0x100380bae\nmov     eax, [rdi+328h]; jumptable 0000000100380B9F case 99            ; +0x2f, 0x100380baf\nsub     eax, [rdi+32Ch]                                                ; +0x35, 0x100380bb5\npop     rbp                                                            ; +0x3b, 0x100380bbb\nretn                                                                   ; +0x3c, 0x100380bbc\nmov     eax, [rdi+2BCh]; jumptable 0000000100380B9F case 2             ; +0x3d, 0x100380bbd\nsub     eax, [rdi+2C0h]                                                ; +0x43, 0x100380bc3\npop     rbp                                                            ; +0x49, 0x100380bc9\nretn                                                                   ; +0x4a, 0x100380bca\nmov     eax, [rdi+2E0h]; jumptable 0000000100380B9F case 5             ; +0x4b, 0x100380bcb\nsub     eax, [rdi+2E4h]                                                ; +0x51, 0x100380bd1\npop     rbp                                                            ; +0x57, 0x100380bd7\nretn                                                                   ; +0x58, 0x100380bd8\nmov     eax, [rdi+334h]; jumptable 0000000100380B9F case 101           ; +0x59, 0x100380bd9\nsub     eax, [rdi+338h]                                                ; +0x5f, 0x100380bdf\npop     rbp                                                            ; +0x65, 0x100380be5\nretn                                                                   ; +0x66, 0x100380be6\nmov     eax, [rdi+2B0h]; jumptable 0000000100380B9F case 1             ; +0x67, 0x100380be7\nsub     eax, [rdi+2B4h]                                                ; +0x6d, 0x100380bed\npop     rbp                                                            ; +0x73, 0x100380bf3\nretn                                                                   ; +0x74, 0x100380bf4\nmov     eax, [rdi+2ECh]; jumptable 0000000100380B9F case 6             ; +0x75, 0x100380bf5\nsub     eax, [rdi+2F0h]                                                ; +0x7b, 0x100380bfb\npop     rbp                                                            ; +0x81, 0x100380c01\nretn                                                                   ; +0x82, 0x100380c02\nmov     eax, [rdi+2F8h]; jumptable 0000000100380B9F case 7             ; +0x83, 0x100380c03\nsub     eax, [rdi+2FCh]                                                ; +0x89, 0x100380c09\npop     rbp                                                            ; +0x8f, 0x100380c0f\nretn                                                                   ; +0x90, 0x100380c10\nmov     eax, [rdi+2C8h]; jumptable 0000000100380B9F case 3             ; +0x91, 0x100380c11\nsub     eax, [rdi+2CCh]                                                ; +0x97, 0x100380c17\npop     rbp                                                            ; +0x9d, 0x100380c1d\nretn                                                                   ; +0x9e, 0x100380c1e\nmov     eax, [rdi+2D4h]; jumptable 0000000100380B9F case 4             ; +0x9f, 0x100380c1f\nsub     eax, [rdi+2D8h]                                                ; +0xa5, 0x100380c25\npop     rbp                                                            ; +0xab, 0x100380c2b\nretn                                                                   ; +0xac, 0x100380c2c\nmov     eax, [rdi+340h]; jumptable 0000000100380B9F case 98            ; +0xad, 0x100380c2d\nsub     eax, [rdi+344h]                                                ; +0xb3, 0x100380c33\npop     rbp                                                            ; +0xb9, 0x100380c39\nretn                                                                   ; +0xba, 0x100380c3a\nmov     eax, [rdi+34Ch]; jumptable 0000000100380B9F case 8             ; +0xbb, 0x100380c3b\nsub     eax, [rdi+350h]                                                ; +0xc1, 0x100380c41\npop     rbp; jumptable 0000000100380B9F default case, cases 9-97,100   ; +0xc7, 0x100380c47\nretn                                                                   ; +0xc8, 0x100380c48", "xrefs": ["GJGarageLayer::onArrow @ 0x10036cadb", "GJGarageLayer::setupPage @ 0x10036cda9", "GJGarageLayer::setupSpecialPage @ 0x10036d428", "GJGarageLayer::setupSpecialPage @ 0x10036d574", "GJGarageLayer::getItems_1 @ 0x10036de2b"], "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"}