// File: /workspace/github_cpp_makefile_star2_O1/nilnilnil[P]autocomplete/deps/mongoose/mongoose.c
// Function: mg_md5
void mg_md5(char *buf, ...) {
  unsigned char hash[16];
  const char *p;
  va_list ap;
  MD5_CTX ctx;

  MD5Init(&ctx);

  va_start(ap, buf);
  while ((p = va_arg(ap, const char *)) != NULL) {
    MD5Update(&ctx, (const unsigned char *) p, (unsigned) strlen(p));
  }
  va_end(ap);

  MD5Final(hash, &ctx);
  bin2str(buf, hash, sizeof(hash));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, 0x10(%rsp)
leaq 0xb0(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0xee67
movaps %xmm0, 0xe0(%rsp)
movaps %xmm1, 0xf0(%rsp)
movaps %xmm2, 0x100(%rsp)
movaps %xmm3, 0x110(%rsp)
movaps %xmm4, 0x120(%rsp)
movaps %xmm5, 0x130(%rsp)
movaps %xmm6, 0x140(%rsp)
movaps %xmm7, 0x150(%rsp)
movaps 0x68d2(%rip), %xmm0     # 0x15740
leaq 0x68(%rsp), %r14
movaps %xmm0, -0x18(%r14)
movq $0x0, -0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, 0x20(%rsp)
leaq 0x1a0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x30(%rsp)
movl $0x8, %ebx
leaq 0x50(%rsp), %r15
cmpl $0x28, %ebx
ja 0xeeca
movq %rax, (%rsp)
movl %ebx, %eax
leaq 0xb0(%rsp), %rcx
addq %rcx, %rax
addl $0x8, %ebx
movl %ebx, 0x20(%rsp)
jmp 0xeed7
leaq 0x8(%rax), %rcx
movq %rcx, (%rsp)
movq %rcx, 0x28(%rsp)
movq (%rax), %r12
testq %r12, %r12
je 0xefd1
movq %r12, %rdi
callq 0x5210
movq %rax, %r13
movl 0x60(%rsp), %eax
leal (,%r13,8), %ecx
addl %eax, %ecx
movl %ecx, 0x60(%rsp)
jae 0xef06
incl 0x64(%rsp)
movl %r13d, %ecx
shrl $0x1d, %ecx
addl %ecx, 0x64(%rsp)
shrl $0x3, %eax
andl $0x3f, %eax
je 0xef71
movl %ebx, 0xc(%rsp)
leaq (%r14,%rax), %rdi
movl $0x40, %ebx
subl %eax, %ebx
movl %r13d, %ebp
subl %ebx, %ebp
jae 0xef3e
movl %r13d, %edx
movq %r12, %rsi
callq 0x53b0
movl %r13d, %ebp
jmp 0xef5d
movl %ebx, %edx
movq %rdx, 0x18(%rsp)
movq %r12, %rsi
callq 0x53b0
movq %r15, %rdi
movq %r14, %rsi
callq 0x120f4
addq 0x18(%rsp), %r12
movq (%rsp), %rax
cmpl %ebx, %r13d
movl %ebp, %r13d
movl 0xc(%rsp), %ebx
jb 0xeeab
cmpl $0x40, %r13d
jb 0xefba
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm3, 0x30(%r14)
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
movq %r15, %rdi
movq %r14, %rsi
callq 0x120f4
addq $0x40, %r12
addl $-0x40, %r13d
cmpl $0x3f, %r13d
ja 0xef77
movl %r13d, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x53b0
movq (%rsp), %rax
jmp 0xeeab
movl 0x60(%rsp), %eax
shrl $0x3, %eax
andl $0x3f, %eax
leaq (%rsp,%rax), %rdi
addq $0x69, %rdi
movb $-0x80, -0x1(%rdi)
movl %eax, %ecx
xorl $0x3f, %ecx
cmpl $0x7, %ecx
ja 0xf022
movl %ecx, %edx
xorl %esi, %esi
callq 0x5270
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x120f4
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
movq $0x0, 0x30(%r14)
jmp 0xf030
movl $0x37, %edx
subl %eax, %edx
xorl %esi, %esi
callq 0x5270
leaq 0x50(%rsp), %r15
movq 0x10(%r15), %rax
movq %rax, 0x50(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x120f4
movaps (%r15), %xmm0
movaps %xmm0, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x40(%r15)
movaps %xmm0, (%r15)
movq $0x0, 0x50(%r15)
xorl %eax, %eax
leaq 0x6a8e(%rip), %rcx      # 0x15b0b
movq 0x10(%rsp), %rdi
movzbl 0x40(%rsp,%rax), %edx
movl %edx, %esi
shrl $0x4, %esi
movb (%rsi,%rcx), %sil
movb %sil, (%rdi,%rax,2)
andl $0xf, %edx
movb (%rdx,%rcx), %dl
movb %dl, 0x1(%rdi,%rax,2)
incq %rax
cmpq $0x10, %rax
jne 0xf082
movb $0x0, (%rdi,%rax,2)
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq