// File: /workspace/github_c_makefile_star2_O2/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
imulq $0x30, %rax, %r12
addq 0x120d4(%rip), %r12     # 0x23070
testb $0x1, 0x8526(%rip)      # 0x194c9
je 0x11104
movl %ebp, (%rsp)
movl 0x14(%r12), %eax
movl %eax, %ebp
andl $0xf000, %ebp           # imm = 0xF000
movl %ebp, 0x14(%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 0x7f9a(%rip), %r13      # 0x18f90
movq (%r13), %rdi
pushq $0x20
popq %rsi
callq 0x4850
testb $0x4, 0x851c(%rip)      # 0x19525
jne 0x11022
movl $0xc00, %r15d           # imm = 0xC00
cmpl $0x0, 0x12098(%rip)     # 0x230b0
jne 0x11033
xorl %r15d, %r15d
movb $0x1, %r13b
jmp 0x11044
movzbl 0x27(%r12), %edi
callq 0x114a1
movl $0x100000, %r15d        # imm = 0x100000
movq (%r13), %rdi
xorl %r13d, %r13d
movl %r15d, %esi
xorl %edx, %edx
callq 0x4120
leaq 0x8(%r12), %rdi
movzbl 0x27(%r12), %esi
callq 0x114e5
cmpl $0x8000, %ebp           # imm = 0x8000
je 0x11064
cmpl $0x4000, %ebp           # imm = 0x4000
jne 0x110a6
testb $0x10, 0x845d(%rip)     # 0x194c8
jne 0x11074
movq 0x18(%r12), %rdi
jmp 0x11095
movabsq $0xffffffffff, %rdi     # imm = 0xFFFFFFFFFF
andq 0x20(%r12), %rdi
xorl %eax, %eax
cmpb $0x0, 0x12038(%rip)     # 0x230c4
sete %al
leal (%rax,%rax,8), %ecx
shlq %cl, %rdi
movl (%rsp), %ebp
callq 0x11574
leaq 0x132c0(%rip), %rdx     # 0x24364
jmp 0x110d8
movl $0xf000, %eax           # imm = 0xF000
andl 0x14(%r12), %eax
addl $0xfffff000, %eax       # imm = 0xFFFFF000
cmpl $0xbfff, %eax           # imm = 0xBFFF
ja 0x110cb
shrl $0xa, %eax
leaq 0x265e(%rip), %rcx      # 0x13724
movl (%rax,%rcx), %eax
jmp 0x110ce
pushq $0x3f
popq %rax
movl (%rsp), %ebp
leaq 0x14(%rsp), %rdx
movl %eax, (%rdx)
leaq 0x325a(%rip), %rdi      # 0x14339
leaq 0xa(%rsp), %rsi
xorl %eax, %eax
callq 0x45f0
testb %r13b, %r13b
jne 0x11104
movq 0x7e99(%rip), %rax      # 0x18f90
movq (%rax), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x4730
testb $0x4, 0x841c(%rip)      # 0x19527
je 0x11130
subl 0x11f64(%rip), %r14d    # 0x23078
movslq %r14d, %rsi
leaq 0x3222(%rip), %rax      # 0x14340
leaq 0x3220(%rip), %rdi      # 0x14345
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x45f0
pushq $0x20
popq %rax
movl 0x14(%r12), %ecx
movl %ecx, %edx
andl $0xf000, %edx           # imm = 0xF000
addl $0xfffff000, %edx       # imm = 0xFFFFF000
shrl $0xc, %edx
xorl %r14d, %r14d
cmpl $0xb, %edx
ja 0x1116c
leaq 0x21f0(%rip), %rsi      # 0x13348
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movb $0xe, %r15b
movb $0x7c, %r13b
jmp 0x11264
movb $0x10, %r15b
movb $0x3f, %r13b
jmp 0x11264
movq 0x20(%r12), %r15
movabsq $0x100000000000000, %r14 # imm = 0x100000000000000
andq %r15, %r14
pushq $0x40
popq %rcx
pushq $0x2f
popq %r13
cmovel %ecx, %r13d
testb $0x4, 0x838a(%rip)      # 0x19525
jne 0x11231
shrq $0x23, %r14
jmp 0x11245
movb $0x6, %r15b
xorl %r13d, %r13d
xorl %r14d, %r14d
jmp 0x11264
movb $0xf, %r15b
movb $0x3d, %r13b
jmp 0x11264
movl 0x835b(%rip), %ecx      # 0x19524
movb $0x7, %r15b
movb $0x2f, %r13b
btl $0xa, %ecx
jb 0x11264
movl 0x82e9(%rip), %edx      # 0x194c8
shrl $0xd, %edx
andb $0x7, %dl
incb %dl
testb $0x8, %cl
movzbl %dl, %ecx
pushq $0x7
popq %r15
cmovnel %ecx, %r15d
movl $0x200000, %r14d        # imm = 0x200000
jmp 0x11264
movb $0x5, %r15b
xorl %r13d, %r13d
jmp 0x11264
cmpq $0x0, 0x18(%r12)
je 0x11256
andl $0x40, %ecx
pushq $0x2a
popq %r13
cmovel %ecx, %r13d
sete %cl
orb $0x8, %cl
testb $0x2, 0x27(%r12)
movzbl %cl, %ecx
pushq $0xa
popq %r15
cmovel %ecx, %r15d
jmp 0x11264
movl $0x100000, %r14d        # imm = 0x100000
testb $0x1, 0x828b(%rip)      # 0x194c9
jne 0x11245
xorl %r15d, %r15d
jmp 0x11264
shrq $0x3a, %r15
andl $0x1, %r15d
addb %r15b, %r15b
addb $0xb, %r15b
jmp 0x11264
andl $0x40, %ecx
pushq $0x2a
popq %r13
cmovel %ecx, %r13d
movb $0x10, %r15b
movq 0x7d25(%rip), %rcx      # 0x18f90
btq $0x3c, 0x20(%r12)
movq (%rcx), %rdi
movl $0x24002b, %esi         # imm = 0x24002B
cmovael %eax, %esi
callq 0x4850
testb $0x4, 0x829c(%rip)      # 0x19525
movq 0x20(%r12), %rdi
jne 0x112c0
btq $0x3b, %rdi
movzbl %r15b, %ecx
pushq $0xc
popq %rax
cmovael %ecx, %eax
testb %al, %al
je 0x112c9
movzbl %al, %eax
movl %eax, %ecx
leaq 0x11dd1(%rip), %rdx     # 0x23080
cmpl $0x0, (%rdx,%rcx,4)
je 0x112c9
shll $0x8, %eax
orl %r14d, %eax
movl %eax, %r14d
jmp 0x112c9
shrq $0x38, %rdi
callq 0x114a1
testb %bpl, %bpl
je 0x112de
orl $0x240000, %r14d        # imm = 0x240000
movq 0x7cb4(%rip), %rbp      # 0x18f90
jmp 0x112ee
testl %r14d, %r14d
movq 0x7ca8(%rip), %rbp      # 0x18f90
je 0x113e2
movq (%rbp), %rdi
movq $0x0, (%rsp)
movl %r14d, %esi
xorl %edx, %edx
callq 0x4120
cmpb $0x1, %r13b
adcl $0x0, %ebx
movq (%rbp), %r15
movq (%r12), %rsi
leaq 0x8436(%rip), %r12      # 0x19750
movq %r12, %rdi
movq %rbx, %rdx
callq 0x41d0
movq %r12, %rdi
movq %rax, %rsi
callq 0x4190
cltq
cmpq %rbx, %rax
jb 0x11393
movl %r13d, 0x10(%rsp)
movq %r14, %rbp
leaq (%r12,%rbx,4), %r14
leaq -0x1(%rbx), %r13
cmpq %rbx, %rax
jbe 0x11362
movq %r12, %rdi
movq %r13, %rsi
callq 0x4190
cltq
addq $-0x4, %r14
decq %r13
jmp 0x11347
andl $0x0, (%r14)
movq %rbp, %r14
movl 0x10(%rsp), %r13d
movq 0x7c1b(%rip), %rbp      # 0x18f90
jmp 0x11393
cmpl $0x20, %eax
setge %cl
cmpl $0x7f, %eax
setne %al
testb %al, %cl
jne 0x1138f
movl $0x3f, (%r12)
addq $0x4, %r12
movl (%r12), %eax
testl %eax, %eax
jne 0x11377
leaq 0x83ae(%rip), %rsi      # 0x19750
pushq $-0x1
popq %rdx
movq %r15, %rdi
callq 0x4370
cmpb $0x0, (%rsp)
jne 0x113c1
movq (%rbp), %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x4730
testb %r13b, %r13b
je 0x113d3
movq (%rbp), %rdi
movzbl %r13b, %esi
callq 0x4850
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
movb $0x1, %al
movq %rax, (%rsp)
jmp 0x11304