	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_mci_bt_gain_ctrl        ## -- Begin function ar9003_mci_bt_gain_ctrl
	.p2align	4, 0x90
_ar9003_mci_bt_gain_ctrl:               ## @ar9003_mci_bt_gain_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	_MCI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_ath_dbg
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ar9003_mci_send_lna_take
	movl	$50, %edi
	callq	_udelay
	movq	_AR_PHY_GLB_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_SET_BIT
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ar9003_mci_send_2g5g_status
	movl	$1, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI,4,2                        ## @MCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Give LNA and SPDT control to BT\n"

	.comm	_AR_PHY_GLB_CONTROL,4,2         ## @AR_PHY_GLB_CONTROL
	.comm	_AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL,4,2 ## @AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_mci_bt_gain_ctrl        ; -- Begin function ar9003_mci_bt_gain_ctrl
	.p2align	2
_ar9003_mci_bt_gain_ctrl:               ; @ar9003_mci_bt_gain_ctrl
	.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
	bl	_ath9k_hw_common
Lloh0:
	adrp	x8, _MCI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_ar9003_mci_send_lna_take
	mov	w0, #50
	bl	_udelay
Lloh5:
	adrp	x8, _AR_PHY_GLB_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_GLB_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	mov	x8, #4294967296
	str	x8, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_ar9003_mci_send_2g5g_status
	str	w20, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI,4,2                        ; @MCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Give LNA and SPDT control to BT\n"

	.comm	_AR_PHY_GLB_CONTROL,4,2         ; @AR_PHY_GLB_CONTROL
	.comm	_AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL,4,2 ; @AR_BTCOEX_CTRL_BT_OWN_SPDT_CTRL
.subsections_via_symbols
