// File: /workspace/github_c_makefile_star2_O0/jarun[P]nnn/src/nnn.c
// Function: statusbar
static void statusbar(char *path)
{
	int i = 0, len = 0;
	char *ptr;
	pEntry pent = &pdents[cur];

	if (!ndents) {
		printmsg("0/0");
		return;
	}

	/* Get the file extension for regular files */
	if (S_ISREG(pent->mode)) {
		i = (int)(pent->nlen - 1);
		ptr = xextension(pent->name, i);
		if (ptr)
			len = i - (ptr - pent->name);
		if (!ptr || len > 5 || len < 2)
			ptr = "\b";
	} else
		ptr = "\b";

	attron(COLOR_PAIR(cfg.curctx + 1));

	if (cfg.fileinfo && get_output("file", "-b", pdents[cur].name, -1, FALSE))
		mvaddstr(xlines - 2, 2, g_buf);

	tolastln();

	printw("%d/%s ", cur + 1, xitoa(ndents));

	if (g_state.selmode || nselected) {
		attron(A_REVERSE);
		addch(' ');
		if (g_state.rangesel)
			addch('*');
		else if (g_state.selmode)
			addch('+');
		if (nselected)
			addstr(xitoa(nselected));
		addch(' ');
		attroff(A_REVERSE);
		addch(' ');
	}

	if (cfg.blkorder) { /* du mode */
		char buf[24];

		xstrsncpy(buf, coolsize(dir_blocks << blk_shift), 12);

		printw("%cu:%s avail:%s files:%llu %lluB %s\n",
		       (cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, VFS_AVAIL)),
		       num_files, (ullong_t)pent->blocks << blk_shift, ptr);
	} else { /* light or detail mode */
		char sort[] = "\0\0\0\0\0";

		if (cfg.filtermode)
			addch('F');

		getorderstr(sort) ? addstr(sort) : addch(' ');

		/* Timestamp */
		print_time(&pent->sec, pent->flags);

		addch(' ');
		addstr(get_lsperms(pent->mode));
		addch(' ');
#ifndef NOUG
		if (g_state.uidgid) {
			addstr(getpwname(pent->uid));
			addch(':');
			addstr(getgrname(pent->gid));
			addch(' ');
		}
#endif
		if (S_ISLNK(pent->mode)) {
			if (!cfg.fileinfo) {
				i = readlink(pent->name, g_buf, PATH_MAX);
				addstr(coolsize(i >= 0 ? i : pent->size)); /* Show symlink size */
				if (i > 1) { /* Show symlink target */
					int y;

					addstr(" ->");
					getyx(stdscr, len, y);
					i = MIN(i, xcols - y);
					g_buf[i] = '\0';
					addstr(g_buf);
				}
			}
		} else {
			addstr(coolsize(pent->size));
			addch(' ');
			addstr(ptr);
			if (pent->flags & HARD_LINK) {
				struct stat sb;

				if (stat(pent->name, &sb) != -1) {
					addch(' ');
					addstr(xitoa((int)sb.st_nlink)); /* Show number of links */
					addch('-');
					addstr(xitoa((int)sb.st_ino)); /* Show inode number */
				}
			}
		}
		clrtoeol();
	}

	attroff(COLOR_PAIR(cfg.curctx + 1));
	/* Place HW cursor on current for Braille systems */
	tocursor();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq 0x1ae9c(%rip), %rax     # 0x2a370
