	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_set_btcoex_ctrl_9565_2ANT
_ar9003_mci_set_btcoex_ctrl_9565_2ANT:  ## @ar9003_mci_set_btcoex_ctrl_9565_2ANT
	.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
	movq	_AR_BTCOEX_CTRL_AR9462_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_SM
	movl	%eax, %ebx
	movq	_AR_BTCOEX_CTRL_WBTIMER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_SM
	orl	%eax, %ebx
	movq	_AR_BTCOEX_CTRL_PA_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	movl	%eax, %r15d
	movq	_AR_BTCOEX_CTRL_LNA_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_AR_BTCOEX_CTRL_NUM_ANTENNAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_SM
	movl	%eax, %ebx
	movq	_AR_BTCOEX_CTRL_RX_CHAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_SM
	orl	%eax, %ebx
	movq	_AR_BTCOEX_CTRL_1_CHAIN_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_AR_BTCOEX_CTRL_1_CHAIN_BCN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	movl	%eax, %r15d
	movq	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_AR_BTCOEX_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_BTCOEX_CTRL2_TX_CHAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_BTCOEX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_BTCOEX_CTRL_AR9462_MODE,4,2 ## @AR_BTCOEX_CTRL_AR9462_MODE
	.comm	_AR_BTCOEX_CTRL_WBTIMER_EN,4,2  ## @AR_BTCOEX_CTRL_WBTIMER_EN
	.comm	_AR_BTCOEX_CTRL_PA_SHARED,4,2   ## @AR_BTCOEX_CTRL_PA_SHARED
	.comm	_AR_BTCOEX_CTRL_LNA_SHARED,4,2  ## @AR_BTCOEX_CTRL_LNA_SHARED
	.comm	_AR_BTCOEX_CTRL_NUM_ANTENNAS,4,2 ## @AR_BTCOEX_CTRL_NUM_ANTENNAS
	.comm	_AR_BTCOEX_CTRL_RX_CHAIN_MASK,4,2 ## @AR_BTCOEX_CTRL_RX_CHAIN_MASK
	.comm	_AR_BTCOEX_CTRL_1_CHAIN_ACK,4,2 ## @AR_BTCOEX_CTRL_1_CHAIN_ACK
	.comm	_AR_BTCOEX_CTRL_1_CHAIN_BCN,4,2 ## @AR_BTCOEX_CTRL_1_CHAIN_BCN
	.comm	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN,4,2 ## @AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN
	.comm	_AR_BTCOEX_CTRL2,4,2            ## @AR_BTCOEX_CTRL2
	.comm	_AR_BTCOEX_CTRL2_TX_CHAIN_MASK,4,2 ## @AR_BTCOEX_CTRL2_TX_CHAIN_MASK
	.comm	_AR_BTCOEX_CTRL,4,2             ## @AR_BTCOEX_CTRL
	.no_dead_strip	_ar9003_mci_set_btcoex_ctrl_9565_2ANT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_mci_set_btcoex_ctrl_9565_2ANT
_ar9003_mci_set_btcoex_ctrl_9565_2ANT:  ; @ar9003_mci_set_btcoex_ctrl_9565_2ANT
	.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_BTCOEX_CTRL_AR9462_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_AR9462_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_SM
	mov	x20, x0
Lloh3:
	adrp	x8, _AR_BTCOEX_CTRL_WBTIMER_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_WBTIMER_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_SM
	orr	w20, w0, w20
Lloh6:
	adrp	x8, _AR_BTCOEX_CTRL_PA_SHARED@GOTPA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_EN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_SM
	orr	w20, w20, w0
Lloh27:
	adrp	x8, _AR_BTCOEX_CTRL2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR_BTCOEX_CTRL2@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _AR_BTCOEX_CTRL2_TX_CHAIN_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_BTCOEX_CTRL2_TX_CHAIN_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_REG_RMW_FIELD
Lloh33:
	adrp	x8, _AR_BTCOEX_CTRL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_BTCOEX_CTRL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_BTCOEX_CTRL_AR9462_MODE,4,2 ; @AR_BTCOEX_CTRL_AR9462_MODE
	.comm	_AR_BTCOEX_CTRL_WBTIMER_EN,4,2  ; @AR_BTCOEX_CTRL_WBTIMER_EN
	.comm	_AR_BTCOEX_CTRL_PA_SHARED,4,2   ; @AR_BTCOEX_CTRL_PA_SHARED
	.comm	_AR_BTCOEX_CTRL_LNA_SHARED,4,2  ; @AR_BTCOEX_CTRL_LNA_SHARED
	.comm	_AR_BTCOEX_CTRL_NUM_ANTENNAS,4,2 ; @AR_BTCOEX_CTRL_NUM_ANTENNAS
	.comm	_AR_BTCOEX_CTRL_RX_CHAIN_MASK,4,2 ; @AR_BTCOEX_CTRL_RX_CHAIN_MASK
	.comm	_AR_BTCOEX_CTRL_1_CHAIN_ACK,4,2 ; @AR_BTCOEX_CTRL_1_CHAIN_ACK
	.comm	_AR_BTCOEX_CTRL_1_CHAIN_BCN,4,2 ; @AR_BTCOEX_CTRL_1_CHAIN_BCN
	.comm	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN,4,2 ; @AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN
	.comm	_AR_BTCOEX_CTRL2,4,2            ; @AR_BTCOEX_CTRL2
	.comm	_AR_BTCOEX_CTRL2_TX_CHAIN_MASK,4,2 ; @AR_BTCOEX_CTRL2_TX_CHAIN_MASK
	.comm	_AR_BTCOEX_CTRL,4,2             ; @AR_BTCOEX_CTRL
	.no_dead_strip	_ar9003_mci_set_btcoex_ctrl_9565_2ANT
.subsections_via_symbols
