	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_tx_status_reply_compressed_ba
_il4965_tx_status_reply_compressed_ba:  ## @il4965_tx_status_reply_compressed_ba
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	4(%rdx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpq	$0, 16(%r12)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r12)
	movl	(%r12), %esi
	movl	4(%r13), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_D_TX_REPLY
	movl	(%r12), %ebx
	sarl	$4, %r14d
	movl	%r14d, %edi
	callq	_SEQ_TO_IDX
	subl	%eax, %ebx
	leal	256(%rbx), %r14d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r14d
	movl	$64, %eax
	subl	%r14d, %eax
	cmpl	%eax, 4(%r12)
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_TX_REPLY
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_6:
	movl	(%r13), %edi
	callq	_le64_to_cpu
	movl	%r14d, %ecx
	sarl	%cl, %eax
	movl	8(%r12), %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	%eax, %ebx
	je	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movl	%ebx, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	andl	$1, %eax
	addl	%eax, %r15d
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rsi
	movl	(%r12), %r8d
	addl	%r14d, %r8d
	movzbl	%r8b, %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_D_TX_REPLY
	sarl	%r13d
	incl	%r14d
	cmpl	$1, %ebx
	movl	%r13d, %ebx
	ja	LBB0_8
LBB0_9:
	movslq	-44(%rbp), %rsi                 ## 4-byte Folded Reload
	leaq	L_.str.6(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D_TX_REPLY
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	(%rax,%rcx,8), %rax
	movslq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	8(%r14), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_TX_STAT_AMPDU@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	%r15d, (%r14)
	movl	4(%r12), %eax
	movl	%eax, 4(%r14)
	movl	12(%r12), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_il4965_hwrate_to_tx_control
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %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	"Received BA when not expected\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"BA %d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"more frames than bitmap size"

L_.str.3:                               ## @.str.3
	.asciz	"%s ON i=%d idx=%d raw=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"ACK"

L_.str.5:                               ## @.str.5
	.asciz	"NACK"

L_.str.6:                               ## @.str.6
	.asciz	"Bitmap %llx\n"

	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ## @IEEE80211_TX_STAT_AMPDU
	.no_dead_strip	_il4965_tx_status_reply_compressed_ba
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_tx_status_reply_compressed_ba
_il4965_tx_status_reply_compressed_ba:  ; @il4965_tx_status_reply_compressed_ba
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x2, #4]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x22, #8]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x22]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	str	xzr, [x20, #16]
	ldr	w8, [x20]
	ldr	w9, [x22, #4]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_TX_REPLY
	ldr	w24, [x20]
	asr	w0, w23, #4
	bl	_SEQ_TO_IDX
	sub	w8, w24, w0
	add	w9, w8, #256
	cmp	w8, #0
	csel	w23, w9, w8, lt
	ldr	w8, [x20, #4]
	mov	w9, #64
	sub	w9, w9, w23
	cmp	w8, w9
	b.le	LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_TX_REPLY
	mov	w0, #-1
	b	LBB0_11
LBB0_6:
	ldr	w0, [x22]
	bl	_le64_to_cpu
	asr	w24, w0, w23
	ldr	w8, [x20, #8]
	ands	w25, w24, w8
	b.eq	LBB0_9
; %bb.7:
	mov	w26, #0
	mov	w23, #0
Lloh9:
	adrp	x27, l_.str.4@PAGE
Lloh10:
	add	x27, x27, l_.str.4@PAGEOFF
Lloh11:
	adrp	x28, l_.str.5@PAGE
Lloh12:
	add	x28, x28, l_.str.5@PAGEOFF
Lloh13:
	adrp	x22, l_.str.3@PAGE
Lloh14:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ands	w8, w25, #0x1
	add	w23, w8, w23
	csel	x8, x28, x27, eq
	ldr	w9, [x20]
	add	w9, w26, w9
	and	w10, w9, #0xff
	stp	x8, x26, [sp]
	stp	x10, x9, [sp, #16]
	mov	x0, x22
	bl	_D_TX_REPLY
	asr	w8, w25, #1
	add	w26, w26, #1
	cmp	w25, #1
	mov	x25, x8
	b.hi	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w23, #0
LBB0_10:
	sxtw	x8, w24
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_D_TX_REPLY
	ldr	x8, [x19]
	ldr	x8, [x8, w21, sxtw #3]
	ldrsw	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh17:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _IEEE80211_TX_STAT_AMPDU@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IEEE80211_TX_STAT_AMPDU@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	ldr	w8, [x20, #4]
	stp	w23, w8, [x21]
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	x2, x21
	bl	_il4965_hwrate_to_tx_control
	mov	w0, #0
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received BA when not expected\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"BA %d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"more frames than bitmap size"

l_.str.3:                               ; @.str.3
	.asciz	"%s ON i=%d idx=%d raw=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"ACK"

l_.str.5:                               ; @.str.5
	.asciz	"NACK"

l_.str.6:                               ; @.str.6
	.asciz	"Bitmap %llx\n"

	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ; @IEEE80211_TX_STAT_AMPDU
	.no_dead_strip	_il4965_tx_status_reply_compressed_ba
.subsections_via_symbols
