	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_bitmap_free                 ## -- Begin function md_bitmap_free
	.p2align	4, 0x90
_md_bitmap_free:                        ## @md_bitmap_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	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
	movq	%rdi, %r15
	movq	64(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_sysfs_put
LBB0_3:
	movq	56(%r15), %rdi
	callq	_mddev_is_clustered
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	56(%r15), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rbx
	movq	_md_cluster_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.6:
	movq	56(%r15), %rdi
	callq	_md_cluster_stop
LBB0_7:
	movl	48(%r15), %r14d
	leaq	44(%r15), %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	%r14d, %edi
	callq	_wait_event
	leaq	40(%r15), %rdi
	callq	_md_bitmap_file_unmap
	movq	32(%r15), %r14
	testq	%r14, %r14
	je	LBB0_14
## %bb.8:
	movq	24(%r15), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.9:
	leaq	16(%r14), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$72, %rbx
	decq	%r12
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_kfree
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_15:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_md_cluster_ops,8,3             ## @md_cluster_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_bitmap_free                 ; -- Begin function md_bitmap_free
	.p2align	2
_md_bitmap_free:                        ; @md_bitmap_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_15
; %bb.1:
	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
	mov	x19, x0
	ldr	x0, [x0, #64]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_sysfs_put
LBB0_3:
	ldr	x0, [x19, #56]
	bl	_mddev_is_clustered
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x19, #56]
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x20, [x19]
Lloh0:
	adrp	x8, _md_cluster_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _md_cluster_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	cmp	x20, x0
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x19, #56]
	bl	_md_cluster_stop
LBB0_7:
	ldr	w20, [x19, #48]
	add	x0, x19, #44
	bl	_atomic_read
	cmp	x0, #0
	cset	w1, eq
	mov	x0, x20
	bl	_wait_event
	add	x0, x19, #40
	bl	_md_bitmap_file_unmap
	ldr	x20, [x19, #32]
	cbz	x20, LBB0_14
; %bb.8:
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_14
; %bb.9:
	add	x22, x20, #16
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #72
	subs	x21, x21, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x22, #-8]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x22]
	cbnz	w8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_kfree
	b	LBB0_10
LBB0_14:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	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
	b	_kfree
LBB0_15:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_md_cluster_ops,8,3             ; @md_cluster_ops
.subsections_via_symbols
