	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_nvram_handle_key
_brcmf_nvram_handle_key:                ## @brcmf_nvram_handle_key
	.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, %rbx
	movq	8(%rdi), %rdi
	movq	16(%rbx), %rax
	movb	(%rdi,%rax), %r15b
	cmpb	$61, %r15b
	jne	LBB0_11
## %bb.1:
	addq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_COMMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movl	(%rbx), %r14d
	movsbl	%r15b, %edi
	callq	_is_nvram_char
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	cmpb	$32, %r15b
	jne	LBB0_10
LBB0_13:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	44(%rbx), %ecx
	movl	48(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_brcmf_dbg
	movq	_COMMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_14
LBB0_2:
	movq	_VALUE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	8(%rbx), %rdi
	addq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	$1, 32(%rbx)
LBB0_6:
	movq	8(%rbx), %rdi
	addq	24(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	$1, 36(%rbx)
LBB0_8:
	movq	8(%rbx), %rdi
	addq	24(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	$1, 40(%rbx)
LBB0_10:
	incl	44(%rbx)
	incq	16(%rbx)
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RAW1"

	.comm	_COMMENT,4,2                    ## @COMMENT
	.comm	_VALUE,4,2                      ## @VALUE
L_.str.1:                               ## @.str.1
	.asciz	"devpath"

L_.str.2:                               ## @.str.2
	.asciz	"pcie/"

L_.str.3:                               ## @.str.3
	.asciz	"boardrev"

	.comm	_INFO,4,2                       ## @INFO
L_.str.4:                               ## @.str.4
	.asciz	"warning: ln=%d:col=%d: '=' expected, skip invalid key entry\n"

	.no_dead_strip	_brcmf_nvram_handle_key
.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_key
_brcmf_nvram_handle_key:                ; @brcmf_nvram_handle_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x8, x9, [x0, #8]
	ldrb	w21, [x8, x9]
	cmp	w21, #61
	b.ne	LBB0_7
; %bb.1:
	ldr	x9, [x19, #24]
	add	x0, x8, x9
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
Lloh2:
	adrp	x8, _COMMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMMENT@GOTPAGEOFF]
Lloh4:
	adrp	x9, _VALUE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VALUE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	add	x0, x8, x9
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbnz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #32]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	add	x0, x8, x9
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbnz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #36]
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	add	x0, x8, x9
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_9
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #40]
	b	LBB0_9
LBB0_7:
	ldr	w20, [x19]
	sxtb	w0, w21
	bl	_is_nvram_char
	cbz	w0, LBB0_10
; %bb.8:
	cmp	w21, #32
	b.eq	LBB0_10
LBB0_9:
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x8, _INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	w3, w2, [x19, #44]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_brcmf_dbg
Lloh17:
	adrp	x8, _COMMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COMMENT@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RAW1"

	.comm	_COMMENT,4,2                    ; @COMMENT
	.comm	_VALUE,4,2                      ; @VALUE
l_.str.1:                               ; @.str.1
	.asciz	"devpath"

l_.str.2:                               ; @.str.2
	.asciz	"pcie/"

l_.str.3:                               ; @.str.3
	.asciz	"boardrev"

	.comm	_INFO,4,2                       ; @INFO
l_.str.4:                               ; @.str.4
	.asciz	"warning: ln=%d:col=%d: '=' expected, skip invalid key entry\n"

	.no_dead_strip	_brcmf_nvram_handle_key
.subsections_via_symbols
