	.file	"665225.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/665225.c"
.LC1:
	.string	"argc == 3"
.LC2:
	.string	"open()"
.LC3:
	.string	"dup2()"
.LC4:
	.string	"write()"
.LC5:
	.string	"read()"
	.text
	.globl	main
	.type	main, @function
main:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 3
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 23
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	error
.L3:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 484
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L4
	lea	rdi, .LC2[rip]
	call	error
.L4:
	mov	eax, DWORD PTR -284[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC3[rip]
	call	error
.L5:
	mov	eax, DWORD PTR -280[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC3[rip]
	call	error
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -276[rbp]
	movsx	rdx, eax
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	edx, DWORD PTR -276[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L7
	lea	rdi, .LC4[rip]
	call	error
.L7:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jg	.L8
	cmp	DWORD PTR -276[rbp], 0
	jns	.L9
	lea	rdi, .LC5[rip]
	call	error
.L9:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	error, .-error
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"665225.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/665225.c\000"
	.align	2
.LC1:
	.ascii	"argc == 3\000"
	.align	2
.LC2:
	.ascii	"open()\000"
	.align	2
.LC3:
	.ascii	"dup2()\000"
	.align	2
.LC4:
	.ascii	"write()\000"
	.align	2
.LC5:
	.ascii	"read()\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L11+4
	mov	r2, #23
	ldr	r1, .L11+8
	ldr	r0, .L11+12
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L11+16
	bl	error
.L3:
	ldr	r3, [fp, #-284]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #484
	ldr	r1, .L11+20
	mov	r0, r3
	bl	open
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L11+16
	bl	error
.L4:
	mov	r1, #0
	ldr	r0, [fp, #-276]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L11+24
	bl	error
.L5:
	mov	r1, #1
	ldr	r0, [fp, #-272]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L11+24
	bl	error
	b	.L7
.L8:
	ldr	r2, [fp, #-268]
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-268]
	cmp	r3, r2
	beq	.L7
	ldr	r0, .L11+28
	bl	error
.L7:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L11+32
	bl	error
.L9:
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.5881
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	577
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5881, %object
	.size	__PRETTY_FUNCTION__.5881, 5
__PRETTY_FUNCTION__.5881:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
