	.file	"extr_ampdu.c_brcms_c_ampdu_dotxstatus.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	brcms_c_ampdu_dotxstatus
	.type	brcms_c_ampdu_dotxstatus, @function
brcms_c_ampdu_dotxstatus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rdi]
	mov	rdi, rdx
	call	IEEE80211_SKB_CB@PLT
	mov	r8d, DWORD PTR 0[r13]
	and	r8d, DWORD PTR TX_STATUS_ACK_RCV[rip]
	jne	.L22
	xor	r9d, r9d
.L2:
	test	r15, r15
	je	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rcx, r13
	mov	rdx, rbp
	mov	rsi, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, r14
	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
	jmp	brcms_c_ampdu_dotxstatus_complete@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r13d, DWORD PTR 4[r13]
	and	r13d, DWORD PTR TXFID_QUEUE_MASK[rip]
	test	rbp, rbp
	je	.L1
	movsx	r13, r13d
	sal	r13, 2
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR DMA_RANGE_TRANSMITTED[rip]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+r13]
	call	dma_getnexttxp@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
.L8:
	mov	rdi, rbp
	call	IEEE80211_SKB_CB@PLT
	mov	rax, QWORD PTR [r12]
	mov	rbx, QWORD PTR 8[rbp]
	mov	edx, 4
	mov	rdi, QWORD PTR 8[rax]
	mov	rsi, rbx
	call	trace_brcms_txdesc@PLT
	mov	edi, DWORD PTR [rbx]
	call	le16_to_cpu@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	brcmu_pkt_buf_free_skb@PLT
	mov	ecx, DWORD PTR TXC_AMPDU_SHIFT[rip]
	and	ebx, DWORD PTR TXC_AMPDU_MASK[rip]
	sar	ebx, cl
	cmp	ebx, DWORD PTR TXC_AMPDU_LAST[rip]
	jne	.L23
