	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_drives
_add_drives:                            ## @add_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	8(%rsi), %r13
	addq	$8, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	addq	$16, %r13
	cmpl	%eax, %r12d
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%r13)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rsi
	movl	%ebx, %edi
	leaq	-44(%rbp), %rdx
	callq	_mpt_create_physdisk
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rsi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_mpt_pd_info
	movq	%rax, -8(%r13)
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_11
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create physical disk page for %s"

L_.str.1:                               ## @.str.1
	.asciz	"Added drive %s with PhysDiskNum %u\n"

	.no_dead_strip	_add_drives
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_drives
_add_drives:                            ; @add_drives
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w24, #0
	ldr	x9, [x1, #8]
	add	x23, x9, #8
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	add	x23, x23, #16
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x23, #-8]
	cbnz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23]
	add	x2, sp, #12
	mov	x0, x21
	bl	_mpt_create_physdisk
	tbnz	x0, #63, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x22
	bl	_printf
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, #0
	bl	_mpt_pd_info
	stur	x0, [x23, #-8]
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	b	LBB0_2
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	ldr	x8, [x23]
	ldr	x1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_10
LBB0_12:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create physical disk page for %s"

l_.str.1:                               ; @.str.1
	.asciz	"Added drive %s with PhysDiskNum %u\n"

	.no_dead_strip	_add_drives
.subsections_via_symbols
