	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_lookup_drive               ## -- Begin function mpt_lookup_drive
	.p2align	4, 0x90
_mpt_lookup_drive:                      ## @mpt_lookup_drive
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r15
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	movb	(%rdi), %al
	cmpb	$58, %al
	je	LBB0_4
## %bb.1:
	testb	%al, %al
	jne	LBB0_14
## %bb.2:
	cmpq	$255, %rbx
	ja	LBB0_14
## %bb.3:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_4:
	cmpq	$255, %rbx
	ja	LBB0_14
## %bb.5:
	incq	%rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	-32(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_14
## %bb.6:
	cmpq	$255, %rax
	ja	LBB0_14
## %bb.7:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.8:
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	cmpq	%rbx, (%rdi)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rax, 8(%rdi)
	jne	LBB0_12
## %bb.11:
	movq	16(%rdi), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_lookup_drive               ; -- Begin function mpt_lookup_drive
	.p2align	2
_mpt_lookup_drive:                      ; @mpt_lookup_drive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, x1
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #0
	bl	_strtol
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #58
	b.eq	LBB0_4
; %bb.1:
	cbnz	w9, LBB0_13
; %bb.2:
	cmp	x20, #255
	b.hi	LBB0_13
; %bb.3:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_15
LBB0_4:
	cmp	x20, #255
	b.hi	LBB0_13
; %bb.5:
	add	x0, x8, #1
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_13
; %bb.6:
	cmp	x0, #255
	b.hi	LBB0_13
; %bb.7:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.8:
	ldr	x9, [x21, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x11, [x10]
	cmp	x11, x20
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x10, #8]
	cmp	x11, x0
	b.ne	LBB0_9
; %bb.12:
	mov	w0, #0
	ldr	x8, [x10, #16]
	str	x8, [x19]
	b	LBB0_15
LBB0_13:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
