// File: /workspace/github_c_makefile_star2_O3/rpeepz[P]ft_ssl/libft/srcs/ft_printf/convert_b.c
// Function: convert_b
int				convert_b(t_mods modifiers, va_list ap, int i)
{
	uint64_t	num;
	int			nbyte;
	char		*str;

	nbyte = 0;
	num = convert_length(modifiers.length, ap);
	if (modifiers.length == 'l' || modifiers.length / 2 == 'l' ||
		modifiers.length == 'z')
		str = num_string_u_base(num, 2);
	else
		str = ft_uitoa_base(num, 2);
	num == 0 && modifiers.prcsn == 0 ? str[0] = '\0' : 0;
	if (modifiers.fl.minus == 1)
		nbyte += left_justify(modifiers, str, nbyte, i);
	else
		nbyte += right_justify(modifiers, str, nbyte, i);
	if (str)
		free(str);
	return (nbyte);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, 0x24(%rsp)
leaq 0x60(%rsp), %r15
movl 0x1c(%r15), %eax
cmpl $0x68, %eax
jne 0x8a0e
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x8a31
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x8a3d
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x8a53
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x8a94
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8aa0
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzwl (%rax), %r14d
movl %r14d, %edi
movl $0x2, %esi
callq 0xb8b7
jmp 0x8b13
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8a7e
cmpl $0x7a, %eax
je 0x8a7e
cmpl $0x6c, %eax
jne 0x8ab7
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x8acd
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x8ad9
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x8aa6
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8ab2
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %r14d
jmp 0x8aed
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r14
jmp 0x8aed
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x8ade
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8aea
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %r14
jmp 0x8b06
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movslq (%rcx), %r14
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8b06
cmpl $0x7a, %eax
je 0x8b06
cmpl $0x6c, %eax
jne 0x8a41
movq %r14, %rdi
movl $0x2, %esi
callq 0x866e
movq %rax, %rbx
testq %r14, %r14
sete %al
movl 0x18(%r15), %ebp
testl %ebp, %ebp
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x8b2f
movb $0x0, (%rbx)
cmpl $0x1, 0x8(%r15)
jne 0x8bf0
movl 0x14(%r15), %r13d
movl 0x4(%r15), %r12d
movq %rbx, %rdi
callq 0x8082
movq %rax, %r14
xorl %r15d, %r15d
testl %r12d, %r12d
je 0x8b83
cmpb $0x0, (%rbx)
je 0x8b83
cmpl $0x14, 0x24(%rsp)
leaq 0x4e8b(%rip), %rax      # 0xd9f1
leaq 0x4e87(%rip), %rsi      # 0xd9f4
cmoveq %rax, %rsi
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %r15
cmpl %r14d, %ebp
jle 0x8bab
leaq 0x422d(%rip), %r12      # 0xcdbc
decl %ebp
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %ebp
jg 0x8b8f
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
cmpl %r13d, %r14d
jge 0x8d14
leaq 0x4829(%rip), %r15      # 0xd3fa
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r14d
cmpl %r13d, %r14d
jl 0x8bd1
jmp 0x8d14
movl 0x10(%r15), %ebp
movl 0x18(%r15), %r13d
movl 0x4(%r15), %r12d
movq %rbx, %rdi
callq 0x8082
movq %rax, %r14
testl %r12d, %r12d
je 0x8cb3
cmpb $0x0, (%rbx)
je 0x8cb3
testl %ebp, %ebp
setne %al
cmpl $-0x1, %r13d
sete %cl
andb %al, %cl
xorl %esi, %esi
leaq 0x4dc1(%rip), %r12      # 0xd9f1
cmpb $0x1, %cl
jne 0x8c5a
cmpl $0xa, 0x24(%rsp)
movq %r12, %rsi
leaq 0x4db0(%rip), %rax      # 0xd9f4
cmoveq %rax, %rsi
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %rsi
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
movq %rbx, %rdx
callq 0x8d33
movl %eax, %r15d
testl %ebp, %ebp
sete %al
testl %r13d, %r13d
setns %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x8cd5
cmpl $0xa, 0x24(%rsp)
leaq 0x4d5c(%rip), %rax      # 0xd9f4
cmoveq %rax, %r12
movl $0x2, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
jmp 0x8cd5
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x8d33
movl %eax, %r15d
cmpl %r14d, %r13d
jle 0x8cfe
leaq 0x40db(%rip), %r12      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %r13d
jg 0x8ce1
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
testq %rbx, %rbx
je 0x8d21
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq