// File: /workspace/github_c_makefile_star2_O0/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdio/ft_printf/aux/ft_putoxx.c
// Function: ft_putoxx
int	ft_putoxx(t_flags flags, char *s, int n, int b)
{
	int	nb;

	nb = 0;
	if (!flags.minus)
	{
		if (flags.zero && flags.precision <= 0)
		{
			if (ft_strcmp(s, "0") == 0)
				nb += write(flags.fd, "00", 2);
			else
				nb += write(flags.fd, xtype(flags.type),
						2 * (is_xx(flags.type) && flags.square));
			nb += ft_repet_fd('0', n - (ft_strcmp(s, "0") == 0) * 2, flags.fd);
		}
		else
			nb += ft_repet_fd(' ', n, flags.fd);
	}
	if (b && flags.type == 'o' && ft_strcmp(s, "0") != 0)
		nb += write(flags.fd, "0", 1);
	if (b && ft_strcmp(s, "0") && (flags.type == 'x' || flags.type == 'X')
		&& !(flags.zero && flags.precision <= 0 && !flags.minus))
		nb += write(flags.fd, xtype(flags.type), 2);
	return (nb);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x0, 0xc(%rax)
jne 0x6079
movq -0x20(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x605d
movq -0x20(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jg 0x605d
movq -0x8(%rbp), %rdi
leaq 0x2423(%rip), %rsi      # 0x83a5
callq 0x6fb0
cmpl $0x0, %eax
jne 0x5fb3
movq -0x20(%rbp), %rax
movl 0x38(%rax), %edi
leaq 0x240a(%rip), %rsi      # 0x83a4
movl $0x2, %edx
callq 0x1060
movq %rax, %rcx
movslq -0x14(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x14(%rbp)
jmp 0x6019
movq -0x20(%rbp), %rax
movl 0x38(%rax), %ecx
movl %ecx, -0x34(%rbp)
movsbl 0x30(%rax), %edi
callq 0x6160
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, -0x30(%rbp)
movsbl 0x30(%rax), %edi
callq 0x61a0
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
je 0x5ff3
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
setne %al
movb %al, -0x21(%rbp)
movq -0x30(%rbp), %rsi
movl -0x34(%rbp), %edi
movb -0x21(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
shll %eax
movslq %eax, %rdx
callq 0x1060
movq %rax, %rcx
movslq -0x14(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x14(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x237b(%rip), %rsi      # 0x83a5
callq 0x6fb0
movl -0x38(%rbp), %esi
movl %eax, %ecx
movq -0x20(%rbp), %rax
cmpl $0x0, %ecx
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
shll %ecx
subl %ecx, %esi
movl 0x38(%rax), %edx
movl $0x30, %edi
callq 0x6a70
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x6077
movq -0x20(%rbp), %rax
movl -0xc(%rbp), %esi
movl 0x38(%rax), %edx
movl $0x20, %edi
callq 0x6a70
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x6079
cmpl $0x0, -0x10(%rbp)
je 0x60c6
movq -0x20(%rbp), %rax
movsbl 0x30(%rax), %eax
cmpl $0x6f, %eax
jne 0x60c6
movq -0x8(%rbp), %rdi
leaq 0x230e(%rip), %rsi      # 0x83a5
callq 0x6fb0
cmpl $0x0, %eax
je 0x60c6
movq -0x20(%rbp), %rax
movl 0x38(%rax), %edi
leaq 0x22f6(%rip), %rsi      # 0x83a5
movl $0x1, %edx
callq 0x1060
movq %rax, %rcx
movslq -0x14(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x10(%rbp)
je 0x6149
movq -0x8(%rbp), %rdi
leaq 0x22ce(%rip), %rsi      # 0x83a5
callq 0x6fb0
cmpl $0x0, %eax
je 0x6149
movq -0x20(%rbp), %rax
movsbl 0x30(%rax), %eax
cmpl $0x78, %eax
je 0x60fb
movq -0x20(%rbp), %rax
movsbl 0x30(%rax), %eax
cmpl $0x58, %eax
jne 0x6149
movq -0x20(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x6119
movq -0x20(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jg 0x6119
movq -0x20(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x6149
movq -0x20(%rbp), %rax
movl 0x38(%rax), %ecx
movl %ecx, -0x3c(%rbp)
movsbl 0x30(%rax), %edi
callq 0x6160
movl -0x3c(%rbp), %edi
movq %rax, %rsi
movl $0x2, %edx
callq 0x1060
movq %rax, %rcx
movslq -0x14(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)