	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_nvram_handle_value
_brcmf_nvram_handle_value:              ## @brcmf_nvram_handle_value
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movsbl	(%rax,%rcx), %edi
	callq	_is_nvram_char
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	incq	8(%rbx)
	incl	40(%rbx)
	movq	_VALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	(%rbx), %rsi
	movq	24(%rbx), %rdi
	movq	8(%rbx), %r14
	addq	%rsi, %r14
	addq	16(%rbx), %rsi
	subq	%rsi, %r14
	leaq	(%rdi,%r14), %rax
	incq	%rax
	movq	_BRCMF_FW_MAX_NVRAM_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.3:
	addq	32(%rbx), %rdi
	movq	%r14, %rdx
	callq	_memcpy
	addq	24(%rbx), %r14
	movq	%r14, 24(%rbx)
	movq	32(%rbx), %rax
	movb	$0, (%rax,%r14)
	incq	24(%rbx)
	movq	_IDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_END@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_FW_MAX_NVRAM_SIZE,8,3    ## @BRCMF_FW_MAX_NVRAM_SIZE
	.comm	_END,4,2                        ## @END
	.comm	_IDLE,4,2                       ## @IDLE
	.comm	_VALUE,4,2                      ## @VALUE
	.no_dead_strip	_brcmf_nvram_handle_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_nvram_handle_value
_brcmf_nvram_handle_value:              ; @brcmf_nvram_handle_value
	.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
	ldp	x8, x9, [x0]
	ldrsb	w0, [x8, x9]
	bl	_is_nvram_char
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
Lloh0:
	adrp	x8, _VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VALUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldp	x9, x8, [x19]
	add	x10, x9, x8
	ldp	x11, x8, [x19, #16]
	add	x1, x9, x11
	sub	x20, x10, x1
	add	x9, x8, x20
	add	x9, x9, #1
Lloh2:
	adrp	x10, _BRCMF_FW_MAX_NVRAM_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BRCMF_FW_MAX_NVRAM_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.3:
	ldr	x9, [x19, #32]
	add	x0, x9, x8
	mov	x2, x20
	bl	_memcpy
	ldp	x8, x9, [x19, #24]
	add	x8, x8, x20
	str	x8, [x19, #24]
	strb	wzr, [x9, x8]
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
Lloh5:
	adrp	x8, _IDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _END@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_FW_MAX_NVRAM_SIZE,8,3    ; @BRCMF_FW_MAX_NVRAM_SIZE
	.comm	_END,4,2                        ; @END
	.comm	_IDLE,4,2                       ; @IDLE
	.comm	_VALUE,4,2                      ; @VALUE
	.no_dead_strip	_brcmf_nvram_handle_value
.subsections_via_symbols
