	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_tl_turn_on_agg
_rs_tl_turn_on_agg:                     ## @rs_tl_turn_on_agg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	%rdx, (%r14)
	setb	%dil
	callq	_WARN_ON_ONCE
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_ERR                        ## TAILCALL
LBB0_1:
	cmpq	%rbx, %rcx
	je	LBB0_8
## %bb.2:
	movq	(%r15), %rax
	movq	_IEEE80211_STA_AUTHORIZED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.3:
	movq	%r12, %r14
	movq	8(%r15), %rdx
	movq	%rbx, %r12
	shlq	$4, %r12
	movq	(%rdx,%r12), %rax
	movq	_IWL_AGG_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_BIT
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%r15d, %eax
	je	LBB0_8
## %bb.5:
	movq	8(%rcx,%r12), %rax
	movq	_IWL_MVM_RS_AGG_START_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_IWL_DEBUG_RATE
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_rs_tl_turn_on_agg_for_tid
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	addq	%r12, %rcx
	movq	_IWL_AGG_QUEUED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MAX_TID_COUNT,8,3          ## @IWL_MAX_TID_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tid exceeds max TID count: %d/%d\n"

	.comm	_IEEE80211_STA_AUTHORIZED,8,3   ## @IEEE80211_STA_AUTHORIZED
	.comm	_IWL_AGG_OFF,8,3                ## @IWL_AGG_OFF
	.comm	_IWL_MVM_RS_AGG_START_THRESHOLD,8,3 ## @IWL_MVM_RS_AGG_START_THRESHOLD
L_.str.1:                               ## @.str.1
	.asciz	"try to aggregate tid %d\n"

	.comm	_IWL_AGG_QUEUED,8,3             ## @IWL_AGG_QUEUED
	.no_dead_strip	_rs_tl_turn_on_agg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_tl_turn_on_agg
_rs_tl_turn_on_agg:                     ; @rs_tl_turn_on_agg
	.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	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x2
	cset	w0, lo
	bl	_WARN_ON_ONCE
	ldr	x3, [x24]
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	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
	b	_IWL_ERR
LBB0_2:
	cmp	x3, x19
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [x23]
Lloh4:
	adrp	x9, _IEEE80211_STA_AUTHORIZED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IEEE80211_STA_AUTHORIZED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.4:
	ldr	x24, [x23, #8]
	add	x23, x24, x19, lsl #4
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _IWL_AGG_OFF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IWL_AGG_OFF@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w25, [x21]
	mov	x0, x19
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_9
; %bb.6:
	add	x8, x24, x19, lsl #4
	ldr	x8, [x8, #8]
Lloh10:
	adrp	x9, _IWL_MVM_RS_AGG_START_THRESHOLD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IWL_MVM_RS_AGG_START_THRESHOLD@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_IWL_DEBUG_RATE
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_rs_tl_turn_on_agg_for_tid
	cbnz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _IWL_AGG_QUEUED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IWL_AGG_QUEUED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x23]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MAX_TID_COUNT,8,3          ; @IWL_MAX_TID_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tid exceeds max TID count: %d/%d\n"

	.comm	_IEEE80211_STA_AUTHORIZED,8,3   ; @IEEE80211_STA_AUTHORIZED
	.comm	_IWL_AGG_OFF,8,3                ; @IWL_AGG_OFF
	.comm	_IWL_MVM_RS_AGG_START_THRESHOLD,8,3 ; @IWL_MVM_RS_AGG_START_THRESHOLD
l_.str.1:                               ; @.str.1
	.asciz	"try to aggregate tid %d\n"

	.comm	_IWL_AGG_QUEUED,8,3             ; @IWL_AGG_QUEUED
	.no_dead_strip	_rs_tl_turn_on_agg
.subsections_via_symbols
