	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm47xx_nvram_get_contents     ## -- Begin function bcm47xx_nvram_get_contents
	.p2align	4, 0x90
_bcm47xx_nvram_get_contents:            ## @bcm47xx_nvram_get_contents
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_nvram_len@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movslq	%eax, %rdi
	addq	$-4, %rdi
	movq	%rdi, (%r14)
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	_nvram_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$16, %rsi
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	callq	_memcpy
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nvram_init
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvram_len,4,2                  ## @nvram_len
	.comm	_nvram_buf,8,3                  ## @nvram_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm47xx_nvram_get_contents     ; -- Begin function bcm47xx_nvram_get_contents
	.p2align	2
_bcm47xx_nvram_get_contents:            ; @bcm47xx_nvram_get_contents
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _nvram_len@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nvram_len@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
LBB0_1:
	sxtw	x8, w8
	sub	x0, x8, #4
	str	x0, [x19]
	bl	_vmalloc
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _nvram_buf@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvram_buf@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, #16
	ldr	x2, [x19]
	mov	x0, x20
	bl	_memcpy
	b	LBB0_5
LBB0_3:
	bl	_nvram_init
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x20]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nvram_len,4,2                  ; @nvram_len
	.comm	_nvram_buf,8,3                  ; @nvram_buf
.subsections_via_symbols
