	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_lookup_volume              ## -- Begin function mpt_lookup_volume
	.p2align	4, 0x90
_mpt_lookup_volume:                     ## @mpt_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	cmpb	$58, %al
	jne	LBB0_9
## %bb.2:
	incq	%rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_3
LBB0_9:
	movl	%ebx, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_mpt_read_ioc_page
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rax)
	jle	LBB0_17
## %bb.12:
	movq	8(%rbx), %r14
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r15d
	addq	$16, %r14
	cmpl	(%rbx), %r15d
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	movq	%r13, %rdx
	callq	_mpt_query_disk
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-56(%rbp), %esi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	8(%r14), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_7:
	cmpq	$256, %r13                      ## imm = 0x100
	jae	LBB0_18
## %bb.8:
	movq	$0, (%r15)
	movq	%r13, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_17:
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$255, %r13
	ja	LBB0_18
## %bb.4:
	testq	%rax, %rax
	js	LBB0_18
## %bb.5:
	cmpq	$256, %rax                      ## imm = 0x100
	jge	LBB0_18
## %bb.6:
	movq	%r13, (%r15)
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.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	_mpt_lookup_volume              ; -- Begin function mpt_lookup_volume
	.p2align	2
_mpt_lookup_volume:                     ; @mpt_lookup_volume
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	x1, sp
	mov	x0, x21
	mov	w2, #0
	bl	_strtol
	mov	x22, x0
	ldr	x8, [sp]
	ldrb	w9, [x8]
	cbz	w9, LBB0_10
; %bb.1:
	cmp	w9, #58
	b.ne	LBB0_3
; %bb.2:
	add	x0, x8, #1
	mov	x1, sp
	mov	w2, #0
	bl	_strtol
	ldr	x9, [sp]
	ldrb	w9, [x9]
	cbz	w9, LBB0_17
LBB0_3:
	mov	x0, x23
	mov	w1, #2
	mov	x2, #0
	bl	_mpt_read_ioc_page
	cbz	x0, LBB0_14
; %bb.4:
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	mov	w24, #0
	ldr	x23, [x22, #8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
	ldr	w8, [x22]
	add	x23, x23, #16
	cmp	w24, w8
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x1, [x23]
	add	x2, sp, #8
	bl	_mpt_query_disk
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.9:
	ldr	x8, [x23]
	str	x8, [x20]
	ldr	x8, [x23, #8]
	str	x8, [x19]
	mov	x0, x22
	bl	_free
	mov	w0, #0
	b	LBB0_16
LBB0_10:
	cmp	x22, #256
	b.hs	LBB0_13
; %bb.11:
	mov	w0, #0
	str	xzr, [x20]
	str	x22, [x19]
	b	LBB0_16
LBB0_12:
	mov	x0, x22
	bl	_free
LBB0_13:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	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_17:
	cmp	x22, #255
	b.hi	LBB0_13
; %bb.18:
	mov	x8, x0
	tbnz	x0, #63, LBB0_13
; %bb.19:
	cmp	x8, #256
	b.ge	LBB0_13
; %bb.20:
	mov	w0, #0
	str	x22, [x20]
	str	x8, [x19]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
