// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/md5-1.2/src/md5.c
// Function: md5
void md5 (const char *message, long len, char *output) {
  WORD32 d[4];
  int status = 0;
  long i = 0;
  inic_digest(d);
  while (status != 2) {
    WORD32 d_old[4];
    WORD32 wbuff[16];
    int numbytes = (len-i >= 64) ? 64 : len-i;
    /*salva os valores do vetor digest*/
    d_old[0]=d[0]; d_old[1]=d[1]; d_old[2]=d[2]; d_old[3]=d[3];
    status = converte(wbuff, message+i, numbytes, status);
    if (status == 2) put_length(wbuff, len);
    digest(wbuff, d);
    d[0]+=d_old[0]; d[1]+=d_old[1]; d[2]+=d_old[2]; d[3]+=d_old[3];
    i += numbytes;
  }
  word32tobytes(d, output);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, 0x70(%rsp)
movq %rdi, 0x80(%rsp)
movaps 0x13055f(%rip), %xmm0   # 0x36bfb0
movaps %xmm0, 0x20(%rsp)
leal (,%rsi,8), %eax
movl %eax, 0x1c(%rsp)
movq %rsi, 0x78(%rsp)
movl %esi, %eax
shrl $0x1d, %eax
movl %eax, 0x18(%rsp)
movl $0x10325476, %ebp       # imm = 0x10325476
movl $0x98badcfe, %r8d       # imm = 0x98BADCFE
movl $0xefcdab89, %ebx       # imm = 0xEFCDAB89
movl $0x67452301, %r10d      # imm = 0x67452301
movq $0x0, 0x10(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x18d473(%rip), %r12    # 0x3c8f10
xorl %ecx, %ecx
movq 0x78(%rsp), %r15
subq %rcx, %r15
cmpq $0x40, %r15
movl $0x40, %eax
cmovgeq %rax, %r15
movq 0x80(%rsp), %rax
movq %rcx, 0x88(%rsp)
leaq (%rax,%rcx), %rsi
cmpl $0x3f, %r15d
movl %r8d, 0x4(%rsp)
jg 0x23bb35
movl %r10d, 0x8(%rsp)
movl %ebx, %r14d
movl %ebp, 0xc(%rsp)
movslq %r15d, %rbp
movq %rbp, %rdx
movq %rdi, %rbx
callq 0x17660
leaq (%rsp,%rbp), %r13
addq $0x90, %r13
movl $0x40, %edx
subl %ebp, %edx
movq %r13, %rdi
xorl %esi, %esi
callq 0x173a0
cmpl $0x0, 0x10(%rsp)
jne 0x23bb15
movb $-0x80, (%r13)
movq %rbx, %rsi
movl $0x1, %eax
movq %rax, 0x10(%rsp)
movl 0xc(%rsp), %ebp
movl 0x4(%rsp), %r8d
movl %r14d, %ebx
movl 0x8(%rsp), %r10d
jmp 0x23bb3e
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
movl %ecx, 0x30(%rsp,%rax,4)
incq %rax
cmpq $0x10, %rax
jne 0x23bb40
cmpl $0x37, %r15d
jg 0x23bb66
movl 0x1c(%rsp), %eax
movl %eax, 0x68(%rsp)
movl 0x18(%rsp), %eax
movl %eax, 0x6c(%rsp)
movq $-0x4, %r9
movl %r10d, %edi
movl %r10d, %esi
movl %ebx, %edx
movl %r8d, %ecx
movl %ebp, %eax
movl %ecx, %r8d
xorl %eax, %r8d
andl %edx, %r8d
xorl %eax, %r8d
addl 0x40(%rsp,%r9,4), %esi
addl %r8d, %esi
addl 0x10(%r12,%r9,4), %esi
roll $0x7, %esi
addl %edx, %esi
movl %edx, %r8d
xorl %ecx, %r8d
andl %esi, %r8d
addl 0x44(%rsp,%r9,4), %eax
addl 0x14(%r12,%r9,4), %eax
xorl %ecx, %r8d
addl %r8d, %eax
roll $0xc, %eax
addl %esi, %eax
movl %esi, %r8d
xorl %edx, %r8d
andl %eax, %r8d
addl 0x48(%rsp,%r9,4), %ecx
addl 0x18(%r12,%r9,4), %ecx
xorl %edx, %r8d
addl %r8d, %ecx
roll $0x11, %ecx
addl %eax, %ecx
movl %eax, %r8d
xorl %esi, %r8d
andl %ecx, %r8d
addl 0x4c(%rsp,%r9,4), %edx
addl 0x1c(%r12,%r9,4), %edx
xorl %esi, %r8d
addl %r8d, %edx
roll $0x16, %edx
addl %ecx, %edx
addq $0x4, %r9
cmpq $0xc, %r9
jb 0x23bb7a
movq $-0x4, %r11
movl $0xa, %r8d
movl %edx, %r9d
xorl %ecx, %r9d
andl %eax, %r9d
xorl %ecx, %r9d
addl 0x44(%rsp,%r11,4), %esi
addl %r9d, %esi
addl 0x50(%r12,%r11,4), %esi
roll $0x5, %esi
addl %edx, %esi
movl %esi, %r9d
xorl %edx, %r9d
andl %ecx, %r9d
leal -0x4(%r8), %r10d
andl $0xe, %r10d
addl 0x30(%rsp,%r10,4), %eax
xorl %edx, %r9d
addl 0x54(%r12,%r11,4), %eax
addl %r9d, %eax
roll $0x9, %eax
addl %esi, %eax
movl %eax, %r9d
xorl %esi, %r9d
andl %edx, %r9d
movl %r8d, %r10d
andl $0xe, %r10d
addl 0x34(%rsp,%r10,4), %ecx
addl 0x58(%r12,%r11,4), %ecx
xorl %esi, %r9d
addl %r9d, %ecx
roll $0xe, %ecx
addl %eax, %ecx
movl %ecx, %r9d
xorl %eax, %r9d
andl %esi, %r9d
addl 0x40(%rsp,%r11,4), %edx
addl 0x5c(%r12,%r11,4), %edx
xorl %eax, %r9d
addl %r9d, %edx
roll $0x14, %edx
addl %ecx, %edx
addq $0x4, %r11
addq $0x14, %r8
cmpq $0xc, %r11
jb 0x23bc0d
movq $-0x4, %r14
movl $0xb, %r8d
leaq 0x68(%rsp), %r9
movl %ecx, %r10d
xorl %edx, %r10d
movl %r10d, %r11d
xorl %eax, %r11d
addl %esi, %r11d
leal -0xb(%r8), %r13d
leal -0x6(%r8), %esi
andl $0xd, %esi
addl 0x30(%rsp,%rsi,4), %r11d
addl 0x90(%r12,%r14,4), %r11d
roll $0x4, %r11d
movl %r11d, %esi
addl %edx, %esi
andl $0xc, %r13d
xorl $0x8, %r13d
addl 0x30(%rsp,%r13,4), %eax
addl 0x94(%r12,%r14,4), %eax
xorl %esi, %r10d
addl %r10d, %eax
roll $0xb, %eax
addl %esi, %eax
movl %eax, %r10d
xorl %esi, %r10d
movl %r10d, %r11d
movl %r8d, %r13d
andl $0xf, %r13d
addl 0x30(%rsp,%r13,4), %ecx
xorl %edx, %r11d
addl 0x98(%r12,%r14,4), %ecx
addl %r11d, %ecx
roll $0x10, %ecx
addl %eax, %ecx
xorl %ecx, %r10d
addl (%r9), %edx
addl 0x9c(%r12,%r14,4), %edx
addl %r10d, %edx
roll $0x17, %edx
addl %ecx, %edx
addq $0x4, %r14
addq $-0x10, %r9
addq $0xc, %r8
cmpq $0xc, %r14
jb 0x23bcb8
movq $-0x4, %r14
movl $0x5, %r8d
leaq 0x68(%rsp), %r9
movl %eax, %r10d
notl %r10d
orl %edx, %r10d
leal -0x5(%r8), %r11d
andl $0xc, %r11d
addl 0x30(%rsp,%r11,4), %esi
xorl %ecx, %r10d
addl %r10d, %esi
addl 0xd0(%r12,%r14,4), %esi
roll $0x6, %esi
addl %edx, %esi
movl %ecx, %r10d
notl %r10d
orl %esi, %r10d
leal 0x2(%r8), %r11d
andl $0xf, %r11d
addl 0x30(%rsp,%r11,4), %eax
addl 0xd4(%r12,%r14,4), %eax
xorl %edx, %r10d
addl %r10d, %eax
roll $0xa, %eax
addl %esi, %eax
movl %edx, %r10d
notl %r10d
orl %eax, %r10d
addl (%r9), %ecx
addl 0xd8(%r12,%r14,4), %ecx
xorl %esi, %r10d
addl %r10d, %ecx
roll $0xf, %ecx
addl %eax, %ecx
movl %esi, %r10d
notl %r10d
orl %ecx, %r10d
xorl %eax, %r10d
movl %r8d, %r11d
andl $0xd, %r11d
addl 0x30(%rsp,%r11,4), %edx
addl 0xdc(%r12,%r14,4), %edx
addl %r10d, %edx
roll $0x15, %edx
addl %ecx, %edx
addq $0x4, %r14
addq $0x1c, %r8
addq $-0x10, %r9
cmpq $0xc, %r14
jb 0x23bd6e
movl %edi, %r10d
addl %esi, %r10d
addl %edx, %ebx
movl 0x4(%rsp), %r8d
addl %ecx, %r8d
addl %eax, %ebp
movslq %r15d, %rax
movq 0x88(%rsp), %rcx
addq %rax, %rcx
cmpl $0x38, %r15d
leaq 0x90(%rsp), %rdi
jge 0x23ba9f
movl %r10d, 0x20(%rsp)
movl %ebx, 0x24(%rsp)
movl %r8d, 0x28(%rsp)
movl %ebp, 0x2c(%rsp)
movq $-0x4, %rax
movq 0x70(%rsp), %rdx
movl 0x24(%rsp,%rax), %ecx
movl %ecx, 0x4(%rdx,%rax)
addq $0x4, %rax
cmpq $0xc, %rax
jb 0x23be6d
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)