	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mfi_drive_name                 ## -- Begin function mfi_drive_name
	.p2align	4, 0x90
_mfi_drive_name:                        ## @mfi_drive_name
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MFI_DNAME_HONOR_OPTS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_mfi_opts@GOTPCREL(%rip), %rax
	movq	_MFI_DNAME_ES@GOTPCREL(%rip), %rcx
	movq	_MFI_DNAME_DEVICE_ID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	andl	(%rax), %edx
	cmovnel	%edx, %ebx
LBB0_2:
	movb	$0, _mfi_drive_name.buf(%rip)
	testq	%r14, %r14
	je	LBB0_3
LBB0_13:
	movq	_MFI_DNAME_DEVICE_ID@GOTPCREL(%rip), %rdx
	movl	$16, %r12d
	leaq	_mfi_drive_name.buf(%rip), %r13
	testl	%ebx, (%rdx)
	je	LBB0_19
## %bb.14:
	leaq	_mfi_drive_name.buf(%rip), %rdi
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	jne	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rdx
	movl	$16, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_17
LBB0_3:
	movq	_MFI_DNAME_ES@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.5:
	leaq	_mfi_drive_name.buf(%rip), %rdi
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdx
	movl	$16, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_8
LBB0_16:
	leaq	L_.str.1(%rip), %rdx
	movl	$16, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_17:
	testl	%eax, %eax
	movq	_MFI_DNAME_DEVICE_ID@GOTPCREL(%rip), %rdx
	js	LBB0_19
## %bb.18:
	movl	%eax, %ecx
	leaq	_mfi_drive_name.buf(%rip), %r13
	addq	%rcx, %r13
	movl	$16, %r12d
	subl	%eax, %r12d
LBB0_19:
	movq	_MFI_DNAME_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdx), %ecx
	orl	%eax, %ecx
	movl	%ebx, %edx
	notl	%edx
	testl	%edx, %ecx
	jne	LBB0_22
## %bb.20:
	cmpl	$2, %r12d
	jl	LBB0_22
## %bb.21:
	movw	$32, (%r13)
	incq	%r13
	addl	$-2, %r12d
LBB0_22:
	testl	%ebx, %eax
	je	LBB0_29
## %bb.23:
	movl	(%r14), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_25
## %bb.24:
	movl	4(%r14), %ecx
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_27
LBB0_25:
	movl	8(%r14), %ecx
	cmpl	12(%r14), %eax
	jne	LBB0_28
## %bb.26:
	leaq	L_.str.5(%rip), %rdx
LBB0_27:
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_29
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_28:
	movl	4(%r14), %r8d
	leaq	L_.str.6(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_29
LBB0_7:
	leaq	L_.str.1(%rip), %rdx
	movl	$16, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_8:
	movq	_mfi_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mfi_open
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%eax, %r12d
	leaq	-56(%rbp), %r14
	movl	%eax, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_mfi_pd_get_info
	testq	%rax, %rax
	js	LBB0_11
## %bb.12:
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_29
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_warn
	movl	%r12d, %edi
	callq	_close
LBB0_29:
	leaq	_mfi_drive_name.buf(%rip), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mfi_drive_name.buf,16,4 ## @mfi_drive_name.buf
	.comm	_MFI_DNAME_HONOR_OPTS,4,2       ## @MFI_DNAME_HONOR_OPTS
	.comm	_mfi_opts,4,2                   ## @mfi_opts
	.comm	_MFI_DNAME_ES,4,2               ## @MFI_DNAME_ES
	.comm	_MFI_DNAME_DEVICE_ID,4,2        ## @MFI_DNAME_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MISSING"

L_.str.1:                               ## @.str.1
	.asciz	"%2u"

	.comm	_mfi_unit,4,2                   ## @mfi_unit
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"mfi_open"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to fetch info for drive %2u"

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

L_.str.5:                               ## @.str.5
	.asciz	"E%u"

L_.str.6:                               ## @.str.6
	.asciz	"E%u:S%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mfi_drive_name                 ; -- Begin function mfi_drive_name
	.p2align	2
_mfi_drive_name:                        ; @mfi_drive_name
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MFI_DNAME_HONOR_OPTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFI_DNAME_HONOR_OPTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _MFI_DNAME_DEVICE_ID@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MFI_DNAME_DEVICE_ID@GOTPAGEOFF]
Lloh5:
	adrp	x23, _MFI_DNAME_ES@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MFI_DNAME_ES@GOTPAGEOFF]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _mfi_opts@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mfi_opts@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x23]
	ldr	w10, [x22]
	orr	w9, w10, w9
	ands	w8, w9, w8
	csel	w19, w19, w8, eq
