	.file	"extr_io.c_test_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unexpected count, count: %li"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unexpected read failure,\n  rc: %zi errno: %i"
	.align 8
.LC2:
	.string	"Unexpected EOF,\n  rc: %zi num_read: %zi num_left: %zu"
	.align 8
.LC3:
	.string	"Unexpected ret from read,\n  rc: %zi errno: %i"
	.text
	.p2align 4
	.globl	test_read
	.type	test_read, @function
test_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	mov	edi, 1
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r13
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	TEST_ASSERT@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	ecx, DWORD PTR EAGAIN[rip]
	mov	edi, 1
	je	.L4
	xor	edi, edi
	cmp	DWORD PTR EINTR[rip], ecx
	sete	dil
.L4:
	mov	rdx, -1
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	TEST_ASSERT@PLT
.L5:
	cmp	r12, r13
	jnb	.L11
.L6:
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, r14d
	call	read@PLT
	mov	r15, rax
	test	rax, rax
	je	.L2
	mov	ecx, DWORD PTR errno[rip]
	cmp	rax, -1
	je	.L12
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	xor	eax, eax
	add	r12, r15
	mov	edi, 1
	sub	rbx, r15
	add	rbp, r15
	call	TEST_ASSERT@PLT
	cmp	r12, r13
	jb	.L6
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	mov	r8, rbx
	mov	rcx, r12
	xor	edx, edx
	xor	edi, edi
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	TEST_ASSERT@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	test_read, .-test_read
	.comm	errno,4,4
	.comm	EINTR,4,4
	.comm	EAGAIN,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_io.c_test_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unexpected count, count: %li\000"
	.align	2
.LC1:
	.ascii	"Unexpected read failure,\012  rc: %zi errno: %i\000"
	.align	2
.LC2:
	.ascii	"Unexpected EOF,\012  rc: %zi num_read: %zi num_left"
	.ascii	": %zu\000"
	.align	2
.LC3:
	.ascii	"Unexpected ret from read,\012  rc: %zi errno: %i\000"
	.text
	.align	2
	.global	test_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_read, %function
test_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	mov	r6, r1
	mov	r0, #1
	ldr	r1, .L13
	sub	sp, sp, #20
	mov	r7, r2
	mov	r5, r2
	mov	r4, #0
	bl	TEST_ASSERT
	ldr	fp, .L13+4
	ldr	r9, .L13+8
	ldr	r10, .L13+12
	b	.L6
.L12:
	ldr	r2, [r10]
	ldr	r3, [r9]
	ldr	r1, .L13+16
	cmp	r3, r2
	ldrne	r2, .L13+20
	moveq	r0, #1
	ldrne	r0, [r2]
	mvn	r2, #0
	subne	r0, r0, r3
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	TEST_ASSERT
.L5:
	cmp	r4, r7
	bcs	.L11
.L6:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r8
	bl	read
	subs	r2, r0, #0
	beq	.L2
	cmn	r2, #1
	beq	.L12
	mov	r0, #1
	ldr	r3, [r9]
	ldr	r1, .L13+24
	str	r2, [sp, #12]
	bl	TEST_ASSERT
	ldr	r2, [sp, #12]
	add	r4, r4, r2
	cmp	r4, r7
	sub	r5, r5, r2
	add	r6, r6, r2
	bcc	.L6
.L11:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r3, r4
	mov	r1, fp
	str	r5, [sp]
	bl	TEST_ASSERT
	b	.L5
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC2
	.word	errno
	.word	EAGAIN
	.word	.LC1
	.word	EINTR
	.word	.LC3
	.size	test_read, .-test_read
	.comm	errno,4,4
	.comm	EINTR,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
