// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//dirent/acl.c
// Function: print_element
void	print_element(char *cont, char *name, t_u_char *flags, t_ls *ls)
{
	struct stat			buf;
	security_context_t	sc;
	char				*rwx;

	ft_memset(&buf, 0, sizeof(struct stat *));
	if (lstat(cont, &buf) == -1)
	{
		ft_printf_fd(2, WLSTAT, cont, strerror(errno));
		return ;
	}
	if (flags['l'])
	{
		rwx = print_permissions(buf.st_mode, (getfilecon(cont, &sc) > 0), cont);
		ft_putstr(rwx);
		ft_repet(' ', ls->link_count - ft_sizei(buf.st_nlink) + 1);
		ft_printf("%lu ", buf.st_nlink);
		print_user(buf.st_uid);
		print_grp(buf.st_gid);
		major_minor(buf.st_rdev, buf.st_size, ls);
		ft_printf("%.12s ", &ctime(&buf.st_mtime)[4]);
	}
	element_color(cont, name, buf, flags);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xa8(%rsp), %r13
pushq $0x8
popq %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x49f4
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10d0
cmpl $-0x1, %eax
je 0x18b1
cmpb $0x0, 0x6c(%r14)
je 0x1951
movq %r15, %rbp
movl 0xc0(%rsp), %r13d
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0x1130
movl %eax, 0x9c(%rsp)
movl %r13d, %edi
callq 0x1604
movb %al, 0x6943(%rip)       # 0x80b9
movl %r13d, %eax
shrl $0x3, %eax
andl $0x38, %eax
leaq 0x660a(%rip), %r15      # 0x7d90
movq (%rax,%r15), %rsi
leaq 0x6929(%rip), %rdi      # 0x80ba
callq 0x4aa8
movl %r13d, %eax
andl $0x38, %eax
movq (%rax,%r15), %rsi
leaq 0x6916(%rip), %rdi      # 0x80bd
callq 0x4aa8
movl %r13d, %eax
andl $0x7, %eax
movq (%r15,%rax,8), %rsi
leaq 0x6903(%rip), %rdi      # 0x80c0
callq 0x4aa8
btl $0xb, %r13d
jae 0x17db
movzbl %r13b, %eax
shrl $0x6, %eax
shlb $0x5, %al
orb $0x53, %al
movb %al, 0x68e1(%rip)       # 0x80bc
btl $0xa, %r13d
jae 0x17f2
movl %r13d, %eax
andb $0x8, %al
shlb $0x2, %al
orb $0x53, %al
movb %al, 0x68cd(%rip)       # 0x80bf
btl $0x9, %r13d
movq %rbp, %r15
jae 0x180f
andb $0x1, %r13b
shlb $0x5, %r13b
orb $0x54, %r13b
movb %r13b, 0x68b3(%rip)     # 0x80c2
movb $0x20, 0x68ad(%rip)     # 0x80c3
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10a0
testq %rax, %rax
movzbl 0x6897(%rip), %eax      # 0x80c3
pushq $0x2b
popq %rcx
cmovlel %eax, %ecx
cmpl $0x0, 0x9c(%rsp)
leaq 0x6878(%rip), %rdi      # 0x80b9
pushq $0x2e
popq %rax
cmovlel %ecx, %eax
movb %al, 0x6876(%rip)       # 0x80c3
callq 0x243c
movl 0xa4(%r12), %ebp
movq 0xb8(%rsp), %rdi
callq 0x249c
subl %eax, %ebp
incl %ebp
pushq $0x20
popq %rdi
movl %ebp, %esi
callq 0x23dc
movq 0xb8(%rsp), %rsi
leaq 0x3a07(%rip), %rdi      # 0x528b
xorl %eax, %eax
callq 0x2563
movl 0xc4(%rsp), %ebp
movl %ebp, %edi
callq 0x1080
testq %rax, %rax
je 0x18d9
movq (%rax), %rsi
leaq 0x3a2b(%rip), %rdi      # 0x52d3
xorl %eax, %eax
callq 0x2563
jmp 0x18e9
callq 0x1040
movl (%rax), %edi
callq 0x1140
leaq 0x39cc(%rip), %rsi      # 0x5290
pushq $0x2
popq %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x24c0
jmp 0x1970
leaq 0x39ee(%rip), %rdi      # 0x52ce
movl %ebp, %esi
xorl %eax, %eax
callq 0x2563
movl 0xc8(%rsp), %ebp
movl %ebp, %edi
callq 0x10b0
testq %rax, %rax
je 0x190f
movq (%rax), %rsi
leaq 0x39cd(%rip), %rdi      # 0x52d3
xorl %eax, %eax
callq 0x2563
jmp 0x191f
leaq 0x39c2(%rip), %rdi      # 0x52d8
movl %ebp, %esi
xorl %eax, %eax
callq 0x2563
leaq 0x100(%rsp), %r13
movq -0x30(%r13), %rdi
movq -0x28(%r13), %rsi
movq %r12, %rdx
callq 0x1648
movq %r13, %rdi
callq 0x1090
leaq 0x4(%rax), %rsi
leaq 0x395d(%rip), %rdi      # 0x52a7
xorl %eax, %eax
callq 0x2563
pushq $0x12
popq %rcx
leaq 0xa8(%rsp), %rsi
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1984
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop