	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_rx_reply_tx_agg
_iwl_rx_reply_tx_agg:                   ## @iwl_rx_reply_tx_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	%rsi, %r13
	movq	%rdi, %r12
	movq	_IWLAGN_TX_RES_TID_MSK@GOTPCREL(%rip), %rax
	movl	(%rsi), %edx
	movl	24(%rsi), %edi
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_IWLAGN_TX_RES_TID_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_IWLAGN_TX_RES_RA_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_IWLAGN_TX_RES_RA_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	8(%r12), %rcx
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %r14
	movslq	%eax, %rbx
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	_IWL_TID_NON_QOS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_WARN_ON
	leaq	(%rbx,%rbx,2), %rbx
	leaq	(%r14,%rbx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14,%rbx,4)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_REPLY
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r14,%rbx,4)
	movl	4(%r13), %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	setge	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	cmpq	$0, 16(%r13)
	je	LBB0_7
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IWL_DEBUG_COEX
	movl	4(%r13), %eax
LBB0_7:
	cmpl	$1, %eax
	je	LBB0_17
## %bb.8:
	movl	4(%r14,%rbx,4), %r14d
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_iwlagn_get_scd_ssn
	movl	4(%r13), %r9d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_REPLY
	cmpl	$0, 4(%r13)
	jle	LBB0_17
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %edi
	callq	_iwl_get_agg_tx_fail_reason
	movq	_AGG_TX_STATUS_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	%r14d, %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_REPLY
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%r13,%rbx,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	%eax, %r12d
	movq	_AGG_TX_TRY_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_AGG_TX_TRY_POS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r12d
	movq	_AGG_TX_STATUS_MSK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_iwlagn_count_agg_tx_err_status
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_AGG_TX_STATE_ABORT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AGG_TX_STATE_FEW_BYTES_MSK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_AGG_TX_STATUS_MSK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$2, %r12d
	jl	LBB0_16
	jmp	LBB0_15
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWLAGN_TX_RES_TID_MSK,4,2      ## @IWLAGN_TX_RES_TID_MSK
	.comm	_IWLAGN_TX_RES_TID_POS,4,2      ## @IWLAGN_TX_RES_TID_POS
	.comm	_IWLAGN_TX_RES_RA_MSK,4,2       ## @IWLAGN_TX_RES_RA_MSK
	.comm	_IWLAGN_TX_RES_RA_POS,4,2       ## @IWLAGN_TX_RES_RA_POS
	.comm	_IWL_TID_NON_QOS,4,2            ## @IWL_TID_NON_QOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got tx response w/o block-ack\n"

L_.str.1:                               ## @.str.1
	.asciz	"receive reply tx w/ bt_kill\n"

L_.str.2:                               ## @.str.2
	.asciz	"TXQ %d initial_rate 0x%x ssn %d frm_cnt %d\n"

	.comm	_AGG_TX_TRY_MSK,4,2             ## @AGG_TX_TRY_MSK
	.comm	_AGG_TX_TRY_POS,4,2             ## @AGG_TX_TRY_POS
	.comm	_AGG_TX_STATUS_MSK,4,2          ## @AGG_TX_STATUS_MSK
	.comm	_AGG_TX_STATE_FEW_BYTES_MSK,4,2 ## @AGG_TX_STATE_FEW_BYTES_MSK
	.comm	_AGG_TX_STATE_ABORT_MSK,4,2     ## @AGG_TX_STATE_ABORT_MSK
L_.str.3:                               ## @.str.3
	.asciz	"%d: status %s (0x%04x), try-count (0x%01x)\n"

	.no_dead_strip	_iwl_rx_reply_tx_agg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_rx_reply_tx_agg
_iwl_rx_reply_tx_agg:                   ; @iwl_rx_reply_tx_agg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IWLAGN_TX_RES_TID_MSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWLAGN_TX_RES_TID_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _IWLAGN_TX_RES_TID_POS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IWLAGN_TX_RES_TID_POS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _IWLAGN_TX_RES_RA_MSK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IWLAGN_TX_RES_RA_MSK@GOTPAGEOFF]
	asr	w24, w9, w10
