{"type": "func", "start": 6443469552, "end": 6443469602, "name": "sub_1800F8AF0", "pseudocode": "// \n// sub_1800F8AF0 from 0x1800f8af0 to 0x1800f8b22 (50 bytes)\n// \n// 2 xrefs:\n// > sub_1800EA910 @ 0x1800eaa33\n// > sub_1800EB320 @ 0x1800eb680\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 10:54:24 +0000\n// \n\n__int64 __fastcall sub_1800F8AF0(unsigned int a1, int a2)\n{\n  unsigned int v2; // r8d\n\n  v2 = a1;\n  if ( a2 == 4 )\n    return a1 & 3 | (a1 >> 2) & 0xC;\n  if ( a2 == 5 )\n    return a1 & 7 | (a1 >> 1) & 0x18;\n  return v2;\n}", "assembly": "; \n; sub_1800F8AF0 from 0x1800f8af0 to 0x1800f8b22 (50 bytes)\n; \n; 2 xrefs:\n; > sub_1800EA910 @ 0x1800eaa33\n; > sub_1800EB320 @ 0x1800eb680\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 10:54:24 +0000\n; \nmov     eax, edx                                                       ; +0x0, 0x1800f8af0\nmov     r8d, ecx                                                       ; +0x2, 0x1800f8af2\ncmp     edx, 4                                                         ; +0x5, 0x1800f8af5\njnz     short loc_1800F8B0A                                            ; +0x8, 0x1800f8af8\nmov     eax, ecx                                                       ; +0xa, 0x1800f8afa\nand     r8d, 3                                                         ; +0xc, 0x1800f8afc\nshr     eax, 2                                                         ; +0x10, 0x1800f8b00\nand     eax, 0Ch                                                       ; +0x13, 0x1800f8b03\nor      eax, r8d                                                       ; +0x16, 0x1800f8b06\nretn                                                                   ; +0x19, 0x1800f8b09\nmov     edx, r8d                                                       ; +0x1a, 0x1800f8b0a\nand     ecx, 7                                                         ; +0x1d, 0x1800f8b0d\nshr     edx, 1                                                         ; +0x20, 0x1800f8b10\nand     edx, 18h                                                       ; +0x22, 0x1800f8b12\nor      edx, ecx                                                       ; +0x25, 0x1800f8b15\ncmp     eax, 5                                                         ; +0x27, 0x1800f8b17\ncmovz   r8d, edx                                                       ; +0x2a, 0x1800f8b1a\nmov     eax, r8d                                                       ; +0x2e, 0x1800f8b1e\nretn                                                                   ; +0x31, 0x1800f8b21", "xrefs": ["sub_1800EA910 @ 0x1800eaa33", "sub_1800EB320 @ 0x1800eb680"], "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"}