	.file	"193869.c"
	.intel_syntax noprefix
	.text
	.globl	read_error_test
	.bss
	.align 4
	.type	read_error_test, @object
	.size	read_error_test, 4
read_error_test:
	.zero	4
	.text
	.globl	test_read
	.type	test_read, @function
test_read:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR read_error_test[rip]
	cmp	eax, -1
	je	.L2
	mov	eax, DWORD PTR read_error_test[rip]
	test	eax, eax
	jle	.L3
.L2:
	mov	edx, DWORD PTR read_error_test[rip]
	mov	eax, DWORD PTR read_error_test[rip]
	test	eax, eax
	setg	al
	movzx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR read_error_test[rip], eax
	mov	rax, -1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR read_error_test[rip]
	cmp	eax, -1
	jge	.L5
	mov	eax, DWORD PTR read_error_test[rip]
	cmp	eax, -2
	jne	.L6
	mov	edx, 3
	jmp	.L7
.L6:
	mov	edx, 1
.L7:
	mov	eax, DWORD PTR read_error_test[rip]
	add	eax, edx
	mov	DWORD PTR read_error_test[rip], eax
.L5:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	__read@PLT
	cdqe
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test_read, .-test_read
	.globl	read
	.set	read,test_read
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"193869.c"
	.text
	.global	read_error_test
	.bss
	.align	2
	.type	read_error_test, %object
	.size	read_error_test, 4
read_error_test:
	.space	4
	.text
	.align	2
	.global	test_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_read, %function
test_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L8
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L2
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L3
.L2:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8
	ldr	r2, [r2]
	cmp	r2, #0
	movgt	r2, #1
	movle	r2, #0
	and	r2, r2, #255
	sub	r3, r3, r2
	ldr	r2, .L8
	str	r3, [r2]
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, .L8
	ldr	r3, [r3]
	cmn	r3, #1
	bge	.L5
	ldr	r3, .L8
	ldr	r3, [r3]
	cmn	r3, #2
	bne	.L6
	mov	r2, #3
	b	.L7
.L6:
	mov	r2, #1
.L7:
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L8
	str	r3, [r2]
.L5:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	__read
	mov	r3, r0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	read_error_test
	.size	test_read, .-test_read
	.global	read
	.set	read,test_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
