	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_btcoex_enable_3wire
_ath9k_hw_btcoex_enable_3wire:          ## @ath9k_hw_btcoex_enable_3wire
	.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
	callq	_AR_SREV_SOC
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AR_BT_COEX_MODE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_BT_PHY_ERR_BT_COLL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_CLR_BIT
LBB0_2:
	movq	_AR_BT_COEX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	_AR_BT_COEX_MODE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	%r14, %rdi
	callq	_AR_SREV_SOC
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AR_BT_COEX_MODE3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
LBB0_4:
	movq	%r14, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_AR_BT_COEX_WL_WEIGHTS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	_AR_BT_COEX_WL_WEIGHTS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	_AR9300_NUM_BT_WEIGHTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR_BT_COEX_BT_WEIGHTS
	movq	24(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_WRITE
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movq	_AR_BT_COEX_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14), %edx
	movq	%r14, %rdi
	callq	_REG_WRITE
LBB0_9:
	movq	%r14, %rdi
	callq	_AR_SREV_9271
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$327744, %esi                   ## imm = 0x50040
	callq	_REG_READ
	andl	$-257, %eax                     ## imm = 0xFEFF
	movq	%r14, %rdi
	movl	$327744, %esi                   ## imm = 0x50040
	movl	%eax, %edx
	callq	_REG_WRITE
LBB0_11:
	movq	_AR_QUIET1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_QUIET1_QUIET_ACK_CTS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PCU_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PCU_BT_ANT_PREVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movl	36(%r14), %esi
	movq	_AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_gpio_request_out      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_BT_COEX_MODE2,4,2           ## @AR_BT_COEX_MODE2
	.comm	_AR_BT_PHY_ERR_BT_COLL_ENABLE,4,2 ## @AR_BT_PHY_ERR_BT_COLL_ENABLE
	.comm	_AR_BT_COEX_MODE,4,2            ## @AR_BT_COEX_MODE
	.comm	_AR_BT_COEX_MODE3,4,2           ## @AR_BT_COEX_MODE3
	.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
	.comm	_AR_QUIET1,4,2                  ## @AR_QUIET1
	.comm	_AR_QUIET1_QUIET_ACK_CTS_ENABLE,4,2 ## @AR_QUIET1_QUIET_ACK_CTS_ENABLE
	.comm	_AR_PCU_MISC,4,2                ## @AR_PCU_MISC
	.comm	_AR_PCU_BT_ANT_PREVENT_RX,4,2   ## @AR_PCU_BT_ANT_PREVENT_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath9k-wlanactive"

	.comm	_AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL,4,2 ## @AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL
	.no_dead_strip	_ath9k_hw_btcoex_enable_3wire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_btcoex_enable_3wire
_ath9k_hw_btcoex_enable_3wire:          ; @ath9k_hw_btcoex_enable_3wire
	.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
	bl	_AR_SREV_SOC
Lloh0:
	adrp	x20, _AR_BT_COEX_MODE2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR_BT_COEX_MODE2@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _AR_BT_PHY_ERR_BT_COLL_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_BT_PHY_ERR_BT_COLL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
LBB0_2:
Lloh5:
	adrp	x8, _AR_BT_COEX_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_BT_COEX_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_REG_WRITE
	ldr	w1, [x20]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_SREV_SOC
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _AR_BT_COEX_MODE3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_BT_COEX_MODE3@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_REG_WRITE
LBB0_4:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _AR_BT_COEX_WL_WEIGHTS0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_BT_COEX_WL_WEIGHTS0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
Lloh14:
	adrp	x8, _AR_BT_COEX_WL_WEIGHTS1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_BT_COEX_WL_WEIGHTS1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_REG_WRITE
Lloh17:
	adrp	x21, _AR9300_NUM_BT_WEIGHTS@GOTPAGE
Lloh18:
	ldr	x21, [x21, _AR9300_NUM_BT_WEIGHTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR_BT_COEX_BT_WEIGHTS
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_REG_WRITE
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_7
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _AR_BT_COEX_WEIGHT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_BT_COEX_WEIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_REG_WRITE
LBB0_9:
	mov	x0, x19
	bl	_AR_SREV_9271
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #64
	movk	w1, #5, lsl #16
	bl	_REG_READ
	and	w2, w0, #0xfffffeff
	mov	x0, x19
	mov	w1, #64
	movk	w1, #5, lsl #16
	bl	_REG_WRITE
LBB0_11:
Lloh22:
	adrp	x8, _AR_QUIET1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR_QUIET1@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _AR_QUIET1_QUIET_ACK_CTS_ENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AR_QUIET1_QUIET_ACK_CTS_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
Lloh28:
	adrp	x8, _AR_PCU_MISC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AR_PCU_MISC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _AR_PCU_BT_ANT_PREVENT_RX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AR_PCU_BT_ANT_PREVENT_RX@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
	ldr	w1, [x19, #36]
Lloh34:
	adrp	x8, _AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x2, l_.str@PAGE
Lloh38:
	add	x2, x2, l_.str@PAGEOFF
	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_gpio_request_out
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_BT_COEX_MODE2,4,2           ; @AR_BT_COEX_MODE2
	.comm	_AR_BT_PHY_ERR_BT_COLL_ENABLE,4,2 ; @AR_BT_PHY_ERR_BT_COLL_ENABLE
	.comm	_AR_BT_COEX_MODE,4,2            ; @AR_BT_COEX_MODE
	.comm	_AR_BT_COEX_MODE3,4,2           ; @AR_BT_COEX_MODE3
	.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
	.comm	_AR_QUIET1,4,2                  ; @AR_QUIET1
	.comm	_AR_QUIET1_QUIET_ACK_CTS_ENABLE,4,2 ; @AR_QUIET1_QUIET_ACK_CTS_ENABLE
	.comm	_AR_PCU_MISC,4,2                ; @AR_PCU_MISC
	.comm	_AR_PCU_BT_ANT_PREVENT_RX,4,2   ; @AR_PCU_BT_ANT_PREVENT_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath9k-wlanactive"

	.comm	_AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL,4,2 ; @AR_GPIO_OUTPUT_MUX_AS_RX_CLEAR_EXTERNAL
	.no_dead_strip	_ath9k_hw_btcoex_enable_3wire
.subsections_via_symbols
