// File: /workspace/github_c_makefile_star2_O3/charMstr[P]minishell/libft/ft_split.c
// Function: ft_split
char			**ft_split(char const *s, char c)
{
	int		err;
	char	**result;

	err = -1;
	if (s)
	{
		if ((result = (char **)malloc(sizeof(char *) * w_len(s, c))))
			if ((err = ft_malloc_w_len(s, c, result)) < 0)
				return (ft_tab_filled(s, c, result));
		while (err >= 0)
			free(result[err--]);
		free(result);
	}
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xa0c2
movq %rdi, %r14
movb (%rdi), %r12b
testb %r12b, %r12b
je 0xa099
movl %esi, %ebx
movabsq $-0x100000000, %r10     # imm = 0xFFFFFFFF00000000
xorl %eax, %eax
movabsq $0x100000000, %r13      # imm = 0x100000000
xorl %ecx, %ecx
movslq %ecx, %rdi
leaq -0x1(%rdi), %rsi
incq %rdi
shlq $0x20, %rcx
addq %r10, %rcx
movq %rcx, %r8
movq %rdi, %rcx
movq %r8, %rdx
movb 0x1(%r14,%rsi), %r9b
testb %r9b, %r9b
je 0x9f09
incq %rsi
leaq 0x1(%rcx), %rdi
leaq (%rdx,%r13), %r8
cmpb %bl, %r9b
je 0x9ee9
movb -0x1(%r14,%rcx), %sil
incq %rcx
addq %r13, %rdx
testb %sil, %sil
je 0x9f1e
cmpb %bl, %sil
jne 0x9f09
xorl %esi, %esi
cmpb %bl, -0x3(%r14,%rcx)
setne %sil
addl %esi, %eax
sarq $0x20, %rdx
addq $-0x2, %rcx
cmpb $0x0, (%r14,%rdx)
jne 0x9ed5
movl %eax, %eax
leaq 0x8(,%rax,8), %rdi
callq 0x2190
testq %rax, %rax
je 0xa0b7
movq %rax, %r15
xorl %ebp, %ebp
testb %r12b, %r12b
je 0xa0ad
xorl %r12d, %r12d
movabsq $-0x100000000, %r9      # imm = 0xFFFFFFFF00000000
movslq %r12d, %rcx
decq %rcx
shlq $0x20, %r12
addq %r9, %r12
movq %r12, %rax
movq %rcx, %r12
movb 0x1(%r14,%r12), %cl
incq %r12
addq %r13, %rax
testb %cl, %cl
je 0x9f93
cmpb %bl, %cl
je 0x9f80
sarq $0x20, %rax
movb (%r14,%rax), %cl
testb %cl, %cl
sete %dl
cmpb %bl, %cl
sete %cl
orb %dl, %cl
movl $0x1, %edi
jne 0x9fc7
movq %r12, %rax
movb 0x1(%r14,%rax), %cl
incq %rax
incq %rdi
movq %rax, %r12
testb %cl, %cl
je 0x9fc7
cmpb %bl, %cl
jne 0x9fb1
cmpb %bl, -0x1(%r14,%rax)
je 0x9fef
callq 0x2190
movslq %ebp, %rcx
movq %rax, (%r15,%rcx,8)
testq %rax, %rax
je 0xa0d7
incl %ebp
movabsq $-0x100000000, %r9      # imm = 0xFFFFFFFF00000000
movslq %r12d, %rax
cmpb $0x0, (%r14,%rax)
jne 0x9f6d
xorl %eax, %eax
xorl %ecx, %ecx
movslq %ecx, %rsi
decq %rsi
shlq $0x20, %rcx
addq %r9, %rcx
movq %rcx, %rdx
movq %rsi, %rcx
movb 0x1(%r14,%rcx), %sil
incq %rcx
addq %r13, %rdx
cmpb %bl, %sil
jne 0xa029
testb %sil, %sil
jne 0xa014
sarq $0x20, %rdx
movb (%r14,%rdx), %sil
cmpb %bl, %sil
sete %dil
testb %sil, %sil
sete %r8b
orb %dil, %r8b
je 0xa048
xorl %esi, %esi
jmp 0xa072
movslq %eax, %rdx
movq (%r15,%rdx,8), %rdi
movq %rcx, %rdx
xorl %ecx, %ecx
movb %sil, (%rdi,%rcx)
incq %rcx
movb 0x1(%r14,%rdx), %sil
incq %rdx
cmpb %bl, %sil
je 0xa06d
testb %sil, %sil
jne 0xa054
movl %ecx, %esi
movq %rdx, %rcx
cmpb %bl, -0x1(%r14,%rdx)
je 0xa086
movslq %eax, %rdx
incl %eax
movq (%r15,%rdx,8), %rdx
movb $0x0, (%rdx,%rsi)
movslq %ecx, %rdx
cmpb $0x0, (%r14,%rdx)
jne 0xa001
movslq %eax, %rbp
jmp 0xa0ad
movl $0x8, %edi
callq 0x2190
xorl %ebp, %ebp
testq %rax, %rax
je 0xa0b7
movq %rax, %r15
movq $0x0, (%r15,%rbp,8)
jmp 0xa0c5
xorl %r15d, %r15d
movq %r15, %rdi
callq 0x2240
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %ebp, %ebp
movabsq $-0x100000000, %r9      # imm = 0xFFFFFFFF00000000
js 0x9ffd
movl %ebp, %ebx
movq (%r15,%rbx,8), %rdi
callq 0x2240
addq $-0x1, %rbx
jb 0xa0eb
jmp 0xa0ba