// File: /workspace/github_c_makefile_star2_O1/rpeepz[P]ft_ssl/srcs/hash/md5.c
// Function: md5
char			*md5(char *buf, char *to_hash)
{
	t_md5		b;
	int			i;

	i = -1;
	ft_bzero(&b, sizeof(t_md5));
	md5_set(to_hash, &b, (int)-1, (uint64_t)0);
	b.hash[0] = 0x67452301;
	b.hash[1] = 0xefcdab89;
	b.hash[2] = 0x98badcfe;
	b.hash[3] = 0x10325476;
	while (++i < (int)b.multiples)
		md5_cycle(i, &b);
	endian_rev(&b.hash[0]);
	endian_rev(&b.hash[1]);
	endian_rev(&b.hash[2]);
	endian_rev(&b.hash[3]);
	to_hash = buf;
	ft_sprintf(to_hash, "%.8x%.8x%.8x%.8x",
		b.hash[0], b.hash[1], b.hash[2], b.hash[3]);
	free(b.message);
	return (to_hash);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r15
movq %rdi, 0x90(%rsp)
leaq 0x18(%rsp), %r12
movl $0x78, %esi
movq %r12, %rdi
callq 0x6c50
movq %r15, %rdi
callq 0x7952
movq %rax, %r14
leaq 0x8(%rax), %r13
shrq $0x6, %r13
incl %r13d
movl %r13d, 0x10(%r12)
shll $0x6, %r13d
movq %r13, %rdi
callq 0x10d0
movq %rax, 0x30(%r12)
movq %rax, %rdi
movq %r13, %rsi
callq 0x6c50
movq 0x30(%r12), %rdi
movq %r15, %rsi
callq 0x76fc
movq 0x30(%r12), %rax
movb $-0x80, (%rax,%r14)
shlq $0x3, %r14
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
xorl %ecx, %ecx
movq %r14, %rdx
shrq %cl, %rdx
testq %rdx, %rdx
je 0x3acf
movq 0x48(%rsp), %rsi
movl 0x28(%rsp), %edi
shll $0x6, %edi
addl %eax, %edi
movb %dl, (%rsi,%rdi)
addq $0x8, %rcx
incl %eax
cmpq $0x40, %rcx
jne 0x3aa7
movaps 0x931a(%rip), %xmm0     # 0xcdf0
movups %xmm0, 0x18(%rsp)
cmpl $0x0, 0x28(%rsp)
jle 0x3c8f
xorl %ecx, %ecx
leaq 0xe771(%rip), %rsi      # 0x12260
leaq 0xe66a(%rip), %rdi      # 0x12160
xorl %edx, %edx
movq %rdx, 0x98(%rsp)
movq %rcx, 0xa0(%rsp)
movq %rcx, %rax
leaq 0x50(%rsp), %rcx
xorl %edx, %edx
xorl %r8d, %r8d
movq 0x48(%rsp), %r9
addq %rax, %r9
movb (%r8,%r9), %r9b
movb %r9b, (%rcx,%r8)
incq %r8
cmpq $0x4, %r8
jne 0x3b15
incq %rdx
addq $0x4, %rcx
addq $0x4, %rax
cmpq $0x10, %rdx
jne 0x3b12
movl 0x18(%rsp), %ebp
movl 0x1c(%rsp), %r15d
movl %ebp, 0x2c(%rsp)
movl %r15d, 0x30(%rsp)
movl 0x20(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x24(%rsp), %r11d
movl %r11d, 0x38(%rsp)
movl $0x5, %r12d
movl $0x1, %r13d
xorl %ebx, %ebx
xorl %edx, %edx
xorl %r8d, %r8d
movl %r15d, 0x10(%rsp)
movl %eax, 0xc(%rsp)
movl %r11d, 0x14(%rsp)
movl %ebp, %r14d
movl %r14d, %ecx
movl %r11d, %r14d
movl %eax, %r11d
movl %r15d, %eax
cmpq $0xf, %r8
ja 0x3baa
movl %r11d, %r9d
xorl %r14d, %r9d
andl %eax, %r9d
xorl %r14d, %r9d
movl %r8d, %r10d
jmp 0x3bef
movl %r8d, %r9d
andl $-0x10, %r9d
cmpl $0x20, %r9d
je 0x3bce
cmpl $0x10, %r9d
jne 0x3bdc
movl %eax, %r9d
xorl %r11d, %r9d
andl %r14d, %r9d
xorl %r11d, %r9d
movl %r13d, %r10d
jmp 0x3beb
movl %r11d, %r9d
xorl %eax, %r9d
xorl %r14d, %r9d
movl %r12d, %r10d
jmp 0x3beb
movl %r14d, %r9d
notl %r9d
orl %eax, %r9d
xorl %r11d, %r9d
movl %ebx, %r10d
andl $0xf, %r10d
addl %ecx, %r9d
addl (%rdx,%rsi), %r9d
movl %r10d, %ecx
addl 0x50(%rsp,%rcx,4), %r9d
movb (%rdx,%rdi), %cl
movl %r9d, %r15d
roll %cl, %r15d
addl %eax, %r15d
incq %r8
addq $0x4, %rdx
addl $0x3, %r12d
addl $0x5, %r13d
addl $0x7, %ebx
cmpq $0x40, %r8
jne 0x3b87
movl %r10d, 0x40(%rsp)
movl %r9d, 0x3c(%rsp)
movl %r14d, 0x2c(%rsp)
movl %r11d, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl %r15d, 0x30(%rsp)
addl %r14d, %ebp
movl %ebp, 0x18(%rsp)
movl 0x10(%rsp), %ecx
addl %r15d, %ecx
movl %ecx, 0x1c(%rsp)
movl 0xc(%rsp), %ecx
addl %eax, %ecx
movl %ecx, 0x20(%rsp)
movl 0x14(%rsp), %eax
addl %r11d, %eax
movl %eax, 0x24(%rsp)
movq 0x98(%rsp), %rdx
incq %rdx
movslq 0x28(%rsp), %rax
movq 0xa0(%rsp), %rcx
addq $0x40, %rcx
cmpq %rax, %rdx
jl 0x3af8
movl 0x18(%rsp), %eax
movl %eax, %ecx
rolw $0x8, %cx
movzwl %cx, %edx
movl $0x10, %ecx
movl %edx, %esi
shll $0x8, %esi
movl %eax, %edx
shrl %cl, %edx
movzbl %dl, %edx
orl %esi, %edx
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3ca1
movl %edx, 0x18(%rsp)
movl 0x1c(%rsp), %esi
movl %esi, %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl $0x10, %ecx
movl %eax, %edi
shll $0x8, %edi
movl %esi, %eax
shrl %cl, %eax
movzbl %al, %eax
orl %edi, %eax
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3ccd
movl %eax, 0x1c(%rsp)
movl 0x20(%rsp), %esi
movl %esi, %ecx
rolw $0x8, %cx
movzwl %cx, %r8d
movl $0x10, %ecx
movl %r8d, %edi
shll $0x8, %edi
movl %esi, %r8d
shrl %cl, %r8d
movzbl %r8b, %r8d
orl %edi, %r8d
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3cfa
movl %r8d, 0x20(%rsp)
movl 0x24(%rsp), %esi
movl %esi, %ecx
rolw $0x8, %cx
movzwl %cx, %r9d
movl $0x10, %ecx
movl %r9d, %edi
shll $0x8, %edi
movl %esi, %r9d
shrl %cl, %r9d
movzbl %r9b, %r9d
orl %edi, %r9d
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3d2d
movl %r9d, 0x24(%rsp)
leaq 0x966c(%rip), %rsi      # 0xd3c0
movq 0x90(%rsp), %rbx
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0x7300
movq 0x48(%rsp), %rdi
callq 0x1030
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop