	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_load_device
_get_load_device:                       ## @get_load_device
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_DEV_TYP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movl	$-1, (%rsi)
	movq	_D_SLICEWILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rdx)
	movq	_D_PARTWILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rdi
	callq	_ub_env_get
	testq	%rax, %rax
	je	LBB0_27
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_get_device_type
	movq	%rax, %rbx
	movq	_DEV_TYP_STOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.8:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcspn
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcspn
	decq	%r14
	cmpq	%r14, %rax
	jb	LBB0_2
## %bb.10:
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_disk_parsedev
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	decq	%rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	cmpb	$32, %al
	je	LBB0_3
## %bb.4:
	movl	(%r13), %ecx
	movq	_DEV_TYP_NONE@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ecx
	je	LBB0_26
## %bb.5:
	testb	%al, %al
	je	LBB0_26
## %bb.6:
	movsbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, (%r12)
	movq	-48(%rbp), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_26
## %bb.13:
	cmpb	$58, %al
	jne	LBB0_14
## %bb.15:
	cmpb	$0, 1(%rbx)
	je	LBB0_26
## %bb.16:
	movq	_DEV_TYP_STOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_14
## %bb.17:
	incq	%rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rdi
	cmpq	%rdi, %rbx
	je	LBB0_18
## %bb.19:
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_26
## %bb.20:
	cmpb	$46, %al
	jne	LBB0_21
## %bb.22:
	cmpb	$0, 1(%rdi)
	je	LBB0_26
## %bb.23:
	incq	%rdi
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, (%r15)
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_26
## %bb.24:
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	$-1, (%r12)
	movq	_D_SLICEWILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_D_PARTWILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_27:
	leaq	L_str(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_7:
	movl	(%r14), %eax
	movl	%eax, (%r13)
	jmp	LBB0_26
LBB0_14:
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	$-1, (%r12)
	jmp	LBB0_26
LBB0_11:
	movl	-64(%rbp), %eax
	movl	%eax, (%r12)
	movl	-72(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-68(%rbp), %eax
LBB0_25:
	movl	%eax, (%r15)
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	$-1, (%r12)
	movq	_D_SLICEWILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_26
LBB0_21:
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	$-1, (%r12)
	movq	_D_SLICEWILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_TYP_NONE,4,2               ## @DEV_TYP_NONE
	.comm	_D_SLICEWILD,4,2                ## @D_SLICEWILD
	.comm	_D_PARTWILD,4,2                 ## @D_PARTWILD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loaderdev"

L_.str.2:                               ## @.str.2
	.asciz	"U-Boot env: loaderdev='%s'\n"

	.comm	_DEV_TYP_STOR,4,2               ## @DEV_TYP_STOR
L_.str.3:                               ## @.str.3
	.asciz	" ."

L_.str.4:                               ## @.str.4
	.asciz	":"

L_str:                                  ## @str
	.asciz	"U-Boot env: loaderdev not set, will probe all devices."

	.no_dead_strip	_get_load_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_load_device
_get_load_device:                       ; @get_load_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x26, _DEV_TYP_NONE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DEV_TYP_NONE@GOTPAGEOFF]
	ldr	w8, [x26]
	str	w8, [x0]
	mov	w8, #-1
	str	w8, [x1]
Lloh2:
	adrp	x25, _D_SLICEWILD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _D_SLICEWILD@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x2]
Lloh4:
	adrp	x27, _D_PARTWILD@GOTPAGE
Lloh5:
	ldr	x27, [x27, _D_PARTWILD@GOTPAGEOFF]
	ldr	w8, [x27]
	str	w8, [x3]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ub_env_get
	cbz	x0, LBB0_19
; %bb.1:
	mov	x23, x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	x0, x23
	mov	x1, x22
	bl	_get_device_type
	mov	x23, x0
	ldr	w8, [x22]
Lloh10:
	adrp	x28, _DEV_TYP_STOR@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DEV_TYP_STOR@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_strcspn
	cmp	x0, x24
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_strcspn
	sub	x8, x24, #1
	cmp	x0, x8
	b.lo	LBB0_5
; %bb.4:
	add	x0, sp, #16
	mov	x1, x23
	mov	x2, #0
	bl	_disk_parsedev
	cbz	x0, LBB0_22
LBB0_5:
	sub	x23, x23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23, #1]!
	cmp	w8, #32
	b.eq	LBB0_6
; %bb.7:
	ldr	w9, [x22]
	ldr	w10, [x26]
	cmp	w9, w10
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_24
; %bb.8:
	sxtb	w0, w8
	bl	_isdigit
	cbz	w0, LBB0_20
; %bb.9:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #10
	bl	_strtol
	str	w0, [x20]
	ldr	x23, [sp, #8]
	ldrb	w8, [x23]
	cbz	w8, LBB0_24
; %bb.10:
	cmp	w8, #58
	b.ne	LBB0_21
; %bb.11:
	ldrb	w8, [x23, #1]!
	cbz	w8, LBB0_24
; %bb.12:
	ldr	w8, [x22]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.13:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #10
	bl	_strtoul
	str	w0, [x19]
	ldr	x0, [sp, #8]
	cmp	x23, x0
	b.eq	LBB0_23
; %bb.14:
	ldrb	w8, [x0]
	cbz	w8, LBB0_24
; %bb.15:
	cmp	w8, #46
	b.ne	LBB0_23
; %bb.16:
	ldrb	w8, [x0, #1]!
	cbz	w8, LBB0_24
; %bb.17:
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	str	w0, [x21]
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_24
; %bb.18:
	ldr	w8, [x26]
	str	w8, [x22]
	mov	w8, #-1
	str	w8, [x20]
	ldr	w8, [x25]
	str	w8, [x19]
	ldr	w8, [x27]
	str	w8, [x21]
	b	LBB0_24
LBB0_19:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_puts
LBB0_20:
	ldr	w8, [x26]
	str	w8, [x22]
	b	LBB0_24
LBB0_21:
	ldr	w8, [x26]
	str	w8, [x22]
	mov	w8, #-1
	str	w8, [x20]
	b	LBB0_24
LBB0_22:
	ldp	w9, w8, [sp, #20]
	str	w8, [x20]
	ldr	w8, [sp, #16]
	str	w8, [x19]
	str	w9, [x21]
	b	LBB0_24
LBB0_23:
	ldr	w8, [x26]
	str	w8, [x22]
	mov	w8, #-1
	str	w8, [x20]
	ldr	w8, [x25]
	str	w8, [x19]
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_TYP_NONE,4,2               ; @DEV_TYP_NONE
	.comm	_D_SLICEWILD,4,2                ; @D_SLICEWILD
	.comm	_D_PARTWILD,4,2                 ; @D_PARTWILD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loaderdev"

l_.str.2:                               ; @.str.2
	.asciz	"U-Boot env: loaderdev='%s'\n"

	.comm	_DEV_TYP_STOR,4,2               ; @DEV_TYP_STOR
l_.str.3:                               ; @.str.3
	.asciz	" ."

l_.str.4:                               ; @.str.4
	.asciz	":"

l_str:                                  ; @str
	.asciz	"U-Boot env: loaderdev not set, will probe all devices."

	.no_dead_strip	_get_load_device
.subsections_via_symbols
