	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leave
_leave:                                 ## @leave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	cmpq	%rax, 8(%r14)
	jne	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r14)
	je	LBB0_7
LBB0_5:
	movq	_MD_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_resync_bitmap
LBB0_7:
	movq	_MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %rsi
	callq	_set_bit
	leaq	40(%rbx), %rdi
	callq	_md_unregister_thread
	leaq	36(%rbx), %rdi
	callq	_md_unregister_thread
	movl	32(%rbx), %edi
	callq	_lockres_free
	movl	28(%rbx), %edi
	callq	_lockres_free
	movl	24(%rbx), %edi
	callq	_lockres_free
	movl	20(%rbx), %edi
	callq	_lockres_free
	movl	16(%rbx), %edi
	callq	_lockres_free
	movl	12(%rbx), %edi
	callq	_lockres_free
	movq	%r14, %rdi
	callq	_unlock_all_bitmaps
	movl	8(%rbx), %edi
	movl	$2, %esi
	callq	_dlm_release_lockspace
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_MD_CLOSING,4,2                 ## @MD_CLOSING
	.comm	_MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD,4,2 ## @MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD
	.no_dead_strip	_leave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leave
_leave:                                 ; @leave
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #24]
	cbz	x19, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_3
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MaxSector@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _MaxSector@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
LBB0_4:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _MD_CLOSING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_CLOSING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_test_bit
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_resync_bitmap
LBB0_7:
Lloh9:
	adrp	x8, _MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #44
	bl	_set_bit
	add	x0, x19, #40
	bl	_md_unregister_thread
	add	x0, x19, #36
	bl	_md_unregister_thread
	ldr	w0, [x19, #32]
	bl	_lockres_free
	ldr	w0, [x19, #28]
	bl	_lockres_free
	ldr	w0, [x19, #24]
	bl	_lockres_free
	ldr	w0, [x19, #20]
	bl	_lockres_free
	ldr	w0, [x19, #16]
	bl	_lockres_free
	ldr	w0, [x19, #12]
	bl	_lockres_free
	mov	x0, x20
	bl	_unlock_all_bitmaps
	ldr	w0, [x19, #8]
	mov	w1, #2
	bl	_dlm_release_lockspace
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_MD_CLOSING,4,2                 ; @MD_CLOSING
	.comm	_MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD,4,2 ; @MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD
	.no_dead_strip	_leave
.subsections_via_symbols
