// File: /workspace/github_c_makefile_star2_O0/MikeyLHolm[P]Hive-lem-in/libftprintf/srcs/number_cast.c
// Function: cast_unsigned_number
uintmax_t	cast_unsigned_number(t_tags *ids, uintmax_t nbr)
{
	if (ft_strcmp(ids->current_modifier, "\0") == 0)
		nbr = (unsigned int)va_arg(ids->arguments, unsigned int);
	if (ft_strcmp(ids->current_modifier, "h") == 0)
		nbr = (unsigned short)va_arg(ids->arguments, unsigned int);
	if (ft_strcmp(ids->current_modifier, "l") == 0)
		nbr = (unsigned long)va_arg(ids->arguments, unsigned long int);
	if (ft_strcmp(ids->current_modifier, "hh") == 0)
		nbr = (unsigned char)va_arg(ids->arguments, unsigned int);
	if (ft_strcmp(ids->current_modifier, "ll") == 0)
		nbr = (unsigned long long)
		va_arg(ids->arguments, unsigned long long int);
	return ((uintmax_t)nbr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0x5f, %rdi
leaq 0x30f3(%rip), %rsi      # 0xca65
callq 0x6f10
cmpl $0x0, %eax
jne 0x99d0
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x20(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x14(%rbp)
cmpl $0x28, %eax
ja 0x99af
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x28(%rbp)
jmp 0x99c6
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0x5f, %rdi
leaq 0x3089(%rip), %rsi      # 0xca68
callq 0x6f10
cmpl $0x0, %eax
jne 0x9a40
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x38(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x28, %eax
ja 0x9a1c
movq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x40(%rbp)
jmp 0x9a33
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl (%rax), %eax
movzwl %ax, %eax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0x5f, %rdi
leaq 0x301c(%rip), %rsi      # 0xca6b
callq 0x6f10
cmpl $0x0, %eax
jne 0x9aae
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x50(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x44(%rbp)
cmpl $0x28, %eax
ja 0x9a8c
movq -0x50(%rbp), %rcx
movl -0x44(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x58(%rbp)
jmp 0x9aa3
movq -0x50(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0x5f, %rdi
leaq 0x2faa(%rip), %rsi      # 0xca67
callq 0x6f10
cmpl $0x0, %eax
jne 0x9b1e
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x68(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x5c(%rbp)
cmpl $0x28, %eax
ja 0x9afa
movq -0x68(%rbp), %rcx
movl -0x5c(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x70(%rbp)
jmp 0x9b11
movq -0x68(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl (%rax), %eax
movzbl %al, %eax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
addq $0x5f, %rdi
leaq 0x2f3d(%rip), %rsi      # 0xca6a
callq 0x6f10
cmpl $0x0, %eax
jne 0x9b95
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, -0x80(%rbp)
movl 0x68(%rax), %eax
movl %eax, -0x74(%rbp)
cmpl $0x28, %eax
ja 0x9b6d
movq -0x80(%rbp), %rcx
movl -0x74(%rbp), %edx
movslq %edx, %rax
addq 0x10(%rcx), %rax
addl $0x8, %edx
movl %edx, (%rcx)
movq %rax, -0x88(%rbp)
jmp 0x9b87
movq -0x80(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rcx)
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)