// File: /workspace/github_cpp_makefile_star2_O3/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 $0x158, %rsp            # imm = 0x158
movq %rdi, (%rsp)
leaq 0xa0(%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 0xedc9
movaps %xmm0, 0xd0(%rsp)
movaps %xmm1, 0xe0(%rsp)
movaps %xmm2, 0xf0(%rsp)
movaps %xmm3, 0x100(%rsp)
movaps %xmm4, 0x110(%rsp)
movaps %xmm5, 0x120(%rsp)
movaps %xmm6, 0x130(%rsp)
movaps %xmm7, 0x140(%rsp)
movaps 0x6970(%rip), %xmm0     # 0x15740
leaq 0x58(%rsp), %r14
movaps %xmm0, -0x18(%r14)
movq $0x0, -0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, 0x10(%rsp)
leaq 0x190(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x20(%rsp)
movl $0x8, %ebp
leaq 0x40(%rsp), %r15
cmpl $0x28, %ebp
ja 0xee2b
movq %rax, %r13
movl %ebp, %eax
leaq 0xa0(%rsp), %rcx
addq %rcx, %rax
addl $0x8, %ebp
movl %ebp, 0x10(%rsp)
jmp 0xee34
leaq 0x8(%rax), %r13
movq %r13, 0x18(%rsp)
movq (%rax), %r12
testq %r12, %r12
je 0xef04
movq %r12, %rdi
callq 0x5210
movl 0x50(%rsp), %ecx
leal (,%rax,8), %edx
movl %eax, %esi
shrl $0x1d, %esi
addl %ecx, %edx
movl %edx, 0x50(%rsp)
adcl %esi, 0x54(%rsp)
shrl $0x3, %ecx
andl $0x3f, %ecx
je 0xee7f
leaq (%r14,%rcx), %rdi
movl $0x40, %edx
subl %ecx, %edx
movl %eax, %ebx
subl %edx, %ebx
jae 0xee83
movl %eax, %edx
jmp 0xeef4
movl %eax, %ebx
jmp 0xeea9
movq %r13, 0x8(%rsp)
movl %edx, %r13d
movq %r12, %rsi
movq %r13, %rdx
callq 0x53b0
movq %r15, %rdi
movq %r14, %rsi
callq 0x1148c
addq %r13, %r12
movq 0x8(%rsp), %r13
cmpl $0x40, %ebx
jb 0xeeef
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 0x1148c
addq $0x40, %r12
addl $-0x40, %ebx
cmpl $0x3f, %ebx
ja 0xeeae
movl %ebx, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x53b0
movq %r13, %rax
jmp 0xee0d
movl 0x50(%rsp), %eax
shrl $0x3, %eax
andl $0x3f, %eax
leaq (%r14,%rax), %rdi
incq %rdi
movb $-0x80, 0x58(%rsp,%rax)
movl %eax, %ecx
xorl $0x3f, %ecx
cmpl $0x7, %ecx
ja 0xef55
movl %ecx, %edx
xorl %esi, %esi
callq 0x5270
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x1148c
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
movq $0x0, 0x30(%r14)
jmp 0xef63
movl $0x37, %edx
subl %eax, %edx
xorl %esi, %esi
callq 0x5270
leaq 0x40(%rsp), %r15
movq 0x10(%r15), %rax
movq %rax, 0x50(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x1148c
movaps (%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
leaq 0x6b7e(%rip), %rcx      # 0x15b0b
movq (%rsp), %rdi
movzbl 0x30(%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 0xef91
movb $0x0, (%rdi,%rax,2)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq