	.file	"extr_794.c_readcrap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	readcrap
	.type	readcrap, @function
readcrap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	lea	r14d, 1[rbx]
	sub	rsp, 1072
	.cfi_def_cfa_offset 1120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1064[rsp], rax
	xor	eax, eax
	lea	rbp, 12[rsp]
	lea	r12, 32[rsp]
	mov	rdi, rbp
	lea	r13, 16[rsp]
	call	FD_ZERO@PLT
	mov	rsi, rbp
	mov	edi, ebx
	call	FD_SET@PLT
	mov	esi, 1024
	mov	rdi, r12
	call	bzero@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbp
	mov	edi, ebx
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L7
	xor	ecx, ecx
	mov	edx, 1024
	mov	rsi, r12
	mov	edi, ebx
	call	read@PLT
	test	eax, eax
	jle	.L4
.L5:
	xor	ecx, ecx
	xor	edx, edx
	mov	r8, r13
	mov	rsi, rbp
	mov	edi, r14d
	mov	DWORD PTR 16[rsp], 1
	mov	QWORD PTR 24[rsp], 0
	call	select@PLT
	test	rax, rax
	jns	.L2
.L4:
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 1064[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 1072
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, 1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	readcrap, .-readcrap
	.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_794.c_readcrap.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readcrap
	.syntax unified
	.arm
	.fpu softvfp
	.type	readcrap, %function
readcrap:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r8, #1
	sub	sp, sp, #1040
	sub	sp, sp, #8
	ldr	r3, .L11
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #1044]
	mov	r3,#0
	bl	FD_ZERO
	add	r1, sp, #8
	mov	r0, r4
	bl	FD_SET
	mov	r1, #1024
	add	r0, sp, #20
	bl	bzero
	mov	r7, #0
	add	r6, r4, r8
	add	r5, sp, #12
	b	.L5
.L2:
	mov	r0, r4
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	beq	.L7
	mov	r3, #0
	mov	r2, #1024
	mov	r0, r4
	add	r1, sp, #20
	bl	read
	cmp	r0, #0
	ble	.L4
.L5:
	mov	r3, #0
	mov	r0, r6
	mov	r2, r3
	str	r5, [sp]
	add	r1, sp, #8
	str	r8, [sp, #12]
	str	r7, [sp, #16]
	bl	select
	cmp	r0, #0
	bge	.L2
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #1044]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #1040
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, #1
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	readcrap, .-readcrap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
