	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_btcoex_boost_wifi
_brcmf_btcoex_boost_wifi:               ## @brcmf_btcoex_boost_wifi
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_brcmf_get_ifp
	movq	%rax, %r14
	movl	(%rbx), %eax
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	leaq	20(%rbx), %rdx
	movq	%r14, %rdi
	movl	$50, %esi
	callq	_brcmf_btcoex_params_read
	leaq	16(%rbx), %rdx
	movq	%r14, %rdi
	movl	$51, %esi
	callq	_brcmf_btcoex_params_read
	leaq	12(%rbx), %rdx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_brcmf_btcoex_params_read
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	movl	$65, %esi
	callq	_brcmf_btcoex_params_read
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	movl	$71, %esi
	callq	_brcmf_btcoex_params_read
	movl	$1, (%rbx)
	movl	(%r15), %edi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	4(%rbx), %eax
	movl	8(%rbx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_BT_DHCP_REG50@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$50, %esi
	callq	_brcmf_btcoex_params_write
	movq	_BRCMF_BT_DHCP_REG51@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$51, %esi
	callq	_brcmf_btcoex_params_write
	movq	_BRCMF_BT_DHCP_REG64@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_brcmf_btcoex_params_write
	movq	_BRCMF_BT_DHCP_REG65@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$65, %esi
	callq	_brcmf_btcoex_params_write
	movq	_BRCMF_BT_DHCP_REG71@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$71, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_btcoex_params_write      ## TAILCALL
LBB0_3:
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	movl	$50, %esi
	callq	_brcmf_btcoex_params_write
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movl	$51, %esi
	callq	_brcmf_btcoex_params_write
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_brcmf_btcoex_params_write
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$65, %esi
	callq	_brcmf_btcoex_params_write
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$71, %esi
	callq	_brcmf_btcoex_params_write
	movl	(%r15), %edi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movl	4(%rbx), %eax
	movl	8(%rbx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new SCO/eSCO coex algo {save & override}\n"

L_.str.1:                               ## @.str.1
	.asciz	"saved bt_params[50,51,64,65,71]: 0x%x 0x%x 0x%x 0x%x 0x%x\n"

	.comm	_BRCMF_BT_DHCP_REG50,4,2        ## @BRCMF_BT_DHCP_REG50
	.comm	_BRCMF_BT_DHCP_REG51,4,2        ## @BRCMF_BT_DHCP_REG51
	.comm	_BRCMF_BT_DHCP_REG64,4,2        ## @BRCMF_BT_DHCP_REG64
	.comm	_BRCMF_BT_DHCP_REG65,4,2        ## @BRCMF_BT_DHCP_REG65
	.comm	_BRCMF_BT_DHCP_REG71,4,2        ## @BRCMF_BT_DHCP_REG71
L_.str.2:                               ## @.str.2
	.asciz	"Do new SCO/eSCO coex algo {restore}\n"

L_.str.3:                               ## @.str.3
	.asciz	"restored bt_params[50,51,64,65,71]: 0x%x 0x%x 0x%x 0x%x 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"attempted to restore not saved BTCOEX params\n"

	.no_dead_strip	_brcmf_btcoex_boost_wifi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_btcoex_boost_wifi
_brcmf_btcoex_boost_wifi:               ; @brcmf_btcoex_boost_wifi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_brcmf_get_ifp
	mov	x19, x0
	ldr	w8, [x20]
	cbz	w21, LBB0_3
; %bb.1:
	cbnz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x21, _INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INFO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	add	x2, x20, #20
	mov	x0, x19
	mov	w1, #50
	bl	_brcmf_btcoex_params_read
	add	x2, x20, #16
	mov	x0, x19
	mov	w1, #51
	bl	_brcmf_btcoex_params_read
	add	x2, x20, #12
	mov	x0, x19
	mov	w1, #64
	bl	_brcmf_btcoex_params_read
	add	x2, x20, #8
	mov	x0, x19
	mov	w1, #65
	bl	_brcmf_btcoex_params_read
	add	x2, x20, #4
	mov	x0, x19
	mov	w1, #71
	bl	_brcmf_btcoex_params_read
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x21]
	ldp	w9, w8, [x20, #16]
	ldp	w11, w10, [x20, #8]
	ldr	w12, [x20, #4]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
Lloh6:
	adrp	x8, _BRCMF_BT_DHCP_REG50@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMF_BT_DHCP_REG50@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #50
	bl	_brcmf_btcoex_params_write
Lloh9:
	adrp	x8, _BRCMF_BT_DHCP_REG51@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMF_BT_DHCP_REG51@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #51
	bl	_brcmf_btcoex_params_write
Lloh12:
	adrp	x8, _BRCMF_BT_DHCP_REG64@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMF_BT_DHCP_REG64@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_brcmf_btcoex_params_write
Lloh15:
	adrp	x8, _BRCMF_BT_DHCP_REG65@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCMF_BT_DHCP_REG65@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #65
	bl	_brcmf_btcoex_params_write
Lloh18:
	adrp	x8, _BRCMF_BT_DHCP_REG71@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BRCMF_BT_DHCP_REG71@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #71
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_brcmf_btcoex_params_write
LBB0_3:
	cbz	w8, LBB0_5
LBB0_4:
Lloh21:
	adrp	x21, _INFO@GOTPAGE
Lloh22:
	ldr	x21, [x21, _INFO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	w2, [x20, #20]
	mov	x0, x19
	mov	w1, #50
	bl	_brcmf_btcoex_params_write
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #51
	bl	_brcmf_btcoex_params_write
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #64
	bl	_brcmf_btcoex_params_write
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #65
	bl	_brcmf_btcoex_params_write
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #71
	bl	_brcmf_btcoex_params_write
	ldr	w0, [x21]
	ldp	w9, w8, [x20, #16]
	ldp	w11, w10, [x20, #8]
	ldr	w12, [x20, #4]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
	str	wzr, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
Lloh27:
	adrp	x8, _INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_brcmf_dbg
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new SCO/eSCO coex algo {save & override}\n"

l_.str.1:                               ; @.str.1
	.asciz	"saved bt_params[50,51,64,65,71]: 0x%x 0x%x 0x%x 0x%x 0x%x\n"

	.comm	_BRCMF_BT_DHCP_REG50,4,2        ; @BRCMF_BT_DHCP_REG50
	.comm	_BRCMF_BT_DHCP_REG51,4,2        ; @BRCMF_BT_DHCP_REG51
	.comm	_BRCMF_BT_DHCP_REG64,4,2        ; @BRCMF_BT_DHCP_REG64
	.comm	_BRCMF_BT_DHCP_REG65,4,2        ; @BRCMF_BT_DHCP_REG65
	.comm	_BRCMF_BT_DHCP_REG71,4,2        ; @BRCMF_BT_DHCP_REG71
l_.str.2:                               ; @.str.2
	.asciz	"Do new SCO/eSCO coex algo {restore}\n"

l_.str.3:                               ; @.str.3
	.asciz	"restored bt_params[50,51,64,65,71]: 0x%x 0x%x 0x%x 0x%x 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"attempted to restore not saved BTCOEX params\n"

	.no_dead_strip	_brcmf_btcoex_boost_wifi
.subsections_via_symbols
