// File: /workspace/github_c_makefile_star2_O1/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
movl $0x8, %edx
movq %r13, %rdi
xorl %esi, %esi
callq 0x4e64
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10d0
cmpl $-0x1, %eax
je 0x1912
cmpb $0x0, 0x6c(%r14)
je 0x19b4
movq %r15, %rbp
movl 0xc0(%rsp), %r13d
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0x1130
movl %eax, 0x9c(%rsp)
movl %r13d, %edi
callq 0x1656
movb %al, 0x68e9(%rip)       # 0x80b9
movl %r13d, %eax
shrl $0x3, %eax
andl $0x38, %eax
leaq 0x65c0(%rip), %r15      # 0x7da0
movq (%rax,%r15), %rsi
leaq 0x68cf(%rip), %rdi      # 0x80ba
callq 0x4f2c
movl %r13d, %eax
andl $0x38, %eax
movq (%rax,%r15), %rsi
leaq 0x68bc(%rip), %rdi      # 0x80bd
callq 0x4f2c
movl %r13d, %eax
andl $0x7, %eax
movq (%r15,%rax,8), %rsi
leaq 0x68a9(%rip), %rdi      # 0x80c0
callq 0x4f2c
btl $0xb, %r13d
jae 0x1835
movzbl %r13b, %eax
shrl $0x6, %eax
shlb $0x5, %al
orb $0x53, %al
movb %al, 0x6887(%rip)       # 0x80bc
btl $0xa, %r13d
jae 0x184c
movl %r13d, %eax
andb $0x8, %al
shlb $0x2, %al
orb $0x53, %al
movb %al, 0x6873(%rip)       # 0x80bf
btl $0x9, %r13d
movq %rbp, %r15
jae 0x1869
andb $0x1, %r13b
shlb $0x5, %r13b
orb $0x54, %r13b
movb %r13b, 0x6859(%rip)     # 0x80c2
movb $0x20, 0x6853(%rip)     # 0x80c3
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10a0
testq %rax, %rax
jle 0x1888
movb $0x2b, 0x683b(%rip)     # 0x80c3
cmpl $0x0, 0x9c(%rsp)
leaq 0x6822(%rip), %rdi      # 0x80b9
movzbl 0x6825(%rip), %eax      # 0x80c3
movl $0x2e, %ecx
cmovlel %eax, %ecx
movb %cl, 0x6817(%rip)       # 0x80c3
callq 0x2524
movl 0xa4(%r12), %ebp
movq 0xb8(%rsp), %rdi
callq 0x258c
subl %eax, %ebp
incl %ebp
movl $0x20, %edi
movl %ebp, %esi
callq 0x24c4
movq 0xb8(%rsp), %rsi
leaq 0x39a6(%rip), %rdi      # 0x528b
xorl %eax, %eax
callq 0x2663
movl 0xc4(%rsp), %ebp
movl %ebp, %edi
callq 0x1080
testq %rax, %rax
je 0x193c
movq (%rax), %rsi
leaq 0x39ca(%rip), %rdi      # 0x52d3
xorl %eax, %eax
callq 0x2663
jmp 0x194c
callq 0x1040
movl (%rax), %edi
callq 0x1140
leaq 0x396b(%rip), %rsi      # 0x5290
movl $0x2, %edi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x25c0
jmp 0x19d5
leaq 0x398b(%rip), %rdi      # 0x52ce
movl %ebp, %esi
xorl %eax, %eax
callq 0x2663
movl 0xc8(%rsp), %ebp
movl %ebp, %edi
callq 0x10b0
testq %rax, %rax
je 0x1972
movq (%rax), %rsi
leaq 0x396a(%rip), %rdi      # 0x52d3
xorl %eax, %eax
callq 0x2663
jmp 0x1982
leaq 0x395f(%rip), %rdi      # 0x52d8
movl %ebp, %esi
xorl %eax, %eax
callq 0x2663
leaq 0x100(%rsp), %r13
movq -0x30(%r13), %rdi
movq -0x28(%r13), %rsi
movq %r12, %rdx
callq 0x169c
movq %r13, %rdi
callq 0x1090
leaq 0x4(%rax), %rsi
leaq 0x38fa(%rip), %rdi      # 0x52a7
xorl %eax, %eax
callq 0x2663
leaq 0xa8(%rsp), %rsi
movl $0x12, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x19e8
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop