	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_set_txbf_conf
_ath10k_mac_set_txbf_conf:              ## @ath10k_mac_set_txbf_conf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ath10k_wmi_get_txbf_conf_scheme
	movq	_WMI_TXBF_CONF_BEFORE_ASSOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath10k_mac_get_vht_cap_bf_sts
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.3:
	movq	_WMI_TXBF_STS_CAP_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_SM
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_2:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%rbx, %rdi
	callq	_ath10k_mac_get_vht_cap_bf_sound_dim
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %r13
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_WMI_BF_SOUND_DIM_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_SM
	orl	%eax, %r15d
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %eax
	movl	(%r13), %ecx
	andl	%eax, %ecx
	movq	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovnel	%edx, %ecx
	movl	(%r12), %esi
	andl	%eax, %esi
	movq	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPCREL(%rip), %rdi
	orl	(%rdi), %edx
	testl	%esi, %esi
	cmovel	%ecx, %edx
	orl	%r15d, %edx
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %esi
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rdi
	andl	(%rdi), %eax
	movq	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	testl	%eax, %eax
	cmovel	%esi, %ecx
	orl	%edx, %ecx
	movl	(%r14), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_wmi_vdev_set_param      ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_TXBF_CONF_BEFORE_ASSOC,8,3 ## @WMI_TXBF_CONF_BEFORE_ASSOC
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE
	.comm	_WMI_TXBF_STS_CAP_OFFSET,4,2    ## @WMI_TXBF_STS_CAP_OFFSET
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE,4,2 ## @IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE
	.comm	_WMI_BF_SOUND_DIM_OFFSET,4,2    ## @WMI_BF_SOUND_DIM_OFFSET
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER,4,2 ## @WMI_VDEV_PARAM_TXBF_SU_TX_BFER
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER,4,2 ## @WMI_VDEV_PARAM_TXBF_MU_TX_BFER
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE,4,2 ## @WMI_VDEV_PARAM_TXBF_SU_TX_BFEE
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE,4,2 ## @WMI_VDEV_PARAM_TXBF_MU_TX_BFEE
	.no_dead_strip	_ath10k_mac_set_txbf_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_set_txbf_conf
_ath10k_mac_set_txbf_conf:              ; @ath10k_mac_set_txbf_conf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_ath10k_wmi_get_txbf_conf_scheme
Lloh0:
	adrp	x8, _WMI_TXBF_CONF_BEFORE_ASSOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TXBF_CONF_BEFORE_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_ath10k_mac_get_vht_cap_bf_sts
	ldr	w8, [x19]
Lloh3:
	adrp	x23, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh5:
	adrp	x22, _IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _WMI_TXBF_STS_CAP_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WMI_TXBF_STS_CAP_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_SM
	mov	x21, x0
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x19
	bl	_ath10k_mac_get_vht_cap_bf_sound_dim
	ldr	w8, [x19]
Lloh10:
	adrp	x25, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh12:
	adrp	x24, _IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
	ldr	w10, [x24]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _WMI_BF_SOUND_DIM_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WMI_BF_SOUND_DIM_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w0, w21
LBB0_6:
	cbz	w21, LBB0_8
; %bb.7:
	ldr	w8, [x19]
	ldr	w9, [x25]
Lloh17:
	adrp	x10, _WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	ldr	w11, [x24]
Lloh20:
	adrp	x12, _WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPAGE
Lloh21:
	ldr	x12, [x12, _WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	orr	w10, w12, w10
	tst	w11, w8
	csel	w9, w9, w10, eq
	orr	w9, w9, w21
	ldr	w10, [x23]
Lloh23:
	adrp	x11, _WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPAGE
Lloh24:
	ldr	x11, [x11, _WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	ldr	w12, [x22]
Lloh26:
	adrp	x13, _WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPAGE
Lloh27:
	ldr	x13, [x13, _WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPAGEOFF]
Lloh28:
	ldr	w13, [x13]
	orr	w11, w13, w11
	tst	w12, w8
	csel	w8, w10, w11, eq
	orr	w3, w9, w8
	ldr	w1, [x20]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath10k_wmi_vdev_set_param
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_TXBF_CONF_BEFORE_ASSOC,8,3 ; @WMI_TXBF_CONF_BEFORE_ASSOC
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE
	.comm	_WMI_TXBF_STS_CAP_OFFSET,4,2    ; @WMI_TXBF_STS_CAP_OFFSET
	.comm	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE
	.comm	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE,4,2 ; @IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE
	.comm	_WMI_BF_SOUND_DIM_OFFSET,4,2    ; @WMI_BF_SOUND_DIM_OFFSET
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER,4,2 ; @WMI_VDEV_PARAM_TXBF_SU_TX_BFER
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER,4,2 ; @WMI_VDEV_PARAM_TXBF_MU_TX_BFER
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE,4,2 ; @WMI_VDEV_PARAM_TXBF_SU_TX_BFEE
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE,4,2 ; @WMI_VDEV_PARAM_TXBF_MU_TX_BFEE
	.no_dead_strip	_ath10k_mac_set_txbf_conf
.subsections_via_symbols
