{"type": "func", "start": 5371317920, "end": 5371318120, "name": "GameManager::activeIconForType", "pseudocode": "// \n// GameManager::activeIconForType from 0x14027cea0 to 0x14027cf68 (200 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::setupPage @ 0x14037ea1d\n// > GJGarageLayer::getItems_1 @ 0x14037f111\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 11:28:58 +0000\n// \n\n__int64 __fastcall GameManager::activeIconForType(_DWORD *a1, int a2)\n{\n  __int64 result; // rax\n\n  switch ( a2 )\n  {\n    case 0:\n      result = (unsigned int)(a1[187] - a1[188]);\n      break;\n    case 1:\n      result = (unsigned int)(a1[190] - a1[191]);\n      break;\n    case 2:\n      result = (unsigned int)(a1[193] - a1[194]);\n      break;\n    case 3:\n      result = (unsigned int)(a1[196] - a1[197]);\n      break;\n    case 4:\n      result = (unsigned int)(a1[199] - a1[200]);\n      break;\n    case 5:\n      result = (unsigned int)(a1[202] - a1[203]);\n      break;\n    case 6:\n      result = (unsigned int)(a1[205] - a1[206]);\n      break;\n    case 7:\n      result = (unsigned int)(a1[208] - a1[209]);\n      break;\n    case 8:\n      result = (unsigned int)(a1[229] - a1[230]);\n      break;\n    case 98:\n      result = (unsigned int)(a1[226] - a1[227]);\n      break;\n    case 99:\n      result = (unsigned int)(a1[220] - a1[221]);\n      break;\n    case 101:\n      result = (unsigned int)(a1[223] - a1[224]);\n      break;\n    default:\n      result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::activeIconForType from 0x14027cea0 to 0x14027cf68 (200 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::setupPage @ 0x14037ea1d\n; > GJGarageLayer::getItems_1 @ 0x14037f111\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 11:28:58 +0000\n; \ncmp     edx, 65h; switch 102 cases                                     ; +0x0, 0x14027cea0\nja      def_14027CEC7; jumptable 000000014027CEC7 default case, cases 9-97,100 ; +0x3, 0x14027cea3\nmovsxd  rax, edx                                                       ; +0x9, 0x14027cea9\nlea     r8, cs:140000000h                                              ; +0xc, 0x14027ceac\nmovzx   eax, ds:(byte_14027CF9C - 140000000h)[r8+rax]                  ; +0x13, 0x14027ceb3\nmov     edx, ds:(jpt_14027CEC7 - 140000000h)[r8+rax*4]                 ; +0x1c, 0x14027cebc\nadd     rdx, r8                                                        ; +0x24, 0x14027cec4\njmp     rdx; switch jump                                               ; +0x27, 0x14027cec7\nmov     eax, [rcx+2ECh]; jumptable 000000014027CEC7 case 0             ; +0x29, 0x14027cec9\nsub     eax, [rcx+2F0h]                                                ; +0x2f, 0x14027cecf\nretn                                                                   ; +0x35, 0x14027ced5\nmov     eax, [rcx+2F8h]; jumptable 000000014027CEC7 case 1             ; +0x36, 0x14027ced6\nsub     eax, [rcx+2FCh]                                                ; +0x3c, 0x14027cedc\nretn                                                                   ; +0x42, 0x14027cee2\nmov     eax, [rcx+304h]; jumptable 000000014027CEC7 case 2             ; +0x43, 0x14027cee3\nsub     eax, [rcx+308h]                                                ; +0x49, 0x14027cee9\nretn                                                                   ; +0x4f, 0x14027ceef\nmov     eax, [rcx+310h]; jumptable 000000014027CEC7 case 3             ; +0x50, 0x14027cef0\nsub     eax, [rcx+314h]                                                ; +0x56, 0x14027cef6\nretn                                                                   ; +0x5c, 0x14027cefc\nmov     eax, [rcx+31Ch]; jumptable 000000014027CEC7 case 4             ; +0x5d, 0x14027cefd\nsub     eax, [rcx+320h]                                                ; +0x63, 0x14027cf03\nretn                                                                   ; +0x69, 0x14027cf09\nmov     eax, [rcx+328h]; jumptable 000000014027CEC7 case 5             ; +0x6a, 0x14027cf0a\nsub     eax, [rcx+32Ch]                                                ; +0x70, 0x14027cf10\nretn                                                                   ; +0x76, 0x14027cf16\nmov     eax, [rcx+334h]; jumptable 000000014027CEC7 case 6             ; +0x77, 0x14027cf17\nsub     eax, [rcx+338h]                                                ; +0x7d, 0x14027cf1d\nretn                                                                   ; +0x83, 0x14027cf23\nmov     eax, [rcx+340h]; jumptable 000000014027CEC7 case 7             ; +0x84, 0x14027cf24\nsub     eax, [rcx+344h]                                                ; +0x8a, 0x14027cf2a\nretn                                                                   ; +0x90, 0x14027cf30\nmov     eax, [rcx+370h]; jumptable 000000014027CEC7 case 99            ; +0x91, 0x14027cf31\nsub     eax, [rcx+374h]                                                ; +0x97, 0x14027cf37\nretn                                                                   ; +0x9d, 0x14027cf3d\nmov     eax, [rcx+37Ch]; jumptable 000000014027CEC7 case 101           ; +0x9e, 0x14027cf3e\nsub     eax, [rcx+380h]                                                ; +0xa4, 0x14027cf44\nretn                                                                   ; +0xaa, 0x14027cf4a\nmov     eax, [rcx+388h]; jumptable 000000014027CEC7 case 98            ; +0xab, 0x14027cf4b\nsub     eax, [rcx+38Ch]                                                ; +0xb1, 0x14027cf51\nretn                                                                   ; +0xb7, 0x14027cf57\nmov     eax, [rcx+394h]; jumptable 000000014027CEC7 case 8             ; +0xb8, 0x14027cf58\nsub     eax, [rcx+398h]                                                ; +0xbe, 0x14027cf5e\nretn                                                                   ; +0xc4, 0x14027cf64\nxor     eax, eax; jumptable 000000014027CEC7 default case, cases 9-97,100 ; +0xc5, 0x14027cf65\nretn                                                                   ; +0xc7, 0x14027cf67", "xrefs": ["GJGarageLayer::setupPage @ 0x14037ea1d", "GJGarageLayer::getItems_1 @ 0x14037f111"], "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"}