// File: /workspace/github_c_makefile_star2_O0/rpeepz[P]ft_ssl/libft/srcs/ft_sprintf.c
// Function: parse_string
static int		parse_string(char *buf, char **str, va_list ap)
{
	int		i;
	t_mod	modifier;

	(*str)++;
	if (**str)
		modifier = get_mod(str, ap);
	if (!(i = get_type_specifier(**str)))
	{
		ft_strncpy(buf, *str, 1);
		(*str)++;
		(*buf)++;
		return (1);
	}
	(*str)++;
	if (i == 2 || i == 12)
		return (i_to_buf(buf, modifier, ap));
	if (i == 3)
		return (c_to_buf(buf, modifier, ap));
	if (i == 4)
		return (s_to_buf(buf, modifier, ap));
	if (i == 7 || i == 17)
		return (u_to_buf(buf, modifier, ap, i));
	if (i == 8 || i == 18)
		return (x_to_buf(buf, modifier, ap, i));
	return (42);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0xb564
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x6c(%rbp), %rdi
callq 0x10220
leaq -0x48(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
movl $0x24, %edx
callq 0x10b0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %edi
callq 0xc940
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jne 0xb5b5
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movl $0x1, %edx
callq 0xbb20
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movb (%rax), %cl
addb $0x1, %cl
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0xb6d8
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
cmpl $0x2, -0x24(%rbp)
je 0xb5cf
cmpl $0xc, -0x24(%rbp)
jne 0xb5fc
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x28(%rbp), %ecx
movq %rsp, %rax
movl %ecx, 0x20(%rax)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x10c40
movl %eax, -0x4(%rbp)
jmp 0xb6d8
cmpl $0x3, -0x24(%rbp)
jne 0xb62f
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x28(%rbp), %ecx
movq %rsp, %rax
movl %ecx, 0x20(%rax)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x10a70
movl %eax, -0x4(%rbp)
jmp 0xb6d8
cmpl $0x4, -0x24(%rbp)
jne 0xb65f
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x28(%rbp), %ecx
movq %rsp, %rax
movl %ecx, 0x20(%rax)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x112b0
movl %eax, -0x4(%rbp)
jmp 0xb6d8
cmpl $0x7, -0x24(%rbp)
je 0xb66b
cmpl $0x11, -0x24(%rbp)
jne 0xb698
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movl -0x28(%rbp), %ecx
movq %rsp, %rax
movl %ecx, 0x20(%rax)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x11590
movl %eax, -0x4(%rbp)
jmp 0xb6d8
cmpl $0x8, -0x24(%rbp)
je 0xb6a4
cmpl $0x12, -0x24(%rbp)
jne 0xb6d1
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
movl -0x28(%rbp), %ecx
movq %rsp, %rax
movl %ecx, 0x20(%rax)
movups -0x48(%rbp), %xmm0
movups -0x38(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x11ab0
movl %eax, -0x4(%rbp)
jmp 0xb6d8
movl $0x2a, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop