	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_map_if_success
_free_map_if_success:                   ## @free_map_if_success
	.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
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, %r15d
	movq	8(%rdx), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_get_mntfs_wchan
	movl	%eax, %r14d
	movq	_MFF_UNMOUNTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_MFF_WANTTIMO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_reschedule_timeout_mp
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_AMQ_UMNT_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_notify_child
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
LBB0_9:
	callq	_plog
	movq	_amd_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_11:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wakeup                         ## TAILCALL
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.5:
	movq	_AMQ_UMNT_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_notify_child
	movq	8(%rbx), %rax
	cmpq	_amfs_program_ops@GOTPCREL(%rip), %rax
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_7
## %bb.8:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r12), %r12d
	movl	%r15d, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	jmp	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_am_unmounted
	jmp	LBB0_11
LBB0_7:
	movq	_XLOG_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MFF_UNMOUNTING,4,2             ## @MFF_UNMOUNTING
	.comm	_MFF_WANTTIMO,4,2               ## @MFF_WANTTIMO
	.comm	_AMQ_UMNT_SIGNAL,4,2            ## @AMQ_UMNT_SIGNAL
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unmount for %s got signal %d"

	.comm	_amd_stats,4,2                  ## @amd_stats
	.comm	_AMQ_UMNT_FAILED,4,2            ## @AMQ_UMNT_FAILED
	.comm	_amfs_program_ops,4,2           ## @amfs_program_ops
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_XLOG_STATS,4,2                 ## @XLOG_STATS
L_.str.1:                               ## @.str.1
	.asciz	"\"%s\" on %s still active"

L_.str.2:                               ## @.str.2
	.asciz	"%s: unmount: %s"

	.comm	_AMF_AUTOFS,4,2                 ## @AMF_AUTOFS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_MFF_IS_AUTOFS,4,2              ## @MFF_IS_AUTOFS
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.no_dead_strip	_free_map_if_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_map_if_success
_free_map_if_success:                   ; @free_map_if_success
	.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	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x8, [x2, #8]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_get_mntfs_wchan
	mov	x19, x0
Lloh0:
	adrp	x8, _MFF_UNMOUNTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFF_UNMOUNTING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
Lloh3:
	adrp	x9, _MFF_WANTTIMO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MFF_WANTTIMO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x22]
	bl	_reschedule_timeout_mp
LBB0_2:
	cbz	w23, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _AMQ_UMNT_SIGNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMQ_UMNT_SIGNAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x23
	bl	_notify_child
Lloh9:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
LBB0_4:
	bl	_plog
Lloh14:
	adrp	x8, _amd_stats@GOTPAGE
Lloh15:
	ldr	x8, [x8, _amd_stats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	mov	x0, x19
	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	_wakeup
LBB0_6:
	cbz	w21, LBB0_9
; %bb.7:
Lloh16:
	adrp	x8, _AMQ_UMNT_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AMQ_UMNT_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_notify_child
Lloh19:
	adrp	x8, _amfs_program_ops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _amfs_program_ops@GOTPAGEOFF]
	ldr	x9, [x22, #8]
Lloh21:
	adrp	x10, _EBUSY@GOTPAGE
Lloh22:
	ldr	x10, [x10, _EBUSY@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	x9, x8
	ccmp	w10, w21, #4, ne
	b.ne	LBB0_10
; %bb.8:
Lloh24:
	adrp	x8, _XLOG_STATS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XLOG_STATS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
	ldr	w3, [x22, #4]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_9:
	mov	x0, x20
	bl	_am_unmounted
	b	LBB0_5
LBB0_10:
Lloh29:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
	ldr	w20, [x20, #4]
	mov	x0, x21
	bl	_strerror
	mov	x3, x0
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MFF_UNMOUNTING,4,2             ; @MFF_UNMOUNTING
	.comm	_MFF_WANTTIMO,4,2               ; @MFF_WANTTIMO
	.comm	_AMQ_UMNT_SIGNAL,4,2            ; @AMQ_UMNT_SIGNAL
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unmount for %s got signal %d"

	.comm	_amd_stats,4,2                  ; @amd_stats
	.comm	_AMQ_UMNT_FAILED,4,2            ; @AMQ_UMNT_FAILED
	.comm	_amfs_program_ops,4,2           ; @amfs_program_ops
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_XLOG_STATS,4,2                 ; @XLOG_STATS
l_.str.1:                               ; @.str.1
	.asciz	"\"%s\" on %s still active"

l_.str.2:                               ; @.str.2
	.asciz	"%s: unmount: %s"

	.comm	_AMF_AUTOFS,4,2                 ; @AMF_AUTOFS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_MFF_IS_AUTOFS,4,2              ; @MFF_IS_AUTOFS
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.no_dead_strip	_free_map_if_success
.subsections_via_symbols
