{"type": "func", "start": 4298645056, "end": 4298645157, "name": "GameManager::iconAndTypeForKey", "pseudocode": "// \n// GameManager::iconAndTypeForKey from 0x100381e40 to 0x100381ea5 (101 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall GameManager::iconAndTypeForKey(GameManager *a1, int a2, int *a3, int *a4)\n{\n  std::__vector_base<int>::pointer begin; // rax\n  unsigned int v5; // edi\n\n  begin = a1->m_keyStartForIcon.__begin_;\n  v5 = 0;\n  if ( begin[1] > a2\n    || (v5 = 1, begin[2] > a2)\n    || (v5 = 2, begin[3] > a2)\n    || (v5 = 3, begin[4] > a2)\n    || (v5 = 4, begin[5] > a2)\n    || (v5 = 5, begin[6] > a2)\n    || (v5 = 6, begin[7] > a2)\n    || (v5 = 7, begin[8] > a2) )\n  {\n    *a4 = v5;\n    *a3 = a2 - begin[v5] + 1;\n  }\n}", "assembly": "; \n; GameManager::iconAndTypeForKey from 0x100381e40 to 0x100381ea5 (101 bytes)\n; \n; 0 xrefs:\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, 0x100381e40\nmov     rbp, rsp                                                       ; +0x1, 0x100381e41\nmov     rax, [rdi+468h]                                                ; +0x4, 0x100381e44\nxor     edi, edi                                                       ; +0xb, 0x100381e4b\ncmp     [rax+4], esi                                                   ; +0xd, 0x100381e4d\njg      short loc_100381E98                                            ; +0x10, 0x100381e50\nmov     edi, 1                                                         ; +0x12, 0x100381e52\ncmp     [rax+8], esi                                                   ; +0x17, 0x100381e57\njg      short loc_100381E98                                            ; +0x1a, 0x100381e5a\nmov     edi, 2                                                         ; +0x1c, 0x100381e5c\ncmp     [rax+0Ch], esi                                                 ; +0x21, 0x100381e61\njg      short loc_100381E98                                            ; +0x24, 0x100381e64\nmov     edi, 3                                                         ; +0x26, 0x100381e66\ncmp     [rax+10h], esi                                                 ; +0x2b, 0x100381e6b\njg      short loc_100381E98                                            ; +0x2e, 0x100381e6e\nmov     edi, 4                                                         ; +0x30, 0x100381e70\ncmp     [rax+14h], esi                                                 ; +0x35, 0x100381e75\njg      short loc_100381E98                                            ; +0x38, 0x100381e78\nmov     edi, 5                                                         ; +0x3a, 0x100381e7a\ncmp     [rax+18h], esi                                                 ; +0x3f, 0x100381e7f\njg      short loc_100381E98                                            ; +0x42, 0x100381e82\nmov     edi, 6                                                         ; +0x44, 0x100381e84\ncmp     [rax+1Ch], esi                                                 ; +0x49, 0x100381e89\njg      short loc_100381E98                                            ; +0x4c, 0x100381e8c\nmov     edi, 7                                                         ; +0x4e, 0x100381e8e\ncmp     [rax+20h], esi                                                 ; +0x53, 0x100381e93\njle     short loc_100381EA3                                            ; +0x56, 0x100381e96\nmov     [rcx], edi                                                     ; +0x58, 0x100381e98\nmov     ecx, edi                                                       ; +0x5a, 0x100381e9a\nsub     esi, [rax+rcx*4]                                               ; +0x5c, 0x100381e9c\ninc     esi                                                            ; +0x5f, 0x100381e9f\nmov     [rdx], esi                                                     ; +0x61, 0x100381ea1\npop     rbp                                                            ; +0x63, 0x100381ea3\nretn                                                                   ; +0x64, 0x100381ea4", "xrefs": [], "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"}