{"type": "func", "start": 4298551840, "end": 4298551941, "name": "GameManager::iconAndTypeForKey", "pseudocode": "// \n// GameManager::iconAndTypeForKey from 0x10036b220 to 0x10036b285 (101 bytes)\n// \n// 0 xrefs:\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:29:00 +0000\n// \n\n_DWORD *__fastcall GameManager::iconAndTypeForKey(__int64 a1, int a2, _DWORD *a3, unsigned int *a4)\n{\n  _DWORD *result; // rax\n  unsigned int v5; // edi\n\n  result = *(_DWORD **)(a1 + 1232);\n  v5 = 0;\n  if ( result[1] > a2\n    || (v5 = 1, result[2] > a2)\n    || (v5 = 2, result[3] > a2)\n    || (v5 = 3, result[4] > a2)\n    || (v5 = 4, result[5] > a2)\n    || (v5 = 5, result[6] > a2)\n    || (v5 = 6, result[7] > a2)\n    || (v5 = 7, result[8] > a2) )\n  {\n    *a4 = v5;\n    *a3 = a2 - result[v5] + 1;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::iconAndTypeForKey from 0x10036b220 to 0x10036b285 (101 bytes)\n; \n; 0 xrefs:\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:29:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x10036b220\nmov     rbp, rsp                                                       ; +0x1, 0x10036b221\nmov     rax, [rdi+4D0h]                                                ; +0x4, 0x10036b224\nxor     edi, edi                                                       ; +0xb, 0x10036b22b\ncmp     [rax+4], esi                                                   ; +0xd, 0x10036b22d\njg      short loc_10036B278                                            ; +0x10, 0x10036b230\nmov     edi, 1                                                         ; +0x12, 0x10036b232\ncmp     [rax+8], esi                                                   ; +0x17, 0x10036b237\njg      short loc_10036B278                                            ; +0x1a, 0x10036b23a\nmov     edi, 2                                                         ; +0x1c, 0x10036b23c\ncmp     [rax+0Ch], esi                                                 ; +0x21, 0x10036b241\njg      short loc_10036B278                                            ; +0x24, 0x10036b244\nmov     edi, 3                                                         ; +0x26, 0x10036b246\ncmp     [rax+10h], esi                                                 ; +0x2b, 0x10036b24b\njg      short loc_10036B278                                            ; +0x2e, 0x10036b24e\nmov     edi, 4                                                         ; +0x30, 0x10036b250\ncmp     [rax+14h], esi                                                 ; +0x35, 0x10036b255\njg      short loc_10036B278                                            ; +0x38, 0x10036b258\nmov     edi, 5                                                         ; +0x3a, 0x10036b25a\ncmp     [rax+18h], esi                                                 ; +0x3f, 0x10036b25f\njg      short loc_10036B278                                            ; +0x42, 0x10036b262\nmov     edi, 6                                                         ; +0x44, 0x10036b264\ncmp     [rax+1Ch], esi                                                 ; +0x49, 0x10036b269\njg      short loc_10036B278                                            ; +0x4c, 0x10036b26c\nmov     edi, 7                                                         ; +0x4e, 0x10036b26e\ncmp     [rax+20h], esi                                                 ; +0x53, 0x10036b273\njle     short loc_10036B283                                            ; +0x56, 0x10036b276\nmov     [rcx], edi                                                     ; +0x58, 0x10036b278\nmov     ecx, edi                                                       ; +0x5a, 0x10036b27a\nsub     esi, [rax+rcx*4]                                               ; +0x5c, 0x10036b27c\ninc     esi                                                            ; +0x5f, 0x10036b27f\nmov     [rdx], esi                                                     ; +0x61, 0x10036b281\npop     rbp                                                            ; +0x63, 0x10036b283\nretn                                                                   ; +0x64, 0x10036b284", "xrefs": [], "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"}