// File: /workspace/github_c_makefile_star2_O1/Orycterope[P]corewar/libft/printf/cast.c
// Function: get_arg
long long			get_arg(va_list args, t_conversion *conv)
{
	if (ft_strchr("DOU", conv->conversion) != NULL)
		return ((long long)va_arg(args, long int));
	if (ft_strchr("di", conv->conversion) != NULL)
		return (d_types(args, conv));
	else if (ft_strchr("ouxX", conv->conversion) != NULL)
		return (o_types(args, conv));
	else if (ft_strchr("cCsSp", conv->conversion) != NULL)
		return (c_types(args, conv));
	return (0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movsbl 0x20(%rsi), %esi
leaq 0x18bb(%rip), %rdi      # 0x666c
callq 0x416c
testq %rax, %rax
je 0x4de8
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x4dd1
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x4ddd
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movsbl 0x20(%r14), %esi
leaq 0x1313(%rip), %rdi      # 0x6107
callq 0x416c
testq %rax, %rax
je 0x4e4b
movq 0x18(%r14), %rax
movb (%rax), %cl
addb $-0x68, %cl
rorb %cl
cmpb $0x9, %cl
ja 0x4f95
movzbl %cl, %ecx
leaq 0x1800(%rip), %rdx      # 0x661c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x68, 0x1(%rax)
movl (%rbx), %eax
jne 0x4f66
cmpl $0x28, %eax
ja 0x4fe8
movq %rax, %rcx
addq 0x10(%rbx), %rcx
addl $0x8, %eax
movl %eax, (%rbx)
jmp 0x4ff4
movsbl 0x20(%r14), %esi
leaq 0x1860(%rip), %rdi      # 0x66b7
callq 0x416c
testq %rax, %rax
je 0x4ece
movq 0x18(%r14), %rax
movb (%rax), %cl
addb $-0x68, %cl
rorb %cl
cmpb $0x9, %cl
ja 0x4fbf
movzbl %cl, %ecx
leaq 0x17c5(%rip), %rdx      # 0x6644
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x68, 0x1(%rax)
movl (%rbx), %eax
jne 0x5012
cmpl $0x28, %eax
ja 0x5025
movq %rax, %rcx
addq 0x10(%rbx), %rcx
addl $0x8, %eax
movl %eax, (%rbx)
jmp 0x5031
cmpb $0x6c, 0x1(%rax)
movl (%rbx), %eax
cmpl $0x28, %eax
ja 0x4f52
movq %rax, %rcx
addq 0x10(%rbx), %rcx
addl $0x8, %eax
movl %eax, (%rbx)
jmp 0x4f5e
movsbl 0x20(%r14), %esi
leaq 0x1796(%rip), %rdi      # 0x6670
callq 0x416c
testq %rax, %rax
je 0x4f80
movzbl 0x20(%r14), %eax
cmpl $0x62, %eax
jle 0x4f87
cmpl $0x73, %eax
je 0x4f32
cmpl $0x70, %eax
je 0x4dbb
cmpl $0x63, %eax
jne 0x4f95
movq 0x18(%r14), %rcx
cmpb $0x6c, (%rcx)
je 0x4fbf
cmpl $0x62, %eax
jle 0x4f87
cmpl $0x63, %eax
je 0x4f95
cmpl $0x70, %eax
je 0x4dbb
cmpl $0x73, %eax
jne 0x4f95
movq 0x18(%r14), %rcx
cmpb $0x6c, (%rcx)
je 0x4dbb
cmpl $0x73, %eax
je 0x4dbb
cmpl $0x70, %eax
jne 0x4f8c
jmp 0x4dbb
movq 0x8(%rbx), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rbx)
movq (%rcx), %rax
jmp 0x4de0
cmpl $0x28, %eax
ja 0x4ffd
movq %rax, %rcx
addq 0x10(%rbx), %rcx
addl $0x8, %eax
movl %eax, (%rbx)
jmp 0x5009
xorl %eax, %eax
jmp 0x4de0
cmpl $0x43, %eax
je 0x4fbf
cmpl $0x53, %eax
je 0x4dbb
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x4fab
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x4fb7
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movslq (%rax), %rax
jmp 0x4de0
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x4fd5
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x4fe1
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movl (%rax), %eax
jmp 0x4de0
movq 0x8(%rbx), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rbx)
movsbq (%rcx), %rax
jmp 0x4de0
movq 0x8(%rbx), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rbx)
movswq (%rcx), %rax
jmp 0x4de0
cmpl $0x28, %eax
ja 0x5039
movq %rax, %rcx
addq 0x10(%rbx), %rcx
addl $0x8, %eax
movl %eax, (%rbx)
jmp 0x5045
movq 0x8(%rbx), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rbx)
movzbl (%rcx), %eax
jmp 0x4de0
movq 0x8(%rbx), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rbx)
movzwl (%rcx), %eax
jmp 0x4de0
nopl (%rax)