	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probe_disks
_probe_disks:                           ## @probe_disks
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_currdev@GOTPCREL(%rip), %r13
	movl	%ecx, 4(%r13)
	movl	%r8d, 8(%r13)
	movq	%r13, -48(%rbp)
	cmpl	$-1, %esi
	je	LBB0_5
## %bb.1:
	movl	%esi, %r12d
	cmpl	$-1, %edx
	je	LBB0_10
## %bb.2:
	movl	%r12d, %edi
	movl	%edx, %esi
	callq	_uboot_diskgetunit
	movl	%eax, (%r13)
	movl	$-1, %r15d
	leaq	L_str(%rip), %r14
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_print_disk_probe_info
	movq	_devsw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_currdev@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_19
## %bb.4:
	movl	$10, %edi
	callq	_putchar
	movl	$-1, %r15d
	jmp	LBB0_20
LBB0_5:
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	movl	$0, (%r13)
	movq	_UB_MAX_DEV@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	$0, (%rcx)
	jle	LBB0_21
## %bb.6:
	movslq	%ebx, %rbx
	movq	_devsw@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_print_disk_probe_info
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$10, %edi
	callq	_putchar
	movl	(%r13), %eax
	incl	%eax
	movl	%eax, (%r13)
	movq	_UB_MAX_DEV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_7
	jmp	LBB0_9
LBB0_10:
	movl	%r12d, %edi
	callq	_device_typename
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_UB_MAX_DEV@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	$0, (%rcx)
	jle	LBB0_21
## %bb.11:
	movslq	%ebx, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_uboot_diskgetunit
	movl	%eax, (%r13)
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	callq	_print_disk_probe_info
	movq	_devsw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$10, %edi
	callq	_putchar
	incl	%r14d
	movq	_UB_MAX_DEV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_12
LBB0_9:
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_19:
	leaq	L_str.8(%rip), %r14
LBB0_20:
	movq	%r14, %rdi
	callq	_puts
	movl	%r15d, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_currdev,12,2                   ## @currdev
	.comm	_UB_MAX_DEV,4,2                 ## @UB_MAX_DEV
	.comm	_devsw,8,3                      ## @devsw
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"  Probing all %s devices...\n"

L_str:                                  ## @str
	.asciz	"  Requested disk type/unit/slice/partition not found"

L_str.7:                                ## @str.7
	.asciz	"  Probing all disk devices..."

L_str.8:                                ## @str.8
	.asciz	" good."

	.no_dead_strip	_probe_disks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probe_disks
_probe_disks:                           ; @probe_disks
	.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, x0
Lloh0:
	adrp	x19, _currdev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _currdev@GOTPAGEOFF]
	stp	w3, w4, [x19, #4]
	str	x19, [sp, #8]
	cmn	w1, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x21, x1
	cmn	w2, #1
	b.eq	LBB0_10
; %bb.2:
	mov	x0, x21
	mov	x1, x2
	bl	_uboot_diskgetunit
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	bl	_print_disk_probe_info
Lloh2:
	adrp	x8, _devsw@GOTPAGE
Lloh3:
	ldr	x8, [x8, _devsw@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	x8, [x8]
Lloh5:
	adrp	x1, _currdev@GOTPAGE
Lloh6:
	ldr	x1, [x1, _currdev@GOTPAGEOFF]
	add	x0, sp, #8
	blr	x8
	cbz	w0, LBB0_17
; %bb.4:
	mov	w0, #10
	bl	_putchar
LBB0_5:
	mov	w19, #-1
Lloh7:
	adrp	x20, l_str@PAGE
Lloh8:
	add	x20, x20, l_str@PAGEOFF
	b	LBB0_18
LBB0_6:
Lloh9:
	adrp	x0, l_str.7@PAGE
Lloh10:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
	str	wzr, [x19]
Lloh11:
	adrp	x21, _UB_MAX_DEV@GOTPAGE
Lloh12:
	ldr	x21, [x21, _UB_MAX_DEV@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.7:
	sxtw	x22, w20
Lloh13:
	adrp	x23, _devsw@GOTPAGE
Lloh14:
	ldr	x23, [x23, _devsw@GOTPAGEOFF]
Lloh15:
	adrp	x20, l_str.8@PAGE
Lloh16:
	add	x20, x20, l_str.8@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_print_disk_probe_info
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8]
	add	x0, sp, #8
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #10
	bl	_putchar
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_8
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	bl	_device_typename
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
Lloh19:
	adrp	x23, _UB_MAX_DEV@GOTPAGE
Lloh20:
	ldr	x23, [x23, _UB_MAX_DEV@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w22, #0
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x24, w20
Lloh21:
	adrp	x25, _devsw@GOTPAGE
Lloh22:
	ldr	x25, [x25, _devsw@GOTPAGEOFF]
Lloh23:
	adrp	x20, l_str.8@PAGE
Lloh24:
	add	x20, x20, l_str.8@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_uboot_diskgetunit
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_print_disk_probe_info
	ldr	x8, [x25]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x8, [x8]
	add	x0, sp, #8
	mov	x1, x19
	blr	x8
	cbz	w0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #10
	bl	_putchar
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_12
LBB0_15:
	mov	w19, #-1
	b	LBB0_19
LBB0_16:
	mov	w19, #0
	b	LBB0_18
LBB0_17:
	mov	w19, #0
Lloh25:
	adrp	x20, l_str.8@PAGE
Lloh26:
	add	x20, x20, l_str.8@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_puts
LBB0_19:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_currdev,12,2                   ; @currdev
	.comm	_UB_MAX_DEV,4,2                 ; @UB_MAX_DEV
	.comm	_devsw,8,3                      ; @devsw
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"  Probing all %s devices...\n"

l_str:                                  ; @str
	.asciz	"  Requested disk type/unit/slice/partition not found"

l_str.7:                                ; @str.7
	.asciz	"  Probing all disk devices..."

l_str.8:                                ; @str.8
	.asciz	" good."

	.no_dead_strip	_probe_disks
.subsections_via_symbols
