	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_btcoex_disable        ## -- Begin function ath9k_hw_btcoex_disable
	.p2align	4, 0x90
_ath9k_hw_btcoex_disable:               ## @ath9k_hw_btcoex_disable
	.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, %r14
	movl	$0, (%rdi)
	callq	_ath9k_hw_get_btcoex_scheme
	movq	_ATH_BTCOEX_CFG_MCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_btcoex_disable_mci    ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	16(%r14), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath9k_hw_set_gpio
LBB0_3:
	movl	16(%r14), %esi
	movq	_AR_GPIO_OUTPUT_MUX_AS_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath9k_hw_gpio_request_out
	movq	8(%r14), %rax
	movq	_ATH_BTCOEX_CFG_3WIRE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	_AR_BT_COEX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_BT_QUIET@GOTPCREL(%rip), %rax
	movq	_AR_BT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	_AR_BT_COEX_MODE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movq	%r14, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_AR_BT_COEX_WL_WEIGHTS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movq	_AR_BT_COEX_WL_WEIGHTS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movq	_AR9300_NUM_BT_WEIGHTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR_BT_COEX_BT_WEIGHTS
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_REG_WRITE
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_AR_BT_COEX_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_BTCOEX_CFG_MCI,8,3         ## @ATH_BTCOEX_CFG_MCI
	.comm	_AR_GPIO_OUTPUT_MUX_AS_OUTPUT,4,2 ## @AR_GPIO_OUTPUT_MUX_AS_OUTPUT
	.comm	_ATH_BTCOEX_CFG_3WIRE,8,3       ## @ATH_BTCOEX_CFG_3WIRE
	.comm	_AR_BT_COEX_MODE,4,2            ## @AR_BT_COEX_MODE
	.comm	_AR_BT_QUIET,4,2                ## @AR_BT_QUIET
	.comm	_AR_BT_MODE,4,2                 ## @AR_BT_MODE
	.comm	_AR_BT_COEX_MODE2,4,2           ## @AR_BT_COEX_MODE2
	.comm	_AR_BT_COEX_WL_WEIGHTS0,4,2     ## @AR_BT_COEX_WL_WEIGHTS0
	.comm	_AR_BT_COEX_WL_WEIGHTS1,4,2     ## @AR_BT_COEX_WL_WEIGHTS1
	.comm	_AR9300_NUM_BT_WEIGHTS,4,2      ## @AR9300_NUM_BT_WEIGHTS
	.comm	_AR_BT_COEX_WEIGHT,4,2          ## @AR_BT_COEX_WEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_btcoex_disable        ; -- Begin function ath9k_hw_btcoex_disable
	.p2align	2
_ath9k_hw_btcoex_disable:               ; @ath9k_hw_btcoex_disable
	.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
	str	wzr, [x0]
	bl	_ath9k_hw_get_btcoex_scheme
Lloh0:
	adrp	x8, _ATH_BTCOEX_CFG_MCI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_BTCOEX_CFG_MCI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_ath9k_hw_btcoex_disable_mci
LBB0_2:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_ath9k_hw_set_gpio
LBB0_4:
	ldr	w1, [x19, #16]
Lloh3:
	adrp	x8, _AR_GPIO_OUTPUT_MUX_AS_OUTPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_GPIO_OUTPUT_MUX_AS_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ath9k_hw_gpio_request_out
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _ATH_BTCOEX_CFG_3WIRE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH_BTCOEX_CFG_3WIRE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
Lloh9:
	adrp	x8, _AR_BT_COEX_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR_BT_COEX_MODE@GOTPAGEOFF]
Lloh11:
	adrp	x9, _AR_BT_QUIET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AR_BT_QUIET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _AR_BT_MODE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AR_BT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_REG_WRITE
Lloh18:
	adrp	x8, _AR_BT_COEX_MODE2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_BT_COEX_MODE2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_10
; %bb.6:
Lloh21:
	adrp	x8, _AR_BT_COEX_WL_WEIGHTS0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_BT_COEX_WL_WEIGHTS0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
Lloh24:
	adrp	x8, _AR_BT_COEX_WL_WEIGHTS1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_BT_COEX_WL_WEIGHTS1@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
Lloh27:
	adrp	x21, _AR9300_NUM_BT_WEIGHTS@GOTPAGE
Lloh28:
	ldr	x21, [x21, _AR9300_NUM_BT_WEIGHTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR_BT_COEX_BT_WEIGHTS
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_8
LBB0_9:
	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
LBB0_10:
Lloh29:
	adrp	x8, _AR_BT_COEX_WEIGHT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR_BT_COEX_WEIGHT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_BTCOEX_CFG_MCI,8,3         ; @ATH_BTCOEX_CFG_MCI
	.comm	_AR_GPIO_OUTPUT_MUX_AS_OUTPUT,4,2 ; @AR_GPIO_OUTPUT_MUX_AS_OUTPUT
	.comm	_ATH_BTCOEX_CFG_3WIRE,8,3       ; @ATH_BTCOEX_CFG_3WIRE
	.comm	_AR_BT_COEX_MODE,4,2            ; @AR_BT_COEX_MODE
	.comm	_AR_BT_QUIET,4,2                ; @AR_BT_QUIET
	.comm	_AR_BT_MODE,4,2                 ; @AR_BT_MODE
	.comm	_AR_BT_COEX_MODE2,4,2           ; @AR_BT_COEX_MODE2
	.comm	_AR_BT_COEX_WL_WEIGHTS0,4,2     ; @AR_BT_COEX_WL_WEIGHTS0
	.comm	_AR_BT_COEX_WL_WEIGHTS1,4,2     ; @AR_BT_COEX_WL_WEIGHTS1
	.comm	_AR9300_NUM_BT_WEIGHTS,4,2      ; @AR9300_NUM_BT_WEIGHTS
	.comm	_AR_BT_COEX_WEIGHT,4,2          ; @AR_BT_COEX_WEIGHT
.subsections_via_symbols
