	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_fw_request_nvram_done
_brcmf_fw_request_nvram_done:           ## @brcmf_fw_request_nvram_done
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%rsi), %edi
	callq	_dev_name
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	8(%rcx), %rbx
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.7:
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)
	movb	$1, %bl
	movb	$1, %r13b
	jmp	LBB0_8
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_bcm47xx_nvram_get_contents
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movb	$1, %bl
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_4:
	leaq	-56(%rbp), %rdi
	callq	_brcmf_fw_nvram_from_efi
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %r12
	movb	$1, %r13b
	xorl	%ebx, %ebx
LBB0_8:
	movq	-56(%rbp), %rsi
	movq	8(%r15), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_brcmf_fw_nvram_strip
	movq	%rax, %r15
	testb	%r13b, %r13b
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_bcm47xx_nvram_release_contents
LBB0_10:
	testb	%bl, %bl
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	movq	%r14, %rdi
	callq	_release_firmware
	testq	%r15, %r15
	jne	LBB0_15
LBB0_13:
	movq	_BRCMF_FW_REQF_OPTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.14:
	xorl	%r15d, %r15d
LBB0_15:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, 16(%rcx,%rdx,8)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rcx,%rdx,8)
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_BRCMF_FW_REQF_OPTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.6:
	movq	%r14, %rdi
	callq	_release_firmware
	jmp	LBB0_13
LBB0_17:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter: dev=%s\n"

	.comm	_BRCMF_FW_REQF_OPTIONAL,4,2     ## @BRCMF_FW_REQF_OPTIONAL
L_.str.1:                               ## @.str.1
	.asciz	"nvram %p len %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_brcmf_fw_request_nvram_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_fw_request_nvram_done
_brcmf_fw_request_nvram_done:           ; @brcmf_fw_request_nvram_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #28]
Lloh0:
	adrp	x22, _TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRACE@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	w0, [x1, #16]
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_brcmf_dbg
	ldp	x23, x8, [x20]
	ldr	x24, [x8, #8]
	mov	w8, #24
	madd	x25, x23, x8, x24
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	str	x8, [sp, #16]
	mov	w26, #1
	b	LBB0_7
LBB0_3:
	add	x0, sp, #16
	bl	_bcm47xx_nvram_get_contents
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	w27, #0
	mov	w26, #1
	b	LBB0_8
LBB0_5:
	add	x0, sp, #16
	bl	_brcmf_fw_nvram_from_efi
	cbz	x0, LBB0_17
; %bb.6:
	mov	x21, x0
	mov	w26, #0
LBB0_7:
	mov	w27, #1
LBB0_8:
	ldr	x1, [sp, #16]
	ldr	x8, [x20, #8]
	ldp	w4, w3, [x8]
	add	x2, sp, #28
	mov	x0, x21
	bl	_brcmf_fw_nvram_strip
	mov	x20, x0
	tbnz	w27, #0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_bcm47xx_nvram_release_contents
LBB0_10:
	tbnz	w26, #0, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_kfree
LBB0_12:
	mov	x0, x19
	bl	_release_firmware
	cbnz	x20, LBB0_15
LBB0_13:
	ldr	w8, [x25]
Lloh4:
	adrp	x9, _BRCMF_FW_REQF_OPTIONAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BRCMF_FW_REQF_OPTIONAL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.14:
	mov	x20, #0
LBB0_15:
	ldr	w0, [x22]
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_brcmf_dbg
	mov	w0, #0
	mov	w8, #24
	madd	x8, x23, x8, x24
	str	x20, [x8, #16]
	ldr	w9, [sp, #28]
	str	w9, [x8, #8]
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	ldr	w8, [x25]
Lloh9:
	adrp	x9, _BRCMF_FW_REQF_OPTIONAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BRCMF_FW_REQF_OPTIONAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_release_firmware
	b	LBB0_13
LBB0_19:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter: dev=%s\n"

	.comm	_BRCMF_FW_REQF_OPTIONAL,4,2     ; @BRCMF_FW_REQF_OPTIONAL
l_.str.1:                               ; @.str.1
	.asciz	"nvram %p len %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_brcmf_fw_request_nvram_done
.subsections_via_symbols
