{"type": "func", "start": 6442779840, "end": 6442779853, "name": "sub_1800504C0", "pseudocode": "// \n// sub_1800504C0 from 0x1800504c0 to 0x1800504cd (13 bytes)\n// \n// 3 xrefs:\n// > sub_18004A3A0 @ 0x18004a42a\n// > sub_18004A3A0 @ 0x18004a433\n// > sub_18004A3A0 @ 0x18004a4a4\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:53:17 +0000\n// \n\n__int64 __fastcall sub_1800504C0(unsigned int a1)\n{\n  __int64 result; // rax\n\n  for ( result = 0; a1; a1 >>= 1 )\n    result = (unsigned int)(result + 1);\n  return result;\n}", "assembly": "; \n; sub_1800504C0 from 0x1800504c0 to 0x1800504cd (13 bytes)\n; \n; 3 xrefs:\n; > sub_18004A3A0 @ 0x18004a42a\n; > sub_18004A3A0 @ 0x18004a433\n; > sub_18004A3A0 @ 0x18004a4a4\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:53:17 +0000\n; \nxor     eax, eax                                                       ; +0x0, 0x1800504c0\ntest    ecx, ecx                                                       ; +0x2, 0x1800504c2\njz      short locret_1800504CC                                         ; +0x4, 0x1800504c4\ninc     eax                                                            ; +0x6, 0x1800504c6\nshr     ecx, 1                                                         ; +0x8, 0x1800504c8\njnz     short loc_1800504C6                                            ; +0xa, 0x1800504ca\nretn                                                                   ; +0xc, 0x1800504cc", "xrefs": ["sub_18004A3A0 @ 0x18004a42a", "sub_18004A3A0 @ 0x18004a433", "sub_18004A3A0 @ 0x18004a4a4"], "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"}