{"type": "func", "start": 4298547040, "end": 4298547241, "name": "GameManager::activeIconForType", "pseudocode": "// \n// GameManager::activeIconForType from 0x100369f60 to 0x10036a029 (201 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::onArrow @ 0x100355efb\n// > GJGarageLayer::setupPage @ 0x1003561c9\n// > GJGarageLayer::setupSpecialPage @ 0x100356848\n// > GJGarageLayer::setupSpecialPage @ 0x100356994\n// > GJGarageLayer::getItems_1 @ 0x10035724b\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 12:28:59 +0000\n// \n\n__int64 __fastcall GameManager::activeIconForType(_DWORD *a1, int a2)\n{\n  __int64 result; // rax\n\n  result = 0;\n  switch ( a2 )\n  {\n    case 0:\n      result = (unsigned int)(a1[179] - a1[180]);\n      break;\n    case 1:\n      result = (unsigned int)(a1[182] - a1[183]);\n      break;\n    case 2:\n      result = (unsigned int)(a1[185] - a1[186]);\n      break;\n    case 3:\n      result = (unsigned int)(a1[188] - a1[189]);\n      break;\n    case 4:\n      result = (unsigned int)(a1[191] - a1[192]);\n      break;\n    case 5:\n      result = (unsigned int)(a1[194] - a1[195]);\n      break;\n    case 6:\n      result = (unsigned int)(a1[197] - a1[198]);\n      break;\n    case 7:\n      result = (unsigned int)(a1[200] - a1[201]);\n      break;\n    case 8:\n      result = (unsigned int)(a1[221] - a1[222]);\n      break;\n    case 98:\n      result = (unsigned int)(a1[218] - a1[219]);\n      break;\n    case 99:\n      result = (unsigned int)(a1[212] - a1[213]);\n      break;\n    case 101:\n      result = (unsigned int)(a1[215] - a1[216]);\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::activeIconForType from 0x100369f60 to 0x10036a029 (201 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::onArrow @ 0x100355efb\n; > GJGarageLayer::setupPage @ 0x1003561c9\n; > GJGarageLayer::setupSpecialPage @ 0x100356848\n; > GJGarageLayer::setupSpecialPage @ 0x100356994\n; > GJGarageLayer::getItems_1 @ 0x10035724b\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 12:28:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x100369f60\nmov     rbp, rsp                                                       ; +0x1, 0x100369f61\nxor     eax, eax                                                       ; +0x4, 0x100369f64\ncmp     esi, 65h; switch 102 cases                                     ; +0x6, 0x100369f66\nja      def_100369F7F; jumptable 0000000100369F7F default case, cases 9-97,100 ; +0x9, 0x100369f69\nmov     ecx, esi                                                       ; +0xf, 0x100369f6f\nlea     rdx, jpt_100369F7F                                             ; +0x11, 0x100369f71\nmovsxd  rcx, (jpt_100369F7F - 10036A02Ch)[rdx+rcx*4]                   ; +0x18, 0x100369f78\nadd     rcx, rdx                                                       ; +0x1c, 0x100369f7c\njmp     rcx; switch jump                                               ; +0x1f, 0x100369f7f\nmov     eax, [rdi+2CCh]; jumptable 0000000100369F7F case 0             ; +0x21, 0x100369f81\nsub     eax, [rdi+2D0h]                                                ; +0x27, 0x100369f87\npop     rbp                                                            ; +0x2d, 0x100369f8d\nretn                                                                   ; +0x2e, 0x100369f8e\nmov     eax, [rdi+350h]; jumptable 0000000100369F7F case 99            ; +0x2f, 0x100369f8f\nsub     eax, [rdi+354h]                                                ; +0x35, 0x100369f95\npop     rbp                                                            ; +0x3b, 0x100369f9b\nretn                                                                   ; +0x3c, 0x100369f9c\nmov     eax, [rdi+2E4h]; jumptable 0000000100369F7F case 2             ; +0x3d, 0x100369f9d\nsub     eax, [rdi+2E8h]                                                ; +0x43, 0x100369fa3\npop     rbp                                                            ; +0x49, 0x100369fa9\nretn                                                                   ; +0x4a, 0x100369faa\nmov     eax, [rdi+308h]; jumptable 0000000100369F7F case 5             ; +0x4b, 0x100369fab\nsub     eax, [rdi+30Ch]                                                ; +0x51, 0x100369fb1\npop     rbp                                                            ; +0x57, 0x100369fb7\nretn                                                                   ; +0x58, 0x100369fb8\nmov     eax, [rdi+35Ch]; jumptable 0000000100369F7F case 101           ; +0x59, 0x100369fb9\nsub     eax, [rdi+360h]                                                ; +0x5f, 0x100369fbf\npop     rbp                                                            ; +0x65, 0x100369fc5\nretn                                                                   ; +0x66, 0x100369fc6\nmov     eax, [rdi+2D8h]; jumptable 0000000100369F7F case 1             ; +0x67, 0x100369fc7\nsub     eax, [rdi+2DCh]                                                ; +0x6d, 0x100369fcd\npop     rbp                                                            ; +0x73, 0x100369fd3\nretn                                                                   ; +0x74, 0x100369fd4\nmov     eax, [rdi+314h]; jumptable 0000000100369F7F case 6             ; +0x75, 0x100369fd5\nsub     eax, [rdi+318h]                                                ; +0x7b, 0x100369fdb\npop     rbp                                                            ; +0x81, 0x100369fe1\nretn                                                                   ; +0x82, 0x100369fe2\nmov     eax, [rdi+320h]; jumptable 0000000100369F7F case 7             ; +0x83, 0x100369fe3\nsub     eax, [rdi+324h]                                                ; +0x89, 0x100369fe9\npop     rbp                                                            ; +0x8f, 0x100369fef\nretn                                                                   ; +0x90, 0x100369ff0\nmov     eax, [rdi+2F0h]; jumptable 0000000100369F7F case 3             ; +0x91, 0x100369ff1\nsub     eax, [rdi+2F4h]                                                ; +0x97, 0x100369ff7\npop     rbp                                                            ; +0x9d, 0x100369ffd\nretn                                                                   ; +0x9e, 0x100369ffe\nmov     eax, [rdi+2FCh]; jumptable 0000000100369F7F case 4             ; +0x9f, 0x100369fff\nsub     eax, [rdi+300h]                                                ; +0xa5, 0x10036a005\npop     rbp                                                            ; +0xab, 0x10036a00b\nretn                                                                   ; +0xac, 0x10036a00c\nmov     eax, [rdi+368h]; jumptable 0000000100369F7F case 98            ; +0xad, 0x10036a00d\nsub     eax, [rdi+36Ch]                                                ; +0xb3, 0x10036a013\npop     rbp                                                            ; +0xb9, 0x10036a019\nretn                                                                   ; +0xba, 0x10036a01a\nmov     eax, [rdi+374h]; jumptable 0000000100369F7F case 8             ; +0xbb, 0x10036a01b\nsub     eax, [rdi+378h]                                                ; +0xc1, 0x10036a021\npop     rbp; jumptable 0000000100369F7F default case, cases 9-97,100   ; +0xc7, 0x10036a027\nretn                                                                   ; +0xc8, 0x10036a028", "xrefs": ["GJGarageLayer::onArrow @ 0x100355efb", "GJGarageLayer::setupPage @ 0x1003561c9", "GJGarageLayer::setupSpecialPage @ 0x100356848", "GJGarageLayer::setupSpecialPage @ 0x100356994", "GJGarageLayer::getItems_1 @ 0x10035724b"], "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"}