// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/md5_encoder.c
// Function: digest
static void digest(const WORD32 *m, WORD32 *d) {
  int j;
  /*MD5 PASSO1 */
  for (j=0; j<4*4; j+=4) {
    d[0] = d[0]+ F(d[1], d[2], d[3])+ m[j] + T[j];       d[0]=rotate(d[0], 7);
    d[0]+=d[1];
    d[3] = d[3]+ F(d[0], d[1], d[2])+ m[(j)+1] + T[j+1]; d[3]=rotate(d[3], 12);
    d[3]+=d[0];
    d[2] = d[2]+ F(d[3], d[0], d[1])+ m[(j)+2] + T[j+2]; d[2]=rotate(d[2], 17);
    d[2]+=d[3];
    d[1] = d[1]+ F(d[2], d[3], d[0])+ m[(j)+3] + T[j+3]; d[1]=rotate(d[1], 22);
    d[1]+=d[2];
  }
  /*MD5 PASSO2 */
  for (j=0; j<4*4; j+=4) {
    d[0] = d[0]+ G(d[1], d[2], d[3])+ m[(5*j+1)&0x0f] + T[(j-1)+17];
    d[0] = rotate(d[0],5);
    d[0]+=d[1];
    d[3] = d[3]+ G(d[0], d[1], d[2])+ m[((5*(j+1)+1)&0x0f)] + T[(j+0)+17];
    d[3] = rotate(d[3], 9);
    d[3]+=d[0];
    d[2] = d[2]+ G(d[3], d[0], d[1])+ m[((5*(j+2)+1)&0x0f)] + T[(j+1)+17];
    d[2] = rotate(d[2], 14);
    d[2]+=d[3];
    d[1] = d[1]+ G(d[2], d[3], d[0])+ m[((5*(j+3)+1)&0x0f)] + T[(j+2)+17];
    d[1] = rotate(d[1], 20);
    d[1]+=d[2];
  }
  /*MD5 PASSO3 */
  for (j=0; j<4*4; j+=4) {
    d[0] = d[0]+ H(d[1], d[2], d[3])+ m[(3*j+5)&0x0f] + T[(j-1)+33];
    d[0] = rotate(d[0], 4);
    d[0]+=d[1];
    d[3] = d[3]+ H(d[0], d[1], d[2])+ m[(3*(j+1)+5)&0x0f] + T[(j+0)+33];
    d[3] = rotate(d[3], 11);
    d[3]+=d[0];
    d[2] = d[2]+ H(d[3], d[0], d[1])+ m[(3*(j+2)+5)&0x0f] + T[(j+1)+33];
    d[2] = rotate(d[2], 16);
    d[2]+=d[3];
    d[1] = d[1]+ H(d[2], d[3], d[0])+ m[(3*(j+3)+5)&0x0f] + T[(j+2)+33];
    d[1] = rotate(d[1], 23);
    d[1]+=d[2];
  }
  /*MD5 PASSO4 */
  for (j=0; j<4*4; j+=4) {
    d[0] = d[0]+ I(d[1], d[2], d[3])+ m[(7*j)&0x0f] + T[(j-1)+49];
    d[0] = rotate(d[0], 6);
    d[0]+=d[1];
    d[3] = d[3]+ I(d[0], d[1], d[2])+ m[(7*(j+1))&0x0f] + T[(j+0)+49];
    d[3] = rotate(d[3], 10);
    d[3]+=d[0];
    d[2] = d[2]+ I(d[3], d[0], d[1])+ m[(7*(j+2))&0x0f] + T[(j+1)+49];
    d[2] = rotate(d[2], 15);
    d[2]+=d[3];
    d[1] = d[1]+ I(d[2], d[3], d[0])+ m[(7*(j+3))&0x0f] + T[(j+2)+49];
    d[1] = rotate(d[1], 21);
    d[1]+=d[2];
  }
}

