	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fini_disk_storage_tbl          ## -- Begin function fini_disk_storage_tbl
	.p2align	4, 0x90
_fini_disk_storage_tbl:                 ## @fini_disk_storage_tbl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_disk_tbl@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %r15
	movq	_disk_tbl@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	_disk_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	_md_fd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	jle	LBB0_7
## %bb.4:
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
LBB0_6:
	movl	$-1, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disk_tbl,4,2                   ## @disk_tbl
	.comm	_link,4,2                       ## @link
	.comm	_disk_list,8,3                  ## @disk_list
	.comm	_md_fd,4,2                      ## @md_fd
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close (/dev/mdctl) failed: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fini_disk_storage_tbl          ; -- Begin function fini_disk_storage_tbl
	.p2align	2
_fini_disk_storage_tbl:                 ; @fini_disk_storage_tbl
	.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
Lloh0:
	adrp	x0, _disk_tbl@GOTPAGE
Lloh1:
	ldr	x0, [x0, _disk_tbl@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x21, _link@GOTPAGE
Lloh3:
	ldr	x21, [x21, _link@GOTPAGEOFF]
Lloh4:
	adrp	x19, _disk_tbl@GOTPAGE
Lloh5:
	ldr	x19, [x19, _disk_tbl@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	cbnz	x0, LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _disk_list@GOTPAGE
Lloh7:
	ldr	x8, [x8, _disk_list@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_free
Lloh9:
	adrp	x19, _md_fd@GOTPAGE
Lloh10:
	ldr	x19, [x19, _md_fd@GOTPAGEOFF]
	ldr	w0, [x19]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_6:
	mov	w8, #-1
	str	w8, [x19]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_disk_tbl,4,2                   ; @disk_tbl
	.comm	_link,4,2                       ; @link
	.comm	_disk_list,8,3                  ; @disk_list
	.comm	_md_fd,4,2                      ; @md_fd
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close (/dev/mdctl) failed: %m"

.subsections_via_symbols
