	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_update_sta_tx_rate
_ap_update_sta_tx_rate:                 ## @ap_update_sta_tx_rate
	.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	%rsi, %r15
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	(%rax), %r12
	movq	8(%r13), %r14
	movq	40(%r13), %rax
	incl	(%rax,%r14,4)
	movq	16(%r13), %rax
	incq	%rax
	movq	%rax, 16(%r13)
	movq	$0, 32(%r13)
	movq	_WLAN_RATE_UPDATE_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
## %bb.1:
	movslq	24(%r13), %rax
	cmpq	%rax, %r14
	jae	LBB0_12
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r14d, %eax
	jle	LBB0_6
## %bb.3:
	movslq	%r14d, %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_ap_tx_rate_ok
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	leal	-1(%rbx), %eax
	cmpl	24(%r13), %eax
	jl	LBB0_4
LBB0_6:
	movq	8(%r13), %rbx
	jmp	LBB0_7
LBB0_13:
	movq	%rbx, 8(%r13)
LBB0_7:
	movslq	%r14d, %rax
	cmpq	%rbx, %rax
	je	LBB0_11
## %bb.8:
	xorl	%r8d, %r8d
	cmpq	$3, %rbx
	ja	LBB0_10
## %bb.9:
	leaq	L_switch.table.ap_update_sta_tx_rate(%rip), %rax
	movl	(%rax,%rbx,4), %r8d
LBB0_10:
	movl	%r8d, (%r13)
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	28(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
LBB0_11:
	movq	$0, 16(%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_RATE_UPDATE_COUNT,8,3     ## @WLAN_RATE_UPDATE_COUNT
	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: STA %pM TX rate raised to %d\n"

	.no_dead_strip	_ap_update_sta_tx_rate
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ap_update_sta_tx_rate
L_switch.table.ap_update_sta_tx_rate:
	.long	10                              ## 0xa
	.long	20                              ## 0x14
	.long	55                              ## 0x37
	.long	110                             ## 0x6e

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_update_sta_tx_rate
_ap_update_sta_tx_rate:                 ; @ap_update_sta_tx_rate
	.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, x1
	mov	x20, x0
	ldr	w19, [x0]
	mov	x0, x1
	bl	_netdev_priv
	ldr	x8, [x20, #40]
	ldp	x24, x9, [x20, #8]
	lsl	x10, x24, #2
	ldr	w11, [x8, x10]
	add	w11, w11, #1
	str	w11, [x8, x10]
	ldr	x22, [x0]
	add	x8, x9, #1
	str	x8, [x20, #16]
	str	xzr, [x20, #32]
Lloh0:
	adrp	x9, _WLAN_RATE_UPDATE_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_RATE_UPDATE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_13
; %bb.1:
	ldrsw	x8, [x20, #24]
	cmp	x24, x8
	b.hs	LBB0_13
; %bb.2:
	cmp	w8, w24
	b.le	LBB0_6
; %bb.3:
	mov	x8, x24
	sxtw	x8, w8
	add	x23, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_ap_tx_rate_ok
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #24]
	add	x23, x23, #1
	sub	w9, w23, #1
	cmp	w9, w8
	b.lt	LBB0_4
LBB0_6:
	ldr	x23, [x20, #8]
	cmp	x23, w24, sxtw
	b.ne	LBB0_8
	b	LBB0_12
LBB0_7:
	str	x23, [x20, #8]
	cmp	x23, w24, sxtw
	b.eq	LBB0_12
LBB0_8:
	cmp	x23, #3
	b.hi	LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, l_switch.table.ap_update_sta_tx_rate@PAGE
Lloh4:
	add	x8, x8, l_switch.table.ap_update_sta_tx_rate@PAGEOFF
	ldr	w4, [x8, x23, lsl #2]
	b	LBB0_11
LBB0_10:
	mov	w4, #0
LBB0_11:
	str	w4, [x20]
Lloh5:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x20, #28]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
LBB0_12:
	str	xzr, [x20, #16]
LBB0_13:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_RATE_UPDATE_COUNT,8,3     ; @WLAN_RATE_UPDATE_COUNT
	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: STA %pM TX rate raised to %d\n"

	.no_dead_strip	_ap_update_sta_tx_rate
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ap_update_sta_tx_rate
l_switch.table.ap_update_sta_tx_rate:
	.long	10                              ; 0xa
	.long	20                              ; 0x14
	.long	55                              ; 0x37
	.long	110                             ; 0x6e

.subsections_via_symbols
