	.file	"extr_dma.c_mt7601u_rx_process_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mt7601u_rx_process_entry, @function
mt7601u_rx_process_entry:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rsi]
	mov	rdi, QWORD PTR [rsi]
	mov	ebp, DWORD PTR [rax]
	call	page_address@PLT
	mov	edi, DWORD PTR MT7601U_STATE_INITIALIZED[rip]
	mov	rsi, r13
	mov	r15, rax
	call	test_bit@PLT
	test	eax, eax
	je	.L1
	mov	QWORD PTR 8[rsp], 0
	cmp	ebp, 512
	jg	.L18
.L4:
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	xor	ecx, ecx
	cmp	QWORD PTR 8[rsp], 0
	je	.L5
	mov	rcx, QWORD PTR [r14]
.L5:
	mov	rsi, r15
	mov	edx, ebx
	mov	rdi, r13
	sub	ebp, ebx
	call	mt7601u_rx_process_seg@PLT
	lea	r15, [r15+rbx*4]
	add	r12d, 1
.L6:
	mov	esi, ebp
	mov	rdi, r15
	call	mt7601u_rx_next_seg_len@PLT
	movsx	rbx, eax
	test	ebx, ebx
	jne	.L7
	cmp	r12d, 1
	jg	.L19
	mov	rbx, QWORD PTR 8[rsp]
	test	rbx, rbx
	je	.L1
.L20:
	mov	esi, DWORD PTR MT_RX_ORDER[rip]
	mov	rdi, QWORD PTR [r14]
	call	__free_pages@PLT
	mov	QWORD PTR [r14], rbx
.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
.L19:
	.cfi_restore_state
	xor	edx, edx
	cmp	QWORD PTR 8[rsp], 0
	mov	esi, r12d
	mov	rdi, r13
	setne	dl
	call	trace_mt_rx_dma_aggr@PLT
	mov	rbx, QWORD PTR 8[rsp]
	test	rbx, rbx
	jne	.L20
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR MT_RX_ORDER[rip]
	call	dev_alloc_pages@PLT
	mov	QWORD PTR 8[rsp], rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mt7601u_rx_process_entry, .-mt7601u_rx_process_entry
	.comm	MT_RX_ORDER,4,4
	.comm	MT7601U_STATE_INITIALIZED,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_dma.c_mt7601u_rx_process_entry.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt7601u_rx_process_entry, %function
mt7601u_rx_process_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r0, [r1]
	mov	r8, r1
	ldr	r5, [r3]
	bl	page_address
	ldr	r3, .L20
	mov	r4, r0
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r5, #512
	movle	r9, #0
	bgt	.L17
.L4:
	mov	r6, #0
	b	.L6
.L7:
	cmp	r9, #0
	mov	r1, r4
	moveq	r3, r9
	mov	r0, r7
	ldrne	r3, [r8]
	sub	r5, r5, r2
	add	r6, r6, #1
	add	r4, r4, r2, lsl #2
	bl	mt7601u_rx_process_seg
.L6:
	mov	r1, r5
	mov	r0, r4
	bl	mt7601u_rx_next_seg_len
	subs	r2, r0, #0
	bne	.L7
	cmp	r6, #1
	bgt	.L18
	cmp	r9, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, .L20+4
	ldr	r0, [r8]
	ldr	r1, [r3]
	bl	__free_pages
	str	r9, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	subs	r2, r9, #0
	movne	r2, #1
	mov	r1, r6
	mov	r0, r7
	bl	trace_mt_rx_dma_aggr
	cmp	r9, #0
	bne	.L19
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r3, .L20+4
	ldr	r0, [r3]
	bl	dev_alloc_pages
	mov	r9, r0
	b	.L4
.L21:
	.align	2
.L20:
	.word	MT7601U_STATE_INITIALIZED
	.word	MT_RX_ORDER
	.size	mt7601u_rx_process_entry, .-mt7601u_rx_process_entry
	.comm	MT_RX_ORDER,4,4
	.comm	MT7601U_STATE_INITIALIZED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
