user: Converte this assembly snippet into its equivalent C code:

```asm
<DateFromJulian>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    -0x38(%rbp),%rcx
  movabs $0x1845c8a0ce512957,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0xd,%rax
  sar    $0x3f,%rcx
  mov    %rcx,%rdx
  sub    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %eax,-0x30(%rbp)
  mov    -0x8(%rbp),%rax
  imul   $0xfffeae80,%eax,%edx
  mov    -0x38(%rbp),%rax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff91a2b3c5,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0xb,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  imul   $0xfffff1f0,%eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  imul   $0xfffff1f0,%eax,%edx
  mov    -0x2c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x24(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  imul   $0x64,%eax,%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x28(%rbp),%eax
  imul   $0x2710,%eax,%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%eax
  add    $0x10bd9,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  imul   $0x396b06bd,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0xf,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  imul   $0x23ab1,%eax,%eax
  add    $0x3,%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  neg    %eax
  add    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  imul   $0xfa0,%eax,%eax
  movslq %eax,%rdx
  imul   $0xffffffffb7bbe2dd,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x14,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  imul   $0x5b5,%eax,%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  neg    %eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  add    $0x1f,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  movslq %eax,%rdx
  imul   $0x1ac83d19,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x8,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  imul   $0x98f,%eax,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %edx,%ecx
  sar    $0x5,%ecx
  sar    $0x1f,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x2e8ba2e9,%rdx,%rdx
  shr    $0x20,%rdx
  sar    %edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x10(%rbp),%eax
  lea    0x2(%rax),%ecx
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  sub    $0x31,%eax
  imul   $0x64,%eax,%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%eax
  imul   $0x64,%eax,%edx
  mov    -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   $0x2710,%eax,%eax
  add    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void DateFromJulian(long long jsec, int *yyyymmdd, int *hhmmss) {
  int js;
  long long jr8;
  int h, m, s;
  int yr, mth, day;
  int temp1, temp2, jday;
  jr8 = jsec / (24 * 3600);
  jday = jr8;
  js = jsec - (jr8 * 24 * 3600);
  h = js / 3600;
  m = (js - h * 3600) / 60;
  s = js - (h * 3600) - (m * 60);
  *hhmmss = s + (m * 100) + (h * 10000);
  temp1 = jday + 68569;
  temp2 = 4 * temp1 / 146097;
  temp1 = temp1 - (146097 * temp2 + 3) / 4;
  yr = 4000 * (temp1 + 1) / 1461001;
  temp1 = temp1 - 1461 * yr / 4 + 31;
  mth = 80 * temp1 / 2447;
  day = temp1 - 2447 * mth / 80;
  temp1 = mth / 11;
  mth = mth + 2 - 12 * temp1;
  yr = 100 * (temp2 - 49) + yr + temp1;
  *yyyymmdd = day + (mth * 100) + (yr * 10000);
}
```