	.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_for_tid
_rs_tl_turn_on_agg_for_tid:             ## @rs_tl_turn_on_agg_for_tid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rdx
	movq	_IWL_BT_COEX_TRAFFIC_LOAD_HIGH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rsi, %rdi
	movl	%r15d, %esi
	callq	_rs_tl_get_load
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	_IWL_DEBUG_HT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$5000, %edx                     ## imm = 0x1388
	callq	_ieee80211_start_tx_ba_session
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_IWL_ERR
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ieee80211_stop_tx_ba_session
	jmp	LBB0_4
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_DEBUG_COEX
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_IWL_BT_COEX_TRAFFIC_LOAD_HIGH,8,3 ## @IWL_BT_COEX_TRAFFIC_LOAD_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BT traffic (%d), no aggregation allowed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Starting Tx agg: STA: %pM tid: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Fail start Tx agg on tid: %d\n"

	.no_dead_strip	_rs_tl_turn_on_agg_for_tid
.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_for_tid
_rs_tl_turn_on_agg_for_tid:             ; @rs_tl_turn_on_agg_for_tid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x8, _IWL_BT_COEX_TRAFFIC_LOAD_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_BT_COEX_TRAFFIC_LOAD_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ge	LBB0_3
; %bb.1:
	mov	x21, x3
	mov	x0, x1
	mov	x1, x20
	bl	_rs_tl_get_load
	ldr	w2, [x21]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_IWL_DEBUG_HT
	mov	x0, x21
	mov	x1, x20
	mov	w2, #5000
	bl	_ieee80211_start_tx_ba_session
	mov	x22, x0
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_ERR
	mov	x0, x21
	mov	x1, x20
	bl	_ieee80211_stop_tx_ba_session
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_COEX
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_IWL_BT_COEX_TRAFFIC_LOAD_HIGH,8,3 ; @IWL_BT_COEX_TRAFFIC_LOAD_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BT traffic (%d), no aggregation allowed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Starting Tx agg: STA: %pM tid: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Fail start Tx agg on tid: %d\n"

	.no_dead_strip	_rs_tl_turn_on_agg_for_tid
.subsections_via_symbols
