	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_tx_agg_start            ## -- Begin function iwlagn_tx_agg_start
	.p2align	4, 0x90
_iwlagn_tx_agg_start:                   ## @iwlagn_tx_agg_start
	.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
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_iwl_rxon_ctx_from_vif
	movq	%rax, %r12
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_IWL_DEBUG_HT
	movq	%rbx, %rdi
	callq	_iwl_sta_id
	movl	%eax, %r13d
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_IWL_ERR
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	setbe	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r14), %rax
	movslq	%r13d, %rsi
	movq	(%rax,%rsi,8), %rax
	leaq	(%r15,%r15,4), %rdx
	movq	8(%rax,%rdx,8), %rax
	movq	_IWL_AGG_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_tid_to_ac@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_iwlagn_alloc_agg_txq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_iwl_sta_tx_modify_enable_tid
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	8(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r13
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	32(%r13,%r12,8), %edi
	callq	_IEEE80211_SEQ_TO_SN
	leaq	8(,%r12,8), %rsi
	addq	%r13, %rsi
	movq	%rax, 16(%r13,%r12,8)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 24(%r13,%r12,8)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%r13,%r12,8), %rcx
	movq	16(%r13,%r12,8), %rdx
	movq	%rsi, %r12
	cmpq	%rcx, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	_IWL_AGG_STARTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	(%rbx), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_ieee80211_start_tx_ba_cb_irqsafe
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movl	%r12d, %eax
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	_IWL_EMPTYING_HW_QUEUE_ADDBA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX AGG request on ra = %pM tid = %d\n"

	.comm	_IWL_INVALID_STATION,4,2        ## @IWL_INVALID_STATION
L_.str.1:                               ## @.str.1
	.asciz	"Start AGG on invalid station\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IWL_MAX_TID_COUNT,8,3          ## @IWL_MAX_TID_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_AGG_OFF,8,3                ## @IWL_AGG_OFF
L_.str.2:                               ## @.str.2
	.asciz	"Start AGG when state is not IWL_AGG_OFF !\n"

	.comm	_tid_to_ac,8,3                  ## @tid_to_ac
L_.str.3:                               ## @.str.3
	.asciz	"No free aggregation queue for %pM/%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Can proceed: ssn = next_recl = %d\n"

	.comm	_IWL_AGG_STARTING,8,3           ## @IWL_AGG_STARTING
L_.str.5:                               ## @.str.5
	.asciz	"Can't proceed: ssn %d, next_reclaimed = %d\n"

	.comm	_IWL_EMPTYING_HW_QUEUE_ADDBA,8,3 ## @IWL_EMPTYING_HW_QUEUE_ADDBA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_tx_agg_start            ; -- Begin function iwlagn_tx_agg_start
	.p2align	2
_iwlagn_tx_agg_start:                   ; @iwlagn_tx_agg_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_rxon_ctx_from_vif
	mov	x25, x0
	ldr	x2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_IWL_DEBUG_HT
	mov	x0, x21
	bl	_iwl_sta_id
Lloh2:
	adrp	x8, _IWL_INVALID_STATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_IWL_ERR
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x24, x0
Lloh9:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, ls
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w24, sxtw #3]
	mov	w9, #40
	madd	x8, x20, x9, x8
	ldr	x8, [x8, #8]
Lloh14:
	adrp	x9, _IWL_AGG_OFF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IWL_AGG_OFF@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
Lloh17:
	adrp	x8, _tid_to_ac@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tid_to_ac@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w1, [x9, x8, lsl #2]
	mov	x0, x19
	bl	_iwlagn_alloc_agg_txq
	mov	x25, x0
	tbnz	w0, #31, LBB0_13
; %bb.9:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_iwl_sta_tx_modify_enable_tid
	cbnz	w0, LBB0_6
; %bb.10:
	sxtw	x24, w24
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24, lsl #3]
	mov	w9, #40
	madd	x26, x20, x9, x8
	ldr	w0, [x26, #32]
	bl	_IEEE80211_SEQ_TO_SN
	add	x24, x26, #8
	str	x0, [x26, #16]
	str	w25, [x26, #24]
	str	x0, [x23]
	ldr	x8, [x26]
	ldr	x2, [x26, #16]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.11:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
Lloh22:
	adrp	x8, _IWL_AGG_STARTING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IWL_AGG_STARTING@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x24]
	ldr	x1, [x21]
	mov	x0, x22
	mov	x2, x20
	bl	_ieee80211_start_tx_ba_cb_irqsafe
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_13:
	ldr	x2, [x21]
	str	x20, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x25
	b	LBB0_6
LBB0_14:
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TX_QUEUES
Lloh31:
	adrp	x8, _IWL_EMPTYING_HW_QUEUE_ADDBA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IWL_EMPTYING_HW_QUEUE_ADDBA@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x24]
LBB0_15:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX AGG request on ra = %pM tid = %d\n"

	.comm	_IWL_INVALID_STATION,4,2        ; @IWL_INVALID_STATION
l_.str.1:                               ; @.str.1
	.asciz	"Start AGG on invalid station\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IWL_MAX_TID_COUNT,8,3          ; @IWL_MAX_TID_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_AGG_OFF,8,3                ; @IWL_AGG_OFF
l_.str.2:                               ; @.str.2
	.asciz	"Start AGG when state is not IWL_AGG_OFF !\n"

	.comm	_tid_to_ac,8,3                  ; @tid_to_ac
l_.str.3:                               ; @.str.3
	.asciz	"No free aggregation queue for %pM/%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Can proceed: ssn = next_recl = %d\n"

	.comm	_IWL_AGG_STARTING,8,3           ; @IWL_AGG_STARTING
l_.str.5:                               ; @.str.5
	.asciz	"Can't proceed: ssn %d, next_reclaimed = %d\n"

	.comm	_IWL_EMPTYING_HW_QUEUE_ADDBA,8,3 ; @IWL_EMPTYING_HW_QUEUE_ADDBA
.subsections_via_symbols
