// File: /workspace/github_c_makefile_star2_O0/jarun[P]nnn/src/nnn.c
// Function: draw_line
static void draw_line(int ncols)
{
	bool dir = FALSE;

	ncols = adjust_cols(ncols);

	if (g_state.oldcolor && (pdents[last].flags & DIR_OR_DIRLNK)) {
		attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
		dir = TRUE;
	}

	move(2 + last - curscroll, 0);
	macos_icons_hack();
	printent(last, ncols, FALSE);

	if (g_state.oldcolor && (pdents[cur].flags & DIR_OR_DIRLNK)) {
		if (!dir)  {/* First file is not a directory */
			attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
			dir = TRUE;
		}
	} else if (dir) { /* Second file is not a directory */
		attroff(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
		dir = FALSE;
	}

	move(2 + cur - curscroll, 0);
	macos_icons_hack();
	printent(cur, ncols, TRUE);

	/* Must reset e.g. no files in dir */
	if (dir)
		attroff(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);

	markhovered();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movb $0x0, -0x5(%rbp)
movl -0x4(%rbp), %edi
callq 0x17750
movl %eax, -0x4(%rbp)
movl 0x9294(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x175f5
movq 0x12dce(%rip), %rax     # 0x2a370
movslq 0x140b7(%rip), %rcx     # 0x2b660
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x175f5
movq 0x89c9(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl 0x8f00(%rip), %esi      # 0x204d0
shrl $0xd, %esi
andl $0x7, %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x4120
movb $0x1, -0x5(%rbp)
movq 0x8994(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl 0x1405b(%rip), %esi     # 0x2b660
addl $0x2, %esi
subl 0x12f9a(%rip), %esi     # 0x2a5a8
xorl %edx, %edx
callq 0x4070
movl 0x14045(%rip), %edi     # 0x2b660
movl -0x4(%rbp), %esi
xorl %edx, %edx
callq 0x178a0
movl 0x91f9(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17698
movq 0x12d33(%rip), %rax     # 0x2a370
movslq 0x12d34(%rip), %rcx     # 0x2a378
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x17698
testb $0x1, -0x5(%rbp)
jne 0x17696
movq 0x8928(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl 0x8e5f(%rip), %esi      # 0x204d0
shrl $0xd, %esi
andl $0x7, %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x4120
movb $0x1, -0x5(%rbp)
jmp 0x176d5
testb $0x1, -0x5(%rbp)
je 0x176d3
movq 0x88eb(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl 0x8e22(%rip), %esi      # 0x204d0
shrl $0xd, %esi
andl $0x7, %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x4740
movb $0x0, -0x5(%rbp)
jmp 0x176d5
movq 0x88b4(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl 0x12c93(%rip), %esi     # 0x2a378
addl $0x2, %esi
subl 0x12eba(%rip), %esi     # 0x2a5a8
xorl %edx, %edx
callq 0x4070
movl 0x12c7d(%rip), %edi     # 0x2a378
movl -0x4(%rbp), %esi
movl $0x1, %edx
callq 0x178a0
testb $0x1, -0x5(%rbp)
je 0x1773f
movq 0x887b(%rip), %rax      # 0x1ff90
movq (%rax), %rdi
movl 0x8db2(%rip), %esi      # 0x204d0
shrl $0xd, %esi
andl $0x7, %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
orl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x4740
callq 0x17c30
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)