	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_mount                       ## -- Begin function be_mount
	.p2align	4, 0x90
_be_mount:                              ## @be_mount
	.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	$88, %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, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_be_root_concat
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_be_exists
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	movl	%eax, %esi
LBB0_3:
	callq	_set_error
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %edi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_is_mounted
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_BE_ERR_MOUNTED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r15, %rdi
	jmp	LBB0_3
LBB0_9:
	movq	_BE_MNT_DEEP@GOTPCREL(%rip), %rax
	movl	%ebx, %r14d
	testl	%ebx, (%rax)
	setne	-49(%rbp)                       ## 1-byte Folded Spill
	movq	_BE_MNT_FORCE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	je	LBB0_11
## %bb.10:
	movq	_MNT_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_strlcpy
	movq	%r13, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	_mkdtemp
	testq	%rax, %rax
	je	LBB0_19
LBB0_13:
	movq	%r15, %r12
	movl	(%r15), %edi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_zfs_open
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %r15
	xorl	%eax, %eax
	movb	-49(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %al
	testq	%rbx, %rbx
	movq	%r12, -96(%rbp)
	movq	%r13, -128(%rbp)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmovneq	%rbx, %r12
	movq	%r12, -120(%rbp)
	movl	%r14d, -112(%rbp)
	movl	%eax, -108(%rbp)
	movq	$0, -104(%rbp)
	leaq	-128(%rbp), %rsi
	movq	%r15, %rdi
	callq	_be_mount_iter
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_zfs_close
	movl	$1, %eax
	testq	%r14, %r14
	jne	LBB0_4
## %bb.15:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_strlcpy
LBB0_17:
	movq	_BE_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_18:
	movq	_BE_ERR_ZFSOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	jmp	LBB0_3
LBB0_19:
	movq	_BE_ERR_IO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_MAXPATHLEN,4,2              ## @BE_MAXPATHLEN
	.comm	_BE_ERR_MOUNTED,4,2             ## @BE_ERR_MOUNTED
	.comm	_BE_MNT_DEEP,4,2                ## @BE_MNT_DEEP
	.comm	_BE_MNT_FORCE,4,2               ## @BE_MNT_FORCE
	.comm	_MNT_FORCE,4,2                  ## @MNT_FORCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/tmp/be_mount.XXXX"

	.comm	_BE_ERR_IO,4,2                  ## @BE_ERR_IO
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_BE_ERR_ZFSOPEN,4,2             ## @BE_ERR_ZFSOPEN
	.comm	_BE_ERR_SUCCESS,4,2             ## @BE_ERR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_mount                       ; -- Begin function be_mount
	.p2align	2
_be_mount:                              ; @be_mount
	.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, #48
	mov	x19, x4
	mov	x25, x3
	mov	x21, x2
	mov	x26, x1
	mov	x20, 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	x27, _BE_MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _BE_MAXPATHLEN@GOTPAGEOFF]
	ldr	w24, [x27]
	mov	x9, x24
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x12, x9, #0x1fffffff0
	sub	x22, x8, x12
	mov	sp, x22
	mov	x9, x24
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	mov	x2, x22
	bl	_be_root_concat
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x26
	bl	_be_exists
	cbz	w0, LBB0_6
LBB0_2:
	mov	x1, x0
LBB0_3:
	mov	x0, x20
	bl	_set_error
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.5:
	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_6:
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, #0
	bl	_is_mounted
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _BE_ERR_MOUNTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BE_ERR_MOUNTED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_8:
Lloh15:
	adrp	x8, _BE_MNT_DEEP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BE_MNT_DEEP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w25
	cset	w26, ne
Lloh18:
	adrp	x8, _BE_MNT_FORCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BE_MNT_FORCE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MNT_FORCE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MNT_FORCE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w8, w25
	csel	w25, wzr, w9, eq
	cbnz	x21, LBB0_10
; %bb.9:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_strlcpy
	mov	x0, x23
	bl	_mkdtemp
	cbz	x0, LBB0_17
LBB0_10:
	ldr	w0, [x20]
Lloh26:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_zfs_open
	cbz	x0, LBB0_13
; %bb.11:
	mov	x24, x0
	cmp	x21, #0
	csel	x21, x23, x21, eq
	stp	x22, x21, [x29, #-128]
	stp	w25, w26, [x29, #-112]
	stp	xzr, x20, [x29, #-104]
	sub	x1, x29, #128
	bl	_be_mount_iter
	mov	x20, x0
	mov	x0, x24
	bl	_zfs_close
	cbz	x20, LBB0_14
; %bb.12:
	mov	w0, #1
	b	LBB0_4
LBB0_13:
Lloh29:
	adrp	x8, _BE_ERR_ZFSOPEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BE_ERR_ZFSOPEN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x21
	bl	_strlcpy
LBB0_16:
Lloh32:
	adrp	x8, _BE_ERR_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BE_ERR_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_17:
Lloh35:
	adrp	x8, _BE_ERR_IO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BE_ERR_IO@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,4,2              ; @BE_MAXPATHLEN
	.comm	_BE_ERR_MOUNTED,4,2             ; @BE_ERR_MOUNTED
	.comm	_BE_MNT_DEEP,4,2                ; @BE_MNT_DEEP
	.comm	_BE_MNT_FORCE,4,2               ; @BE_MNT_FORCE
	.comm	_MNT_FORCE,4,2                  ; @MNT_FORCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/tmp/be_mount.XXXX"

	.comm	_BE_ERR_IO,4,2                  ; @BE_ERR_IO
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_BE_ERR_ZFSOPEN,4,2             ; @BE_ERR_ZFSOPEN
	.comm	_BE_ERR_SUCCESS,4,2             ; @BE_ERR_SUCCESS
.subsections_via_symbols
