	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uboot_diskgetunit              ## -- Begin function uboot_diskgetunit
	.p2align	4, 0x90
_uboot_diskgetunit:                     ## @uboot_diskgetunit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_stor_info_no@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$-1, %eax
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.1:
	movq	_stor_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rdx,4), %ecx
	notl	%ecx
	testl	%ecx, %edi
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, %r10d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r10d
	jmp	LBB0_5
LBB0_6:
	movl	%edx, %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stor_info_no,4,2               ## @stor_info_no
	.comm	_stor_info,8,3                  ## @stor_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uboot_diskgetunit              ; -- Begin function uboot_diskgetunit
	.p2align	2
_uboot_diskgetunit:                     ; @uboot_diskgetunit
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _stor_info_no@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stor_info_no@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	mov	w10, #0
Lloh3:
	adrp	x11, _stor_info@GOTPAGE
Lloh4:
	ldr	x11, [x11, _stor_info@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	cmp	x9, x0
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x0, lsl #2]
	bics	wzr, w8, w12
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, w1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, #1
	b	LBB0_2
LBB0_6:
	mov	w0, #-1
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stor_info_no,4,2               ; @stor_info_no
	.comm	_stor_info,8,3                  ; @stor_info
.subsections_via_symbols
