	.file	"65401.c"
	.intel_syntax noprefix
	.text
	.globl	israw
	.data
	.align 4
	.type	israw, @object
	.size	israw, 4
israw:
	.long	-1
	.globl	tc
	.bss
	.align 32
	.type	tc, @object
	.size	tc, 60
tc:
	.zero	60
	.text
	.globl	cooked
	.type	cooked, @function
cooked:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR israw[rip]
	cmp	eax, 1
	jne	.L3
	lea	rdx, tc[rip]
	mov	esi, 1
	mov	edi, 0
	call	tcsetattr@PLT
	mov	DWORD PTR israw[rip], 0
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cooked, .-cooked
	.globl	raw
	.type	raw, @function
raw:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR israw[rip]
	test	eax, eax
	jns	.L5
	lea	rsi, tc[rip]
	mov	edi, 0
	call	tcgetattr@PLT
	test	eax, eax
	js	.L9
	lea	rdi, cooked[rip]
	call	atexit@PLT
.L5:
	mov	eax, DWORD PTR israw[rip]
	cmp	eax, 1
	je	.L4
	mov	rax, QWORD PTR tc[rip]
	mov	rdx, QWORD PTR tc[rip+8]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR tc[rip+16]
	mov	rdx, QWORD PTR tc[rip+24]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR tc[rip+32]
	mov	rdx, QWORD PTR tc[rip+40]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR tc[rip+48]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR tc[rip+56]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -1516
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -32844
	mov	DWORD PTR -68[rbp], eax
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	mov	DWORD PTR israw[rip], 1
	jmp	.L4
.L9:
	nop
.L4:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	raw, .-raw
	.globl	get
	.type	get, @function
get:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	QWORD PTR -160[rbp], rax
	lea	rdx, -144[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -144[rbp]
	or	rax, 1
	mov	QWORD PTR -144[rbp], rax
	jmp	.L11
.L17:
	lea	rax, -165[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 1
	jne	.L12
	movzx	eax, BYTE PTR -165[rbp]
	movzx	eax, al
	jmp	.L18
.L12:
	cmp	DWORD PTR -164[rbp], 0
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L16
.L11:
	lea	rdx, -160[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	select@PLT
	test	eax, eax
	jg	.L17
.L16:
	mov	eax, -1
.L18:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get, .-get
	.globl	put
	.type	put, @function
put:
.LFB9:
	.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	eax, edi
	mov	BYTE PTR -20[rbp], al
.L24:
	lea	rax, -20[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	jne	.L21
	mov	eax, 0
	jmp	.L22
.L21:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L24
	mov	eax, -1
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	put, .-put
	.section	.rodata
	.align 8
.LC0:
	.string	"Waiting 20 seconds for input on stdin...\n"
.LC1:
	.string	"Timeout!\n"
.LC2:
	.string	"Snarfed %d bytes\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	call	raw
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 20
	call	get
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L26
	call	cooked
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -8[rbp]
	movzx	eax, al
	mov	edi, eax
	call	put
	add	DWORD PTR -4[rbp], 1
	mov	edi, 2
	call	get
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L26
	call	cooked
	mov	edi, 1
	call	close@PLT
	mov	edi, 10000
	call	usleep@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"65401.c"
	.text
	.global	israw
	.data
	.align	2
	.type	israw, %object
	.size	israw, 4
israw:
	.word	-1
	.comm	tc,60,4
	.text
	.align	2
	.global	cooked
	.syntax unified
	.arm
	.fpu softvfp
	.type	cooked, %function
cooked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L3
	ldr	r2, .L4+4
	mov	r1, #1
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, .L4
	mov	r2, #0
	str	r2, [r3]
.L3:
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	israw
	.word	tc
	.size	cooked, .-cooked
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	raw
	.syntax unified
	.arm
	.fpu softvfp
	.type	raw, %function
raw:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L7
	ldr	r1, .L12+8
	mov	r0, #0
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	blt	.L11
	ldr	r0, .L12+12
	bl	atexit
.L7:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L6
	ldr	r3, .L12+8
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-68]
	bic	r3, r3, #1504
	bic	r3, r3, #11
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-56]
	bic	r3, r3, #32768
	bic	r3, r3, #75
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, .L12+4
	mov	r2, #1
	str	r2, [r3]
	b	.L6
.L11:
	nop
.L6:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	israw
	.word	tc
	.word	cooked
	.size	raw, .-raw
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get
	.syntax unified
	.arm
	.fpu softvfp
	.type	get, %function
get:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #144
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-144]
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-136]
	orr	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L15
.L21:
	sub	r3, fp, #149
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #1
	bne	.L16
	ldrb	r3, [fp, #-149]	@ zero_extendqisi2
	b	.L22
.L16:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L20
.L15:
	sub	r1, fp, #136
	sub	r3, fp, #144
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bgt	.L21
.L20:
	mvn	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.size	get, .-get
	.align	2
	.global	put
	.syntax unified
	.arm
	.fpu softvfp
	.type	put, %function
put:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
.L30:
	sub	r3, fp, #13
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L30
	mvn	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	put, .-put
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Waiting 20 seconds for input on stdin...\012\000"
	.align	2
.LC3:
	.ascii	"Timeout!\012\000"
	.align	2
.LC4:
	.ascii	"Snarfed %d bytes\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	raw
	ldr	r3, .L34
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L34+4
	bl	fwrite
	mov	r0, #20
	bl	get
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L32
	bl	cooked
	ldr	r3, .L34
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L34+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L32:
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	mov	r0, r3
	bl	put
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #2
	bl	get
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L32
	bl	cooked
	mov	r0, #1
	bl	close
	ldr	r0, .L34+12
	bl	usleep
	ldr	r3, .L34
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L34+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	10000
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
