// File: /workspace/github_c_makefile_star2_O1/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)
movl 0x7c(%rsp), %eax
cmpl $0x68, %eax
jne 0x8305
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x8328
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8334
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0xd0, %ecx
jne 0x833a
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x8369
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8375
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzwl (%rcx), %r14d
jmp 0x838a
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8353
cmpl $0x7a, %eax
je 0x8353
cmpl $0x6c, %eax
jne 0x85e7
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x837b
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8387
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %r14d
jmp 0x838a
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r14
leaq 0x60(%rsp), %r15
leal -0xd8(%rax), %ecx
cmpl $0x2, %ecx
jb 0x83a8
cmpl $0x7a, %eax
je 0x83a8
cmpl $0x6c, %eax
jne 0x85d5
movq %r14, %rdi
movl $0x2, %esi
callq 0x7f7e
movq %rax, %rbx
testq %r14, %r14
sete %al
movl 0x18(%r15), %ebp
testl %ebp, %ebp
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x83d1
movb $0x0, (%rbx)
cmpl $0x1, 0x8(%r15)
jne 0x8492
movl 0x14(%r15), %r13d
movl 0x4(%r15), %r12d
movq %rbx, %rdi
callq 0x7952
movq %rax, %r14
xorl %r15d, %r15d
testl %r12d, %r12d
je 0x8425
cmpb $0x0, (%rbx)
je 0x8425
cmpl $0x14, 0x24(%rsp)
leaq 0x5549(%rip), %rax      # 0xd951
leaq 0x5545(%rip), %rsi      # 0xd954
cmoveq %rax, %rsi
movl $0x2, %edx
movl $0x1, %edi
callq 0x1050
movq %rax, %r15
cmpl %r14d, %ebp
jle 0x844d
leaq 0x498b(%rip), %r12      # 0xcdbc
decl %ebp
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %ebp
jg 0x8431
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
cmpl %r13d, %r14d
jge 0x85b6
leaq 0x4ee7(%rip), %r15      # 0xd35a
movl $0x1, %edx
movl $0x1, %edi
movq %r15, %rsi
callq 0x1050
addl %eax, %r14d
cmpl %r13d, %r14d
jl 0x8473
jmp 0x85b6
movl 0x10(%r15), %ebp
movl 0x18(%r15), %r13d
movl 0x4(%r15), %r12d
movq %rbx, %rdi
callq 0x7952
movq %rax, %r14
testl %r12d, %r12d
je 0x8555
cmpb $0x0, (%rbx)
je 0x8555
testl %ebp, %ebp
setne %al
cmpl $-0x1, %r13d
sete %cl
andb %al, %cl
xorl %esi, %esi
leaq 0x547f(%rip), %r12      # 0xd951
cmpb $0x1, %cl
jne 0x84fc
cmpl $0xa, 0x24(%rsp)
movq %r12, %rsi
leaq 0x546e(%rip), %rax      # 0xd954
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 0x8611
movl %eax, %r15d
testl %ebp, %ebp
sete %al
testl %r13d, %r13d
setns %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x8577
cmpl $0xa, 0x24(%rsp)
leaq 0x541a(%rip), %rax      # 0xd954
cmoveq %rax, %r12
movl $0x2, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
jmp 0x8577
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %r14d, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x8611
movl %eax, %r15d
cmpl %r14d, %r13d
jle 0x85a0
leaq 0x4839(%rip), %r12      # 0xcdbc
decl %r13d
movl $0x1, %edx
movl $0x1, %edi
movq %r12, %rsi
callq 0x1050
addl %eax, %r15d
cmpl %r14d, %r13d
jg 0x8583
movslq %r14d, %rdx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1050
movq %rax, %r14
addl %r15d, %r14d
testq %rbx, %rbx
je 0x85c3
movq %rbx, %rdi
callq 0x1030
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r14d, %edi
movl $0x2, %esi
callq 0xb093
jmp 0x83b5
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x85fd
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x8609
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movslq (%rcx), %r14
jmp 0x838a