	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_fw_complete_request
_brcmf_fw_complete_request:             ## @brcmf_fw_complete_request
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	(%rcx), %r15
	movq	_TRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rax,2), %r12
	movl	16(%r15,%r12,8), %edx
	testq	%r14, %r14
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movl	(%r15,%r12,8), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_brcmf_fw_request_nvram_done
	jmp	LBB0_8
LBB0_3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	%r14, 8(%r15,%r12,8)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_brcmf_err
	movq	%r14, %rdi
	callq	_release_firmware
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	_BRCMF_FW_REQF_OPTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%edx, 4(%r15,%r12,8)
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware %s %sfound\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"not "

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"unknown fw type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BRCMF_FW_REQF_OPTIONAL,4,2     ## @BRCMF_FW_REQF_OPTIONAL
	.no_dead_strip	_brcmf_fw_complete_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_fw_complete_request
_brcmf_fw_complete_request:             ; @brcmf_fw_complete_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x21, x8, [x1]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w8, #24
	madd	x23, x21, x8, x22
	ldr	w2, [x23, #16]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x19, #0
	csel	x3, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w1, [x23]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_brcmf_fw_request_nvram_done
	b	LBB0_8
LBB0_3:
	cbz	x19, LBB0_6
; %bb.4:
	mov	w0, #0
	mov	w8, #24
	madd	x8, x21, x8, x22
	str	x19, [x8, #8]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_brcmf_err
	mov	x0, x19
	bl	_release_firmware
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	mov	w8, #24
	madd	x8, x21, x8, x22
	ldr	w8, [x8, #4]
Lloh15:
	adrp	x9, _BRCMF_FW_REQF_OPTIONAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BRCMF_FW_REQF_OPTIONAL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w0, w0, wzr, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware %s %sfound\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"not "

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"unknown fw type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BRCMF_FW_REQF_OPTIONAL,4,2     ; @BRCMF_FW_REQF_OPTIONAL
	.no_dead_strip	_brcmf_fw_complete_request
.subsections_via_symbols
