	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_op_set_bitrate_mask
_ath10k_mac_op_set_bitrate_mask:        ## @ath10k_mac_op_set_bitrate_mask
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rdi
	movq	(%rsi), %r14
	movq	24(%r14), %r13
	leaq	-128(%rbp), %rsi
	callq	_ath10k_mac_vif_chan
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	-128(%rbp), %rax
	movl	(%rax), %ecx
	movq	(%r12), %rax
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %r15
	movq	_WMI_HT_CAP_LDPC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r13)
	setne	%bl
	movq	_NL80211_TXRATE_FORCE_LGI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r15
	jne	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	16(%rax,%rcx,8), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_ATH10K_FW_FEATURE_PEER_FIXED_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r13), %esi
	callq	_test_bit
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%r13), %edi
	movq	_ath10k_mac_clr_bitrate_mask_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ieee80211_iterate_stations_atomic
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_7:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ath10k_mac_bitrate_mask_has_single_rate
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	-96(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	callq	_ath10k_mac_bitrate_mask_get_single_rate
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movl	%eax, %ebx
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %ecx
	callq	_ath10k_warn
	jmp	LBB0_21
LBB0_10:
	leaq	-76(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ath10k_mac_bitrate_mask_get_single_nss
	movq	_WMI_FIXED_RATE_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -96(%rbp)
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movslq	-76(%rbp), %rax
	movq	%rax, -64(%rbp)
	jmp	LBB0_18
LBB0_12:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_ath10k_mac_max_ht_nss
	movl	%eax, %r15d
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_ath10k_mac_max_vht_nss
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_max
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_min
	movq	%rax, -64(%rbp)
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_ath10k_mac_can_set_bitrate_mask
	testl	%eax, %eax
	je	LBB0_13
## %bb.16:
	movq	$0, -88(%rbp)
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.14:
	cmpl	$1, -48(%rbp)
	jne	LBB0_4
## %bb.15:
	leaq	-88(%rbp), %rcx
	leaq	-136(%rbp), %r8
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	$1, %r9d
	callq	_ath10k_mac_bitrate_mask_get_single_rate
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-88(%rbp), %rax
LBB0_17:
	movl	-48(%rbp), %ecx
	movl	%ecx, (%r14)
	movq	%rax, 8(%r14)
	movl	8(%r13), %edi
	movq	_ath10k_mac_set_bitrate_mask_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ieee80211_iterate_stations_atomic
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	xorl	%ebx, %ebx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	-96(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_ath10k_mac_set_fixed_rate_params
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_ath10k_warn
LBB0_20:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_WMI_HT_CAP_LDPC,4,2            ## @WMI_HT_CAP_LDPC
	.comm	_NL80211_TXRATE_FORCE_LGI,8,3   ## @NL80211_TXRATE_FORCE_LGI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH10K_FW_FEATURE_PEER_FIXED_RATE,4,2 ## @ATH10K_FW_FEATURE_PEER_FIXED_RATE
	.comm	_ath10k_mac_clr_bitrate_mask_iter,4,2 ## @ath10k_mac_clr_bitrate_mask_iter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get single rate for vdev %i: %d\n"

	.comm	_WMI_FIXED_RATE_NONE,8,3        ## @WMI_FIXED_RATE_NONE
	.comm	_ath10k_mac_set_bitrate_mask_iter,4,2 ## @ath10k_mac_set_bitrate_mask_iter
L_.str.1:                               ## @.str.1
	.asciz	"failed to set fixed rate params on vdev %i: %d\n"

	.no_dead_strip	_ath10k_mac_op_set_bitrate_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_op_set_bitrate_mask
_ath10k_mac_op_set_bitrate_mask:        ; @ath10k_mac_op_set_bitrate_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x0, x1
	ldr	x20, [x1]
	ldr	x19, [x20, #24]
	add	x1, sp, #40
	bl	_ath10k_mac_vif_chan
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [sp, #40]
	ldr	w24, [x8]
	ldr	x8, [x23]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	w9, [x19]
Lloh2:
	adrp	x10, _WMI_HT_CAP_LDPC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WMI_HT_CAP_LDPC@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w21, ne
	ldr	x22, [x8, #8]
Lloh5:
	adrp	x9, _NL80211_TXRATE_FORCE_LGI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_TXRATE_FORCE_LGI@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x22, x9
	b.ne	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	ldr	x27, [x8]
	ldr	x26, [x8, #16]
Lloh10:
	adrp	x8, _ATH10K_FW_FEATURE_PEER_FIXED_RATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH10K_FW_FEATURE_PEER_FIXED_RATE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_test_bit
	mov	x25, x0
	cbz	w0, LBB0_8
; %bb.7:
	add	x28, x19, #4
	mov	x0, x28
	bl	_mutex_lock
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x8, _ath10k_mac_clr_bitrate_mask_iter@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ath10k_mac_clr_bitrate_mask_iter@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ieee80211_iterate_stations_atomic
	mov	x0, x28
	bl	_mutex_unlock
LBB0_8:
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_ath10k_mac_bitrate_mask_has_single_rate
	cbz	x0, LBB0_11
; %bb.9:
	add	x3, sp, #32
	add	x4, sp, #24
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	w5, #0
	bl	_ath10k_mac_bitrate_mask_get_single_rate
	cbz	w0, LBB0_18
; %bb.10:
	mov	x23, x0
	ldr	w2, [x20, #4]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_ath10k_warn
	b	LBB0_5
LBB0_11:
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_ath10k_mac_bitrate_mask_get_single_nss
Lloh18:
	adrp	x8, _WMI_FIXED_RATE_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WMI_FIXED_RATE_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	cbz	x0, LBB0_13
; %bb.12:
	ldrsw	x8, [sp, #20]
	str	x8, [sp, #24]
	b	LBB0_18
LBB0_13:
	ldr	w28, [x19, #12]
	mov	x0, x27
	bl	_ath10k_mac_max_ht_nss
	mov	x27, x0
	mov	x0, x26
	bl	_ath10k_mac_max_vht_nss
	mov	x1, x0
	mov	x0, x27
	bl	_max
	mov	x1, x0
	mov	x0, x28
	bl	_min
	str	x0, [sp, #24]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	bl	_ath10k_mac_can_set_bitrate_mask
	cbz	w0, LBB0_15
; %bb.14:
	str	xzr, [sp, #8]
	add	x24, x19, #4
	mov	x0, x24
	bl	_mutex_lock
	mov	x8, #0
	ldr	x9, [x23]
	str	x9, [x20, #16]
	b	LBB0_17
LBB0_15:
	ldr	w8, [sp, #16]
	cmp	w25, #0
	ccmp	w8, #1, #0, ne
	b.ne	LBB0_3
; %bb.16:
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	w5, #1
	bl	_ath10k_mac_bitrate_mask_get_single_rate
	add	x24, x19, #4
	mov	x0, x24
	bl	_mutex_lock
	ldr	x8, [sp, #8]
LBB0_17:
	ldr	w9, [sp, #16]
	str	w9, [x20]
	str	x8, [x20, #8]
	ldr	w0, [x19, #8]
Lloh21:
	adrp	x8, _ath10k_mac_set_bitrate_mask_iter@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ath10k_mac_set_bitrate_mask_iter@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ieee80211_iterate_stations_atomic
	mov	x0, x24
	bl	_mutex_unlock
LBB0_18:
	add	x24, x19, #4
	mov	x0, x24
	bl	_mutex_lock
	ldp	x2, x1, [sp, #24]
	mov	x0, x20
	mov	x3, x22
	mov	x4, x21
	bl	_ath10k_mac_set_fixed_rate_params
	mov	x23, x0
	cbz	w0, LBB0_20
; %bb.19:
	ldr	w2, [x20, #4]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_ath10k_warn
LBB0_20:
	mov	x0, x24
	bl	_mutex_unlock
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_WMI_HT_CAP_LDPC,4,2            ; @WMI_HT_CAP_LDPC
	.comm	_NL80211_TXRATE_FORCE_LGI,8,3   ; @NL80211_TXRATE_FORCE_LGI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH10K_FW_FEATURE_PEER_FIXED_RATE,4,2 ; @ATH10K_FW_FEATURE_PEER_FIXED_RATE
	.comm	_ath10k_mac_clr_bitrate_mask_iter,4,2 ; @ath10k_mac_clr_bitrate_mask_iter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get single rate for vdev %i: %d\n"

	.comm	_WMI_FIXED_RATE_NONE,8,3        ; @WMI_FIXED_RATE_NONE
	.comm	_ath10k_mac_set_bitrate_mask_iter,4,2 ; @ath10k_mac_set_bitrate_mask_iter
l_.str.1:                               ; @.str.1
	.asciz	"failed to set fixed rate params on vdev %i: %d\n"

	.no_dead_strip	_ath10k_mac_op_set_bitrate_mask
.subsections_via_symbols
