	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_vif_recalc_txbf
_ath10k_mac_vif_recalc_txbf:            ## @ath10k_mac_vif_recalc_txbf
	.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
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	callq	_ath10k_wmi_get_txbf_conf_scheme
	movq	_WMI_TXBF_CONF_AFTER_ASSOC@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%rcx), %eax
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, (%r15)
	je	LBB0_18
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	movq	_WMI_VDEV_PARAM_UNSUPPORTED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:
	movl	(%r15), %esi
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r13), %r8d
	movl	%r8d, %eax
	orl	%r9d, %eax
	movq	_IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%esi, %eax
	je	LBB0_4
## %bb.5:
	testl	%r12d, %edi
	je	LBB0_6
## %bb.7:
	movq	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	_IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r12d, %ecx
	je	LBB0_10
## %bb.9:
	movq	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rax
LBB0_10:
	orl	%edi, %ecx
	testl	%esi, %ecx
	je	LBB0_11
## %bb.12:
	xorl	%ecx, %ecx
	testl	%r12d, %r9d
	movq	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	cmovneq	%r13, %rcx
	orq	%rcx, %rax
	testl	%r12d, %r8d
	je	LBB0_14
## %bb.13:
	movq	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
LBB0_14:
	movq	%rbx, %rdx
	movq	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rax, %rcx
	je	LBB0_16
## %bb.15:
	movq	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_16:
	orq	%rax, %rcx
	movq	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%rcx, %rax
	cmoveq	%rax, %r13
	orq	%rcx, %r13
	movl	(%r10), %esi
	movq	%r15, %rdi
	movq	%r13, %rcx
	callq	_ath10k_wmi_vdev_set_param
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_ath10k_warn
	movl	%ebx, %r14d
LBB0_18:
	movl	%r14d, %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_AFTER_ASSOC,8,3  ## @WMI_TXBF_CONF_AFTER_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	_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_VDEV_PARAM_UNSUPPORTED,8,3 ## @WMI_VDEV_PARAM_UNSUPPORTED
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE,8,3 ## @WMI_VDEV_PARAM_TXBF_SU_TX_BFEE
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE,8,3 ## @WMI_VDEV_PARAM_TXBF_MU_TX_BFEE
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER,8,3 ## @WMI_VDEV_PARAM_TXBF_SU_TX_BFER
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER,8,3 ## @WMI_VDEV_PARAM_TXBF_MU_TX_BFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to submit vdev param txbf 0x%x: %d\n"

	.no_dead_strip	_ath10k_mac_vif_recalc_txbf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_vif_recalc_txbf
_ath10k_mac_vif_recalc_txbf:            ; @ath10k_mac_vif_recalc_txbf
	.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	x21, x2
	mov	x19, x0
	ldr	x22, [x1]
	bl	_ath10k_wmi_get_txbf_conf_scheme
Lloh0:
	adrp	x8, _WMI_TXBF_CONF_AFTER_ASSOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TXBF_CONF_AFTER_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x24, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE@GOTPAGEOFF]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
Lloh7:
	adrp	x26, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
	ldr	w10, [x26]
	orr	w9, w9, w10
Lloh9:
	adrp	x23, _IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
Lloh11:
	adrp	x8, _WMI_VDEV_PARAM_UNSUPPORTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_VDEV_PARAM_UNSUPPORTED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_5
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	ldr	w13, [x19]
	ldr	w12, [x24]
	ldr	w11, [x25]
	orr	w10, w11, w12
	ldr	w14, [x26]
Lloh14:
	adrp	x8, _WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WMI_VDEV_PARAM_TXBF_MU_TX_BFEE@GOTPAGEOFF]
Lloh16:
	adrp	x9, _WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WMI_VDEV_PARAM_TXBF_SU_TX_BFEE@GOTPAGEOFF]
	tst	w10, w13
	b.eq	LBB0_8
; %bb.6:
	ldr	x10, [x9]
	tst	w14, w21
	csel	x10, xzr, x10, eq
	ldr	w15, [x23]
	tst	w15, w21
	b.eq	LBB0_9
; %bb.7:
	ldr	x16, [x8]
	orr	x10, x16, x10
	b	LBB0_9
LBB0_8:
	mov	x10, #0
	ldr	w15, [x23]
LBB0_9:
	orr	w15, w15, w14
Lloh18:
	adrp	x14, _WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPAGE
Lloh19:
	ldr	x14, [x14, _WMI_VDEV_PARAM_TXBF_MU_TX_BFER@GOTPAGEOFF]
	tst	w15, w13
	b.eq	LBB0_12
; %bb.10:
Lloh20:
	adrp	x13, _WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPAGE
Lloh21:
	ldr	x13, [x13, _WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPAGEOFF]
Lloh22:
	ldr	x13, [x13]
	tst	w12, w21
	csel	x12, xzr, x13, eq
	orr	x10, x12, x10
	tst	w11, w21
	b.eq	LBB0_13
; %bb.11:
	ldr	x11, [x14]
	orr	x10, x11, x10
	b	LBB0_13
LBB0_12:
Lloh23:
	adrp	x11, _WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPAGE
Lloh24:
	ldr	x11, [x11, _WMI_VDEV_PARAM_TXBF_SU_TX_BFER@GOTPAGEOFF]
Lloh25:
	ldr	x13, [x11]
LBB0_13:
	ldr	x8, [x8]
	ldr	x9, [x9]
	tst	x8, x10
	csel	x8, xzr, x9, eq
	orr	x8, x8, x10
	ldr	x9, [x14]
	tst	x8, x9
	csel	x9, xzr, x13, eq
	orr	x21, x9, x8
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_ath10k_wmi_vdev_set_param
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.14:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_ath10k_warn
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_TXBF_CONF_AFTER_ASSOC,8,3  ; @WMI_TXBF_CONF_AFTER_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	_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_VDEV_PARAM_UNSUPPORTED,8,3 ; @WMI_VDEV_PARAM_UNSUPPORTED
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFEE,8,3 ; @WMI_VDEV_PARAM_TXBF_SU_TX_BFEE
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFEE,8,3 ; @WMI_VDEV_PARAM_TXBF_MU_TX_BFEE
	.comm	_WMI_VDEV_PARAM_TXBF_SU_TX_BFER,8,3 ; @WMI_VDEV_PARAM_TXBF_SU_TX_BFER
	.comm	_WMI_VDEV_PARAM_TXBF_MU_TX_BFER,8,3 ; @WMI_VDEV_PARAM_TXBF_MU_TX_BFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to submit vdev param txbf 0x%x: %d\n"

	.no_dead_strip	_ath10k_mac_vif_recalc_txbf
.subsections_via_symbols
