	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm63xx_read_nvram
_bcm63xx_read_nvram:                    ## @bcm63xx_read_nvram
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_BCM963XX_NVRAM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCM963XX_NVRAM_V5_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%r14, %r8
	callq	_mtd_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_bcm963xx_nvram_checksum
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	-20(%rbp), %esi
	movl	-24(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_3:
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	_BCM963XX_DEFAULT_PSI_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM963XX_NVRAM_OFFSET,4,2      ## @BCM963XX_NVRAM_OFFSET
	.comm	_BCM963XX_NVRAM_V5_SIZE,4,2     ## @BCM963XX_NVRAM_V5_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvram checksum failed, contents may be invalid (expected %08x, got %08x)\n"

	.comm	_BCM963XX_DEFAULT_PSI_SIZE,8,3  ## @BCM963XX_DEFAULT_PSI_SIZE
	.no_dead_strip	_bcm63xx_read_nvram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm63xx_read_nvram
_bcm63xx_read_nvram:                    ; @bcm63xx_read_nvram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _BCM963XX_NVRAM_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM963XX_NVRAM_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BCM963XX_NVRAM_V5_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM963XX_NVRAM_V5_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x4, x19
	bl	_mtd_read
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x19
	bl	_bcm963xx_nvram_checksum
	cbz	w0, LBB0_3
; %bb.2:
	ldp	w1, w2, [sp, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_3:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _BCM963XX_DEFAULT_PSI_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BCM963XX_DEFAULT_PSI_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM963XX_NVRAM_OFFSET,4,2      ; @BCM963XX_NVRAM_OFFSET
	.comm	_BCM963XX_NVRAM_V5_SIZE,4,2     ; @BCM963XX_NVRAM_V5_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvram checksum failed, contents may be invalid (expected %08x, got %08x)\n"

	.comm	_BCM963XX_DEFAULT_PSI_SIZE,8,3  ; @BCM963XX_DEFAULT_PSI_SIZE
	.no_dead_strip	_bcm63xx_read_nvram
.subsections_via_symbols
