	.file	"extr_tlan.c_TLan_ReadAndClearStats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	TLan_ReadAndClearStats, @function
TLan_ReadAndClearStats:
.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	rsi, QWORD PTR TLAN_DIO_ADR[rip]
	add	rsi, QWORD PTR 40[rdi]
	mov	edi, DWORD PTR TLAN_GOOD_TX_FRMS[rip]
	call	outw@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 1
	mov	DWORD PTR 16[rsp], eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 2
	mov	DWORD PTR [rsp], eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 3
	mov	DWORD PTR 4[rsp], eax
	call	inb@PLT
	mov	edi, DWORD PTR TLAN_GOOD_RX_FRMS[rip]
	mov	rsi, QWORD PTR TLAN_DIO_ADR[rip]
	add	rsi, QWORD PTR 40[rbx]
	mov	r13d, eax
	call	outw@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 1
	mov	DWORD PTR 20[rsp], eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 2
	mov	r12d, eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 3
	mov	DWORD PTR 8[rsp], eax
	call	inb@PLT
	mov	edi, DWORD PTR TLAN_DEFERRED_TX[rip]
	mov	rsi, QWORD PTR TLAN_DIO_ADR[rip]
	add	rsi, QWORD PTR 40[rbx]
	mov	DWORD PTR 44[rsp], eax
	call	outw@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 1
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 2
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 3
	mov	DWORD PTR 40[rsp], eax
	call	inb@PLT
	mov	edi, DWORD PTR TLAN_MULTICOL_FRMS[rip]
	mov	rsi, QWORD PTR TLAN_DIO_ADR[rip]
	add	rsi, QWORD PTR 40[rbx]
	mov	DWORD PTR 24[rsp], eax
	call	outw@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 1
	mov	DWORD PTR 28[rsp], eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 2
	mov	DWORD PTR 12[rsp], eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 3
	mov	DWORD PTR 32[rsp], eax
	call	inb@PLT
	mov	edi, DWORD PTR TLAN_EXCESSCOL_FRMS[rip]
	mov	rsi, QWORD PTR TLAN_DIO_ADR[rip]
	add	rsi, QWORD PTR 40[rbx]
	mov	ebp, eax
	call	outw@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 1
	mov	r15d, eax
	call	inb@PLT
	mov	rdi, QWORD PTR TLAN_DIO_DATA[rip]
	add	rdi, QWORD PTR 40[rbx]
	add	rdi, 2
	mov	DWORD PTR 36[rsp], eax
	call	inb@PLT
	test	r14d, r14d
	je	.L1
	mov	edx, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 40[rsp]
	sal	r12d, 8
	mov	edi, eax
	mov	r8d, DWORD PTR 44[rsp]
	mov	esi, DWORD PTR [rsp]
	sal	ebp, 8
	sal	edx, 16
	add	r12d, DWORD PTR 20[rsp]
	mov	r9d, DWORD PTR 4[rsp]
	add	r12d, edx
	mov	edx, DWORD PTR 24[rsp]
	sal	esi, 8
	lea	eax, [r8+rcx]
	sal	r9d, 16
	add	ebp, DWORD PTR 32[rsp]
	mov	r14d, DWORD PTR 36[rsp]
	add	eax, edx
	add	DWORD PTR 4[rbx], eax
	mov	eax, esi
	mov	esi, DWORD PTR 16[rsp]
	add	DWORD PTR [rbx], r12d
	add	esi, eax
	mov	eax, r9d
	add	DWORD PTR 16[rbx], r8d
	add	eax, esi
	mov	esi, DWORD PTR 12[rsp]
	add	DWORD PTR 36[rbx], eax
	lea	eax, 0[r13+rdi]
	add	DWORD PTR 8[rbx], eax
	sal	esi, 8
	add	DWORD PTR 20[rbx], ecx
	mov	eax, esi
	mov	esi, DWORD PTR 28[rsp]
	add	DWORD PTR 24[rbx], edx
	add	DWORD PTR 28[rbx], r13d
	add	esi, eax
	add	DWORD PTR 32[rbx], edi
	add	ebp, esi
	add	r15d, ebp
	add	r14d, r15d
	add	DWORD PTR 12[rbx], r14d
.L1:
	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	TLan_ReadAndClearStats, .-TLan_ReadAndClearStats
	.comm	TLAN_MULTICOL_FRMS,4,4
	.comm	TLAN_GOOD_TX_FRMS,4,4
	.comm	TLAN_GOOD_RX_FRMS,4,4
	.comm	TLAN_EXCESSCOL_FRMS,4,4
	.comm	TLAN_DIO_DATA,8,8
	.comm	TLAN_DIO_ADR,8,8
	.comm	TLAN_DEFERRED_TX,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_tlan.c_TLan_ReadAndClearStats.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TLan_ReadAndClearStats, %function