movslq 0x1ae9d(%rip), %rcx     # 0x2a378
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, 0x1299f(%rip)     # 0x21e8c
jne 0xf500
leaq 0xd211(%rip), %rdi      # 0x1c707
callq 0xd020
jmp 0xfd1e
movq -0x20(%rbp), %rax
movl 0x14(%rax), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x8000, %eax           # imm = 0x8000
jne 0xf57e
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x28, %rax
andq $0xffff, %rax           # imm = 0xFFFF
subl $0x1, %eax
movl %eax, -0xc(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movslq -0xc(%rbp), %rsi
callq 0xdda0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xf55e
movslq -0xc(%rbp), %rax
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rdx
movq (%rdx), %rdx
subq %rdx, %rcx
subq %rcx, %rax
movl %eax, -0x10(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xf571
cmpl $0x5, -0x10(%rbp)
jg 0xf571
cmpl $0x2, -0x10(%rbp)
jge 0xf57c
leaq 0xd193(%rip), %rax      # 0x1c70b
movq %rax, -0x18(%rbp)
jmp 0xf589
leaq 0xd186(%rip), %rax      # 0x1c70b
movq %rax, -0x18(%rbp)
movq 0x10a00(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl 0x10f37(%rip), %esi     # 0x204d0
shrl $0xd, %esi
andl $0x7, %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0x4120
movl 0x10f16(%rip), %eax     # 0x204d0
shrl $0x11, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf63e
movq 0x1ada4(%rip), %rax     # 0x2a370
movslq 0x1ada5(%rip), %rcx     # 0x2a378
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq 0xd066(%rip), %rdi      # 0x1c64a
leaq 0xd22b(%rip), %rsi      # 0x1c816
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
callq 0x10ba0
testb $0x1, %al
jne 0xf5fe
jmp 0xf63e
movq 0x1098b(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movzwl 0x12879(%rip), %esi     # 0x21e88
subl $0x2, %esi
movl $0x2, %edx
callq 0x4070
cmpl $-0x1, %eax
jne 0xf623
jmp 0xf63e
movq 0x10966(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
leaq 0x1141c(%rip), %rsi     # 0x20a50
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x1094b(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movzwl 0x12839(%rip), %esi     # 0x21e88
subl $0x1, %esi
xorl %edx, %edx
callq 0x4070
movl 0x1ad19(%rip), %eax     # 0x2a378
addl $0x1, %eax
movl %eax, -0xe4(%rbp)
movl 0x1281e(%rip), %edi     # 0x21e8c
callq 0x5df0
movl -0xe4(%rbp), %esi
movq %rax, %rdx
leaq 0xd08a(%rip), %rdi      # 0x1c70d
movb $0x0, %al
callq 0x4610
movl 0x11194(%rip), %eax     # 0x20824
shrl $0x15, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xf6a8
cmpl $0x0, 0x1af0a(%rip)     # 0x2a5ac
je 0xf79b
movq 0x108e1(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %eax, %eax
movl %eax, %edx
callq 0x4120
movq 0x108c9(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movl 0x1114a(%rip), %eax     # 0x20824
shrl $0xf, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf6fb
movq 0x108a4(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x2a, %esi
callq 0x4850
jmp 0xf722
movl 0x11123(%rip), %eax     # 0x20824
shrl $0x15, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf720
movq 0x1087d(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x2b, %esi
callq 0x4850
jmp 0xf722
cmpl $0x0, 0x1ae83(%rip)     # 0x2a5ac
je 0xf75b
movq 0x1085e(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0xf0(%rbp)
movl 0x1ae6a(%rip), %edi     # 0x2a5ac
callq 0x5df0
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x1082e(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movq 0x1081a(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %eax, %eax
movl %eax, %edx
callq 0x4740
movq 0x10802(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movl 0x10d2f(%rip), %eax     # 0x204d0
shrl $0x4, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf886
leaq -0x40(%rbp), %rax
movq %rax, -0x110(%rbp)
movq 0x1be3e(%rip), %rdi     # 0x2b600
movzbl 0x11017(%rip), %eax     # 0x207e0
movl %eax, %eax
movl %eax, %ecx
shlq %cl, %rdi
callq 0x17ea0
movq -0x110(%rbp), %rdi
movq %rax, %rsi
movl $0xc, %edx
callq 0x6250
movl 0x10ce1(%rip), %edx     # 0x204d0
shrl $0x3, %edx
andl $0x1, %edx
movl $0x64, %eax
movl $0x61, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x104(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x185c0
movq %rax, %rdi
callq 0x17ea0
movl -0x104(%rbp), %esi
movq -0x100(%rbp), %rdx
movq %rax, -0xf8(%rbp)
movq 0x1bdb4(%rip), %r8      # 0x2b5f8
movq -0x20(%rbp), %rax
movabsq $0xffffffffff, %r9      # imm = 0xFFFFFFFFFF
andq 0x20(%rax), %r9
movzbl 0x10f83(%rip), %eax     # 0x207e0
movl %eax, %eax
movl %eax, %ecx
shlq %cl, %r9
movq -0xf8(%rbp), %rcx
movq -0x18(%rbp), %rax
leaq 0xce9e(%rip), %rdi      # 0x1c714
movq %rax, (%rsp)
movb $0x0, %al
callq 0x4610
jmp 0xfcd3
leaq -0x46(%rbp), %rdi
xorl %esi, %esi
movl $0x6, %edx
callq 0x4380
movl 0x10c34(%rip), %eax     # 0x204d0
andl $0x1, %eax
cmpl $0x0, %eax
je 0xf8b8
movq 0x106e5(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x46, %esi
callq 0x4850
leaq -0x46(%rbp), %rdi
callq 0x186a0
cmpl $0x0, %eax
je 0xf8e0
movq 0x106c3(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
leaq -0x46(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
jmp 0xf8f4
movq 0x106a9(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movq -0x20(%rbp), %rdi
addq $0x8, %rdi
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
movzbl %al, %esi
callq 0x17e00
movq 0x10679(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movq 0x10665(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x118(%rbp)
movq -0x20(%rbp), %rax
movl 0x14(%rax), %edi
callq 0x18800
movq -0x118(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x10634(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movl 0x10eb5(%rip), %eax     # 0x20824
shrl $0x17, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xfa08
movq 0x1060b(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x128(%rbp)
movq -0x20(%rbp), %rax
movl 0x28(%rax), %edi
callq 0x189c0
movq -0x128(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x105da(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x3a, %esi
callq 0x4850
movq 0x105c6(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x120(%rbp)
movq -0x20(%rbp), %rax
movl 0x2c(%rax), %edi
callq 0x18a40
movq -0x120(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x10595(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movq -0x20(%rbp), %rax
movl 0x14(%rax), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0xa000, %eax           # imm = 0xA000
jne 0xfba0
movl 0x10aab(%rip), %eax     # 0x204d0
shrl $0x11, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xfb9b
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x1100e(%rip), %rsi     # 0x20a50
movl $0x1000, %edx           # imm = 0x1000
callq 0x41e0
movl %eax, -0xc(%rbp)
movq 0x1053a(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x130(%rbp)
cmpl $0x0, -0xc(%rbp)
jl 0xfa73
movslq -0xc(%rbp), %rax
movq %rax, -0x138(%rbp)
jmp 0xfa82
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
callq 0x17ea0
movq -0x130(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
cmpl $0x1, -0xc(%rbp)
jle 0xfb99
movq 0x104dd(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
leaq 0xcc7c(%rip), %rsi      # 0x1c739
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
xorl %eax, %eax
movq 0x104c0(%rip), %rcx     # 0x1ff90
cmpq (%rcx), %rax
je 0xfaea
movq 0x104b4(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x13c(%rbp)
jmp 0xfaf7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x13c(%rbp)
jmp 0xfaf7
movl -0x13c(%rbp), %eax
movl %eax, -0x10(%rbp)
xorl %eax, %eax
movq 0x10487(%rip), %rcx     # 0x1ff90
cmpq (%rcx), %rax
je 0xfb24
movq 0x1047b(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x140(%rbp)
jmp 0xfb31
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x140(%rbp)
jmp 0xfb31
movl -0x140(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0xc(%rbp), %eax
movzwl 0x1aa54(%rip), %ecx     # 0x2a598
subl -0x4c(%rbp), %ecx
cmpl %ecx, %eax
jge 0xfb56
movl -0xc(%rbp), %eax
movl %eax, -0x144(%rbp)
jmp 0xfb66
movzwl 0x1aa3b(%rip), %eax     # 0x2a598
subl -0x4c(%rbp), %eax
movl %eax, -0x144(%rbp)
movl -0x144(%rbp), %eax
movl %eax, -0xc(%rbp)
movslq -0xc(%rbp), %rcx
leaq 0x10ed6(%rip), %rax     # 0x20a50
movb $0x0, (%rax,%rcx)
movq 0x1040b(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
leaq 0x10ec1(%rip), %rsi     # 0x20a50
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
jmp 0xfb9b
jmp 0xfcc4
movq 0x103e9(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x150(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x17ea0
movq -0x150(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x103b7(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movq 0x103a3(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xfcc2
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x4300
cmpl $-0x1, %eax
je 0xfcc0
movq 0x10357(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x20, %esi
callq 0x4850
movq 0x10343(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x160(%rbp)
movq -0xd0(%rbp), %rax
movl %eax, %edi
callq 0x5df0
movq -0x160(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
movq 0x10310(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl $0x2d, %esi
callq 0x4850
movq 0x102fc(%rip), %rax     # 0x1ff90
movq (%rax), %rax
movq %rax, -0x158(%rbp)
movq -0xd8(%rbp), %rax
movl %eax, %edi
callq 0x5df0
movq -0x158(%rbp), %rdi
movq %rax, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x41c0
jmp 0xfcc2
jmp 0xfcc4
movq 0x102c5(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
callq 0x4840
movq 0x102b6(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl 0x107ed(%rip), %esi     # 0x204d0
shrl $0xd, %esi
andl $0x7, %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0x4740
movq 0x1028b(%rip), %rax     # 0x1ff90
movq (%rax), %rdi
movl 0x1a66a(%rip), %esi     # 0x2a378
addl $0x2, %esi
subl 0x1a891(%rip), %esi     # 0x2a5a8
xorl %edx, %edx
callq 0x4070
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopw (%rax,%rax)