	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vn_open                        ## -- Begin function vn_open
	.p2align	4, 0x90
_vn_open:                               ## @vn_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	_FCREAT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_8
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stat64
	cmpl	$-1, %eax
	jne	LBB0_8
	jmp	LBB0_2
LBB0_1:
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_open64
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r13d
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat64
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_close
	cmpl	$-1, %r14d
	je	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_8
## %bb.5:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	leaq	(%r12,%rcx), %rdi
	incq	%rdi
	incq	%rax
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	callq	_sprintf
LBB0_8:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_FCREAT@GOTPCREL(%rip), %rbx
	testl	%r15d, (%rbx)
	je	LBB0_9
## %bb.10:
	xorl	%edi, %edi
	callq	_umask
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_9:
                                        ## implicit-def: $r14d
LBB0_11:
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	%r15d, %esi
	subl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_open64
	movl	%eax, %r13d
	testl	%r15d, (%rbx)
	je	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	callq	_umask
LBB0_13:
	movq	_vn_dumpdir@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.15:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r15), %r15
	movq	%r12, %rdi
	callq	_basename
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_snprintf
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	xorl	%eax, %eax
	callq	_open64
	movl	%eax, %r14d
	cmpl	$-1, %eax
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	je	LBB0_2
## %bb.16:
	cmpl	$-1, %r13d
	jne	LBB0_17
	jmp	LBB0_2
LBB0_14:
	movl	$-1, %r14d
	cmpl	$-1, %r13d
	je	LBB0_2
LBB0_17:
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edi
	callq	_fstat64
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.19:
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	_fcntl
	movq	_UMEM_NOFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_umem_zalloc
	movq	%rax, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movl	%r13d, (%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 12(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spa_strdup
	movl	%eax, 8(%rbx)
	movl	%r14d, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_18:
	movl	%r13d, %edi
	callq	_close
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"/dsk/"

L_.str.3:                               ## @.str.3
	.asciz	"r%s"

	.comm	_FCREAT,4,2                     ## @FCREAT
	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_vn_dumpdir,8,3                 ## @vn_dumpdir
L_.str.4:                               ## @.str.4
	.asciz	"%s/%s"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_UMEM_NOFAIL,4,2                ## @UMEM_NOFAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vn_open                        ; -- Begin function vn_open
	.p2align	2
_vn_open:                               ; @vn_open
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_strncmp
Lloh9:
	adrp	x27, _FCREAT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _FCREAT@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_strcpy
	ldr	w8, [x27]
	tst	w8, w22
	b.ne	LBB0_7
; %bb.2:
	sub	x1, x29, #96
	mov	x0, x21
	bl	_stat64
	cmn	w0, #1
	b.ne	LBB0_7
	b	LBB0_19
LBB0_3:
Lloh11:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open64
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.4:
	mov	x24, x0
	sub	x1, x29, #96
	bl	_fstat64
	mov	x25, x0
	mov	x0, x24
	bl	_close
	cmn	w25, #1
	b.eq	LBB0_19
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_strcpy
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.6:
	sub	x8, x0, x19
	add	x8, x21, x8
	add	x8, x8, #1
	add	x2, x0, #1
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_sprintf
LBB0_7:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
	bl	_umask
	mov	x24, x0
	b	LBB0_10
LBB0_9:
                                        ; implicit-def: $w24
LBB0_10:
Lloh18:
	adrp	x8, _FREAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	sub	w1, w22, w8
	str	x23, [sp, #-16]!
	mov	x0, x21
	bl	_open64
	add	sp, sp, #16
	mov	x23, x0
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x24
	bl	_umask
LBB0_12:
Lloh21:
	adrp	x8, _vn_dumpdir@GOTPAGE
Lloh22:
	ldr	x8, [x8, _vn_dumpdir@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_15
; %bb.13:
	mov	x27, sp
	ldr	w22, [x26]
	mov	x9, x22
Lloh23:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh24:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x22, #15
	and	x10, x10, #0x1fffffff0
	sub	x24, x9, x10
	mov	sp, x24
	ldr	x25, [x8]
	mov	x0, x21
	bl	_basename
	mov	x4, x0
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x24
	mov	x1, x22
	mov	x3, x25
	bl	_snprintf
Lloh27:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w8, #438
	str	x8, [sp, #-16]!
	mov	x0, x24
	bl	_open64
	add	sp, sp, #16
	mov	x21, x0
	mov	sp, x27
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.14:
	cmn	w23, #1
	b.ne	LBB0_16
	b	LBB0_19
LBB0_15:
	mov	w21, #-1
	cmn	w23, #1
	b.eq	LBB0_19
LBB0_16:
	sub	x1, x29, #96
	mov	x0, x23
	bl	_fstat64
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.17:
Lloh33:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_fcntl
Lloh39:
	adrp	x8, _UMEM_NOFAIL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _UMEM_NOFAIL@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_umem_zalloc
	mov	x22, x0
	str	x0, [x20]
	str	w23, [x0]
	ldur	w8, [x29, #-96]
	str	w8, [x0, #12]
	mov	x0, x19
	bl	_spa_strdup
	mov	x8, x0
	mov	w0, #0
	stp	w21, w8, [x22, #4]
	b	LBB0_20
LBB0_18:
	mov	x0, x23
	bl	_close
LBB0_19:
Lloh42:
	adrp	x8, _errno@GOTPAGE
Lloh43:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"/dsk/"

l_.str.3:                               ; @.str.3
	.asciz	"r%s"

	.comm	_FCREAT,4,2                     ; @FCREAT
	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_vn_dumpdir,8,3                 ; @vn_dumpdir
l_.str.4:                               ; @.str.4
	.asciz	"%s/%s"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_UMEM_NOFAIL,4,2                ; @UMEM_NOFAIL
.subsections_via_symbols
