	.file	"extr_tsi108_eth.c_tsi108_read_stat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tsi108_read_stat, @function
tsi108_read_stat:
.LFB0:
	.cfi_startproc
	endbr64
.L3:
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rax, ecx
	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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	esi, 176
	mov	r12d, DWORD PTR TSI108_STAT_CARRY1[rip]
	cmovge	r12d, DWORD PTR TSI108_STAT_CARRY2[rip]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[rsp]
	add	QWORD PTR 0[rbp], rax
	mov	esi, r13d
	mov	edi, r12d
	call	TSI_WRITE@PLT
.L5:
	mov	edi, r14d
	call	TSI_READ@PLT
	mov	edi, r12d
	mov	r15, QWORD PTR 0[rbp]
	mov	ebx, eax
	call	TSI_READ@PLT
	and	eax, r13d
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L8
	add	rsp, 24
	.cfi_def_cfa_offset 56
	movsx	rax, ebx
	or	rax, r15
	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	tsi108_read_stat, .-tsi108_read_stat
	.comm	TSI108_STAT_CARRY2,4,4
	.comm	TSI108_STAT_CARRY1,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_tsi108_eth.c_tsi108_read_stat.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tsi108_read_stat, %function
tsi108_read_stat:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
.L3:
	cmp	r1, #175
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r3
	ldrle	r3, .L9
	ldrgt	r3, .L9+4
	mov	r8, r1
	mov	r6, r2
	ldr	r5, [sp, #32]
	ldr	r7, [r3]
	b	.L5
.L8:
	ldr	r0, [r5]
	mov	r1, r6
	add	r0, r0, r9
	str	r0, [r5]
	mov	r0, r7
	bl	TSI_WRITE
.L5:
	mov	r0, r8
	bl	TSI_READ
	mov	r4, r0
	mov	r0, r7
	ldr	r10, [r5]
	bl	TSI_READ
	and	r0, r0, r6
	bl	unlikely
	cmp	r0, #0
	bne	.L8
	orr	r0, r4, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	TSI108_STAT_CARRY1
	.word	TSI108_STAT_CARRY2
	.size	tsi108_read_stat, .-tsi108_read_stat
	.comm	TSI108_STAT_CARRY2,4,4
	.comm	TSI108_STAT_CARRY1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
