	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_txq_check_empty         ## -- Begin function il4965_txq_check_empty
	.p2align	4, 0x90
_il4965_txq_check_empty:                ## @il4965_txq_check_empty
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	24(%rdi), %r13
	movslq	%esi, %r12
	shlq	$4, %r12
	movq	(%rax,%r12), %r15
	movq	8(%rax,%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	shlq	$4, %r14
	leaq	(%r15,%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$16, %rdi
	callq	_lockdep_assert_held
	movq	8(%rbx), %rax
	movq	(%rax,%r12), %rax
	movl	(%rax,%r14), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 4(%r15,%r14)
	jne	LBB0_7
## %bb.3:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movl	4(%r13,%rax,8), %ecx
	cmpl	(%r13,%rax,8), %ecx
	jne	LBB0_7
## %bb.4:
	movl	12(%r15,%r14), %edi
	callq	_IEEE80211_SEQ_TO_SN
	movl	%eax, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_il4965_get_fifo_from_tid
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_D_HT
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_il4965_txq_agg_disable
	movq	_IL_AGG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_ieee80211_stop_tx_ba_cb_irqsafe
	jmp	LBB0_7
LBB0_5:
	cmpl	$0, 8(%r15,%r14)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_D_HT
	movq	_IL_AGG_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_ieee80211_start_tx_ba_cb_irqsafe
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW queue empty: continue DELBA flow\n"

	.comm	_IL_AGG_OFF,4,2                 ## @IL_AGG_OFF
L_.str.1:                               ## @.str.1
	.asciz	"HW queue empty: continue ADDBA flow\n"

	.comm	_IL_AGG_ON,4,2                  ## @IL_AGG_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_txq_check_empty         ; -- Begin function il4965_txq_check_empty
	.p2align	2
_il4965_txq_check_empty:                ; @il4965_txq_check_empty
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x21, x0
	ldr	x24, [x0, #24]
	ldr	x8, [x0, #8]
	sbfiz	x26, x1, #4, #32
	add	x8, x8, x26
	ldp	x23, x20, [x8]
	lsl	x27, x2, #4
	add	x25, x23, x27
	add	x0, x0, #16
	bl	_lockdep_assert_held
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x26]
	ldr	w8, [x8, x27]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
	add	x8, x23, x19, lsl #4
	ldr	w8, [x8, #4]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.3:
	sxtw	x8, w22
	add	x8, x24, x8, lsl #3
	ldp	w8, w9, [x8]
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.4:
	add	x8, x23, x19, lsl #4
	ldr	w0, [x8, #12]
	bl	_IEEE80211_SEQ_TO_SN
	mov	x23, x0
	mov	x0, x19
	bl	_il4965_get_fifo_from_tid
	mov	x24, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_HT
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_il4965_txq_agg_disable
Lloh2:
	adrp	x8, _IL_AGG_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IL_AGG_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x25]
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_ieee80211_stop_tx_ba_cb_irqsafe
	b	LBB0_7
LBB0_5:
	add	x8, x23, x19, lsl #4
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_HT
Lloh7:
	adrp	x8, _IL_AGG_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IL_AGG_ON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x25]
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_ieee80211_start_tx_ba_cb_irqsafe
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW queue empty: continue DELBA flow\n"

	.comm	_IL_AGG_OFF,4,2                 ; @IL_AGG_OFF
l_.str.1:                               ; @.str.1
	.asciz	"HW queue empty: continue ADDBA flow\n"

	.comm	_IL_AGG_ON,4,2                  ; @IL_AGG_ON
.subsections_via_symbols
