	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sta_rc_update
_ath10k_sta_rc_update:                  ## @ath10k_sta_rc_update
	.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	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	16(%rdx), %r15
	movq	(%rsi), %r14
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_ath10k_peer_find
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	12(%rbx), %r10d
	movl	8(%rbx), %eax
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_ath10k_dbg
	addq	$16, %rsp
	movq	_IEEE80211_RC_BW_CHANGED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.2:
	movl	4(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.ath10k_sta_rc_update(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_17:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
LBB0_3:
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_warn
	movq	_WMI_PEER_CHWIDTH_20MHZ@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	movq	_IEEE80211_RC_NSS_CHANGED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	12(%rbx), %eax
	movl	%eax, 16(%r15)
LBB0_8:
	movq	_IEEE80211_RC_SMPS_CHANGED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.9:
	movl	8(%rbx), %eax
	cmpl	$135, %eax
	je	LBB0_13
## %bb.10:
	movq	_WMI_PEER_SMPS_PS_NONE@GOTPCREL(%rip), %r14
	cmpl	$134, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$132, %eax
	jne	LBB0_15
## %bb.12:
	movq	_WMI_PEER_SMPS_STATIC@GOTPCREL(%rip), %r14
	jmp	LBB0_15
LBB0_13:
	movq	_WMI_PEER_SMPS_DYNAMIC@GOTPCREL(%rip), %r14
	jmp	LBB0_15
LBB0_14:
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	$134, %edx
	callq	_ath10k_warn
LBB0_15:
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
LBB0_16:
	orl	%r12d, 8(%r15)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	addq	$12, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_work           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac sta rc update failed to find peer %pM on vdev %i\n"

	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
L_.str.1:                               ## @.str.1
	.asciz	"mac sta rc update for %pM changed %08x bw %d nss %d smps %d\n"

	.comm	_IEEE80211_RC_BW_CHANGED,4,2    ## @IEEE80211_RC_BW_CHANGED
	.comm	_WMI_PEER_CHWIDTH_20MHZ,4,2     ## @WMI_PEER_CHWIDTH_20MHZ
	.comm	_WMI_PEER_CHWIDTH_40MHZ,4,2     ## @WMI_PEER_CHWIDTH_40MHZ
	.comm	_WMI_PEER_CHWIDTH_80MHZ,4,2     ## @WMI_PEER_CHWIDTH_80MHZ
	.comm	_WMI_PEER_CHWIDTH_160MHZ,4,2    ## @WMI_PEER_CHWIDTH_160MHZ
L_.str.2:                               ## @.str.2
	.asciz	"Invalid bandwidth %d in rc update for %pM\n"

	.comm	_IEEE80211_RC_NSS_CHANGED,4,2   ## @IEEE80211_RC_NSS_CHANGED
	.comm	_IEEE80211_RC_SMPS_CHANGED,4,2  ## @IEEE80211_RC_SMPS_CHANGED
	.comm	_WMI_PEER_SMPS_PS_NONE,4,2      ## @WMI_PEER_SMPS_PS_NONE
	.comm	_WMI_PEER_SMPS_STATIC,4,2       ## @WMI_PEER_SMPS_STATIC
	.comm	_WMI_PEER_SMPS_DYNAMIC,4,2      ## @WMI_PEER_SMPS_DYNAMIC
L_.str.3:                               ## @.str.3
	.asciz	"Invalid smps %d in sta rc update for %pM\n"

	.no_dead_strip	_ath10k_sta_rc_update
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ath10k_sta_rc_update
l_switch.table.ath10k_sta_rc_update:
	.quad	_WMI_PEER_CHWIDTH_80MHZ
	.quad	_WMI_PEER_CHWIDTH_40MHZ
	.quad	_WMI_PEER_CHWIDTH_20MHZ
	.quad	_WMI_PEER_CHWIDTH_160MHZ

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sta_rc_update
_ath10k_sta_rc_update:                  ; @ath10k_sta_rc_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x23, [x2, #16]
	ldr	x24, [x1]
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w1, [x24]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ath10k_peer_find
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w5, [x22]
	ldp	w7, w6, [x22, #8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_ath10k_dbg
Lloh5:
	adrp	x8, _IEEE80211_RC_BW_CHANGED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_RC_BW_CHANGED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.2:
	ldr	w2, [x22, #4]
	sub	w8, w2, #128
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
Lloh8:
	adrp	x9, l_switch.table.ath10k_sta_rc_update@PAGE
Lloh9:
	add	x9, x9, l_switch.table.ath10k_sta_rc_update@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w2, [x22]
	ldr	w3, [x24]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ath10k_warn
LBB0_5:
	ldr	w3, [x22]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh14:
	adrp	x8, _WMI_PEER_CHWIDTH_20MHZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WMI_PEER_CHWIDTH_20MHZ@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x23]
LBB0_7:
Lloh16:
	adrp	x8, _IEEE80211_RC_NSS_CHANGED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_RC_NSS_CHANGED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x22, #12]
	str	w8, [x23, #16]
LBB0_9:
Lloh19:
	adrp	x8, _IEEE80211_RC_SMPS_CHANGED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IEEE80211_RC_SMPS_CHANGED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.10:
	ldr	w8, [x22, #8]
	cmp	w8, #135
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #134
	b.eq	LBB0_14
; %bb.12:
Lloh22:
	adrp	x9, _WMI_PEER_SMPS_PS_NONE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WMI_PEER_SMPS_PS_NONE@GOTPAGEOFF]
	cmp	w8, #132
Lloh24:
	adrp	x8, _WMI_PEER_SMPS_STATIC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WMI_PEER_SMPS_STATIC@GOTPAGEOFF]
	csel	x8, x9, x8, ne
	b	LBB0_15
LBB0_13:
Lloh26:
	adrp	x8, _WMI_PEER_SMPS_DYNAMIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WMI_PEER_SMPS_DYNAMIC@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	ldr	w3, [x22]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #134
	bl	_ath10k_warn
Lloh30:
	adrp	x8, _WMI_PEER_SMPS_PS_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WMI_PEER_SMPS_PS_NONE@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	str	w8, [x23, #4]
LBB0_16:
	ldr	w8, [x23, #8]
	orr	w8, w8, w21
	str	w8, [x23, #8]
	mov	x0, x19
	bl	_spin_unlock_bh
	add	x1, x23, #12
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ieee80211_queue_work
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac sta rc update failed to find peer %pM on vdev %i\n"

	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
l_.str.1:                               ; @.str.1
	.asciz	"mac sta rc update for %pM changed %08x bw %d nss %d smps %d\n"

	.comm	_IEEE80211_RC_BW_CHANGED,4,2    ; @IEEE80211_RC_BW_CHANGED
	.comm	_WMI_PEER_CHWIDTH_20MHZ,4,2     ; @WMI_PEER_CHWIDTH_20MHZ
	.comm	_WMI_PEER_CHWIDTH_40MHZ,4,2     ; @WMI_PEER_CHWIDTH_40MHZ
	.comm	_WMI_PEER_CHWIDTH_80MHZ,4,2     ; @WMI_PEER_CHWIDTH_80MHZ
	.comm	_WMI_PEER_CHWIDTH_160MHZ,4,2    ; @WMI_PEER_CHWIDTH_160MHZ
l_.str.2:                               ; @.str.2
	.asciz	"Invalid bandwidth %d in rc update for %pM\n"

	.comm	_IEEE80211_RC_NSS_CHANGED,4,2   ; @IEEE80211_RC_NSS_CHANGED
	.comm	_IEEE80211_RC_SMPS_CHANGED,4,2  ; @IEEE80211_RC_SMPS_CHANGED
	.comm	_WMI_PEER_SMPS_PS_NONE,4,2      ; @WMI_PEER_SMPS_PS_NONE
	.comm	_WMI_PEER_SMPS_STATIC,4,2       ; @WMI_PEER_SMPS_STATIC
	.comm	_WMI_PEER_SMPS_DYNAMIC,4,2      ; @WMI_PEER_SMPS_DYNAMIC
l_.str.3:                               ; @.str.3
	.asciz	"Invalid smps %d in sta rc update for %pM\n"

	.no_dead_strip	_ath10k_sta_rc_update
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ath10k_sta_rc_update
l_switch.table.ath10k_sta_rc_update:
	.quad	_WMI_PEER_CHWIDTH_80MHZ
	.quad	_WMI_PEER_CHWIDTH_40MHZ
	.quad	_WMI_PEER_CHWIDTH_20MHZ
	.quad	_WMI_PEER_CHWIDTH_160MHZ

.subsections_via_symbols