Lloh8:
	ldr	w9, [x11]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _IWLAGN_TX_RES_RA_POS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IWLAGN_TX_RES_RA_POS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	x9, [x0, #8]
	ldr	x22, [x9, w8, sxtw #3]
	sxtw	x23, w24
	ldr	w0, [x1, #24]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh12:
	adrp	x8, _IWL_TID_NON_QOS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_TID_NON_QOS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w24, w8
	cset	w0, eq
	bl	_WARN_ON
	mov	w8, #12
	smaddl	x24, w24, w8, x22
	ldr	w8, [x24]
	cbz	w8, LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_REPLY
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_le32_to_cpu
	mov	w8, #12
	madd	x8, x23, x8, x22
	str	w0, [x8, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	cset	w9, gt
	str	w9, [x24]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_7
; %bb.3:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.6:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_COEX
	ldr	w8, [x19, #4]
LBB0_7:
	cmp	w8, #1
	b.eq	LBB0_16
; %bb.8:
	mov	w8, #12
	madd	x8, x23, x8, x22
	ldr	w0, [x19, #8]
	ldr	w23, [x8, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	mov	x0, x19
	bl	_iwlagn_get_scd_ssn
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #4]
	stp	x0, x8, [sp, #16]
	stp	x23, x22, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_REPLY
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x24, #0
	add	x25, x19, #24
Lloh21:
	adrp	x28, _AGG_TX_STATUS_MSK@GOTPAGE
Lloh22:
	ldr	x28, [x28, _AGG_TX_STATUS_MSK@GOTPAGEOFF]
Lloh23:
	adrp	x26, _AGG_TX_STATE_ABORT_MSK@GOTPAGE
Lloh24:
	ldr	x26, [x26, _AGG_TX_STATE_ABORT_MSK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	cmp	x24, x8
	b.ge	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, x24, lsl #2]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh25:
	adrp	x8, _AGG_TX_TRY_MSK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AGG_TX_TRY_MSK@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
Lloh28:
	adrp	x8, _AGG_TX_TRY_POS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AGG_TX_TRY_POS@GOTPAGEOFF]
Lloh30:
	ldr	w27, [x8]
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_iwlagn_count_agg_tx_err_status
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh31:
	adrp	x8, _AGG_TX_STATE_FEW_BYTES_MSK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AGG_TX_STATE_FEW_BYTES_MSK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	tst	w8, w21
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	and	w8, w22, w23
	asr	w22, w8, w27
	ldr	w8, [x28]
	and	w8, w8, w21
	cmp	w8, #0
	ccmp	w22, #2, #0, eq
	b.lt	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_iwl_get_agg_tx_fail_reason
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x28]
	and	w8, w8, w23
	stp	x8, x22, [sp, #16]
	stp	x24, x0, [sp]
	mov	x0, x20
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_IWL_DEBUG_TX_REPLY
	b	LBB0_10
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IWLAGN_TX_RES_TID_MSK,4,2      ; @IWLAGN_TX_RES_TID_MSK
	.comm	_IWLAGN_TX_RES_TID_POS,4,2      ; @IWLAGN_TX_RES_TID_POS
	.comm	_IWLAGN_TX_RES_RA_MSK,4,2       ; @IWLAGN_TX_RES_RA_MSK
	.comm	_IWLAGN_TX_RES_RA_POS,4,2       ; @IWLAGN_TX_RES_RA_POS
	.comm	_IWL_TID_NON_QOS,4,2            ; @IWL_TID_NON_QOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got tx response w/o block-ack\n"

l_.str.1:                               ; @.str.1
	.asciz	"receive reply tx w/ bt_kill\n"

l_.str.2:                               ; @.str.2
	.asciz	"TXQ %d initial_rate 0x%x ssn %d frm_cnt %d\n"

	.comm	_AGG_TX_TRY_MSK,4,2             ; @AGG_TX_TRY_MSK
	.comm	_AGG_TX_TRY_POS,4,2             ; @AGG_TX_TRY_POS
	.comm	_AGG_TX_STATUS_MSK,4,2          ; @AGG_TX_STATUS_MSK
	.comm	_AGG_TX_STATE_FEW_BYTES_MSK,4,2 ; @AGG_TX_STATE_FEW_BYTES_MSK
	.comm	_AGG_TX_STATE_ABORT_MSK,4,2     ; @AGG_TX_STATE_ABORT_MSK
l_.str.3:                               ; @.str.3
	.asciz	"%d: status %s (0x%04x), try-count (0x%01x)\n"

	.no_dead_strip	_iwl_rx_reply_tx_agg
.subsections_via_symbols
