	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mfi_lookup_volume              ## -- Begin function mfi_lookup_volume
	.p2align	4, 0x90
_mfi_lookup_volume:                     ## @mfi_lookup_volume
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	-80(%rbp), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	-80(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_MFI_DCMD_LD_GET_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$0, (%rsp)
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	$16, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mfi_dcmd_command
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, -64(%rbp)
	je	LBB0_9
## %bb.4:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	-64(%rbp), %r14
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r14,8), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	callq	_mfi_query_disk
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rax
	movq	(%rax,%r14,8), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_1:
	movq	%rax, (%r14)
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFI_DCMD_LD_GET_LIST,4,2       ## @MFI_DCMD_LD_GET_LIST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mfi_lookup_volume              ; -- Begin function mfi_lookup_volume
	.p2align	2
_mfi_lookup_volume:                     ; @mfi_lookup_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x1, sp
	mov	x0, x20
	mov	w2, #0
	bl	_strtol
	ldr	x9, [sp]
	ldrb	w9, [x9]
	cbz	w9, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _MFI_DCMD_LD_GET_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFI_DCMD_LD_GET_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #16
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_mfi_dcmd_command
	tbnz	x0, #63, LBB0_10
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp, #8]
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x1, [x8, x22, lsl #3]
	add	x2, sp, #24
	mov	x0, x21
	bl	_mfi_query_disk
	tbnz	x0, #63, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #24]
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.7:
	ldr	x8, [sp, #16]
	ldr	x8, [x8, x22, lsl #3]
	str	x8, [x19]
	b	LBB0_11
LBB0_8:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_11
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MFI_DCMD_LD_GET_LIST,4,2       ; @MFI_DCMD_LD_GET_LIST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