TLan_ReadAndClearStats:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r9, .L8
	ldr	r0, [r0, #40]
	ldr	r3, .L8+4
	mov	r5, r1
	ldr	r1, [r9]
	ldr	r8, .L8+8
	sub	sp, sp, #44
	add	r1, r0, r1
	ldr	r0, [r3]
	bl	outw
	ldr	r3, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r3
	bl	inb
	ldr	r1, [r8]
	ldr	r3, [r4, #40]
	str	r0, [sp, #24]
	add	r0, r3, r1
	add	r0, r0, #1
	bl	inb
	ldr	r1, [r8]
	ldr	r3, [r4, #40]
	str	r0, [sp, #4]
	add	r0, r3, r1
	add	r0, r0, #2
	bl	inb
	ldr	r3, [r4, #40]
	ldr	r1, [r8]
	str	r0, [sp, #8]
	add	r0, r3, r1
	add	r0, r0, #3
	bl	inb
	ldr	ip, [r4, #40]
	ldr	r1, [r9]
	mov	fp, r0
	ldr	r0, .L8+12
	add	r1, ip, r1
	ldr	r0, [r0]
	bl	outw
	ldr	r3, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r3
	bl	inb
	ldr	r1, [r8]
	ldr	r3, [r4, #40]
	str	r0, [sp, #28]
	add	r0, r3, r1
	add	r0, r0, #1
	bl	inb
	ldr	r1, [r8]
	ldr	r3, [r4, #40]
	str	r0, [sp, #12]
	add	r0, r3, r1
	add	r0, r0, #2
	bl	inb
	ldr	r1, [r8]
	ldr	r3, [r4, #40]
	str	r0, [sp, #16]
	add	r0, r3, r1
	add	r0, r0, #3
	bl	inb
	mov	r3, r0
	ldr	ip, [r4, #40]
	ldr	r1, [r9]
	ldr	r0, .L8+16
	add	r1, ip, r1
	ldr	r0, [r0]
	str	r3, [sp, #36]
	bl	outw
	ldr	r2, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r2
	bl	inb
	ldr	r2, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r2
	add	r0, r0, #1
	bl	inb
	ldr	r2, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r2
	add	r0, r0, #2
	bl	inb
	ldr	ip, [r8]
	ldr	r1, [r4, #40]
	str	r0, [sp]
	add	r0, r1, ip
	add	r0, r0, #3
	bl	inb
	ldr	ip, [r4, #40]
	ldr	r1, [r9]
	mov	r6, r0
	ldr	r0, .L8+20
	add	r1, ip, r1
	ldr	r0, [r0]
	bl	outw
	ldr	r1, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r1
	bl	inb
	ldr	ip, [r8]
	ldr	r1, [r4, #40]
	str	r0, [sp, #32]
	add	r0, r1, ip
	add	r0, r0, #1
	bl	inb
	ldr	ip, [r8]
	ldr	r1, [r4, #40]
	str	r0, [sp, #20]
	add	r0, r1, ip
	add	r0, r0, #2
	bl	inb
	ldr	ip, [r8]
	ldr	r1, [r4, #40]
	mov	r7, r0
	add	r0, r1, ip
	add	r0, r0, #3
	bl	inb
	ldr	ip, [r4, #40]
	ldr	r1, [r9]
	mov	r10, r0
	ldr	r0, .L8+24
	add	r1, ip, r1
	ldr	r0, [r0]
	bl	outw
	ldr	r1, [r8]
	ldr	r0, [r4, #40]
	add	r0, r0, r1
	bl	inb
	ldr	ip, [r8]
	ldr	r1, [r4, #40]
	mov	r9, r0
	add	r0, r1, ip
	add	r0, r0, #1
	bl	inb
	ldr	ip, [r8]
	ldr	r1, [r4, #40]
	mov	r8, r0
	add	r0, r1, ip
	add	r0, r0, #2
	bl	inb
	cmp	r5, #0
	beq	.L1
	ldr	r3, [sp, #32]
	ldr	r2, [sp, #20]
	add	r7, r7, r10, lsl #8
	add	r5, r3, r2, lsl #8
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #12]
	add	r5, r5, r7
	add	r1, r3, r2, lsl #8
	add	r9, r5, r9
	ldr	r3, [sp, #24]
	ldr	r5, [r4, #16]
	ldr	r2, [sp, #4]
	ldr	r10, [sp, #8]
	str	r5, [sp, #4]
	ldr	ip, [sp]
	ldr	r5, [r4, #36]
	add	r2, r3, r2, lsl #8
	ldr	r3, [sp, #36]
	ldr	lr, [r4, #12]
	add	r2, r2, r10, lsl #16
	add	ip, r3, ip
	add	r9, r9, r8
	add	r2, r5, r2
	ldr	r8, [sp, #16]
	ldr	r5, [r4, #4]
	add	ip, ip, r6
	add	r9, lr, r9
	ldr	lr, [r4]
	add	r1, r1, r8, lsl #16
	add	ip, r5, ip
	ldr	r5, [r4, #8]
	add	r1, lr, r1
	add	lr, fp, r0
	add	lr, r5, lr
	ldr	r5, [sp, #4]
	ldr	r7, [r4, #20]
	add	r5, r5, r3
	ldr	r3, [sp]
	ldr	r8, [r4, #24]
	ldr	r10, [r4, #28]
	add	r3, r7, r3
	ldr	r7, [r4, #32]
	add	r6, r8, r6
	add	r10, r10, fp
	add	r0, r7, r0
	stmib	r4, {ip, lr}
	str	r9, [r4, #12]
	str	r1, [r4]
	str	r2, [r4, #36]
	str	r5, [r4, #16]
	str	r3, [r4, #20]
	str	r6, [r4, #24]
	str	r10, [r4, #28]
	str	r0, [r4, #32]
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	TLAN_DIO_ADR
	.word	TLAN_GOOD_TX_FRMS
	.word	TLAN_DIO_DATA
	.word	TLAN_GOOD_RX_FRMS
	.word	TLAN_DEFERRED_TX
	.word	TLAN_MULTICOL_FRMS
	.word	TLAN_EXCESSCOL_FRMS
	.size	TLan_ReadAndClearStats, .-TLan_ReadAndClearStats
	.comm	TLAN_MULTICOL_FRMS,4,4
	.comm	TLAN_GOOD_TX_FRMS,4,4
	.comm	TLAN_GOOD_RX_FRMS,4,4
	.comm	TLAN_EXCESSCOL_FRMS,4,4
	.comm	TLAN_DIO_DATA,4,4
	.comm	TLAN_DIO_ADR,4,4
	.comm	TLAN_DEFERRED_TX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
