	.file	"extr_if_ale.c_ale_rxeof.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"garbled seq: %u, expected: %u -- resetting!\n"
	.text
	.p2align 4
	.type	ale_rxeof, @function
ale_rxeof:
.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	r14d, esi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 32[rdi]
	mov	edx, DWORD PTR BUS_DMASYNC_POSTREAD[rip]
	mov	DWORD PTR 4[rsp], esi
	or	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	sal	rax, 5
	add	rax, QWORD PTR 16[rdi]
	mov	esi, DWORD PTR 24[rax]
	mov	edi, DWORD PTR 28[rax]
	mov	QWORD PTR 32[rsp], rax
	call	bus_dmamap_sync@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR BUS_DMASYNC_POSTREAD[rip]
	or	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	mov	esi, DWORD PTR 16[rax]
	mov	edi, DWORD PTR 20[rax]
	call	bus_dmamap_sync@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	rdx, QWORD PTR [rax]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR 28[rsp], edx
	test	r14d, r14d
	jle	.L2
	lea	rcx, 28[rsp]
	xor	r13d, r13d
	mov	QWORD PTR 8[rsp], rcx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	test	DWORD PTR IFCAP_VLAN_HWTAGGING[rip], eax
	je	.L11
	test	DWORD PTR ALE_RD_VLAN[rip], r10d
	jne	.L35
.L11:
	mov	rdi, rbx
	call	ALE_UNLOCK@PLT
	mov	rdi, rbp
	mov	rsi, r14
	call	[QWORD PTR 8[rbp]]
	mov	rdi, rbx
	call	ALE_LOCK@PLT
.L33:
	mov	rcx, QWORD PTR 8[rsp]
	lea	rsi, 32[rsp]
	mov	edx, r12d
	mov	rdi, rbx
	add	r13d, 1
	call	ale_rx_update_page@PLT
	cmp	DWORD PTR 4[rsp], r13d
	je	.L3
	mov	rax, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR 28[rsp]
.L12:
	mov	r9d, DWORD PTR 8[rax]
	cmp	r9d, edx
	jge	.L3
	add	r9d, DWORD PTR 12[rax]
	movsx	r15, r9d
	mov	edi, DWORD PTR 12[r15]
	call	le32toh@PLT
	mov	edi, eax
	call	ALE_RX_SEQNO@PLT
	mov	ecx, DWORD PTR 8[rbx]
	cmp	ecx, eax
	jne	.L36
	add	ecx, 1
	mov	edi, DWORD PTR 8[r15]
	mov	DWORD PTR 8[rbx], ecx
	call	le32toh@PLT
	mov	edi, eax
	call	ALE_RX_BYTES@PLT
	mov	edi, DWORD PTR 4[r15]
	mov	r12d, eax
	call	le32toh@PLT
	mov	r10d, eax
	test	DWORD PTR ALE_RD_ERROR[rip], eax
	je	.L7
	mov	eax, DWORD PTR ALE_RD_CRC[rip]
	or	eax, DWORD PTR ALE_RD_CODE[rip]
	or	eax, DWORD PTR ALE_RD_DRIBBLE[rip]
	or	eax, DWORD PTR ALE_RD_RUNT[rip]
	or	eax, DWORD PTR ALE_RD_OFLOW[rip]
	or	eax, DWORD PTR ALE_RD_TRUNC[rip]
	test	eax, r10d
	jne	.L33
