// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r13d
movl %esi, %ebx
movl %edi, %r14d
movslq %edi, %rax
leaq (%rax,%rax,2), %r12
shlq $0x4, %r12
addq 0x1131e(%rip), %r12     # 0x24070
testb $0x1, 0x7770(%rip)      # 0x1a4c9
je 0x12ec6
movl %r13d, 0x10(%rsp)
movl 0x14(%r12), %eax
movl %eax, %r13d
andl $0xf000, %r13d          # imm = 0xF000
movl %r13d, 0x1c(%rsp)
movw $0x2020, 0xa(%rsp)      # imm = 0x2020
movl %eax, %ecx
shrl $0x6, %ecx
andb $0x7, %cl
orb $0x30, %cl
movb %cl, 0xc(%rsp)
movl %eax, %ecx
shrb $0x3, %cl
andb $0x7, %cl
orb $0x30, %cl
movb %cl, 0xd(%rsp)
andb $0x7, %al
orb $0x30, %al
movb %al, 0xe(%rsp)
movb $0x0, 0xf(%rsp)
movq 0x71df(%rip), %rbp      # 0x19f90
movq (%rbp), %rdi
movl $0x20, %esi
callq 0x4850
testb $0x4, 0x775f(%rip)      # 0x1a525
jne 0x12ddf
movl $0xc00, %r15d           # imm = 0xC00
cmpl $0x0, 0x112db(%rip)     # 0x240b0
jne 0x12df0
xorl %r15d, %r15d
movb $0x1, %bpl
jmp 0x12e00
movzbl 0x27(%r12), %edi
callq 0x13239
movl $0x100000, %r15d        # imm = 0x100000
movq (%rbp), %rdi
xorl %ebp, %ebp
movl %r15d, %esi
xorl %edx, %edx
callq 0x4120
leaq 0x8(%r12), %rdi
movzbl 0x27(%r12), %esi
callq 0x1327d
cmpl $0x8000, %r13d          # imm = 0x8000
je 0x12e22
cmpl $0x4000, %r13d          # imm = 0x4000
jne 0x12e66
testb $0x10, 0x769f(%rip)     # 0x1a4c8
jne 0x12e32
movq 0x18(%r12), %rdi
jmp 0x12e53
movabsq $0xffffffffff, %rdi     # imm = 0xFFFFFFFFFF
andq 0x20(%r12), %rdi
xorl %eax, %eax
cmpb $0x0, 0x1127a(%rip)     # 0x240c4
sete %al
leal (%rax,%rax,8), %ecx
shlq %cl, %rdi
movl 0x10(%rsp), %r13d
callq 0x1330c
leaq 0x12500(%rip), %rdx     # 0x25364
jmp 0x12e9a
movl $0xf000, %eax           # imm = 0xF000
andl 0x14(%r12), %eax
addl $0xfffff000, %eax       # imm = 0xFFFFF000
movl $0x3f, %ecx
cmpl $0xbfff, %eax           # imm = 0xBFFF
ja 0x12e8e
shrl $0xa, %eax
leaq 0x2899(%rip), %rcx      # 0x15724
movl (%rax,%rcx), %ecx
leaq 0x1c(%rsp), %rdx
movl %ecx, (%rdx)
movl 0x10(%rsp), %r13d
leaq 0x34b4(%rip), %rdi      # 0x16355
leaq 0xa(%rsp), %rsi
xorl %eax, %eax
callq 0x45f0
testb %bpl, %bpl
jne 0x12ec6
movq 0x70d7(%rip), %rax      # 0x19f90
movq (%rax), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x4730
testb $0x4, 0x765a(%rip)      # 0x1a527
je 0x12ef2
subl 0x111a2(%rip), %r14d    # 0x24078
movslq %r14d, %rsi
leaq 0x347c(%rip), %rax      # 0x1635c
leaq 0x347a(%rip), %rdi      # 0x16361
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x45f0
movl 0x14(%r12), %eax
movl %eax, %ecx
andl $0xf000, %ecx           # imm = 0xF000
addl $0xfffff000, %ecx       # imm = 0xFFFFF000
shrl $0xc, %ecx
xorl %ebp, %ebp
cmpl $0xb, %ecx
ja 0x12f2a
leaq 0x2432(%rip), %rdx      # 0x15348
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movb $0xe, %r15b
movb $0x7c, %r14b
jmp 0x13029
movb $0x10, %r15b
movb $0x3f, %r14b
jmp 0x13029
movq 0x20(%r12), %r15
movabsq $0x100000000000000, %rbp # imm = 0x100000000000000
andq %r15, %rbp
movl $0x40, %eax
movl $0x2f, %r14d
cmovel %eax, %r14d
testb $0x4, 0x75c8(%rip)      # 0x1a525
jne 0x12ff5
shrq $0x23, %rbp
jmp 0x13008
movb $0x6, %r15b
xorl %r14d, %r14d
xorl %ebp, %ebp
jmp 0x13029
movb $0xf, %r15b
movb $0x3d, %r14b
jmp 0x13029
movl 0x759a(%rip), %eax      # 0x1a524
movb $0x7, %r15b
movb $0x2f, %r14b
btl $0xa, %eax
jb 0x13029
movl 0x7528(%rip), %ecx      # 0x1a4c8
shrl $0xd, %ecx
andb $0x7, %cl
incb %cl
testb $0x8, %al
movzbl %cl, %eax
movl $0x7, %r15d
cmovnel %eax, %r15d
movl $0x200000, %ebp         # imm = 0x200000
jmp 0x13029
movb $0x5, %r15b
xorl %r14d, %r14d
jmp 0x13029
cmpq $0x0, 0x18(%r12)
je 0x13019
andl $0x40, %eax
movl $0x2a, %r14d
cmovel %eax, %r14d
sete %al
orb $0x8, %al
testb $0x2, 0x27(%r12)
movzbl %al, %eax
movl $0xa, %r15d
cmovel %eax, %r15d
jmp 0x13029
movl $0x100000, %ebp         # imm = 0x100000
testb $0x1, 0x74c8(%rip)      # 0x1a4c9
jne 0x13008
xorl %r15d, %r15d
jmp 0x13029
shrq $0x3a, %r15
andl $0x1, %r15d
addb %r15b, %r15b
addb $0xb, %r15b
jmp 0x13029
andl $0x40, %eax
movl $0x2a, %r14d
cmovel %eax, %r14d
movb $0x10, %r15b
movq 0x6f60(%rip), %rax      # 0x19f90
movq (%rax), %rdi
btq $0x3c, 0x20(%r12)
movl $0x20, %eax
movl $0x24002b, %esi         # imm = 0x24002B
cmovael %eax, %esi
callq 0x4850
testb $0x4, 0x74d2(%rip)      # 0x1a525
movq 0x20(%r12), %rdi
jne 0x13091
btq $0x3b, %rdi
movzbl %r15b, %ecx
movl $0xc, %eax
cmovael %ecx, %eax
testb %al, %al
je 0x1309a
movzbl %al, %eax
movl %eax, %ecx
leaq 0x11005(%rip), %rdx     # 0x24080
cmpl $0x0, (%rdx,%rcx,4)
movq 0x6f0a(%rip), %r15      # 0x19f90
je 0x130a1
shll $0x8, %eax
orl %ebp, %eax
movl %eax, %ebp
jmp 0x130a1
shrq $0x38, %rdi
callq 0x13239
movq 0x6eef(%rip), %r15      # 0x19f90
testb %r13b, %r13b
je 0x130ae
orl $0x240000, %ebp         # imm = 0x240000
jmp 0x130b6
testl %ebp, %ebp
je 0x131c0
movq (%r15), %rdi
xorl %r13d, %r13d
movl %ebp, %esi
xorl %edx, %edx
callq 0x4120
cmpb $0x1, %r14b
adcl $0x0, %ebx
movq (%r15), %rax
movq %rax, 0x10(%rsp)
movq (%r12), %rsi
leaq 0x7671(%rip), %r12      # 0x1a750
movq %r12, %rdi
movq %rbx, %rdx
callq 0x41d0
movq %r12, %rdi
movq %rax, %rsi
callq 0x4190
cltq
cmpq %rbx, %rax
jb 0x13147
movq %r13, 0x20(%rsp)
movl %r14d, %r15d
movq %rbp, %r14
jbe 0x1312a
leaq 0x7640(%rip), %rbp      # 0x1a750
movq %rbx, %r13
decq %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4190
cltq
cmpq %rbx, %rax
ja 0x13113
jmp 0x1312d
movq %rbx, %r13
movl $0x0, (%r12,%r13,4)
movq %r14, %rbp
movl %r15d, %r14d
movq 0x6e4e(%rip), %r15      # 0x19f90
movq 0x20(%rsp), %r13
movl 0x7603(%rip), %ecx      # 0x1a750
testl %ecx, %ecx
je 0x13179
leaq 0x75fc(%rip), %rax      # 0x1a754
cmpl $0x20, %ecx
setge %dl
cmpl $0x7f, %ecx
setne %cl
testb %cl, %dl
jne 0x1316f
movl $0x3f, -0x4(%rax)
movl (%rax), %ecx
addq $0x4, %rax
testl %ecx, %ecx
jne 0x13158
leaq 0x75d0(%rip), %rsi      # 0x1a750
movq 0x10(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x4370
testb %r13b, %r13b
jne 0x131a0
movq (%r15), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x4730
testb %r14b, %r14b
je 0x131b1
movq (%r15), %rdi
movzbl %r14b, %esi
callq 0x4850
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
movb $0x1, %r13b
jmp 0x130c5