	.file	"393245.c"
	.intel_syntax noprefix
	.text
	.globl	die
	.type	die, @function
die:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR -216[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L3
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 32
	call	fputc@PLT
	mov	edi, 0
	call	perror@PLT
	jmp	.L4
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L4:
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
	.align 8
.LC0:
	.string	"ptty [-C] [-c cols] [-r rows] cmd\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"strtoimax: %s"
.LC2:
	.string	"c:r:Ch"
.LC3:
	.string	"forkpty"
.LC4:
	.string	"exec"
.LC5:
	.string	"close:"
.LC6:
	.string	"poll:"
.LC7:
	.string	"read:"
.LC8:
	.string	"write:"
.LC9:
	.string	"\033[6n"
.LC10:
	.string	"\033[25;1R"
.LC11:
	.string	"waitpid:"
	.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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -8276[rbp], edi
	mov	QWORD PTR -8288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -8232[rbp], 25
	mov	WORD PTR -8230[rbp], 80
	mov	WORD PTR -8228[rbp], 0
	mov	WORD PTR -8226[rbp], 0
	mov	BYTE PTR -8265[rbp], 0
	jmp	.L8
.L14:
	cmp	DWORD PTR -8256[rbp], 114
	je	.L9
	cmp	DWORD PTR -8256[rbp], 114
	jg	.L10
	cmp	DWORD PTR -8256[rbp], 67
	je	.L11
	cmp	DWORD PTR -8256[rbp], 99
	jne	.L10
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoimax@PLT
	mov	WORD PTR -8230[rbp], ax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR optarg[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	die
	jmp	.L8
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoimax@PLT
	mov	WORD PTR -8232[rbp], ax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR optarg[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	die
	jmp	.L8
.L11:
	mov	BYTE PTR -8265[rbp], 1
	jmp	.L8
.L10:
	call	usage
.L8:
	mov	rcx, QWORD PTR -8288[rbp]
	mov	eax, DWORD PTR -8276[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -8256[rbp], eax
	cmp	DWORD PTR -8256[rbp], -1
	jne	.L14
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -8276[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -8288[rbp], rax
	cmp	DWORD PTR -8276[rbp], 0
	jg	.L15
	call	usage
.L15:
	lea	rdx, -8232[rbp]
	lea	rax, -8264[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	forkpty@PLT
	mov	DWORD PTR -8252[rbp], eax
	cmp	DWORD PTR -8252[rbp], -1
	je	.L16
	cmp	DWORD PTR -8252[rbp], 0
	je	.L17
	jmp	.L18
.L16:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	die
.L17:
	mov	rax, QWORD PTR -8288[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	die
.L18:
	cmp	BYTE PTR -8265[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -8264[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L19
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	die
.L19:
	mov	DWORD PTR -8248[rbp], 2
	mov	DWORD PTR -8224[rbp], 0
	mov	WORD PTR -8220[rbp], 1
	mov	WORD PTR -8218[rbp], 0
	mov	eax, DWORD PTR -8264[rbp]
	mov	DWORD PTR -8216[rbp], eax
	mov	WORD PTR -8212[rbp], 1
	mov	WORD PTR -8210[rbp], 0
.L36:
	mov	eax, DWORD PTR -8248[rbp]
	movsx	rcx, eax
	lea	rax, -8224[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -8244[rbp], eax
	cmp	DWORD PTR -8244[rbp], -1
	jne	.L20
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	die
.L20:
	movzx	eax, WORD PTR -8218[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L21
	lea	rax, -8208[rbp]
	mov	edx, 8192
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	QWORD PTR -8240[rbp], rax
	cmp	QWORD PTR -8240[rbp], -1
	jne	.L22
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	die
.L22:
	cmp	QWORD PTR -8240[rbp], 0
	jne	.L23
	mov	DWORD PTR -8224[rbp], -1
	mov	eax, DWORD PTR -8264[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L39
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	die
	jmp	.L39
.L23:
	mov	rdx, QWORD PTR -8240[rbp]
	mov	eax, DWORD PTR -8264[rbp]
	lea	rcx, -8208[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L21
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	die
.L21:
	movzx	eax, WORD PTR -8210[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -8264[rbp]
	lea	rcx, -8208[rbp]
	mov	edx, 8191
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8240[rbp], rax
	cmp	QWORD PTR -8240[rbp], -1
	jne	.L27
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	die
.L27:
	cmp	QWORD PTR -8240[rbp], 0
	je	.L40
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8240[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	eax, DWORD PTR -8264[rbp]
	lea	rsi, .LC10[rip]
	mov	edi, eax
	mov	eax, 0
	call	dprintf@PLT
	jmp	.L36
.L29:
	mov	rdx, QWORD PTR -8240[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	cmp	rax, -1
	jne	.L26
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	die
.L26:
	movzx	eax, WORD PTR -8218[rbp]
	cwde
	and	eax, 16
	test	eax, eax
	je	.L31
	mov	DWORD PTR -8224[rbp], -1
	mov	eax, DWORD PTR -8264[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L41
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	die
	jmp	.L41
.L31:
	movzx	eax, WORD PTR -8210[rbp]
	cwde
	and	eax, 16
	test	eax, eax
	je	.L36
	jmp	.L25
.L39:
	nop
	jmp	.L25
.L40:
	nop
	jmp	.L25
.L41:
	nop
.L25:
	lea	rcx, -8260[rbp]
	mov	eax, DWORD PTR -8252[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	DWORD PTR -8252[rbp], eax
	jne	.L34
	jmp	.L35
.L34:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	die
.L35:
	mov	eax, DWORD PTR -8260[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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	"393245.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L2
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #32
	bl	fputc
	mov	r0, #0
	bl	perror
	b	.L3
.L2:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L3:
	mov	r0, #1
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	stderr
	.size	die, .-die
	.section	.rodata
	.align	2
.LC2:
	.ascii	"ptty [-C] [-c cols] [-r rows] cmd\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L8+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	.align	2
.L8:
	.word	stderr
	.word	.LC2
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC3:
	.ascii	"strtoimax: %s\000"
	.align	2
.LC4:
	.ascii	"c:r:Ch\000"
	.align	2
.LC5:
	.ascii	"forkpty\000"
	.align	2
.LC6:
	.ascii	"exec\000"
	.align	2
.LC7:
	.ascii	"close:\000"
	.align	2
.LC8:
	.ascii	"poll:\000"
	.align	2
.LC9:
	.ascii	"read:\000"
	.align	2
.LC10:
	.ascii	"write:\000"
	.align	2
.LC11:
	.ascii	"\033[6n\000"
	.align	2
.LC12:
	.ascii	"\033[25;1R\000"
	.align	2
.LC13:
	.ascii	"waitpid:\000"
	.align	2
.LC0:
	.short	25
	.short	80
	.short	0
	.short	0
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-72]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L45+4
	sub	r3, r3, #28
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-57]
	b	.L11
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #114
	beq	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #114
	bgt	.L13
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #67
	beq	.L14
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #99
	bne	.L13
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoimax
	mov	r2, r0
	mov	r3, r1
	lsl	r3, r2, #16
	lsr	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	strh	r3, [r2, #-26]	@ movhi
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+12
	bl	die
	b	.L11
.L12:
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoimax
	mov	r2, r0
	mov	r3, r1
	lsl	r3, r2, #16
	lsr	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	strh	r3, [r2, #-28]	@ movhi
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+12
	bl	die
	b	.L11
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #1
	strb	r2, [r3, #-57]
	b	.L11
.L13:
	bl	usage
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L45+16
	ldr	r1, [r1, #-72]
	ldr	r0, [r3, #-68]
	bl	getopt
	str	r0, [r4, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L45+20
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-68]
	sub	r3, r2, r3
	str	r3, [r1, #-68]
	ldr	r3, .L45+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-72]
	add	r3, r2, r3
	str	r3, [r1, #-72]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	cmp	r3, #0
	bgt	.L18
	bl	usage
.L18:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #28
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #56
	mov	r2, #0
	mov	r1, #0
	bl	forkpty
	str	r0, [r4, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmn	r3, #1
	beq	.L19
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L20
	b	.L21
.L19:
	ldr	r0, .L45+24
	bl	die
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r1, [r2, #-72]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L45+28
	bl	die
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r3, [r3, #-57]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L45+32
	bl	die
.L22:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #1
	strh	r2, [r3, #-16]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-14]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #1
	strh	r2, [r3, #-8]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-6]	@ movhi
.L39:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	mvn	r2, #0
	mov	r0, r3
	bl	poll
	str	r0, [r4, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L45+36
	bl	die
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrsh	r3, [r3, #-14]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #8192
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L45+40
	bl	die
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bne	.L26
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L45+32
	bl	die
	b	.L42
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L45+44
	bl	die
.L24:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrsh	r3, [r3, #-6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L45+48
	mov	r1, r3
	bl	read
	str	r0, [r4, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L45+40
	bl	die
.L30:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	beq	.L43
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L45+52
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldr	r1, .L45+56
	mov	r0, r3
	bl	dprintf
	b	.L39
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L45+44
	bl	die
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrsh	r3, [r3, #-14]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L34
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L44
	ldr	r0, .L45+32
	bl	die
	b	.L44
.L34:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrsh	r3, [r3, #-6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L39
	b	.L28
.L42:
	nop
	b	.L28
.L43:
	nop
	b	.L28
.L44:
	nop
.L28:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-44]
	bl	waitpid
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, r2
	bne	.L37
	b	.L38
.L37:
	ldr	r0, .L45+60
	bl	die
.L38:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC14
	.word	.LC0
	.word	optarg
	.word	.LC3
	.word	.LC4
	.word	optind
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	8191
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
