	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_set_bitrate_mask
_wl12xx_set_bitrate_mask:               ## @wl12xx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %r15
	movq	(%rbx), %r12
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	leaq	8(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_WLCORE_NUM_BANDS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wl1271_tx_enabled_rates_get
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	(%r15), %rax
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	_WLVIF_FLAG_STA_ASSOCIATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$16, %rsi
	callq	_test_bit
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_10
## %bb.7:
	movl	12(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wl1271_set_band_rate
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_wl1271_tx_min_rate_get
	movl	%eax, 12(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_wl1271_acx_sta_rate_policies
	movl	%eax, %ebx
	movl	12(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r12), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %ebx
	movl	12(%r12), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 set_bitrate_mask 0x%x 0x%x"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_WLCORE_NUM_BANDS,4,2           ## @WLCORE_NUM_BANDS
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_BSS_TYPE_STA_BSS,8,3           ## @BSS_TYPE_STA_BSS
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ## @WLVIF_FLAG_STA_ASSOCIATED
	.no_dead_strip	_wl12xx_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 wl12xx_set_bitrate_mask
_wl12xx_set_bitrate_mask:               ; @wl12xx_set_bitrate_mask
	.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	x22, x2
	mov	x19, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x21, x0
	ldr	x20, [x19]
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	w2, [x9, x10, lsl #2]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w3, [x9, x8, lsl #2]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh11:
	adrp	x24, _WLCORE_NUM_BANDS@GOTPAGE
Lloh12:
	ldr	x24, [x24, _WLCORE_NUM_BANDS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x25, x23, #2
	ldr	w1, [x8, x25]
	mov	x0, x20
	mov	x2, x23
	bl	_wl1271_tx_enabled_rates_get
	ldr	x8, [x21, #24]
	str	w0, [x8, x25]
	add	x23, x23, #1
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x21, #16
	bl	_test_bit
	cbz	w0, LBB0_8
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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_8:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	bl	_wl1271_set_band_rate
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_wl1271_tx_min_rate_get
	str	w0, [x21, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_wl1271_acx_sta_rate_policies
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_7
LBB0_10:
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_noidle
	b	LBB0_7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 set_bitrate_mask 0x%x 0x%x"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_WLCORE_NUM_BANDS,4,2           ; @WLCORE_NUM_BANDS
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_BSS_TYPE_STA_BSS,8,3           ; @BSS_TYPE_STA_BSS
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ; @WLVIF_FLAG_STA_ASSOCIATED
	.no_dead_strip	_wl12xx_set_bitrate_mask
.subsections_via_symbols
