	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_btcoex_init_3wire     ## -- Begin function ath9k_hw_btcoex_init_3wire
	.p2align	4, 0x90
_ath9k_hw_btcoex_init_3wire:            ## @ath9k_hw_btcoex_init_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_AR_GPIO_INPUT_EN_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB@GOTPCREL(%rip), %rax
	movq	_AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_REG_SET_BIT
	movq	%rbx, %rdi
	callq	_AR_SREV_SOC
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AR_GPIO_INPUT_MUX1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_GPIO_INPUT_MUX1_BT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_GPIO_INPUT_MUX1_BT_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_REG_RMW_FIELD
LBB0_2:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath9k_hw_gpio_request_in
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath9k_hw_gpio_request_in       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_GPIO_INPUT_EN_VAL,4,2       ## @AR_GPIO_INPUT_EN_VAL
	.comm	_AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB,4,2 ## @AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB
	.comm	_AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB,4,2 ## @AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB
	.comm	_AR_GPIO_INPUT_MUX1,4,2         ## @AR_GPIO_INPUT_MUX1
	.comm	_AR_GPIO_INPUT_MUX1_BT_ACTIVE,4,2 ## @AR_GPIO_INPUT_MUX1_BT_ACTIVE
	.comm	_AR_GPIO_INPUT_MUX1_BT_PRIORITY,4,2 ## @AR_GPIO_INPUT_MUX1_BT_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath9k-btactive"

L_.str.1:                               ## @.str.1
	.asciz	"ath9k-btpriority"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_btcoex_init_3wire     ; -- Begin function ath9k_hw_btcoex_init_3wire
	.p2align	2
_ath9k_hw_btcoex_init_3wire:            ; @ath9k_hw_btcoex_init_3wire
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AR_GPIO_INPUT_EN_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_GPIO_INPUT_EN_VAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_REG_SET_BIT
	mov	x0, x19
	bl	_AR_SREV_SOC
	cbnz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x20, _AR_GPIO_INPUT_MUX1@GOTPAGE
Lloh10:
	ldr	x20, [x20, _AR_GPIO_INPUT_MUX1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _AR_GPIO_INPUT_MUX1_BT_ACTIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_GPIO_INPUT_MUX1_BT_ACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _AR_GPIO_INPUT_MUX1_BT_PRIORITY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_GPIO_INPUT_MUX1_BT_PRIORITY@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x19
	bl	_REG_RMW_FIELD
LBB0_2:
	ldr	w1, [x19, #4]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath9k_hw_gpio_request_in
	ldr	w1, [x19]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath9k_hw_gpio_request_in
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_GPIO_INPUT_EN_VAL,4,2       ; @AR_GPIO_INPUT_EN_VAL
	.comm	_AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB,4,2 ; @AR_GPIO_INPUT_EN_VAL_BT_PRIORITY_BB
	.comm	_AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB,4,2 ; @AR_GPIO_INPUT_EN_VAL_BT_ACTIVE_BB
	.comm	_AR_GPIO_INPUT_MUX1,4,2         ; @AR_GPIO_INPUT_MUX1
	.comm	_AR_GPIO_INPUT_MUX1_BT_ACTIVE,4,2 ; @AR_GPIO_INPUT_MUX1_BT_ACTIVE
	.comm	_AR_GPIO_INPUT_MUX1_BT_PRIORITY,4,2 ; @AR_GPIO_INPUT_MUX1_BT_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath9k-btactive"

l_.str.1:                               ; @.str.1
	.asciz	"ath9k-btpriority"

.subsections_via_symbols
