// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/mongoose/mongoose.c
// Function: mg_md5
char *mg_md5(char buf[33], ...) {
  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));
  return buf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, -0x40(%rbp)
leaq -0x180(%rbp), %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 0x6a947
movaps %xmm0, -0x150(%rbp)
movaps %xmm1, -0x140(%rbp)
movaps %xmm2, -0x130(%rbp)
movaps %xmm3, -0x120(%rbp)
movaps %xmm4, -0x110(%rbp)
movaps %xmm5, -0x100(%rbp)
movaps %xmm6, -0xf0(%rbp)
movaps %xmm7, -0xe0(%rbp)
movaps 0xf8e2(%rip), %xmm0     # 0x7a230
leaq -0xa8(%rbp), %r14
movups %xmm0, -0x18(%r14)
movq $0x0, -0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, -0x60(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rdi, -0x50(%rbp)
movl $0x8, %ebx
leaq -0xc0(%rbp), %r15
cmpl $0x28, %ebx
ja 0x6a9a5
movq %rax, -0x30(%rbp)
movl %ebx, %eax
leaq -0x180(%rbp), %rcx
addq %rcx, %rax
addl $0x8, %ebx
movl %ebx, -0x60(%rbp)
jmp 0x6a9b1
leaq 0x8(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq %rcx, -0x58(%rbp)
movq (%rax), %r12
testq %r12, %r12
je 0x6aabb
movq %r12, %rdi
callq 0xc460
movq %rax, %r13
movl -0xb0(%rbp), %eax
leal (,%r13,8), %ecx
addl %eax, %ecx
movl %ecx, -0xb0(%rbp)
jae 0x6a9e6
incl -0xac(%rbp)
movl %r13d, %ecx
shrl $0x1d, %ecx
addl %ecx, -0xac(%rbp)
shrl $0x3, %eax
andl $0x3f, %eax
je 0x6aa5b
movl %ebx, -0x34(%rbp)
leaq (%r14,%rax), %rdi
movl $0x40, %ebx
subl %eax, %ebx
movl %r13d, %r15d
subl %ebx, %r15d
jae 0x6aa20
movl %r13d, %edx
movq %r12, %rsi
callq 0xc0e0
movl %r13d, %r15d
jmp 0x6aa41
movl %ebx, %edx
movq %rdx, -0x48(%rbp)
movq %r12, %rsi
callq 0xc0e0
leaq -0xc0(%rbp), %rdi
movq %r14, %rsi
callq 0x6dc1b
addq -0x48(%rbp), %r12
movq -0x30(%rbp), %rax
cmpl %ebx, %r13d
movl %r15d, %r13d
movl -0x34(%rbp), %ebx
leaq -0xc0(%rbp), %r15
jb 0x6a988
cmpl $0x40, %r13d
jb 0x6aaa4
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 0x6dc1b
addq $0x40, %r12
addl $-0x40, %r13d
cmpl $0x3f, %r13d
ja 0x6aa61
movl %r13d, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0xc0e0
movq -0x30(%rbp), %rax
jmp 0x6a988
movl -0xb0(%rbp), %eax
shrl $0x3, %eax
andl $0x3f, %eax
leaq (%rax,%rbp), %rdi
addq $-0xa7, %rdi
movb $-0x80, -0x1(%rdi)
movl %eax, %ecx
xorl $0x3f, %ecx
cmpl $0x7, %ecx
ja 0x6ab13
movl %ecx, %edx
xorl %esi, %esi
callq 0xc360
leaq -0xc0(%rbp), %rdi
movq %r14, %rsi
callq 0x6dc1b
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
movq $0x0, 0x30(%r14)
jmp 0x6ab21
movl $0x37, %edx
subl %eax, %edx
xorl %esi, %esi
callq 0xc360
leaq -0xc0(%rbp), %rbx
movq 0x10(%rbx), %rax
movq %rax, 0x50(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6dc1b
movaps (%rbx), %xmm0
movaps %xmm0, -0xd0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, 0x30(%rbx)
movaps %xmm0, 0x40(%rbx)
movaps %xmm0, (%rbx)
movq $0x0, 0x50(%rbx)
xorl %edi, %edi
leaq 0xf7a1(%rip), %rcx      # 0x7a30d
movq -0x40(%rbp), %rax
movzbl -0xd0(%rbp,%rdi), %edx
movl %edx, %esi
shrl $0x4, %esi
movb (%rsi,%rcx), %sil
movb %sil, (%rax,%rdi,2)
andl $0xf, %edx
movb (%rdx,%rcx), %dl
movb %dl, 0x1(%rax,%rdi,2)
incq %rdi
cmpq $0x10, %rdi
jne 0x6ab70
movb $0x0, (%rax,%rdi,2)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq