	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_txq_agg_disable
_il4965_txq_agg_disable:                ## @il4965_txq_agg_disable
	.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	%edx, %r12d
	movl	%esi, %r15d
	movq	_IL49_FIRST_AMPDU_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	cmpl	%esi, %edx
	jg	LBB0_2
## %bb.1:
	leal	(%rax,%rdx), %esi
	cmpl	%r15d, %esi
	jle	LBB0_2
## %bb.3:
	movq	%rdi, %r13
	movl	%r15d, %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_il4965_tx_queue_stop_scheduler
	movq	_IL49_SCD_QUEUECHAIN_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_il_clear_bits_prph
	movzbl	%r12b, %eax
	movq	(%r13), %rcx
	movslq	%r15d, %rdx
	leaq	(,%rdx,8), %r14
	movl	%eax, (%rcx,%rdx,8)
	movl	%eax, 4(%rcx,%rdx,8)
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_il4965_set_wr_ptrs
	movq	_IL49_SCD_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_il_clear_bits_prph
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_il_txq_ctx_deactivate
	addq	(%r13), %r14
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_il4965_tx_queue_set_status
	jmp	LBB0_4
LBB0_2:
	leal	(%rdx,%rax), %ecx
	decl	%ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_IL_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL49_FIRST_AMPDU_QUEUE,4,2     ## @IL49_FIRST_AMPDU_QUEUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue number out of range: %d, must be %d to %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IL49_SCD_QUEUECHAIN_SEL,4,2    ## @IL49_SCD_QUEUECHAIN_SEL
	.comm	_IL49_SCD_INTERRUPT_MASK,4,2    ## @IL49_SCD_INTERRUPT_MASK
	.no_dead_strip	_il4965_txq_agg_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_txq_agg_disable
_il4965_txq_agg_disable:                ; @il4965_txq_agg_disable
	.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	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _IL49_FIRST_AMPDU_QUEUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL49_FIRST_AMPDU_QUEUE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	add	w9, w8, w2
	cmp	w2, w1
	ccmp	w9, w1, #4, le
	b.gt	LBB0_2
; %bb.1:
	add	w8, w2, w8
	sub	w3, w8, #1
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_IL_WARN
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x3
	mov	x21, x0
	mov	x1, x20
	bl	_il4965_tx_queue_stop_scheduler
Lloh8:
	adrp	x8, _IL49_SCD_QUEUECHAIN_SEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IL49_SCD_QUEUECHAIN_SEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w23, w8, w20
	mov	x0, x21
	mov	x2, x23
	bl	_il_clear_bits_prph
	and	w8, w22, #0xff
	ldr	x9, [x21]
	sbfiz	x24, x20, #3, #32
	add	x9, x9, x24
	stp	w8, w8, [x9]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_il4965_set_wr_ptrs
Lloh11:
	adrp	x8, _IL49_SCD_INTERRUPT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IL49_SCD_INTERRUPT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_il_clear_bits_prph
	mov	x0, x21
	mov	x1, x20
	bl	_il_txq_ctx_deactivate
	ldr	x8, [x21]
	add	x1, x8, x24
	mov	x0, x21
	mov	x2, x19
	mov	w3, #0
	bl	_il4965_tx_queue_set_status
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IL49_FIRST_AMPDU_QUEUE,4,2     ; @IL49_FIRST_AMPDU_QUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue number out of range: %d, must be %d to %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IL49_SCD_QUEUECHAIN_SEL,4,2    ; @IL49_SCD_QUEUECHAIN_SEL
	.comm	_IL49_SCD_INTERRUPT_MASK,4,2    ; @IL49_SCD_INTERRUPT_MASK
	.no_dead_strip	_il4965_txq_agg_disable
.subsections_via_symbols