.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
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR frmtxstatus[rip]
	call	D11REGOFFS@PLT
	mov	esi, eax
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR 8[rax]
	call	bcma_read32@PLT
	mov	r8d, eax
	test	DWORD PTR TXS_V[rip], eax
	jne	.L4
	mov	edi, 1
	mov	ebx, 10
	call	udelay@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR frmtxstatus[rip]
	call	D11REGOFFS@PLT
	mov	esi, eax
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR 8[rax]
	call	bcma_read32@PLT
	mov	r8d, eax
	test	DWORD PTR TXS_V[rip], eax
	jne	.L4
	mov	edi, 1
	call	udelay@PLT
	sub	ebx, 1
	jne	.L9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR frmtxstatus2[rip]
	mov	DWORD PTR 12[rsp], r8d
	call	D11REGOFFS@PLT
	mov	esi, eax
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR 8[rax]
	call	bcma_read32@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	r9d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	brcms_c_ampdu_dotxstatus, .-brcms_c_ampdu_dotxstatus
	.comm	frmtxstatus2,4,4
	.comm	frmtxstatus,4,4
	.comm	TX_STATUS_ACK_RCV,4,4
	.comm	TXS_V,4,4
	.comm	TXFID_QUEUE_MASK,4,4
	.comm	TXC_AMPDU_SHIFT,4,4
	.comm	TXC_AMPDU_MASK,4,4
	.comm	TXC_AMPDU_LAST,4,4
	.comm	DMA_RANGE_TRANSMITTED,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_ampdu.c_brcms_c_ampdu_dotxstatus.c"
	.text
	.align	2
	.global	brcms_c_ampdu_dotxstatus
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcms_c_ampdu_dotxstatus, %function
brcms_c_ampdu_dotxstatus:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	mov	r7, r3
	mov	r0, r2
	sub	sp, sp, #20
	mov	r4, r2
	ldr	r6, [r8]
	str	r1, [sp, #8]
	bl	IEEE80211_SKB_CB
	ldr	r2, .L24
	ldr	r3, [r7]
	ldr	r0, [r2]
	ands	r3, r3, r0
	moveq	r0, r3
	bne	.L22
.L2:
	ldr	r1, [sp, #8]
	cmp	r1, #0
	beq	.L7
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r7
	mov	r0, r8
	bl	brcms_c_ampdu_dotxstatus_complete
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L24+4
	ldr	r7, [r7, #4]
	ldr	r3, [r3]
	cmp	r4, #0
	and	r7, r7, r3
	beq	.L1
	ldr	r10, .L24+8
	ldr	r9, .L24+12
	ldr	r8, .L24+16
	ldr	fp, .L24+20
	lsl	r7, r7, #2
	b	.L9
.L23:
	ldr	r3, [r6]
	ldr	r1, [fp]
	ldr	r3, [r3]
	ldr	r0, [r3, r7]
	bl	dma_getnexttxp
	subs	r4, r0, #0
	beq	.L1
.L9:
	mov	r0, r4
	bl	IEEE80211_SKB_CB
	ldr	r3, [r6]
	ldr	r5, [r4, #4]
	mov	r2, #4
	mov	r1, r5
	ldr	r0, [r3, #4]
	bl	trace_brcms_txdesc
	ldr	r0, [r5]
	bl	le16_to_cpu
	mov	r5, r0
	mov	r0, r4
	bl	brcmu_pkt_buf_free_skb
	ldr	r0, [r10]
	ldr	r2, [r9]
	ldr	r3, [r8]
	and	r5, r5, r0
	cmp	r3, r5, asr r2
	bne	.L23
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r10, .L24+24
	ldr	r3, [r6]
	ldr	r0, [r10]
	ldr	r5, [r3, #4]
	bl	D11REGOFFS
	mov	r1, r0
	mov	r0, r5
	bl	bcma_read32
	ldr	fp, .L24+28
	mov	r3, r0
	ldr	r2, [fp]
	tst	r0, r2
	bne	.L4
	mov	r0, #1
	bl	udelay
	mov	r5, #10
	b	.L10
.L6:
	mov	r0, #1
	bl	udelay
	subs	r5, r5, #1
	beq	.L1
.L10:
	ldr	r3, [r6]
	ldr	r0, [r10]
	ldr	r9, [r3, #4]
	bl	D11REGOFFS
	mov	r1, r0
	mov	r0, r9
	bl	bcma_read32
	ldr	r2, [fp]
	mov	r3, r0
	tst	r0, r2
	beq	.L6
.L4:
	ldr	r2, .L24+32
	ldr	r1, [r6]
	ldr	r0, [r2]
	ldr	r5, [r1, #4]
	str	r3, [sp, #12]
	bl	D11REGOFFS
	mov	r1, r0
	mov	r0, r5
	bl	bcma_read32
	ldr	r3, [sp, #12]
	b	.L2
.L25:
	.align	2
.L24:
	.word	TX_STATUS_ACK_RCV
	.word	TXFID_QUEUE_MASK
	.word	TXC_AMPDU_MASK
	.word	TXC_AMPDU_SHIFT
	.word	TXC_AMPDU_LAST
	.word	DMA_RANGE_TRANSMITTED
	.word	frmtxstatus
	.word	TXS_V
	.word	frmtxstatus2
	.size	brcms_c_ampdu_dotxstatus, .-brcms_c_ampdu_dotxstatus
	.comm	frmtxstatus2,4,4
	.comm	frmtxstatus,4,4
	.comm	TX_STATUS_ACK_RCV,4,4
	.comm	TXS_V,4,4
	.comm	TXFID_QUEUE_MASK,4,4
	.comm	TXC_AMPDU_SHIFT,4,4
	.comm	TXC_AMPDU_MASK,4,4
	.comm	TXC_AMPDU_LAST,4,4
	.comm	DMA_RANGE_TRANSMITTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
