	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_drives
_show_drives:                           ## @show_drives
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jne	LBB0_5
## %bb.1:
	movq	_mpt_unit@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_mpt_open
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_mpt_pd_list
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	callq	_mpt_fetch_disks
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	$0, -44(%rbp)
	movq	$0, -56(%rbp)
LBB0_10:
	xorl	%r13d, %r13d
	cmpl	$0, (%r15)
	jg	LBB0_11
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_20
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_close
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_20
LBB0_8:
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.9:
	movq	_STANDALONE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	movl	%eax, %r13d
	cmpl	$0, (%r15)
	jle	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_mpt_pdstate
	movl	%eax, %edi
	callq	_strlen
	cmpl	%r13d, %eax
	cmovgl	%eax, %r13d
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, (%r15)
	jle	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_print_pd
	movl	$10, %edi
	callq	_putchar
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	callq	_mpt_free_pd_list
	cmpl	$0, -44(%rbp)
	jle	LBB0_19
## %bb.17:
	leaq	L_.str.6(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rdi
	addq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_print_standalone
	movl	$10, %edi
	callq	_putchar
	incq	%r12
	movslq	-44(%rbp), %rax
	addq	$8, %rbx
	cmpq	%rax, %r12
	jl	LBB0_18
LBB0_19:
	movq	-56(%rbp), %rdi
	callq	_free
	movl	%r14d, %edi
	callq	_close
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"show drives: extra arguments"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mpt_unit,4,2                   ## @mpt_unit
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"mpt_open"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get drive list"

	.comm	_STANDALONE_STATE,4,2           ## @STANDALONE_STATE
L_.str.3:                               ## @.str.3
	.asciz	"mpt%d Physical Drives:\n"

L_.str.4:                               ## @.str.4
	.asciz	"%4u "

L_.str.6:                               ## @.str.6
	.asciz	"%4s "

	.no_dead_strip	_show_drives
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_drives
_show_drives:                           ; @show_drives
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _mpt_unit@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mpt_unit@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_mpt_open
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x19, x0
	bl	_mpt_pd_list
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	add	x1, sp, #20
	add	x2, sp, #24
	mov	x0, x19
	bl	_mpt_fetch_disks
	cbz	x0, LBB0_8
; %bb.4:
	mov	w20, #0
	str	wzr, [sp, #20]
	str	xzr, [sp, #24]
	b	LBB0_11
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	b	LBB0_21
LBB0_6:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_21
LBB0_7:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_close
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_21
LBB0_8:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _STANDALONE_STATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STANDALONE_STATE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strlen
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x23, lsl #3]
	bl	_mpt_pdstate
	bl	_strlen
	cmp	w0, w20
	csel	w20, w0, w20, gt
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_13
LBB0_14:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x23, #0
Lloh22:
	adrp	x22, l_.str.4@PAGE
Lloh23:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x24, x23, #3
	ldr	x8, [x8, x24]
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x22
	bl	_printf
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x24]
	mov	x1, x20
	mov	w2, #1
	bl	_print_pd
	mov	w0, #10
	bl	_putchar
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_16
LBB0_17:
	mov	x0, x21
	bl	_mpt_free_pd_list
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x22, #0
	mov	x23, #0
Lloh24:
	adrp	x21, l_.str.6@PAGE
Lloh25:
	add	x21, x21, l_.str.6@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, x22]
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	ldr	x8, [sp, #24]
	add	x0, x8, x22
	mov	x1, x20
	mov	w2, #1
	bl	_print_standalone
	mov	w0, #10
	bl	_putchar
	add	x23, x23, #1
	ldrsw	x8, [sp, #20]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_19
LBB0_20:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x19
	bl	_close
	mov	w20, #0
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"show drives: extra arguments"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mpt_unit,4,2                   ; @mpt_unit
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"mpt_open"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get drive list"

	.comm	_STANDALONE_STATE,4,2           ; @STANDALONE_STATE
l_.str.3:                               ; @.str.3
	.asciz	"mpt%d Physical Drives:\n"

l_.str.4:                               ; @.str.4
	.asciz	"%4u "

l_.str.6:                               ; @.str.6
	.asciz	"%4s "

	.no_dead_strip	_show_drives
.subsections_via_symbols
