// File: /workspace/github_c_makefile_star2_O0/jarun[P]nnn/src/nnn.c
// Function: get_color_pair_name_ind
static uchar_t get_color_pair_name_ind(const struct entry *ent, char *pind, int *pattr)
{
	switch (ent->mode & S_IFMT) {
	case S_IFREG:
		if (!ent->size) {
			if (ent->mode & 0100)
				*pind = '*';
			return C_UND;
		}
		if (ent->flags & HARD_LINK) {
			if (ent->mode & 0100)
				*pind = '*';
			return C_HRD;
		}
		if (ent->mode & 0100) {
			*pind = '*';
			return C_EXE;
		}
		return C_FIL;
	case S_IFDIR:
		*pind = '/';
		if (g_state.oldcolor)
			return C_DIR;
		*pattr |= A_BOLD;
		return g_state.dirctx ? cfg.curctx + 1 : C_DIR;
	case S_IFLNK:
		if (ent->flags & DIR_OR_DIRLNK) {
			*pind = '/';
			*pattr |= g_state.oldcolor ? A_DIM : A_BOLD;
		} else {
			*pind = '@';
			if (g_state.oldcolor)
				*pattr |= A_DIM;
		}
		if (!g_state.oldcolor || cfg.showdetail)
			return (ent->flags & SYM_ORPHAN) ? C_ORP : C_LNK;
		return 0;
	case S_IFSOCK:
		*pind = '=';
		return C_SOC;
	case S_IFIFO:
		*pind = '|';
		return C_PIP;
	case S_IFBLK:
		return C_BLK;
	case S_IFCHR:
		return C_CHR;
	}

	*pind = '?';
	return C_UND;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
andl $0xf000, %eax           # imm = 0xF000
movl %eax, -0x24(%rbp)
subl $0x1000, %eax           # imm = 0x1000
je 0x1840d
jmp 0x181fc
movl -0x24(%rbp), %eax
subl $0x2000, %eax           # imm = 0x2000
je 0x18420
jmp 0x1820c
movl -0x24(%rbp), %eax
subl $0x4000, %eax           # imm = 0x4000
je 0x182e0
jmp 0x1821c
movl -0x24(%rbp), %eax
subl $0x6000, %eax           # imm = 0x6000
je 0x1841a
jmp 0x1822c
movl -0x24(%rbp), %eax
subl $0x8000, %eax           # imm = 0x8000
je 0x1825b
jmp 0x18238
movl -0x24(%rbp), %eax
subl $0xa000, %eax           # imm = 0xA000
je 0x18349
jmp 0x18248
movl -0x24(%rbp), %eax
subl $0xc000, %eax           # imm = 0xC000
je 0x18400
jmp 0x18426
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x18285
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x1827c
movq -0x18(%rbp), %rax
movb $0x2a, (%rax)
movb $0x10, -0x1(%rbp)
jmp 0x18431
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x182b8
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x182af
movq -0x18(%rbp), %rax
movb $0x2a, (%rax)
movb $0xa, -0x1(%rbp)
jmp 0x18431
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x182d7
movq -0x18(%rbp), %rax
movb $0x2a, (%rax)
movb $0x8, -0x1(%rbp)
jmp 0x18431
movb $0x9, -0x1(%rbp)
jmp 0x18431
movq -0x18(%rbp), %rax
movb $0x2f, (%rax)
movl 0x8537(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x18301
movb $0x7, -0x1(%rbp)
jmp 0x18431
movq -0x20(%rbp), %rax
movl (%rax), %ecx
orl $0x200000, %ecx         # imm = 0x200000
movl %ecx, (%rax)
movl 0x850f(%rip), %eax      # 0x20824
shrl $0x3, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x18334
movl 0x81aa(%rip), %eax      # 0x204d0
shrl $0xd, %eax
andl $0x7, %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x1833e
movl $0x7, %eax
movl %eax, -0x28(%rbp)
jmp 0x1833e
movl -0x28(%rbp), %eax
movb %al, -0x1(%rbp)
jmp 0x18431
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x1838a
movq -0x18(%rbp), %rax
movb $0x2f, (%rax)
movl 0x84ba(%rip), %edx      # 0x20824
shrl $0xa, %edx
andl $0x1, %edx
movl $0x200000, %ecx         # imm = 0x200000
movl $0x100000, %eax         # imm = 0x100000
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x20(%rbp), %rax
orl (%rax), %ecx
movl %ecx, (%rax)
jmp 0x183b2
movq -0x18(%rbp), %rax
movb $0x40, (%rax)
movl 0x848d(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x183b0
movq -0x20(%rbp), %rax
movl (%rax), %ecx
orl $0x100000, %ecx         # imm = 0x100000
movl %ecx, (%rax)
jmp 0x183b2
movl 0x846c(%rip), %eax      # 0x20824
shrl $0xa, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x183d4
movl 0x8107(%rip), %eax      # 0x204d0
shrl $0x8, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x183fa
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
shrq $0x38, %rax
movl %eax, %edx
andl $0x4, %edx
movl $0xb, %eax
movl $0xd, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, -0x1(%rbp)
jmp 0x18431
movb $0x0, -0x1(%rbp)
jmp 0x18431
movq -0x18(%rbp), %rax
movb $0x3d, (%rax)
movb $0xf, -0x1(%rbp)
jmp 0x18431
movq -0x18(%rbp), %rax
movb $0x7c, (%rax)
movb $0xe, -0x1(%rbp)
jmp 0x18431
movb $0x5, -0x1(%rbp)
jmp 0x18431
movb $0x6, -0x1(%rbp)
jmp 0x18431
movq -0x18(%rbp), %rax
movb $0x3f, (%rax)
movb $0x10, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopw %cs:(%rax,%rax)