	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opal_nvram_read
_opal_nvram_read:                       ## @opal_nvram_read
	.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
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	_NVRAM_BUFSIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	jle	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rsi
	subq	8(%r14), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MIN
	movq	(%r13), %rsi
	movl	%eax, %edi
	callq	_MIN
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r15d
	movq	_OPAL_READ_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	movq	8(%r14), %rcx
	movl	%r15d, %edx
	callq	_opal_call
	movl	%eax, %ebx
	movq	_OPAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_uiomove
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_6:
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.7:
	cmpl	$129, %ebx
	jne	LBB0_11
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVRAM_BUFSIZE,8,3              ## @NVRAM_BUFSIZE
	.comm	_OPAL_READ_NVRAM,4,2            ## @OPAL_READ_NVRAM
	.comm	_OPAL_SUCCESS,4,2               ## @OPAL_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_opal_nvram_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opal_nvram_read
_opal_nvram_read:                       ; @opal_nvram_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _NVRAM_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NVRAM_BUFSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _OPAL_READ_NVRAM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OPAL_READ_NVRAM@GOTPAGEOFF]
Lloh4:
	adrp	x24, _OPAL_SUCCESS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _OPAL_SUCCESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	sub	x1, x8, x9
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_MIN
	ldr	x1, [x22]
	bl	_MIN
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	ldr	w0, [x23]
	ldr	w1, [x21, #4]
	ldr	x3, [x19, #8]
	mov	x2, x20
	bl	_opal_call
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_uiomove
	cbz	w0, LBB0_1
	b	LBB0_11
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.7:
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.8:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NVRAM_BUFSIZE,8,3              ; @NVRAM_BUFSIZE
	.comm	_OPAL_READ_NVRAM,4,2            ; @OPAL_READ_NVRAM
	.comm	_OPAL_SUCCESS,4,2               ; @OPAL_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_opal_nvram_read
.subsections_via_symbols
