	.file	"extr_4965-mac.c_il4965_tx_status_reply_compressed_ba.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ACK"
.LC1:
	.string	"NACK"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Received BA when not expected\n"
	.section	.rodata.str1.1
.LC3:
	.string	"BA %d %d\n"
.LC4:
	.string	"more frames than bitmap size"
.LC5:
	.string	"%s ON i=%d idx=%d raw=%d\n"
.LC6:
	.string	"Bitmap %llx\n"
	.text
	.p2align 4
	.type	il4965_tx_status_reply_compressed_ba, @function
il4965_tx_status_reply_compressed_ba:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdi
	mov	edi, DWORD PTR 4[rdx]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r13d, eax
	call	le16_to_cpu@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	sete	dil
	mov	DWORD PTR 8[rsp], eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L18
	mov	edx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR [rbx]
	mov	QWORD PTR 16[rbx], 0
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	D_TX_REPLY@PLT
	mov	edi, r13d
	mov	r12d, DWORD PTR [rbx]
	sar	edi, 4
	call	SEQ_TO_IDX@PLT
	sub	r12d, eax
	lea	eax, 256[r12]
	cmovs	r12d, eax
	mov	eax, 64
	sub	eax, r12d
	cmp	DWORD PTR 4[rbx], eax
	jg	.L19
	mov	edi, DWORD PTR 0[rbp]
	xor	ebp, ebp
	call	le64_to_cpu@PLT
	mov	ecx, r12d
	sar	eax, cl
	mov	DWORD PTR 12[rsp], eax
	mov	r15d, eax
	and	r15d, DWORD PTR 8[rbx]
	je	.L7
	xor	r14d, r14d
	lea	r13, .LC0[rip]
	lea	r12, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR [rbx]
	mov	eax, r15d
	mov	rsi, r12
	mov	edx, r14d
	and	eax, 1
	lea	rdi, .LC5[rip]
	add	r8d, r14d
	add	ebp, eax
	test	eax, eax
	cmovne	rsi, r13
	movzx	ecx, r8b
	xor	eax, eax
	add	r14d, 1
	call	D_TX_REPLY@PLT
	sar	r15d
	jne	.L9
.L7:
	movsx	rsi, DWORD PTR 12[rsp]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	D_TX_REPLY@PLT
	mov	r15, QWORD PTR [rsp]
	movsx	rax, DWORD PTR 8[rsp]
	movsx	rdx, DWORD PTR [rbx]
	mov	rcx, QWORD PTR [r15]
	mov	rax, QWORD PTR [rcx+rax*8]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	IEEE80211_SKB_CB@PLT
	mov	edx, 8
	xor	esi, esi
	mov	r12, rax
	mov	rdi, rax
	call	memset@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdx, r12
	mov	rdi, r15
	mov	eax, DWORD PTR IEEE80211_TX_STAT_ACK[rip]
	or	eax, DWORD PTR IEEE80211_TX_STAT_AMPDU[rip]
	mov	DWORD PTR [r12], ebp
	or	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[r12], eax
	call	il4965_hwrate_to_tx_control@PLT
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	unlikely@PLT
	test	rax, rax
	jne	.L20
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	IL_ERR@PLT
	jmp	.L3
.L19:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	D_TX_REPLY@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	il4965_tx_status_reply_compressed_ba, .-il4965_tx_status_reply_compressed_ba
	.comm	IEEE80211_TX_STAT_AMPDU,4,4
	.comm	IEEE80211_TX_STAT_ACK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_4965-mac.c_il4965_tx_status_reply_compressed_ba.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ACK\000"
	.align	2
.LC1:
	.ascii	"NACK\000"
	.align	2
.LC2:
	.ascii	"Received BA when not expected\012\000"
	.align	2
.LC3:
	.ascii	"BA %d %d\012\000"
	.align	2
.LC4:
	.ascii	"more frames than bitmap size\000"
	.align	2