LBB0_2:
	adrp	x8, _mfi_drive_name.buf@PAGE
	strb	wzr, [x8, _mfi_drive_name.buf@PAGEOFF]
	cbz	x20, LBB0_6
LBB0_3:
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.4:
	mov	w8, #65535
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.5:
Lloh10:
	adrp	x0, _mfi_drive_name.buf@PAGE
Lloh11:
	add	x0, x0, _mfi_drive_name.buf@PAGEOFF
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_20
; %bb.7:
	mov	w8, #65535
Lloh14:
	adrp	x0, _mfi_drive_name.buf@PAGE
Lloh15:
	add	x0, x0, _mfi_drive_name.buf@PAGEOFF
	cmp	w21, w8
	b.ne	LBB0_24
; %bb.8:
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_25
LBB0_9:
	mov	w1, #16
Lloh18:
	adrp	x0, _mfi_drive_name.buf@PAGE
Lloh19:
	add	x0, x0, _mfi_drive_name.buf@PAGEOFF
	b	LBB0_13
LBB0_10:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
Lloh20:
	adrp	x0, _mfi_drive_name.buf@PAGE
Lloh21:
	add	x0, x0, _mfi_drive_name.buf@PAGEOFF
	str	x21, [sp]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	w1, #16
	bl	_snprintf
	mov	x8, x0
	mov	w1, #16
Lloh24:
	adrp	x0, _mfi_drive_name.buf@PAGE
Lloh25:
	add	x0, x0, _mfi_drive_name.buf@PAGEOFF
	tbnz	w8, #31, LBB0_13
; %bb.12:
	add	x0, x0, w8, uxtw
	sub	w1, w1, w8
LBB0_13:
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w9, w9, w8
	bic	w9, w9, w19
	cmp	w9, #0
	ccmp	w1, #2, #8, eq
	b.lt	LBB0_15
; %bb.14:
	mov	w9, #32
	strh	w9, [x0], #1
	sub	w1, w1, #2
LBB0_15:
	tst	w8, w19
	b.eq	LBB0_23
; %bb.16:
	ldr	w9, [x20]
	mov	w8, #65535
	cmp	w9, w8
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_18:
	ldp	w8, w10, [x20, #8]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.19:
	str	x8, [sp]
Lloh28:
	adrp	x2, l_.str.5@PAGE
Lloh29:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_20:
	mov	x20, #0
	b	LBB0_3
LBB0_21:
	ldr	w9, [x20, #4]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh30:
	adrp	x2, l_.str.6@PAGE
Lloh31:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_22:
	bl	_snprintf
LBB0_23:
Lloh32:
	adrp	x0, _mfi_drive_name.buf@PAGE
Lloh33:
	add	x0, x0, _mfi_drive_name.buf@PAGEOFF
	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
LBB0_24:
	str	x21, [sp]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_25:
	mov	w1, #16
	bl	_snprintf
Lloh36:
	adrp	x8, _mfi_unit@GOTPAGE
Lloh37:
	ldr	x8, [x8, _mfi_unit@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_mfi_open
	tbnz	w0, #31, LBB0_28
; %bb.26:
	mov	x20, x0
	add	x2, sp, #16
	mov	x1, x21
	mov	x3, #0
	bl	_mfi_pd_get_info
	tbnz	x0, #63, LBB0_29
; %bb.27:
	mov	x0, x20
	bl	_close
	add	x20, sp, #16
	b	LBB0_3
LBB0_28:
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_23
LBB0_29:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	mov	x0, x20
	bl	_close
	b	LBB0_23
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mfi_drive_name.buf,16,0 ; @mfi_drive_name.buf
	.comm	_MFI_DNAME_HONOR_OPTS,4,2       ; @MFI_DNAME_HONOR_OPTS
	.comm	_mfi_opts,4,2                   ; @mfi_opts
	.comm	_MFI_DNAME_ES,4,2               ; @MFI_DNAME_ES
	.comm	_MFI_DNAME_DEVICE_ID,4,2        ; @MFI_DNAME_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MISSING"

l_.str.1:                               ; @.str.1
	.asciz	"%2u"

	.comm	_mfi_unit,4,2                   ; @mfi_unit
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"mfi_open"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to fetch info for drive %2u"

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

l_.str.5:                               ; @.str.5
	.asciz	"E%u"

l_.str.6:                               ; @.str.6
	.asciz	"E%u:S%u"

.subsections_via_symbols
