// File: /workspace/github_c_makefile_star2_O0/jarun[P]nnn/src/nnn.c
// Function: setexports
static void setexports(const char *path)
{
	char dvar[] = "d0";
	char fvar[] = "f0";

	if (ndents) {
		setenv(envs[ENV_NCUR], pdents[cur].name, 1);
		xstrsncpy(g_ctx[cfg.curctx].c_name, pdents[cur].name, NAME_MAX + 1);
	} else if (g_ctx[cfg.curctx].c_name[0])
		g_ctx[cfg.curctx].c_name[0] = '\0';

	for (uchar_t i = 0; i < CTX_MAX; ++i) {
		if (g_ctx[i].c_cfg.ctxactive) {
			dvar[1] = fvar[1] = '1' + i;
			setenv(dvar, g_ctx[i].c_path, 1);

			if (g_ctx[i].c_name[0]) {
				mkpath(g_ctx[i].c_path, g_ctx[i].c_name, g_buf);
				setenv(fvar, g_buf, 1);
			}
		}
	}
	setenv("NNN_INCLUDE_HIDDEN", xitoa(cfg.showhidden), 1);
	setenv("NNN_PREFER_SELECTION", xitoa(cfg.prefersel), 1);
	setenv("PWD", path, 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movw 0x3b44(%rip), %ax       # 0x1c767
movw %ax, -0xb(%rbp)
movb 0x3b3c(%rip), %al       # 0x1c769
movb %al, -0x9(%rbp)
movw 0x3b33(%rip), %ax       # 0x1c76a
movw %ax, -0xe(%rbp)
movb 0x3b2b(%rip), %al       # 0x1c76c
movb %al, -0xc(%rbp)
cmpl $0x0, 0x9241(%rip)      # 0x21e8c
je 0x18cc0
movq 0x6fbc(%rip), %rdi      # 0x1fc10
movq 0x11715(%rip), %rax     # 0x2a370
movslq 0x11716(%rip), %rcx     # 0x2a378
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movl $0x1, %edx
callq 0x4200
movl 0x7854(%rip), %eax      # 0x204d0
shrl $0xd, %eax
andl $0x7, %eax
movl %eax, %eax
leaq 0x9205(%rip), %rdi      # 0x21e90
imulq $0x2138, %rax, %rax     # imm = 0x2138
addq %rax, %rdi
addq $0x2000, %rdi           # imm = 0x2000
movq 0x116cd(%rip), %rax     # 0x2a370
movslq 0x116ce(%rip), %rcx     # 0x2a378
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x6250
jmp 0x18d14
movl 0x780a(%rip), %eax      # 0x204d0
shrl $0xd, %eax
andl $0x7, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x91b9(%rip), %rax      # 0x21e90
imulq $0x2138, %rcx, %rcx     # imm = 0x2138
addq %rcx, %rax
cmpb $0x0, 0x2000(%rax)
je 0x18d12
movl 0x77e0(%rip), %eax      # 0x204d0
shrl $0xd, %eax
andl $0x7, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x918f(%rip), %rax      # 0x21e90
imulq $0x2138, %rcx, %rcx     # imm = 0x2138
addq %rcx, %rax
movb $0x0, 0x2000(%rax)
jmp 0x18d14
movb $0x0, -0xf(%rbp)
movzbl -0xf(%rbp), %eax
cmpl $0x4, %eax
jge 0x18e04
movzbl -0xf(%rbp), %eax
movl %eax, %ecx
leaq 0x915e(%rip), %rax      # 0x21e90
imulq $0x2138, %rcx, %rcx     # imm = 0x2138
addq %rcx, %rax
movl 0x2130(%rax), %eax
shrl $0x9, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x18df5
movzbl -0xf(%rbp), %eax
addl $0x31, %eax
movb %al, -0xd(%rbp)
movb %al, -0xa(%rbp)
leaq -0xb(%rbp), %rdi
movzbl -0xf(%rbp), %eax
leaq 0x9123(%rip), %rsi      # 0x21e90
imulq $0x2138, %rax, %rax     # imm = 0x2138
addq %rax, %rsi
movl $0x1, %edx
callq 0x4200
movzbl -0xf(%rbp), %eax
movl %eax, %ecx
leaq 0x9102(%rip), %rax      # 0x21e90
imulq $0x2138, %rcx, %rcx     # imm = 0x2138
addq %rcx, %rax
cmpb $0x0, 0x2000(%rax)
je 0x18df3
movzbl -0xf(%rbp), %eax
leaq 0x90e4(%rip), %rdi      # 0x21e90
imulq $0x2138, %rax, %rax     # imm = 0x2138
addq %rax, %rdi
movzbl -0xf(%rbp), %eax
leaq 0x90cf(%rip), %rsi      # 0x21e90
imulq $0x2138, %rax, %rax     # imm = 0x2138
addq %rax, %rsi
addq $0x2000, %rsi           # imm = 0x2000
leaq 0x7c77(%rip), %rdx      # 0x20a50
callq 0x74c0
leaq -0xe(%rbp), %rdi
leaq 0x7c67(%rip), %rsi      # 0x20a50
movl $0x1, %edx
callq 0x4200
jmp 0x18df5
jmp 0x18df7
movb -0xf(%rbp), %al
addb $0x1, %al
movb %al, -0xf(%rbp)
jmp 0x18d18
movl 0x76c6(%rip), %edi      # 0x204d0
shrl $0x6, %edi
andl $0x1, %edi
callq 0x5df0
movq %rax, %rsi
leaq 0x3836(%rip), %rdi      # 0x1c655
movl $0x1, %edx
callq 0x4200
movl 0x76a1(%rip), %edi      # 0x204d0
shrl $0x10, %edi
andl $0x1, %edi
callq 0x5df0
movq %rax, %rsi
leaq 0x3824(%rip), %rdi      # 0x1c668
movl $0x1, %edx
callq 0x4200
movq -0x8(%rbp), %rsi
leaq 0x2ce7(%rip), %rdi      # 0x1bb40
movl $0x1, %edx
callq 0x4200
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)