	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_umount2                    ## -- Begin function sys_umount2
	.p2align	4, 0x90
_sys_umount2:                           ## @sys_umount2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_user_read_string
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_AT_PWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UMOUNT_NOFOLLOW_@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	jne	LBB0_3
## %bb.4:
	movq	_N_SYMLINK_FOLLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_N_SYMLINK_NOFOLLOW@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_path_normalize
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_mounts_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_lock
	movq	%r15, %rdi
	callq	_do_umount
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_unlock
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	__EFAULT,4,2                    ## @_EFAULT
	.comm	_AT_PWD,4,2                     ## @AT_PWD
	.comm	_UMOUNT_NOFOLLOW_,4,2           ## @UMOUNT_NOFOLLOW_
	.comm	_N_SYMLINK_NOFOLLOW,4,2         ## @N_SYMLINK_NOFOLLOW
	.comm	_N_SYMLINK_FOLLOW,4,2           ## @N_SYMLINK_FOLLOW
	.comm	_mounts_lock,4,2                ## @mounts_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_umount2                    ; -- Begin function sys_umount2
	.p2align	2
_sys_umount2:                           ; @sys_umount2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PATH@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_user_read_string
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, __EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	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
Lloh12:
	adrp	x8, _AT_PWD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AT_PWD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _UMOUNT_NOFOLLOW_@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UMOUNT_NOFOLLOW_@GOTPAGEOFF]
Lloh17:
	adrp	x9, _N_SYMLINK_NOFOLLOW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _N_SYMLINK_NOFOLLOW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x10, _N_SYMLINK_FOLLOW@GOTPAGE
Lloh21:
	ldr	x10, [x10, _N_SYMLINK_FOLLOW@GOTPAGEOFF]
	tst	w8, w19
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x21
	bl	_path_normalize
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh22:
	adrp	x20, _mounts_lock@GOTPAGE
Lloh23:
	ldr	x20, [x20, _mounts_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_lock
	mov	x0, x21
	bl	_do_umount
	mov	x19, x0
	mov	x0, x20
	bl	_unlock
	b	LBB0_5
LBB0_4:
	mov	x19, x0
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	__EFAULT,4,2                    ; @_EFAULT
	.comm	_AT_PWD,4,2                     ; @AT_PWD
	.comm	_UMOUNT_NOFOLLOW_,4,2           ; @UMOUNT_NOFOLLOW_
	.comm	_N_SYMLINK_NOFOLLOW,4,2         ; @N_SYMLINK_NOFOLLOW
	.comm	_N_SYMLINK_FOLLOW,4,2           ; @N_SYMLINK_FOLLOW
	.comm	_mounts_lock,4,2                ; @mounts_lock
.subsections_via_symbols
