	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uboot_parsedev
_uboot_parsedev:                        ## @uboot_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, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_strlen
	cmpl	$2, %eax
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_devsw@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %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	(%r12), %rax
	movq	8(%rax,%r14,8), %rax
	incq	%r14
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_16
LBB0_6:
	movl	%r14d, %eax
	movq	(%r12), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.7:
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r12
	movq	(%rbx), %rdi
	callq	_strlen
	movl	8(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_14
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %r14
	cmpl	$129, %ecx
	jne	LBB0_22
## %bb.9:
	cltq
	addq	%rax, %r13
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	-56(%rbp), %rcx
	cmpq	%r13, %rcx
	je	LBB0_21
## %bb.10:
	movb	(%rcx), %dl
	cmpb	$58, %dl
	je	LBB0_12
## %bb.11:
	testb	%dl, %dl
	jne	LBB0_22
LBB0_12:
	movl	%eax, (%r12)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
## %bb.13:
	cmpb	$1, (%rcx)
	sbbq	$-1, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_14:
	movq	%rbx, 8(%r12)
	testq	%r15, %r15
	je	LBB0_19
## %bb.15:
	movq	%r12, (%r15)
	jmp	LBB0_20
LBB0_16:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %rdi
	callq	_free
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_21:
	movq	_EUNIT@GOTPCREL(%rip), %r14
LBB0_22:
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_devsw,8,3                      ## @devsw
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EUNIT,4,2                      ## @EUNIT
	.no_dead_strip	_uboot_parsedev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uboot_parsedev
_uboot_parsedev:                        ; @uboot_parsedev
	.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	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_17
LBB0_2:
Lloh2:
	adrp	x23, _devsw@GOTPAGE
Lloh3:
	ldr	x23, [x23, _devsw@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.3:
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	add	x8, x8, x24, lsl #3
	add	x24, x24, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_4
	b	LBB0_16
LBB0_6:
	ldr	x8, [x23]
	ldr	x23, [x8, w24, uxtw #3]
	cbz	x23, LBB0_16
; %bb.7:
	mov	w0, #16
	bl	_malloc
	mov	x22, x0
	ldr	x0, [x23]
	bl	_strlen
	ldr	w8, [x23, #8]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.9:
	add	x21, x21, w0, sxtw
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #8]
	cmp	x8, x21
	b.eq	LBB0_21
; %bb.10:
	ldrb	w9, [x8]
	cmp	w9, #58
	b.eq	LBB0_12
; %bb.11:
	cbnz	w9, LBB0_19
LBB0_12:
	str	w0, [x22]
	cbz	x20, LBB0_14
; %bb.13:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #0
	csel	x8, x8, x9, eq
	str	x8, [x20]
LBB0_14:
	str	x23, [x22, #8]
	cbz	x19, LBB0_20
; %bb.15:
	mov	w20, #0
	str	x22, [x19]
	b	LBB0_18
LBB0_16:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_17:
	ldr	w20, [x8]
LBB0_18:
	mov	x0, x20
	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_19:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
	mov	x0, x22
	bl	_free
	mov	w20, #0
	b	LBB0_18
LBB0_21:
Lloh8:
	adrp	x8, _EUNIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EUNIT@GOTPAGEOFF]
LBB0_22:
	ldr	w20, [x8]
	mov	x0, x22
	bl	_free
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_devsw,8,3                      ; @devsw
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EUNIT,4,2                      ; @EUNIT
	.no_dead_strip	_uboot_parsedev
.subsections_via_symbols
