	.file	"extr_ksz884x.c_port_rcv_packets.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	port_rcv_packets, @function
port_rcv_packets:
.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, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 8[rdi]
	mov	r12d, DWORD PTR 16[rdi]
	mov	ebx, DWORD PTR 20[rdi]
	mov	DWORD PTR 12[rsp], r12d
	mov	r14, QWORD PTR [rax]
	test	r12d, r12d
	je	.L2
	mov	DWORD PTR 12[rsp], 0
	mov	r13, QWORD PTR 40[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	QWORD PTR 24[rsp], 0
	je	.L4
	cmp	QWORD PTR 16[rsp], 0
	jne	.L15
.L4:
	mov	rdi, r15
	add	ebx, 1
	call	release_desc@PLT
	and	ebx, DWORD PTR 24[rbp]
	sub	r12d, 1
	je	.L2
.L5:
	mov	rdx, QWORD PTR 32[rbp]
	movsx	rax, ebx
	lea	r15, [rdx+rax*8]
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 16[rsp], eax
	test	r13, r13
	jne	.L2
	cmp	DWORD PTR 0[rbp], 1
	jle	.L3
	mov	edi, DWORD PTR 32[rsp]
	call	HW_TO_DEV_PORT@PLT
	mov	rdx, QWORD PTR 8[rbp]
	cdqe
	mov	r14, QWORD PTR [rdx+rax*8]
	mov	rdi, r14
	call	netif_running@PLT
	test	eax, eax
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 120
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 144
	call	rx_proc@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	cmp	rax, 1
	adc	DWORD PTR 12[rsp], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	DWORD PTR 20[rbp], ebx
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 56
	.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
	.cfi_endproc
.LFE0:
	.size	port_rcv_packets, .-port_rcv_packets
	.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_ksz884x.c_port_rcv_packets.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	port_rcv_packets, %function
port_rcv_packets:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r0, #8]
	mov	r5, r0
	cmp	r8, #0
	ldr	r4, [r0, #12]
	sub	sp, sp, #32
	beq	.L2
	mov	r7, r8
	mov	r8, #0
.L5:
	ldr	r0, [r5, #20]
	ldr	r3, [r0, r4, lsl #2]
	add	r6, r0, r4, lsl #2
	ldr	r0, [r3]
	bl	le32_to_cpu
	ldr	r3, [r5]
	cmp	r3, #1
	ble	.L4
	mov	r0, #0
	bl	HW_TO_DEV_PORT
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r0, lsl #2]
	bl	netif_running
.L4:
	mov	r0, r6
	bl	release_desc
	ldr	r3, [r5, #16]
	add	r4, r4, #1
	subs	r7, r7, #1
	and	r4, r4, r3
	bne	.L5
.L2:
	mov	r0, r8
	str	r4, [r5, #12]
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
	.size	port_rcv_packets, .-port_rcv_packets
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
