	.file	"237643626.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s\n"
	.text
	.globl	exits
	.type	exits, @function
exits:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	exits, .-exits
	.globl	readn
	.type	readn, @function
readn:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L6:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L4
	mov	edi, 100
	call	usleep@PLT
.L4:
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
.L3:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jge	.L5
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L6
.L5:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readn, .-readn
	.section	.rodata
.LC1:
	.string	"args"
.LC2:
	.string	"-d"
.LC3:
	.string	"open"
.LC4:
	.string	"fork"
.LC5:
	.string	"9P"
.LC6:
	.string	"readn in 1"
.LC7:
	.string	"readn in 2"
.LC8:
	.string	"readn out 1"
.LC9:
	.string	"readn out 2"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	add	rsp, -128
	mov	DWORD PTR -16500[rbp], edi
	mov	QWORD PTR -16512[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -16481[rbp], 0
	cmp	DWORD PTR -16500[rbp], 1
	jg	.L9
	lea	rdi, .LC1[rip]
	call	exits
.L9:
	mov	rax, QWORD PTR -16512[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	movzx	eax, BYTE PTR -16481[rbp]
	add	eax, 1
	mov	BYTE PTR -16481[rbp], al
	mov	eax, DWORD PTR -16500[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16512[rbp]
	lea	rcx, 16[rax]
	mov	rax, QWORD PTR -16512[rbp]
	add	rax, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
.L10:
	mov	rax, QWORD PTR -16512[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16480[rbp], eax
	cmp	DWORD PTR -16480[rbp], 0
	jns	.L11
	lea	rdi, .LC3[rip]
	call	exits
.L11:
	lea	rdx, -16464[rbp]
	mov	eax, DWORD PTR -16480[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	je	.L12
	mov	edi, -2
	call	exit@PLT
.L12:
	lea	rax, -16464[rbp]
	mov	esi, 4107
	mov	rdi, rax
	call	cfsetspeed@PLT
	mov	eax, DWORD PTR -16456[rbp]
	and	ah, -2
	mov	DWORD PTR -16456[rbp], eax
	mov	eax, DWORD PTR -16456[rbp]
	and	eax, -65
	mov	DWORD PTR -16456[rbp], eax
	mov	eax, DWORD PTR -16456[rbp]
	and	eax, -49
	mov	DWORD PTR -16456[rbp], eax
	mov	eax, DWORD PTR -16456[rbp]
	or	eax, 48
	mov	DWORD PTR -16456[rbp], eax
	mov	eax, DWORD PTR -16456[rbp]
	and	eax, 2147483647
	mov	DWORD PTR -16456[rbp], eax
	mov	BYTE PTR -16441[rbp], 1
	mov	BYTE PTR -16442[rbp], 5
	mov	eax, DWORD PTR -16456[rbp]
	or	eax, 2176
	mov	DWORD PTR -16456[rbp], eax
	lea	rax, -16464[rbp]
	mov	rdi, rax
	call	cfmakeraw@PLT
	mov	eax, DWORD PTR -16480[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcflush@PLT
	lea	rdx, -16464[rbp]
	mov	eax, DWORD PTR -16480[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	je	.L13
	mov	edi, -3
	call	exit@PLT
.L13:
	call	fork@PLT
	mov	DWORD PTR -16476[rbp], eax
	cmp	DWORD PTR -16476[rbp], 0
	jns	.L14
	lea	rdi, .LC4[rip]
	call	exits
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	jmp	.L30
.L14:
	cmp	DWORD PTR -16476[rbp], 0
	jne	.L16
	jmp	.L17
.L21:
	cmp	BYTE PTR -16481[rbp], 0
	je	.L18
	lea	rax, -16400[rbp]
	add	rax, 1
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
.L18:
	lea	rax, -16400[rbp]
	mov	edx, 2
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L31
	lea	rax, -16400[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -16400[rbp], al
.L17:
	lea	rax, -16400[rbp]
	add	rax, 1
	mov	ecx, DWORD PTR -16480[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	readn
	cmp	eax, 1
	je	.L21
	jmp	.L20
.L31:
	nop
.L20:
	lea	rcx, -16400[rbp]
	mov	eax, DWORD PTR -16480[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	readn
	cmp	eax, 4
	je	.L22
	lea	rdi, .LC6[rip]
	call	exits
.L22:
	movzx	eax, BYTE PTR -16400[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -16399[rbp]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -16398[rbp]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -16397[rbp]
	movzx	eax, al
	sal	eax, 24
	or	eax, edx
	mov	DWORD PTR -16468[rbp], eax
	sub	DWORD PTR -16468[rbp], 4
	mov	edx, DWORD PTR -16468[rbp]
	lea	rax, -16400[rbp]
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -16480[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	readn
	cmp	DWORD PTR -16468[rbp], eax
	je	.L23
	lea	rdi, .LC7[rip]
	call	exits
.L23:
	add	DWORD PTR -16468[rbp], 4
	mov	eax, DWORD PTR -16468[rbp]
	movsx	rdx, eax
	lea	rax, -16400[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	cmp	BYTE PTR -16481[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -16468[rbp]
	movsx	rdx, eax
	lea	rax, -16400[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	jmp	.L17
.L16:
	lea	rax, -16400[rbp]
	mov	edx, 4
	mov	rsi, rax
	mov	edi, 0
	call	readn
	cmp	eax, 4
	je	.L26
	lea	rdi, .LC8[rip]
	call	exits
.L26:
	movzx	eax, BYTE PTR -16400[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -16399[rbp]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -16398[rbp]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -16397[rbp]
	movzx	eax, al
	sal	eax, 24
	or	eax, edx
	mov	DWORD PTR -16472[rbp], eax
	sub	DWORD PTR -16472[rbp], 4
	mov	eax, DWORD PTR -16472[rbp]
	lea	rdx, -16400[rbp]
	lea	rcx, 4[rdx]
	mov	edx, eax
	mov	rsi, rcx
	mov	edi, 0
	call	readn
	cmp	DWORD PTR -16472[rbp], eax
	je	.L27
	lea	rdi, .LC9[rip]
	call	exits
.L27:
	add	DWORD PTR -16472[rbp], 4
	mov	eax, DWORD PTR -16472[rbp]
	movsx	rdx, eax
	lea	rcx, -16400[rbp]
	mov	eax, DWORD PTR -16480[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	BYTE PTR -16481[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -16472[rbp]
	movsx	rdx, eax
	lea	rax, -16400[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	jmp	.L16
.L30:
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"237643626.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	exits
	.syntax unified
	.arm
	.fpu softvfp
	.type	exits, %function
exits:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	exits, .-exits
	.align	2
	.global	readn
	.syntax unified
	.arm
	.fpu softvfp
	.type	readn, %function
readn:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	mov	r0, #100
	bl	usleep
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L8
.L7:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readn, .-readn
	.section	.rodata
	.align	2
.LC1:
	.ascii	"args\000"
	.align	2
.LC2:
	.ascii	"-d\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"fork\000"
	.align	2
.LC5:
	.ascii	"9P\000"
	.align	2
.LC6:
	.ascii	"readn in 1\000"
	.align	2
.LC7:
	.ascii	"readn in 2\000"
	.align	2
.LC8:
	.ascii	"readn out 1\000"
	.align	2
.LC9:
	.ascii	"readn out 2\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16480
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16384
	sub	sp, sp, #100
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-92]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-96]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-81]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #1
	bgt	.L11
	ldr	r0, .L34+4
	bl	exits
.L11:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L34+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-81]	@ zero_extendqisi2
	sub	r2, fp, #16384
	sub	r2, r2, #12
	add	r3, r3, #1
	strb	r3, [r2, #-81]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	add	r0, r3, #4
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	add	r1, r3, #8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	mov	r2, r3
	bl	memmove
.L12:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [r4, #-80]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L34+12
	bl	exits
.L13:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #64
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-80]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mvn	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #64
	ldr	r1, .L34+16
	mov	r0, r3
	bl	cfsetspeed
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	bic	r3, r3, #256
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	bic	r3, r3, #64
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	bic	r3, r3, #48
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	orr	r3, r3, #48
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	bic	r3, r3, #-2147483648
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, #1
	strb	r2, [r3, #-41]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, #5
	strb	r2, [r3, #-42]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	orr	r3, r3, #2176
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #64
	mov	r0, r3
	bl	cfmakeraw
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-80]
	bl	tcflush
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #64
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [r0, #-80]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	mvn	r0, #2
	bl	exit
.L15:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-76]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L34+20
	bl	exits
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	b	.L32
.L16:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bne	.L18
	b	.L19
.L23:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-81]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	mov	r0, #2
	bl	write
.L20:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2
	ldr	r1, .L34+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #1
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #16384
	sub	r3, r3, #12
	strb	r2, [r3, #-4]
.L19:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #1
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-80]
	bl	readn
	mov	r3, r0
	cmp	r3, #1
	beq	.L23
	b	.L22
.L33:
	nop
.L22:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [r0, #-80]
	bl	readn
	mov	r3, r0
	cmp	r3, #4
	beq	.L24
	ldr	r0, .L34+28
	bl	exits
.L24:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-2]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	lsl	r3, r3, #24
	sub	r1, fp, #16384
	sub	r1, r1, #12
	orr	r3, r2, r3
	str	r3, [r1, #-68]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	sub	r3, r3, #4
	str	r3, [r2, #-68]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #4
	sub	r1, fp, #16384
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-68]
	mov	r1, r3
	ldr	r0, [r0, #-80]
	bl	readn
	mov	r2, r0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	cmp	r3, r2
	beq	.L25
	ldr	r0, .L34+32
	bl	exits
.L25:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	add	r3, r3, #4
	str	r3, [r2, #-68]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-68]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-81]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-68]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #2
	bl	write
	b	.L19
.L18:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	mov	r0, #0
	bl	readn
	mov	r3, r0
	cmp	r3, #4
	beq	.L28
	ldr	r0, .L34+36
	bl	exits
.L28:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-2]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	lsl	r3, r3, #24
	sub	r1, fp, #16384
	sub	r1, r1, #12
	orr	r3, r2, r3
	str	r3, [r1, #-72]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	sub	r3, r3, #4
	str	r3, [r2, #-72]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #4
	ldr	r2, [r2, #-72]
	mov	r1, r3
	mov	r0, #0
	bl	readn
	mov	r2, r0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	cmp	r3, r2
	beq	.L29
	ldr	r0, .L34+40
	bl	exits
.L29:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	add	r3, r3, #4
	str	r3, [r2, #-72]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-72]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #16384
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-80]
	bl	write
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-81]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-72]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #2
	bl	write
	b	.L18
.L32:
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	4107
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