// Assembly:
movl (%rsi), %r9d
movl 0x4(%rsi), %eax
movl 0x8(%rsi), %ecx
movl 0xc(%rsi), %edx
movq $-0x4, %r10
leaq 0x32434(%rip), %r8      # 0x1097c0
movl %ecx, %r11d
xorl %edx, %r11d
andl %eax, %r11d
xorl %edx, %r11d
addl 0x10(%rdi,%r10,4), %r9d
addl %r11d, %r9d
addl 0x10(%r8,%r10,4), %r9d
roll $0x7, %r9d
addl %eax, %r9d
movl %r9d, (%rsi)
movl %eax, %r11d
xorl %ecx, %r11d
andl %r9d, %r11d
addl 0x14(%rdi,%r10,4), %edx
xorl %ecx, %r11d
addl 0x14(%r8,%r10,4), %edx
addl %r11d, %edx
roll $0xc, %edx
addl %r9d, %edx
movl %edx, 0xc(%rsi)
movl %r9d, %r11d
xorl %eax, %r11d
andl %edx, %r11d
xorl %eax, %r11d
addl 0x18(%rdi,%r10,4), %ecx
addl 0x18(%r8,%r10,4), %ecx
addl %r11d, %ecx
roll $0x11, %ecx
addl %edx, %ecx
movl %ecx, 0x8(%rsi)
movl %edx, %r11d
xorl %r9d, %r11d
andl %ecx, %r11d
addl 0x1c(%rdi,%r10,4), %eax
addl 0x1c(%r8,%r10,4), %eax
xorl %r9d, %r11d
addl %r11d, %eax
roll $0x16, %eax
addl %ecx, %eax
movl %eax, 0x4(%rsi)
addq $0x4, %r10
cmpq $0xc, %r10
jb 0xd738c
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movq $-0x4, %r10
movl $0xa, %r11d
movl %eax, %ebx
xorl %ecx, %ebx
andl %edx, %ebx
xorl %ecx, %ebx
addl 0x14(%rdi,%r10,4), %r9d
addl %ebx, %r9d
addl 0x50(%r8,%r10,4), %r9d
roll $0x5, %r9d
addl %eax, %r9d
movl %r9d, (%rsi)
movl %r9d, %ebx
xorl %eax, %ebx
andl %ecx, %ebx
xorl %eax, %ebx
leal -0x4(%r11), %r14d
andl $0xe, %r14d
addl (%rdi,%r14,4), %edx
addl 0x54(%r8,%r10,4), %edx
addl %ebx, %edx
roll $0x9, %edx
addl %r9d, %edx
movl %edx, 0xc(%rsi)
movl %edx, %ebx
xorl %r9d, %ebx
andl %eax, %ebx
movl %r11d, %r14d
andl $0xe, %r14d
addl 0x4(%rdi,%r14,4), %ecx
xorl %r9d, %ebx
addl 0x58(%r8,%r10,4), %ecx
addl %ebx, %ecx
roll $0xe, %ecx
addl %edx, %ecx
movl %ecx, 0x8(%rsi)
movl %ecx, %ebx
xorl %edx, %ebx
andl %r9d, %ebx
xorl %edx, %ebx
addl 0x10(%rdi,%r10,4), %eax
addl 0x5c(%r8,%r10,4), %eax
addl %ebx, %eax
roll $0x14, %eax
addl %ecx, %eax
movl %eax, 0x4(%rsi)
addq $0x4, %r10
addq $0x14, %r11
cmpq $0xc, %r10
jb 0xd7434
leaq 0x38(%rdi), %r10
movq $-0x4, %r11
movl $0xb, %ebx
movl %ecx, %ebp
xorl %eax, %ebp
movl %ebp, %r14d
xorl %edx, %r14d
addl %r9d, %r14d
leal -0x6(%rbx), %r9d
andl $0xd, %r9d
addl (%rdi,%r9,4), %r14d
addl 0x90(%r8,%r11,4), %r14d
leal -0xb(%rbx), %r15d
roll $0x4, %r14d
movl %r14d, %r9d
addl %eax, %r9d
movl %r9d, (%rsi)
andl $0xc, %r15d
xorl $0x8, %r15d
addl (%rdi,%r15,4), %edx
addl 0x94(%r8,%r11,4), %edx
xorl %r9d, %ebp
addl %ebp, %edx
roll $0xb, %edx
addl %r9d, %edx
movl %edx, 0xc(%rsi)
movl %edx, %ebp
xorl %r9d, %ebp
movl %ebp, %r14d
xorl %eax, %r14d
movl %ebx, %r15d
andl $0xf, %r15d
addl (%rdi,%r15,4), %ecx
addl %r14d, %ecx
addl 0x98(%r8,%r11,4), %ecx
roll $0x10, %ecx
addl %edx, %ecx
movl %ecx, 0x8(%rsi)
addl (%r10), %eax
xorl %ecx, %ebp
addl 0x9c(%r8,%r11,4), %eax
addl %ebp, %eax
roll $0x17, %eax
addl %ecx, %eax
movl %eax, 0x4(%rsi)
addq $0x4, %r11
addq $0xc, %rbx
addq $-0x10, %r10
cmpq $0xc, %r11
jb 0xd74dc
leaq 0x38(%rdi), %r10
movq $-0x4, %r11
movl $0x5, %ebx
movl %edx, %ebp
notl %ebp
orl %eax, %ebp
leal -0x5(%rbx), %r14d
andl $0xc, %r14d
addl (%rdi,%r14,4), %r9d
xorl %ecx, %ebp
addl %ebp, %r9d
addl 0xd0(%r8,%r11,4), %r9d
roll $0x6, %r9d
addl %eax, %r9d
movl %r9d, (%rsi)
movl %ecx, %ebp
notl %ebp
orl %r9d, %ebp
leal 0x2(%rbx), %r14d
andl $0xf, %r14d
addl (%rdi,%r14,4), %edx
xorl %eax, %ebp
addl 0xd4(%r8,%r11,4), %edx
addl %ebp, %edx
roll $0xa, %edx
addl %r9d, %edx
movl %edx, 0xc(%rsi)
movl %eax, %ebp
notl %ebp
orl %edx, %ebp
xorl %r9d, %ebp
addl (%r10), %ecx
addl 0xd8(%r8,%r11,4), %ecx
addl %ebp, %ecx
roll $0xf, %ecx
addl %edx, %ecx
movl %ecx, 0x8(%rsi)
movl %r9d, %ebp
notl %ebp
orl %ecx, %ebp
movl %ebx, %r14d
andl $0xd, %r14d
addl (%rdi,%r14,4), %eax
xorl %edx, %ebp
addl 0xdc(%r8,%r11,4), %eax
addl %ebp, %eax
roll $0x15, %eax
addl %ecx, %eax
movl %eax, 0x4(%rsi)
addq $0x4, %r11
addq $0x1c, %rbx
addq $-0x10, %r10
cmpq $0xc, %r11
jb 0xd7596
popq %rbx
popq %r14
popq %r15
popq %rbp
retq