	.file	"extr_dt2801.c_dt2801_readdata.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dt2801_readdata, @function
dt2801_readdata:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR DT2801_TIMEOUT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	test	DWORD PTR DT_S_DATA_OUT_READY[rip], eax
	jne	.L8
	sub	r12d, 1
	test	r12d, r12d
	jle	.L9
.L4:
	mov	rdi, QWORD PTR DT2801_STATUS[rip]
	add	rdi, QWORD PTR [rbx]
	call	inb_p@PLT
	mov	edx, DWORD PTR DT_S_COMPOSITE_ERROR[rip]
	or	edx, DWORD PTR DT_S_READY[rip]
	test	edx, eax
	je	.L10
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR DT2801_DATA[rip]
	add	rdi, QWORD PTR [rbx]
	call	inb_p@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ETIME[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	dt2801_readdata, .-dt2801_readdata
	.comm	ETIME,4,4
	.comm	DT_S_READY,4,4
	.comm	DT_S_DATA_OUT_READY,4,4
	.comm	DT_S_COMPOSITE_ERROR,4,4
	.comm	DT2801_TIMEOUT,4,4
	.comm	DT2801_STATUS,8,8
	.comm	DT2801_DATA,8,8
	.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_dt2801.c_dt2801_readdata.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dt2801_readdata, %function
dt2801_readdata:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L9
	mov	r5, r0
	mov	r7, r1
	ldr	r9, .L9+4
	ldr	r4, [r3]
	ldr	r8, .L9+8
	ldr	r6, .L9+12
	ldr	r10, .L9+16
	b	.L4
.L3:
	cmp	r4, #0
	ble	.L8
.L4:
	ldr	r3, [r9]
	ldr	r0, [r5]
	sub	r4, r4, #1
	add	r0, r0, r3
	bl	inb_p
	ldr	r3, [r8]
	ldr	r2, [r6]
	orr	r3, r3, r2
	ands	fp, r3, r0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r10]
	tst	r0, r3
	beq	.L3
	ldr	r3, .L9+20
	ldr	r0, [r5]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	inb_p
	mov	r3, r0
	mov	r0, fp
	str	r3, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, .L9+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	DT2801_TIMEOUT
	.word	DT2801_STATUS
	.word	DT_S_COMPOSITE_ERROR
	.word	DT_S_READY
	.word	DT_S_DATA_OUT_READY
	.word	DT2801_DATA
	.word	ETIME
	.size	dt2801_readdata, .-dt2801_readdata
	.comm	ETIME,4,4
	.comm	DT_S_READY,4,4
	.comm	DT_S_DATA_OUT_READY,4,4
	.comm	DT_S_COMPOSITE_ERROR,4,4
	.comm	DT2801_TIMEOUT,4,4
	.comm	DT2801_STATUS,4,4
	.comm	DT2801_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
