// File: /workspace/github_c_makefile_star2_O3/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, 0x18(%rsp)
leaq 0x30(%rsp), %r12
movl $0x78, %esi
movq %r12, %rdi
callq 0x7370
movq %r15, %rdi
callq 0x8082
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 0x7370
movq 0x30(%r12), %rdi
movq %r15, %rsi
callq 0x7e30
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 0x3ac8
movq 0x60(%rsp), %rsi
movl 0x40(%rsp), %edi
shll $0x6, %edi
addl %eax, %edi
movb %dl, (%rsi,%rdi)
addq $0x8, %rcx
incl %eax
cmpq $0x40, %rcx
jne 0x3aa0
movaps 0x9321(%rip), %xmm0     # 0xcdf0
movaps %xmm0, 0x30(%rsp)
cmpl $0x0, 0x40(%rsp)
jle 0x3c64
xorl %ecx, %ecx
leaq 0xe778(%rip), %r9       # 0x12260
leaq 0xe671(%rip), %r10      # 0x12160
xorl %edx, %edx
movq %rdx, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movq %rcx, %rax
leaq 0x68(%rsp), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq 0x60(%rsp), %rdi
addq %rax, %rdi
movb (%rsi,%rdi), %dil
movb %dil, (%rcx,%rsi)
incq %rsi
cmpq $0x4, %rsi
jne 0x3b07
incq %rdx
addq $0x4, %rcx
addq $0x4, %rax
cmpq $0x10, %rdx
jne 0x3b05
movl 0x30(%rsp), %ebp
movl 0x34(%rsp), %r15d
movl 0x38(%rsp), %r11d
movl $0x5, %r12d
movl $0x1, %r13d
xorl %ebx, %ebx
movl 0x3c(%rsp), %r8d
xorl %edx, %edx
xorl %eax, %eax
movl %r15d, 0xc(%rsp)
movl %r11d, 0x10(%rsp)
movl %r8d, 0x14(%rsp)
movl %ebp, %r14d
movl %r14d, %ecx
movl %r8d, %r14d
movl %r11d, %r8d
movl %r15d, %r11d
cmpq $0xf, %rax
ja 0x3b8a
movl %r8d, %esi
xorl %r14d, %esi
andl %r11d, %esi
xorl %r14d, %esi
movl %eax, %edi
jmp 0x3bc8
movl %eax, %esi
andl $-0x10, %esi
cmpl $0x20, %esi
je 0x3baa
cmpl $0x10, %esi
jne 0x3bb8
movl %r11d, %esi
xorl %r8d, %esi
andl %r14d, %esi
xorl %r8d, %esi
movl %r13d, %edi
jmp 0x3bc5
movl %r8d, %esi
xorl %r11d, %esi
xorl %r14d, %esi
movl %r12d, %edi
jmp 0x3bc5
movl %r14d, %esi
notl %esi
orl %r11d, %esi
xorl %r8d, %esi
movl %ebx, %edi
andl $0xf, %edi
addl %ecx, %esi
addl (%rdx,%r9), %esi
movl %edi, %ecx
addl 0x68(%rsp,%rcx,4), %esi
movb (%rdx,%r10), %cl
movl %esi, %r15d
roll %cl, %r15d
addl %r11d, %r15d
incq %rax
addq $0x4, %rdx
addl $0x3, %r12d
addl $0x5, %r13d
addl $0x7, %ebx
cmpq $0x40, %rax
jne 0x3b68
movl %esi, 0x54(%rsp)
movl %edi, 0x58(%rsp)
movl %r14d, 0x44(%rsp)
movl %r8d, 0x50(%rsp)
movl %r11d, 0x4c(%rsp)
movl %r15d, 0x48(%rsp)
addl %r14d, %ebp
movl %ebp, 0x30(%rsp)
movl 0xc(%rsp), %edi
addl %r15d, %edi
movl %edi, 0x34(%rsp)
movl 0x10(%rsp), %ebx
addl %r11d, %ebx
movl %ebx, 0x38(%rsp)
movl 0x14(%rsp), %r11d
addl %r8d, %r11d
movl %r11d, 0x3c(%rsp)
movq 0x20(%rsp), %rdx
incq %rdx
movslq 0x40(%rsp), %rax
movq 0x28(%rsp), %rcx
addq $0x40, %rcx
cmpq %rax, %rdx
jl 0x3af1
jmp 0x3c79
movl $0x67452301, %ebp       # imm = 0x67452301
movl $0xefcdab89, %edi       # imm = 0xEFCDAB89
movl $0x98badcfe, %ebx       # imm = 0x98BADCFE
movl $0x10325476, %r11d      # imm = 0x10325476
movl %ebp, %eax
shll $0x8, %eax
movzwl %ax, %eax
movl $0x8, %ecx
movl %ebp, %edx
shrl %cl, %edx
movzbl %dl, %edx
orl %eax, %edx
movl %edx, %eax
shll $0x8, %eax
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3c86
movl %edx, 0x30(%rsp)
movl %edi, %eax
shll $0x8, %eax
movzwl %ax, %esi
movl $0x8, %ecx
movl %edi, %eax
shrl %cl, %eax
movzbl %al, %eax
orl %esi, %eax
movl %eax, %esi
shll $0x8, %esi
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3cad
movl %eax, 0x34(%rsp)
movl %ebx, %ecx
shll $0x8, %ecx
movzwl %cx, %esi
movl $0x8, %ecx
movl %ebx, %edi
shrl %cl, %edi
movzbl %dil, %r8d
orl %esi, %r8d
movl %r8d, %esi
shll $0x8, %esi
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3cd4
movl %r8d, 0x38(%rsp)
movl %r11d, %ecx
shll $0x8, %ecx
movzwl %cx, %esi
movl $0x8, %ecx
movl %r11d, %edi
shrl %cl, %edi
movzbl %dil, %r9d
orl %esi, %r9d
movl %r9d, %esi
shll $0x8, %esi
addl $0x8, %ecx
cmpl $0x20, %ecx
jne 0x3d00
movl %r9d, 0x3c(%rsp)
leaq 0x973a(%rip), %rsi      # 0xd460
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0x7a1c
movq 0x60(%rsp), %rdi
callq 0x1030
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop