// File: /workspace/github_c_makefile_star2_O3/wahern[P]cqueues/src/lib/notify.c
// Function: notify_close
void notify_close(struct notify *nfy) {
	struct file *file, *next;

	if (!nfy)
		return;

	for (file = LLRB_MIN(files, &nfy->files); file != NULL; file = next) {
		next = LLRB_NEXT(files, &nfy->files, file);

		discard(nfy, file);
	}

	closefd(&nfy->fd);
	closefd(&nfy->dirfd);

#if ENABLE_FEN
	port_dissociate(nfy->fd, PORT_SOURCE_FILE, (intptr_t)&nfy->dirfo);
#endif

	free(nfy);
}

// Assembly:
testq %rdi, %rdi
je 0x33e89
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rdi), %r15
movq %rdi, 0x8(%rsp)
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x33e5d
movq %rax, %r14
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0x337d4
movq %r15, (%rsp)
movq 0x40(%r14), %rax
testq %rax, %rax
je 0x33804
movq %rax, %r13
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0x337f6
jmp 0x3382d
movq 0x48(%r14), %r13
testq %r13, %r13
je 0x3382a
cmpq %r14, 0x38(%r13)
je 0x3382d
movq %r14, %rax
movq 0x48(%rax), %r13
testq %r13, %r13
je 0x3382a
cmpq 0x40(%r13), %rax
movq %r13, %rax
je 0x33816
jmp 0x3382d
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x33e8a
movq (%r15), %r12
testq %r12, %r12
je 0x33e21
movq %r15, %rbx
movq %r14, 0x10(%rsp)
leaq 0x60(%r14), %r15
movq 0x48(%r12), %rbp
leaq 0x60(%r12), %rsi
movq %r15, %rdi
callq 0x10250
movq 0x38(%r12), %r14
testl %eax, %eax
jns 0x33947
testq %r14, %r14
je 0x3393e
cmpb $0x0, 0x50(%r14)
jne 0x3393e
movq 0x38(%r14), %rax
testq %rax, %rax
je 0x33893
cmpb $0x0, 0x50(%rax)
jne 0x3393e
xorb $0x1, 0x50(%r12)
xorb $0x1, 0x50(%r14)
movq 0x40(%r12), %rax
movb 0x50(%rax), %dl
xorb $0x1, %dl
movb %dl, 0x50(%rax)
movq 0x38(%rax), %rcx
testq %rcx, %rcx
je 0x3393e
cmpb $0x1, 0x50(%rcx)
jne 0x3393e
movq 0x40(%rcx), %rsi
movq %rsi, 0x38(%rax)
testq %rsi, %rsi
je 0x338d0
movq %rax, 0x48(%rsi)
movq %rax, 0x40(%rcx)
movb %dl, 0x50(%rcx)
movb $0x1, 0x50(%rax)
movq 0x48(%rax), %rdx
movq %rdx, 0x48(%rcx)
movq %rcx, 0x48(%rax)
movq %rcx, 0x40(%r12)
movq (%rbx), %rax
movq 0x40(%rax), %r12
movq 0x38(%r12), %rcx
movq %rcx, 0x40(%rax)
testq %rcx, %rcx
je 0x33905
movq %rax, 0x48(%rcx)
movq %rax, 0x38(%r12)
movb 0x50(%rax), %cl
movb %cl, 0x50(%r12)
movb $0x1, 0x50(%rax)
movq 0x48(%rax), %rcx
movq %rcx, 0x48(%r12)
movq %r12, 0x48(%rax)
movq %r12, (%rbx)
xorb $0x1, 0x50(%r12)
movq 0x38(%r12), %rax
xorb $0x1, 0x50(%rax)
movq 0x40(%r12), %rax
xorb $0x1, 0x50(%rax)
addq $0x38, %r12
jmp 0x33a65
testq %r14, %r14
je 0x3399a
cmpb $0x1, 0x50(%r14)
jne 0x3399a
movq 0x40(%r14), %rcx
movq %rcx, 0x38(%r12)
movq %rbp, %rax
testq %rcx, %rcx
je 0x3396d
movq %r12, 0x48(%rcx)
movq 0x48(%r12), %rax
movq %r12, 0x40(%r14)
movb 0x50(%r12), %cl
movb %cl, 0x50(%r14)
movb $0x1, 0x50(%r12)
movq %rax, 0x48(%r14)
movq %r14, 0x48(%r12)
movq %r14, (%rbx)
leaq 0x60(%r14), %rsi
movq %r15, %rdi
callq 0x10250
jmp 0x3399d
movq %r12, %r14
movq 0x40(%r14), %rcx
testl %eax, %eax
je 0x339af
testq %rcx, %rcx
jne 0x339b8
jmp 0x33a5e
testq %rcx, %rcx
je 0x33cac
cmpb $0x0, 0x50(%rcx)
jne 0x33a5a
movq 0x38(%rcx), %rdx
testq %rdx, %rdx
je 0x339d5
cmpb $0x0, 0x50(%rdx)
jne 0x33a5a
xorb $0x1, 0x50(%r14)
movq 0x38(%r14), %r12
xorb $0x1, 0x50(%r12)
xorb $0x1, 0x50(%rcx)
movq 0x38(%r12), %rax
testq %rax, %rax
je 0x33a47
cmpb $0x1, 0x50(%rax)
jne 0x33a47
movq 0x40(%r12), %rax
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0x33a0a
movq %r14, 0x48(%rax)
movq %r14, 0x40(%r12)
movb 0x50(%r14), %al
movb %al, 0x50(%r12)
movb $0x1, 0x50(%r14)
movq 0x48(%r14), %rax
movq %rax, 0x48(%r12)
movq %r12, 0x48(%r14)
movq %r12, (%rbx)
xorb $0x1, 0x50(%r12)
movq 0x38(%r12), %rax
xorb $0x1, 0x50(%rax)
movq 0x40(%r12), %rax
xorb $0x1, 0x50(%rax)
jmp 0x33a4a
movq %r14, %r12
leaq 0x60(%r12), %rsi
movq %r15, %rdi
callq 0x10250
movq %r12, %r14
testl %eax, %eax
je 0x33a87
addq $0x40, %r14
movq %r14, %r12
movq %r12, %rbx
movq (%r12), %r12
testq %r12, %r12
jne 0x3384d
testq %rbp, %rbp
movq (%rsp), %r15
jne 0x33cff
jmp 0x33e10
movq 0x40(%r14), %rbp
addq $0x40, %r14
movq 0x38(%rbp), %rax
testq %rax, %rax
je 0x33cb8
movq %r14, %rcx
movq (%rsp), %r15
cmpb $0x0, 0x50(%rax)
jne 0x33b5d
movq 0x38(%rax), %rdx
testq %rdx, %rdx
je 0x33ac0
cmpb $0x0, 0x50(%rdx)
jne 0x33b5d
xorb $0x1, 0x50(%rbp)
xorb $0x1, 0x50(%rax)
movq 0x40(%rbp), %rax
movb 0x50(%rax), %sil
xorb $0x1, %sil
movb %sil, 0x50(%rax)
movq 0x38(%rax), %rdx
testq %rdx, %rdx
je 0x33b5d
cmpb $0x1, 0x50(%rdx)
jne 0x33b5d
movq 0x40(%rdx), %rdi
movq %rdi, 0x38(%rax)
testq %rdi, %rdi
je 0x33af8
movq %rax, 0x48(%rdi)
movq %rax, 0x40(%rdx)
movb %sil, 0x50(%rdx)
movb $0x1, 0x50(%rax)
movq 0x48(%rax), %rsi
movq %rsi, 0x48(%rdx)
movq %rdx, 0x48(%rax)
movq %rdx, 0x40(%rbp)
movq (%rcx), %rax
movq 0x40(%rax), %rbp
movq 0x38(%rbp), %rdx
movq %rdx, 0x40(%rax)
testq %rdx, %rdx
je 0x33b2c
movq %rax, 0x48(%rdx)
movq %rax, 0x38(%rbp)
movb 0x50(%rax), %dl
movb %dl, 0x50(%rbp)
movb $0x1, 0x50(%rax)
movq 0x48(%rax), %rdx
movq %rdx, 0x48(%rbp)
movq %rbp, 0x48(%rax)
movq %rbp, (%rcx)
xorb $0x1, 0x50(%rbp)
movq 0x38(%rbp), %rax
xorb $0x1, 0x50(%rax)
movq 0x40(%rbp), %rax
xorb $0x1, 0x50(%rax)
movq %rbp, %rcx
movq 0x38(%rbp), %rbp
addq $0x38, %rcx
movq 0x38(%rbp), %rax
testq %rax, %rax
jne 0x33aa3
movq 0x48(%rbp), %rax
movq $0x0, (%rcx)
cmpq %r14, %rcx
je 0x33cc3
movq %rax, %rdx
movq (%r15), %rsi
movq 0x48(%rax), %rax
movq %r15, %rcx
cmpq %rsi, %rdx
je 0x33bb6
leaq 0x38(%rax), %rsi
leaq 0x40(%rax), %rcx
xorl %edi, %edi
cmpq 0x38(%rax), %rdx
setne %dil
cmoveq %rsi, %rcx
movq 0x38(%rax,%rdi,8), %rsi
movq 0x40(%rsi), %rdx
testq %rdx, %rdx
je 0x33bd4
cmpb $0x1, 0x50(%rdx)
jne 0x33bd4
movq 0x38(%rsi), %rdi
testq %rdi, %rdi
je 0x33bd9
cmpb $0x0, 0x50(%rdi)
je 0x33bd9
movq %rsi, %rdx
jmp 0x33c09
movq 0x38(%rdx), %rdi
movq %rdi, 0x40(%rsi)
testq %rdi, %rdi
je 0x33bea
movq %rsi, 0x48(%rdi)
movq %rsi, 0x38(%rdx)
movb 0x50(%rsi), %dil
movb %dil, 0x50(%rdx)
movb $0x1, 0x50(%rsi)
movq 0x48(%rsi), %rdi
movq %rdi, 0x48(%rdx)
movq %rdx, 0x48(%rsi)
movq %rdx, (%rcx)
movq 0x38(%rdx), %rsi
testq %rsi, %rsi
je 0x33b80
movb 0x50(%rsi), %dil
cmpb $0x1, %dil
jne 0x33c76
movq 0x38(%rsi), %r8
testq %r8, %r8
je 0x33c76
cmpb $0x1, 0x50(%r8)
jne 0x33c76
movq 0x40(%rsi), %rdi
movq %rdi, 0x38(%rdx)
testq %rdi, %rdi
je 0x33c41
movq %rdx, 0x48(%rdi)
movq %rdx, 0x40(%rsi)
movb 0x50(%rdx), %dil
movb %dil, 0x50(%rsi)
movb $0x1, 0x50(%rdx)
movq 0x48(%rdx), %rdi
movq %rdi, 0x48(%rsi)
movq %rsi, 0x48(%rdx)
movq %rsi, (%rcx)
movq 0x38(%rsi), %r8
testq %r8, %r8
je 0x33b80
movb 0x50(%r8), %dil
movq %rsi, %rdx
jmp 0x33c79
movq %rsi, %r8
testb $0x1, %dil
je 0x33b80
movq 0x40(%rdx), %rsi
testq %rsi, %rsi
je 0x33b80
cmpb $0x1, 0x50(%rsi)
jne 0x33b80
xorb $0x1, 0x50(%rdx)
xorb $0x1, 0x50(%r8)
xorb $0x1, 0x50(%rsi)
jmp 0x33b80
movq $0x0, (%rbx)
jmp 0x33a75
movq $0x0, (%r14)
movq (%rsp), %r15
movq (%rbx), %rax
movb 0x50(%rax), %cl
movb %cl, 0x50(%rbp)
movq 0x48(%rax), %rax
movq %rax, 0x48(%rbp)
movq (%rbx), %rax
movq 0x40(%rax), %rax
movq %rax, 0x40(%rbp)
testq %rax, %rax
je 0x33ce8
movq %rbp, 0x48(%rax)
movq (%rbx), %rax
movq 0x38(%rax), %rax
movq %rax, 0x38(%rbp)
testq %rax, %rax
je 0x33cfc
movq %rbp, 0x48(%rax)
movq %rbp, (%rbx)
movq %rbp, %rax
movq (%r15), %rdx
movq 0x48(%rbp), %rbp
movq %r15, %rcx
cmpq %rdx, %rax
je 0x33d2c
leaq 0x38(%rbp), %rdx
leaq 0x40(%rbp), %rcx
xorl %esi, %esi
cmpq 0x38(%rbp), %rax
setne %sil
cmoveq %rdx, %rcx
movq 0x38(%rbp,%rsi,8), %rdx
movq 0x40(%rdx), %rax
testq %rax, %rax
je 0x33d4a
cmpb $0x1, 0x50(%rax)
jne 0x33d4a
movq 0x38(%rdx), %rsi
testq %rsi, %rsi
je 0x33d4f
cmpb $0x0, 0x50(%rsi)
je 0x33d4f
movq %rdx, %rax
jmp 0x33d7f
movq 0x38(%rax), %rsi
movq %rsi, 0x40(%rdx)
testq %rsi, %rsi
je 0x33d60
movq %rdx, 0x48(%rsi)
movq %rdx, 0x38(%rax)
movb 0x50(%rdx), %sil
movb %sil, 0x50(%rax)
movb $0x1, 0x50(%rdx)
movq 0x48(%rdx), %rsi
movq %rsi, 0x48(%rax)
movq %rax, 0x48(%rdx)
movq %rax, (%rcx)
movq 0x38(%rax), %rdx
testq %rdx, %rdx
je 0x33e07
movb 0x50(%rdx), %sil
cmpb $0x1, %sil
jne 0x33de3
movq 0x38(%rdx), %rdi
testq %rdi, %rdi
je 0x33de3
cmpb $0x1, 0x50(%rdi)
jne 0x33de3
movq 0x40(%rdx), %rsi
movq %rsi, 0x38(%rax)
testq %rsi, %rsi
je 0x33db2
movq %rax, 0x48(%rsi)
movq %rax, 0x40(%rdx)
movb 0x50(%rax), %sil
movb %sil, 0x50(%rdx)
movb $0x1, 0x50(%rax)
movq 0x48(%rax), %rsi
movq %rsi, 0x48(%rdx)
movq %rdx, 0x48(%rax)
movq %rdx, (%rcx)
movq 0x38(%rdx), %rcx
testq %rcx, %rcx
je 0x33e07
movb 0x50(%rcx), %sil
movq %rdx, %rax
jmp 0x33de6
movq %rdx, %rcx
testb $0x1, %sil
je 0x33e07
movq 0x40(%rax), %rdx
testq %rdx, %rdx
je 0x33e07
cmpb $0x1, 0x50(%rdx)
jne 0x33e07
xorb $0x1, 0x50(%rax)
xorb $0x1, 0x50(%rcx)
xorb $0x1, 0x50(%rdx)
testq %rbp, %rbp
jne 0x33cff
movq (%r15), %rax
testq %rax, %rax
movq 0x10(%rsp), %r14
je 0x33e21
movb $0x0, 0x50(%rax)
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
testq %rax, %rax
je 0x33e32
movq %rcx, 0x20(%rax)
movq %rax, (%rcx)
movq 0x28(%r14), %rax
movq 0x30(%r14), %rcx
testq %rax, %rax
je 0x33e46
movq %rcx, 0x30(%rax)
movq %rax, (%rcx)
movq %r14, %rdi
callq 0xff30
movq %r13, %r14
testq %r13, %r13
jne 0x337ed
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x33e8a
leaq 0x54(%rbx), %rdi
callq 0x33e8a
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xff30
retq