// File: /workspace/github_c_makefile_star2_O0/jarun[P]nnn/src/nnn.c
// Function: printent
static void printent(int pdents_index, uint_t namecols, bool sel)
{
	const struct entry *ent = &pdents[pdents_index];
	char ind = '\0';
	int attrs;

	if (cfg.showdetail) {
		int type = ent->mode & S_IFMT;
		char perms[6] = {' ', ' ', (char)('0' + ((ent->mode >> 6) & 7)),
				(char)('0' + ((ent->mode >> 3) & 7)),
				(char)('0' + (ent->mode & 7)), '\0'};

		addch(' ');
		attrs = g_state.oldcolor ? (resetdircolor(ent->flags), A_DIM)
					 : (fcolors[C_MIS] ? COLOR_PAIR(C_MIS) : 0);
		if (attrs)
			attron(attrs);

		/* Print details */
		print_time(&ent->sec, ent->flags);

		printw("%s%9s ", perms, (type == S_IFREG || type == S_IFDIR)
			? coolsize(cfg.blkorder ? (blkcnt_t)ent->blocks << blk_shift : ent->size)
			: (type = (uchar_t)get_detail_ind(ent->mode), (char *)&type));

		if (attrs)
			attroff(attrs);
	}

	if (g_state.showlines) {
		ptrdiff_t rel_num = pdents_index - cur;
		printw(rel_num == 0 ? "%4td" : "%+4td", rel_num);
	}

	attrs = 0;

	uchar_t color_pair = get_color_pair_name_ind(ent, &ind, &attrs);

	addch((ent->flags & FILE_SELECTED) ? '+' | A_REVERSE | A_BOLD : ' ');

	if (g_state.oldcolor)
		resetdircolor(ent->flags);
	else {
		if (ent->flags & FILE_MISSING)
			color_pair = C_MIS;
		if (color_pair && fcolors[color_pair])
			attrs |= COLOR_PAIR(color_pair);
#ifdef ICONS_ENABLED
		print_icon(ent, attrs);
#endif
	}

	if (sel)
		attrs |= A_REVERSE | A_BOLD;
	if (attrs)
		attron(attrs);
	if (!ind)
		++namecols;

#ifndef NOLC
	addwstr(unescape(ent->name, namecols));
#else
	addstr(unescape(ent->name, MIN(namecols, ent->nlen) + 1));
#endif

	if (attrs)
		attroff(attrs);
	if (ind)
		addch(ind);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %dl, %al
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq 0x12ab4(%rip), %rax     # 0x2a370
movslq -0x4(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
movl 0x8bfb(%rip), %eax      # 0x204d0
shrl $0x8, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17a83
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
andl $0xf000, %eax           # imm = 0xF000
movl %eax, -0x24(%rbp)
movb $0x20, -0x2a(%rbp)
movb $0x20, -0x29(%rbp)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
shrl $0x6, %eax
andl $0x7, %eax
addl $0x30, %eax
movb %al, -0x28(%rbp)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
shrl $0x3, %eax
andl $0x7, %eax
addl $0x30, %eax
movb %al, -0x27(%rbp)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7, %eax
addl $0x30, %eax
movb %al, -0x26(%rbp)
movb $0x0, -0x25(%rbp)
movq 0x8654(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movl 0x8ed5(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17977
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
movl %eax, %edi
callq 0x17d90
movl $0x100000, %eax         # imm = 0x100000
movl %eax, -0x40(%rbp)
jmp 0x1798d
movl 0x12a33(%rip), %edx     # 0x2a3b0
xorl %eax, %eax
movl $0xc00, %ecx            # imm = 0xC00
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x179af
movq 0x85f0(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl -0x20(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x4120
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
movzbl %al, %esi
callq 0x17e00
leaq -0x2a(%rbp), %rax
movq %rax, -0x48(%rbp)
cmpl $0x8000, -0x24(%rbp)    # imm = 0x8000
je 0x179e5
cmpl $0x4000, -0x24(%rbp)    # imm = 0x4000
jne 0x17a35
movl 0x8ae5(%rip), %eax      # 0x204d0
shrl $0x4, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17a1a
movq -0x18(%rbp), %rcx
movabsq $0xffffffffff, %rax     # imm = 0xFFFFFFFFFF
andq 0x20(%rcx), %rax
movzbl 0x8dd1(%rip), %ecx      # 0x207e0
movl %ecx, %ecx
shlq %cl, %rax
movq %rax, -0x50(%rbp)
jmp 0x17a26
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x17ea0
movq %rax, -0x58(%rbp)
jmp 0x17a4f
movq -0x18(%rbp), %rax
movl 0x14(%rax), %edi
callq 0x18140
movzbl %al, %eax
movl %eax, -0x24(%rbp)
leaq -0x24(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rsi
movq -0x58(%rbp), %rdx
leaq 0x4c76(%rip), %rdi      # 0x1c6d4
movb $0x0, %al
callq 0x4610
cmpl $0x0, -0x20(%rbp)
je 0x17a81
movq 0x851e(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl -0x20(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x4740
jmp 0x17a83
movl 0x8d9b(%rip), %eax      # 0x20824
shrl $0x1a, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17ac8
movl -0x4(%rbp), %eax
subl 0x128db(%rip), %eax     # 0x2a378
cltq
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
leaq 0x4c32(%rip), %rdi      # 0x1c6e0
leaq 0x4c26(%rip), %rax      # 0x1c6db
cmpq $0x0, %rcx
cmoveq %rax, %rdi
movq -0x38(%rbp), %rsi
movb $0x0, %al
callq 0x4610
movl $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x19(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x181d0
movb %al, -0x39(%rbp)
movq 0x84a6(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
movl %eax, %ecx
andl $0x10, %ecx
movl $0x20, %esi
movl $0x24002b, %eax         # imm = 0x24002B
cmpl $0x0, %ecx
cmovnel %eax, %esi
callq 0x4850
movl 0x8d0b(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17b39
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
movl %eax, %edi
callq 0x17d90
jmp 0x17b81
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x17b51
movb $0xc, -0x39(%rbp)
movzbl -0x39(%rbp), %eax
cmpl $0x0, %eax
je 0x17b7f
movzbl -0x39(%rbp), %eax
movl %eax, %ecx
leaq 0x12819(%rip), %rax     # 0x2a380
cmpl $0x0, (%rax,%rcx,4)
je 0x17b7f
movzbl -0x39(%rbp), %eax
shll $0x8, %eax
andl $0xff00, %eax           # imm = 0xFF00
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x17b81
testb $0x1, -0x9(%rbp)
je 0x17b92
movl -0x20(%rbp), %eax
orl $0x240000, %eax         # imm = 0x240000
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x17bae
movq 0x83f1(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl -0x20(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x4120
cmpb $0x0, -0x19(%rbp)
jne 0x17bbd
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
movq 0x83cc(%rip), %rax      # 0x1ff90
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movl -0x8(%rbp), %esi
callq 0x18440
movq -0x60(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x4370
cmpl $0x0, -0x20(%rbp)
je 0x17c07
movq 0x8398(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl -0x20(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x4740
cmpb $0x0, -0x19(%rbp)
je 0x17c20
movq 0x837c(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movsbl -0x19(%rbp), %esi
callq 0x4850
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)