	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vfs_fhopen                ## -- Begin function priv_vfs_fhopen
	.p2align	4, 0x90
_priv_vfs_fhopen:                       ## @priv_vfs_fhopen
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fh@GOTPCREL(%rip), %rdi
	callq	_fhopen
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movl	%eax, %edi
	callq	_close
	movl	%r12d, (%r15)
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %r15d
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_expect
LBB0_9:
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.10:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_12:
	orl	%r14d, %ebx
	je	LBB0_14
## %bb.13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_expect                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fh,4,2                         ## @fh
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_vfs_fhopen(asroot, injail)"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"priv_vfs_fhopen(asroot, !injail)"

L_.str.2:                               ## @.str.2
	.asciz	"priv_vfs_fhopen(!asroot, injail)"

L_.str.3:                               ## @.str.3
	.asciz	"priv_vfs_fhopen(!asroot, !injail)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vfs_fhopen                ; -- Begin function priv_vfs_fhopen
	.p2align	2
_priv_vfs_fhopen:                       ; @priv_vfs_fhopen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _fh@GOTPAGE
Lloh4:
	ldr	x0, [x0, _fh@GOTPAGEOFF]
	bl	_fhopen
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
	bl	_close
	mov	w21, #0
	str	w23, [x22]
	cbnz	w20, LBB0_3
	b	LBB0_5
LBB0_2:
	mov	w21, #-1
	cbz	w20, LBB0_5
LBB0_3:
	cbz	w19, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	w2, #-1
	bl	_expect
LBB0_5:
	cbz	w20, LBB0_8
; %bb.6:
	cbnz	w19, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_expect
LBB0_8:
	cbnz	w20, LBB0_11
; %bb.9:
	cbz	w19, LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	w2, #-1
	bl	_expect
LBB0_11:
	orr	w8, w19, w20
	cbz	w8, LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh19:
	adrp	x8, _EPERM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	w2, #-1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_expect
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_fh,4,2                         ; @fh
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_vfs_fhopen(asroot, injail)"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"priv_vfs_fhopen(asroot, !injail)"

l_.str.2:                               ; @.str.2
	.asciz	"priv_vfs_fhopen(!asroot, injail)"

l_.str.3:                               ; @.str.3
	.asciz	"priv_vfs_fhopen(!asroot, !injail)"

.subsections_via_symbols