.L7:
	mov	edx, DWORD PTR ETHER_ALIGN[rip]
	xor	r8d, r8d
	mov	esi, r12d
	lea	rdi, 16[r15]
	sub	esi, DWORD PTR ETHER_CRC_LEN[rip]
	mov	rcx, rbp
	mov	DWORD PTR [rsp], r10d
	call	m_devget@PLT
	mov	r10d, DWORD PTR [rsp]
	test	rax, rax
	mov	r14, rax
	je	.L37
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IFCAP_RXCSUM[rip], eax
	je	.L10
	test	DWORD PTR ALE_RD_IPV4[rip], r10d
	je	.L10
	mov	edx, r10d
	mov	rsi, r14
	mov	rdi, rbx
	mov	DWORD PTR [rsp], r10d
	call	ale_rxcsum@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	r10d, DWORD PTR [rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR [r15]
	call	le32toh@PLT
	mov	edi, eax
	call	ALE_RX_VLAN@PLT
	mov	edi, eax
	call	ALE_RX_VLAN_TAG@PLT
	mov	DWORD PTR 4[r14], eax
	mov	eax, DWORD PTR M_VLANTAG[rip]
	or	DWORD PTR [r14], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L37:
	mov	esi, DWORD PTR IFCOUNTER_IQDROPS[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	if_inc_counter@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L38
	add	rsp, 56
	.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
.L36:
	.cfi_restore_state
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L39
.L5:
	mov	eax, DWORD PTR EIO[rip]
	jmp	.L1
.L2:
	mov	eax, DWORD PTR EAGAIN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	jmp	.L5
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ale_rxeof, .-ale_rxeof
	.comm	bootverbose,8,8
	.comm	M_VLANTAG,4,4
	.comm	IFCOUNTER_IQDROPS,4,4
	.comm	IFCAP_VLAN_HWTAGGING,4,4
	.comm	IFCAP_RXCSUM,4,4
	.comm	ETHER_CRC_LEN,4,4
	.comm	ETHER_ALIGN,4,4
	.comm	EIO,4,4
	.comm	EAGAIN,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.comm	ALE_RD_VLAN,4,4
	.comm	ALE_RD_TRUNC,4,4
	.comm	ALE_RD_RUNT,4,4
	.comm	ALE_RD_OFLOW,4,4
	.comm	ALE_RD_IPV4,4,4
	.comm	ALE_RD_ERROR,4,4
	.comm	ALE_RD_DRIBBLE,4,4
	.comm	ALE_RD_CRC,4,4
	.comm	ALE_RD_CODE,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_if_ale.c_ale_rxeof.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"garbled seq: %u, expected: %u -- resetting!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ale_rxeof, %function
ale_rxeof:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r7, r1
	ldr	r6, .L43
	ldr	r4, .L43+4
	ldr	r2, [r0]
	ldr	r3, [r0, #8]
	ldr	lr, [r6]
	ldr	ip, [r4]
	rsb	r2, r2, r2, lsl #3
	sub	sp, sp, #36
	add	r3, r3, r2, lsl #2
	orr	r2, lr, ip
	ldr	ip, .L43+8
	str	r1, [sp, #12]
	ldr	r0, [r3, #24]
	ldr	r1, [r3, #20]
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	ldr	r8, [r5, #16]
	str	r3, [sp, #20]
	bl	bus_dmamap_sync
	ldr	r3, [sp, #20]
	ldr	r1, [r6]
	ldr	r2, [r4]
	ldr	r0, [r3, #16]
	orr	r2, r1, r2
	ldr	r1, [r3, #12]
	bl	bus_dmamap_sync
	ldr	r3, [sp, #20]
	cmp	r7, #0
	ldr	r2, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #24]
	ble	.L2
	mov	r10, #0
	b	.L12
.L10:
	ldr	r2, .L43+12
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L11
	ldr	r3, .L43+16
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L38
.L11:
	mov	r0, r5
	bl	ALE_UNLOCK
	mov	r1, r6
	mov	r0, r8
	ldr	r3, [r8, #4]
	blx	r3
	mov	r0, r5
	bl	ALE_LOCK
.L36:
	add	r3, sp, #24
	mov	r2, r7
	mov	r0, r5
	add	r1, sp, #20
	bl	ale_rx_update_page
	ldr	r3, [sp, #12]
	add	r10, r10, #1
	cmp	r3, r10
	beq	.L3
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #24]
.L12:
	ldr	r9, [r3, #4]
	cmp	r9, r2
	bge	.L3
	ldr	fp, [r3, #8]
	add	r6, r9, fp
	ldr	r0, [r6, #12]
	bl	le32toh
	bl	ALE_RX_SEQNO
	ldr	r3, [r5, #4]
	cmp	r3, r0
	bne	.L39
	add	r3, r3, #1
	str	r3, [r5, #4]
	ldr	r0, [r6, #8]
	bl	le32toh
	bl	ALE_RX_BYTES
	mov	r7, r0
	ldr	r0, [r6, #4]
	bl	le32toh
	ldr	r3, .L43+20
	mov	r4, r0
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L7
	ldr	r3, .L43+24
	ldr	r2, .L43+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L43+32
	orr	r3, r3, r2
	ldr	r2, .L43+36
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L43+40
	orr	r3, r3, r2
	ldr	r2, .L43+44
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r0
	bne	.L36
.L7:
	mov	r3, #0
	ldr	r2, .L43+48
	add	r0, r6, #16
	ldr	r1, [r2]
	ldr	r2, .L43+52
	str	r3, [sp]
	ldr	r2, [r2]
	mov	r3, r8
	sub	r1, r7, r1
	bl	m_devget
	subs	r6, r0, #0
	beq	.L40
	ldr	r2, .L43+56
	ldr	r3, [r8]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L10
	ldr	r2, .L43+60
	ldr	r2, [r2]
	tst	r4, r2
	beq	.L10
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	ale_rxcsum
	ldr	r3, [r8]
	b	.L10
.L38:
	ldr	r0, [r9, fp]
	bl	le32toh
	bl	ALE_RX_VLAN
	bl	ALE_RX_VLAN_TAG
	ldr	r2, .L43+64
	ldr	r3, [r6]
	ldr	r2, [r2]
	str	r0, [r6, #4]
	orr	r3, r3, r2
	str	r3, [r6]
	b	.L11
.L40:
	ldr	r3, .L43+68
	mov	r2, #1
	mov	r0, r8
	ldr	r1, [r3]
	bl	if_inc_counter
	b	.L36
.L3:
	mov	r0, #0
.L1:
	ldr	r3, .L43+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	ldr	r2, .L43+72
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L42
.L5:
	ldr	r3, .L43+76
	ldr	r0, [r3]
	b	.L1
.L2:
	ldr	r3, .L43+80
	ldr	r0, [r3]
	b	.L1
.L42:
	mov	r2, r0
	ldr	r1, .L43+84
	ldr	r0, [r5, #12]
	bl	device_printf
	b	.L5
.L41:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	BUS_DMASYNC_POSTREAD
	.word	BUS_DMASYNC_POSTWRITE
	.word	.LC1
	.word	IFCAP_VLAN_HWTAGGING
	.word	ALE_RD_VLAN
	.word	ALE_RD_ERROR
	.word	ALE_RD_CRC
	.word	ALE_RD_CODE
	.word	ALE_RD_DRIBBLE
	.word	ALE_RD_RUNT
	.word	ALE_RD_OFLOW
	.word	ALE_RD_TRUNC
	.word	ETHER_CRC_LEN
	.word	ETHER_ALIGN
	.word	IFCAP_RXCSUM
	.word	ALE_RD_IPV4
	.word	M_VLANTAG
	.word	IFCOUNTER_IQDROPS
	.word	bootverbose
	.word	EIO
	.word	EAGAIN
	.word	.LC0
	.size	ale_rxeof, .-ale_rxeof
	.comm	bootverbose,4,4
	.comm	M_VLANTAG,4,4
	.comm	IFCOUNTER_IQDROPS,4,4
	.comm	IFCAP_VLAN_HWTAGGING,4,4
	.comm	IFCAP_RXCSUM,4,4
	.comm	ETHER_CRC_LEN,4,4
	.comm	ETHER_ALIGN,4,4
	.comm	EIO,4,4
	.comm	EAGAIN,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.comm	ALE_RD_VLAN,4,4
	.comm	ALE_RD_TRUNC,4,4
	.comm	ALE_RD_RUNT,4,4
	.comm	ALE_RD_OFLOW,4,4
	.comm	ALE_RD_IPV4,4,4
	.comm	ALE_RD_ERROR,4,4
	.comm	ALE_RD_DRIBBLE,4,4
	.comm	ALE_RD_CRC,4,4
	.comm	ALE_RD_CODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
