{"type": "func", "start": 6443319520, "end": 6443319585, "name": "sub_1800D40E0", "pseudocode": "// \n// sub_1800D40E0 from 0x1800d40e0 to 0x1800d4121 (65 bytes)\n// \n// 2 xrefs:\n// > sub_1800DAD10 @ 0x1800dad9a\n// > sub_1800DADD0 @ 0x1800dae96\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\n__int64 __fastcall sub_1800D40E0(int a1, int *a2, int *a3, int *a4)\n{\n  int v4; // r11d\n  __int64 result; // rax\n  int v6; // r11d\n\n  v4 = 24;\n  if ( a1 != 32 )\n    v4 = a1;\n  *a4 = v4 / 3;\n  *a3 = v4 / 3;\n  *a2 = v4 / 3;\n  result = (unsigned int)(3 * (v4 / 3));\n  v6 = v4 % 3;\n  if ( v6 >= 1 )\n    ++*a3;\n  if ( v6 == 2 )\n    ++*a2;\n  return result;\n}", "assembly": "; \n; sub_1800D40E0 from 0x1800d40e0 to 0x1800d4121 (65 bytes)\n; \n; 2 xrefs:\n; > sub_1800DAD10 @ 0x1800dad9a\n; > sub_1800DADD0 @ 0x1800dae96\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\nmov     r10, rdx                                                       ; +0x0, 0x1800d40e0\ncmp     ecx, 20h ; ' '                                                 ; +0x3, 0x1800d40e3\nmov     r11d, 18h                                                      ; +0x6, 0x1800d40e6\nmov     eax, 55555556h                                                 ; +0xc, 0x1800d40ec\ncmovnz  r11d, ecx                                                      ; +0x11, 0x1800d40f1\nimul    r11d                                                           ; +0x15, 0x1800d40f5\nmov     eax, edx                                                       ; +0x18, 0x1800d40f8\nshr     eax, 1Fh                                                       ; +0x1a, 0x1800d40fa\nadd     edx, eax                                                       ; +0x1d, 0x1800d40fd\nmov     [r9], edx                                                      ; +0x1f, 0x1800d40ff\nmov     [r8], edx                                                      ; +0x22, 0x1800d4102\nmov     [r10], edx                                                     ; +0x25, 0x1800d4105\nlea     eax, [rdx+rdx*2]                                               ; +0x28, 0x1800d4108\nsub     r11d, eax                                                      ; +0x2b, 0x1800d410b\ncmp     r11d, 1                                                        ; +0x2e, 0x1800d410e\njl      short loc_1800D4117                                            ; +0x32, 0x1800d4112\ninc     dword ptr [r8]                                                 ; +0x34, 0x1800d4114\ncmp     r11d, 2                                                        ; +0x37, 0x1800d4117\njnz     short locret_1800D4120                                         ; +0x3b, 0x1800d411b\ninc     dword ptr [r10]                                                ; +0x3d, 0x1800d411d\nretn                                                                   ; +0x40, 0x1800d4120", "xrefs": ["sub_1800DAD10 @ 0x1800dad9a", "sub_1800DADD0 @ 0x1800dae96"], "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"}