	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_get_tx_ant
_iwl_mvm_get_tx_ant:                    ## @iwl_mvm_get_tx_ant
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_iwl_mvm_bt_coex_is_shared_ant_avail
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movl	%r15d, %edi
	callq	_ieee80211_is_data
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movl	(%rax), %edi
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %edi
LBB0_7:
	callq	_BIT
	jmp	LBB0_8
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
LBB0_8:
	movq	_RATE_MCS_ANT_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_RATE_MCS_ANT_POS,4,2           ## @RATE_MCS_ANT_POS
	.no_dead_strip	_iwl_mvm_get_tx_ant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_get_tx_ant
_iwl_mvm_get_tx_ant:                    ; @iwl_mvm_get_tx_ant
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_iwl_mvm_bt_coex_is_shared_ant_avail
	cbz	w0, LBB0_7
LBB0_2:
	cbz	x19, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_ieee80211_is_data
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_iwl_mvm_sta_from_mac80211
	ldr	w0, [x0]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
LBB0_6:
	bl	_BIT
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
LBB0_8:
Lloh3:
	adrp	x8, _RATE_MCS_ANT_POS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RATE_MCS_ANT_POS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w0, w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_RATE_MCS_ANT_POS,4,2           ; @RATE_MCS_ANT_POS
	.no_dead_strip	_iwl_mvm_get_tx_ant
.subsections_via_symbols
