	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_parsedev
_efi_parsedev:                          ## @efi_parsedev
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strlen
	cmpl	$2, %eax
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_devsw@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r12
	movq	(%rcx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	8(%rax,%r14,8), %rcx
	incq	%r14
	testq	%rcx, %rcx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	movq	(%r15), %rax
LBB0_7:
	movl	%r14d, %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_12
## %bb.8:
	movq	(%r12), %rdi
	callq	_strlen
	movl	8(%r12), %ecx
	cmpl	$129, %ecx
	je	LBB0_15
## %bb.9:
	cltq
	addq	%rax, %r13
	cmpl	$130, %ecx
	jne	LBB0_18
## %bb.10:
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_disk_parsedev
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
	jmp	LBB0_16
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r12, 8(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%r15, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_18:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	%rax, %r15
	movq	%r13, -56(%rbp)
	movb	(%r13), %dl
	xorl	%eax, %eax
	testb	%dl, %dl
	je	LBB0_24
## %bb.20:
	cmpb	$58, %dl
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.21:
	movq	%r13, %rcx
	jmp	LBB0_28
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_23:
	movq	%r15, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_24:
	movq	%r13, %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_25:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_strtol
	cmpl	$0, (%r14)
	jne	LBB0_33
## %bb.26:
	movq	-56(%rbp), %rcx
	cmpq	%r13, %rcx
	je	LBB0_33
## %bb.27:
	movb	(%rcx), %dl
LBB0_28:
	testb	%dl, %dl
	je	LBB0_30
## %bb.29:
	cmpb	$58, %dl
	jne	LBB0_32
LBB0_30:
	movl	%eax, (%r15)
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.31:
	cmpb	$1, (%rcx)
	sbbq	$-1, %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_16
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_33:
	movq	_EUNIT@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %ebx
LBB0_35:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_devsw,8,3                      ## @devsw
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_EUNIT,4,2                      ## @EUNIT
	.no_dead_strip	_efi_parsedev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_parsedev
_efi_parsedev:                          ; @efi_parsedev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
Lloh2:
	adrp	x24, _devsw@GOTPAGE
Lloh3:
	ldr	x24, [x24, _devsw@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.3:
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x9
	ldr	x22, [x9]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x25, #1
	ldr	x8, [x24]
	add	x9, x8, x25, lsl #3
	ldr	x9, [x9, #8]
	mov	x25, x10
	cbnz	x9, LBB0_4
; %bb.6:
	mov	x25, x10
	ldr	x8, [x8, w25, uxtw #3]
	cbz	x8, LBB0_12
LBB0_7:
	ldr	x0, [x23]
	bl	_strlen
	ldr	w8, [x23, #8]
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.8:
	add	x22, x21, w0, sxtw
	cmp	w8, #130
	b.ne	LBB0_18
; %bb.9:
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_28
; %bb.10:
	mov	x21, x0
	mov	x1, x22
	mov	x2, x20
	bl	_disk_parsedev
	mov	x20, x0
	cbnz	w0, LBB0_33
	b	LBB0_16
LBB0_11:
	ldr	x8, [x24]
	ldr	x8, [x8, w25, uxtw #3]
	cbnz	x8, LBB0_7
LBB0_12:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x8]
LBB0_14:
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	x21, #0
LBB0_16:
	str	x23, [x21, #8]
	cbz	x19, LBB0_29
; %bb.17:
	mov	w20, #0
	str	x21, [x19]
	b	LBB0_14
LBB0_18:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_28
; %bb.19:
	mov	x21, x0
	mov	w0, #0
	str	x22, [sp, #8]
	ldrb	w8, [x22]
	cbz	w8, LBB0_24
; %bb.20:
	cmp	w8, #58
	b.eq	LBB0_24
; %bb.21:
Lloh6:
	adrp	x24, _errno@GOTPAGE
Lloh7:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	wzr, [x24]
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #0
	bl	_strtol
	ldr	w8, [x24]
	cbnz	w8, LBB0_31
; %bb.22:
	ldr	x9, [sp, #8]
	cmp	x9, x22
	b.eq	LBB0_31
; %bb.23:
	ldrb	w8, [x9]
	mov	x22, x9
LBB0_24:
	cbz	w8, LBB0_26
; %bb.25:
	cmp	w8, #58
	b.ne	LBB0_30
LBB0_26:
	str	w0, [x21]
	cbz	x20, LBB0_16
; %bb.27:
	mov	x8, x22
	ldrb	w9, [x8], #1
	cmp	w9, #0
	csel	x8, x22, x8, eq
	str	x8, [x20]
	b	LBB0_16
LBB0_28:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_29:
	mov	x0, x21
	bl	_free
	mov	w20, #0
	b	LBB0_14
LBB0_30:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
Lloh12:
	adrp	x8, _EUNIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EUNIT@GOTPAGEOFF]
LBB0_32:
	ldr	w20, [x8]
LBB0_33:
	mov	x0, x21
	bl	_free
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_devsw,8,3                      ; @devsw
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_EUNIT,4,2                      ; @EUNIT
	.no_dead_strip	_efi_parsedev
.subsections_via_symbols