.LC5:
	.ascii	"%s ON i=%d idx=%d raw=%d\012\000"
	.align	2
.LC6:
	.ascii	"Bitmap %llx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	il4965_tx_status_reply_compressed_ba, %function
il4965_tx_status_reply_compressed_ba:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	sub	sp, sp, #28
	ldr	r0, [r2, #4]
	mov	r4, r2
	mov	r5, r1
	str	fp, [sp, #16]
	bl	le16_to_cpu
	mov	r6, r0
	ldr	r0, [r4, #8]
	bl	le16_to_cpu
	ldr	r3, [r5, #16]
	str	r0, [sp, #12]
	clz	r0, r3
	lsr	r0, r0, #5
	bl	unlikely
	subs	r7, r0, #0
	bne	.L18
	ldr	r2, [r4, #4]
	ldr	r1, [r5]
	ldr	r0, .L21
	str	r7, [r5, #16]
	bl	D_TX_REPLY
	asr	r0, r6, #4
	ldr	r6, [r5]
	bl	SEQ_TO_IDX
	subs	r6, r6, r0
	addmi	r6, r6, #256
	ldr	r2, [r5, #4]
	rsb	r3, r6, #64
	cmp	r2, r3
	bgt	.L19
	ldr	r0, [r4]
	bl	le64_to_cpu
	ldr	r4, [r5, #8]
	asr	r3, r0, r6
	ands	r4, r3, r4
	str	r3, [sp, #20]
	beq	.L10
	mov	r6, #0
	mov	fp, r6
	ldr	r10, .L21+4
	ldr	r9, .L21+8
	ldr	r8, .L21+12
.L9:
	ldr	r3, [r5]
	and	ip, r4, #1
	cmp	ip, #0
	add	r3, fp, r3
	movne	r1, r10
	moveq	r1, r9
	mov	r2, fp
	str	r3, [sp]
	mov	r0, r8
	and	r3, r3, #255
	add	r6, r6, ip
	bl	D_TX_REPLY
	asrs	r4, r4, #1
	add	fp, fp, #1
	bne	.L9
.L7:
	ldr	r2, [sp, #20]
	ldr	r0, .L21+16
	asr	r3, r2, #31
	bl	D_TX_REPLY
	ldr	r8, [sp, #16]
	ldr	r1, [sp, #12]
	ldr	r3, [r8]
	ldr	r2, [r5]
	ldr	r3, [r3, r1, lsl #2]
	ldr	r0, [r3, r2, lsl #2]
	bl	IEEE80211_SKB_CB
	mov	r4, r0
	mov	r2, #8
	mov	r1, #0
	bl	memset
	ldr	r3, .L21+20
	ldr	r2, .L21+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #8]
	orr	r2, r2, r1
	ldr	r1, [r5, #4]
	orr	r3, r3, r2
	str	r1, [r4, #4]
	mov	r0, r8
	mov	r2, r4
	ldr	r1, [r5, #12]
	str	r3, [r4, #8]
	str	r6, [r4]
	bl	il4965_hwrate_to_tx_control
.L1:
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r0, [r4]
	bl	unlikely
	cmp	r0, #0
	bne	.L20
.L3:
	ldr	r3, .L21+28
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r0, .L21+32
	bl	IL_ERR
	b	.L3
.L10:
	mov	r6, r4
	b	.L7
.L19:
	ldr	r0, .L21+36
	bl	D_TX_REPLY
	mvn	r7, #0
	b	.L1
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC5
	.word	.LC6
	.word	IEEE80211_TX_STAT_AMPDU
	.word	IEEE80211_TX_STAT_ACK
	.word	EINVAL
	.word	.LC2
	.word	.LC4
	.size	il4965_tx_status_reply_compressed_ba, .-il4965_tx_status_reply_compressed_ba
	.comm	IEEE80211_TX_STAT_AMPDU,4,4
	.comm	IEEE80211_TX_STAT_ACK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
