// File: /workspace/github_c_makefile_star2_O1/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 $0x18, %rsp
movl %edx, %ebp
movl %esi, %ebx
movl %edi, %r14d
movslq %edi, %rax
leaq (%rax,%rax,2), %r12
shlq $0x4, %r12
addq 0x10fb5(%rip), %r12     # 0x24070
testb $0x1, 0x7407(%rip)      # 0x1a4c9
je 0x1321b
movl $0xf000, %eax           # imm = 0xF000
andl 0x14(%r12), %eax
movl %eax, 0xc(%rsp)
movw $0x2020, 0x6(%rsp)      # imm = 0x2020
movl 0x14(%r12), %eax
shrl $0x6, %eax
andb $0x7, %al
orb $0x30, %al
movb %al, 0x8(%rsp)
movb 0x14(%r12), %al
shrb $0x3, %al
andb $0x7, %al
orb $0x30, %al
movb %al, 0x9(%rsp)
movb 0x14(%r12), %al
andb $0x7, %al
orb $0x30, %al
movb %al, 0xa(%rsp)
movb $0x0, 0xb(%rsp)
movq 0x6e7a(%rip), %r13      # 0x19f90
movq (%r13), %rdi
movl $0x20, %esi
callq 0x4850
testb $0x4, 0x73fa(%rip)      # 0x1a525
jne 0x13141
movl 0x10f7d(%rip), %eax     # 0x240b0
testl %eax, %eax
movl $0xc00, %r15d           # imm = 0xC00
cmovel %eax, %r15d
jmp 0x13152
movzbl 0x27(%r12), %edi
callq 0x13587
movl $0x100000, %r15d        # imm = 0x100000
testl %r15d, %r15d
je 0x13165
movq (%r13), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x4120
leaq 0x8(%r12), %rdi
movzbl 0x27(%r12), %esi
callq 0x135cb
movl 0xc(%rsp), %eax
cmpl $0x8000, %eax           # imm = 0x8000
je 0x13187
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x131c6
testb $0x10, 0x733a(%rip)     # 0x1a4c8
jne 0x13197
movq 0x18(%r12), %rdi
jmp 0x131b8
movabsq $0xffffffffff, %rdi     # imm = 0xFFFFFFFFFF
andq 0x20(%r12), %rdi
xorl %eax, %eax
cmpb $0x0, 0x10f15(%rip)     # 0x240c4
sete %al
leal (%rax,%rax,8), %ecx
shlq %cl, %rdi
callq 0x1365a
leaq 0x121a0(%rip), %rdx     # 0x25364
jmp 0x131f5
movl $0xf000, %eax           # imm = 0xF000
andl 0x14(%r12), %eax
addl $0xfffff000, %eax       # imm = 0xFFFFF000
movl $0x3f, %ecx
cmpl $0xbfff, %eax           # imm = 0xBFFF
ja 0x131ee
shrl $0xa, %eax
leaq 0x2539(%rip), %rcx      # 0x15724
movl (%rax,%rcx), %ecx
leaq 0xc(%rsp), %rdx
movl %ecx, (%rdx)
leaq 0x313f(%rip), %rdi      # 0x1633b
leaq 0x6(%rsp), %rsi
xorl %eax, %eax
callq 0x45f0
testl %r15d, %r15d
je 0x1321b
movq (%r13), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x4730
testb $0x4, 0x7305(%rip)      # 0x1a527
je 0x13247
subl 0x10e4d(%rip), %r14d    # 0x24078
movslq %r14d, %rsi
leaq 0x310d(%rip), %rax      # 0x16342
leaq 0x310b(%rip), %rdi      # 0x16347
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 %r15d, %r15d
cmpl $0xb, %ecx
ja 0x13280
leaq 0x20dc(%rip), %rdx      # 0x15348
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movb $0xe, %r14b
movb $0x7c, %r13b
jmp 0x13396
movb $0x10, %r14b
movb $0x3f, %r13b
jmp 0x13396
movq 0x20(%r12), %r14
btq $0x38, %r14
movl 0x7289(%rip), %eax      # 0x1a524
jb 0x13345
shll $0xa, %eax
andl $0x100000, %eax         # imm = 0x100000
movb $0x40, %r13b
movl %eax, %r15d
jmp 0x1335e
movb $0x6, %r14b
xorl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x13396
movb $0xf, %r14b
movb $0x3d, %r13b
jmp 0x13396
movl 0x7251(%rip), %eax      # 0x1a524
movb $0x7, %r14b
movb $0x2f, %r13b
btl $0xa, %eax
jb 0x13396
movl 0x71df(%rip), %ecx      # 0x1a4c8
shrl $0xd, %ecx
andb $0x7, %cl
incb %cl
testb $0x8, %al
movzbl %cl, %eax
movl $0x7, %r14d
cmovnel %eax, %r14d
movl $0x200000, %r15d        # imm = 0x200000
jmp 0x13396
movb $0x5, %r14b
xorl %r13d, %r13d
jmp 0x13396
cmpq $0x0, 0x18(%r12)
je 0x13386
andl $0x40, %eax
movl $0x2a, %r13d
cmovel %eax, %r13d
sete %al
orb $0x8, %al
testb $0x2, 0x27(%r12)
movzbl %al, %eax
movl $0xa, %r14d
cmovel %eax, %r14d
jmp 0x13396
xorl %r15d, %r15d
btl $0xa, %eax
setae %r15b
shll $0x14, %r15d
addl $0x100000, %r15d        # imm = 0x100000
movb $0x2f, %r13b
testb $0x4, 0x71c0(%rip)      # 0x1a525
je 0x13375
testb $0x1, 0x715b(%rip)      # 0x1a4c9
jne 0x13375
xorl %r14d, %r14d
jmp 0x13396
shrq $0x3a, %r14
andl $0x1, %r14d
addb %r14b, %r14b
addb $0xb, %r14b
jmp 0x13396
andl $0x40, %eax
movl $0x2a, %r13d
cmovel %eax, %r13d
movb $0x10, %r14b
movq 0x6bf3(%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, 0x7165(%rip)      # 0x1a525
movq 0x20(%r12), %rdi
jne 0x133f6
btq $0x3b, %rdi
movzbl %r14b, %ecx
movl $0xc, %eax
cmovael %ecx, %eax
testb %al, %al
je 0x133ff
movzbl %al, %eax
movl %eax, %ecx
leaq 0x10c98(%rip), %rdx     # 0x24080
cmpl $0x0, (%rdx,%rcx,4)
je 0x133ff
shll $0x8, %eax
orl %eax, %r15d
jmp 0x133ff
shrq $0x38, %rdi
callq 0x13587
movl %r15d, %r14d
orl $0x240000, %r14d        # imm = 0x240000
testb %bpl, %bpl
cmovel %r15d, %r14d
testl %r14d, %r14d
movq 0x6b76(%rip), %r15      # 0x19f90
je 0x13429
movq (%r15), %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x4120
cmpb $0x1, %r13b
adcl $0x0, %ebx
movq (%r15), %rbp
movq (%r12), %rsi
leaq 0x7312(%rip), %r12      # 0x1a750
movq %r12, %rdi
movq %rbx, %rdx
callq 0x41d0
movq %r12, %rdi
movq %rax, %rsi
callq 0x4190
cltq
cmpq %rbx, %rax
jb 0x134a0
movq %rbp, 0x10(%rsp)
movl %r13d, %r15d
jbe 0x13486
leaq 0x72e4(%rip), %rbp      # 0x1a750
movq %rbx, %r13
decq %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4190
cltq
cmpq %rbx, %rax
ja 0x1346f
jmp 0x13489
movq %rbx, %r13
movl $0x0, (%r12,%r13,4)
movl %r15d, %r13d
movq 0x6af5(%rip), %r15      # 0x19f90
movq 0x10(%rsp), %rbp
movl 0x72aa(%rip), %ecx      # 0x1a750
testl %ecx, %ecx
je 0x134d2
leaq 0x72a3(%rip), %rax      # 0x1a754
cmpl $0x20, %ecx
setge %dl
cmpl $0x7f, %ecx
setne %cl
testb %cl, %dl
jne 0x134c8
movl $0x3f, -0x4(%rax)
movl (%rax), %ecx
addq $0x4, %rax
testl %ecx, %ecx
jne 0x134b1
leaq 0x7277(%rip), %rsi      # 0x1a750
movq %rbp, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x4370
testl %r14d, %r14d
je 0x134f8
movq (%r15), %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x4730
testb %r13b, %r13b
je 0x13509
movq (%r15), %rdi
movzbl %r13b, %esi
callq 0x4850
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq