	.file	"260469.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"A"
.LC1:
	.string	"the_stack_data/260469.c"
.LC2:
	.string	"fd == 3"
.LC3:
	.string	"!close(0)"
.LC4:
	.string	"!close(1)"
.LC5:
	.string	"close(0) == -1"
.LC6:
	.string	"close(1) == -1"
.LC7:
	.string	"open(\"A\", O_TRUNC) == 0"
.LC8:
	.string	"dup(0) == 1"
.LC9:
	.string	"open(\"A\", O_TRUNC) == 4"
.LC10:
	.string	"open(\"A\", O_TRUNC) == 1"
.LC11:
	.string	"dup(0) != 1"
.LC12:
	.string	"dup2(0,1) == 1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	esi, 512
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 3
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 11
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L2:
	mov	edi, 0
	mov	eax, 0
	call	close@PLT
	test	eax, eax
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 12
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L3:
	mov	edi, 1
	mov	eax, 0
	call	close@PLT
	test	eax, eax
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 13
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L4:
	mov	edi, 0
	mov	eax, 0
	call	close@PLT
	cmp	eax, -1
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 14
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L5:
	mov	edi, 1
	mov	eax, 0
	call	close@PLT
	cmp	eax, -1
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 15
	lea	rsi, .LC1[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L6:
	mov	esi, 512
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	test	eax, eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 16
	lea	rsi, .LC1[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L7:
	mov	edi, 0
	mov	eax, 0
	call	dup@PLT
	cmp	eax, 1
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 17
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L8:
	mov	esi, 512
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	cmp	eax, 4
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 18
	lea	rsi, .LC1[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L9:
	mov	edi, 1
	mov	eax, 0
	call	close@PLT
	test	eax, eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 19
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L10:
	mov	esi, 512
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	cmp	eax, 1
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 20
	lea	rsi, .LC1[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L11:
	mov	edi, 0
	mov	eax, 0
	call	dup@PLT
	cmp	eax, 1
	jne	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 21
	lea	rsi, .LC1[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L12:
	mov	esi, 1
	mov	edi, 0
	mov	eax, 0
	call	dup2@PLT
	cmp	eax, 1
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 22
	lea	rsi, .LC1[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L13:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"260469.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"A\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/260469.c\000"
	.align	2
.LC2:
	.ascii	"fd == 3\000"
	.align	2
.LC3:
	.ascii	"!close(0)\000"
	.align	2
.LC4:
	.ascii	"!close(1)\000"
	.align	2
.LC5:
	.ascii	"close(0) == -1\000"
	.align	2
.LC6:
	.ascii	"close(1) == -1\000"
	.align	2
.LC7:
	.ascii	"open(\"A\", O_TRUNC) == 0\000"
	.align	2
.LC8:
	.ascii	"dup(0) == 1\000"
	.align	2
.LC9:
	.ascii	"open(\"A\", O_TRUNC) == 4\000"
	.align	2
.LC10:
	.ascii	"open(\"A\", O_TRUNC) == 1\000"
	.align	2
.LC11:
	.ascii	"dup(0) != 1\000"
	.align	2
.LC12:
	.ascii	"dup2(0,1) == 1\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	r1, #512
	ldr	r0, .L15
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L15+4
	mov	r2, #11
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	__assert_fail
.L2:
	mov	r0, #0
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L15+4
	mov	r2, #12
	ldr	r1, .L15+8
	ldr	r0, .L15+16
	bl	__assert_fail
.L3:
	mov	r0, #1
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L15+4
	mov	r2, #13
	ldr	r1, .L15+8
	ldr	r0, .L15+20
	bl	__assert_fail
.L4:
	mov	r0, #0
	bl	close
	mov	r3, r0
	cmn	r3, #1
	beq	.L5
	ldr	r3, .L15+4
	mov	r2, #14
	ldr	r1, .L15+8
	ldr	r0, .L15+24
	bl	__assert_fail
.L5:
	mov	r0, #1
	bl	close
	mov	r3, r0
	cmn	r3, #1
	beq	.L6
	ldr	r3, .L15+4
	mov	r2, #15
	ldr	r1, .L15+8
	ldr	r0, .L15+28
	bl	__assert_fail
.L6:
	mov	r1, #512
	ldr	r0, .L15
	bl	open
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L15+4
	mov	r2, #16
	ldr	r1, .L15+8
	ldr	r0, .L15+32
	bl	__assert_fail
.L7:
	mov	r0, #0
	bl	dup
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
	ldr	r3, .L15+4
	mov	r2, #17
	ldr	r1, .L15+8
	ldr	r0, .L15+36
	bl	__assert_fail
.L8:
	mov	r1, #512
	ldr	r0, .L15
	bl	open
	mov	r3, r0
	cmp	r3, #4
	beq	.L9
	ldr	r3, .L15+4
	mov	r2, #18
	ldr	r1, .L15+8
	ldr	r0, .L15+40
	bl	__assert_fail
.L9:
	mov	r0, #1
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L15+4
	mov	r2, #19
	ldr	r1, .L15+8
	ldr	r0, .L15+20
	bl	__assert_fail
.L10:
	mov	r1, #512
	ldr	r0, .L15
	bl	open
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	ldr	r3, .L15+4
	mov	r2, #20
	ldr	r1, .L15+8
	ldr	r0, .L15+44
	bl	__assert_fail
.L11:
	mov	r0, #0
	bl	dup
	mov	r3, r0
	cmp	r3, #1
	bne	.L12
	ldr	r3, .L15+4
	mov	r2, #21
	ldr	r1, .L15+8
	ldr	r0, .L15+48
	bl	__assert_fail
.L12:
	mov	r1, #1
	mov	r0, #0
	bl	dup2
	mov	r3, r0
	cmp	r3, #1
	beq	.L13
	ldr	r3, .L15+4
	mov	r2, #22
	ldr	r1, .L15+8
	ldr	r0, .L15+52
	bl	__assert_fail
.L13:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	__PRETTY_FUNCTION__.4336
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4336, %object
	.size	__PRETTY_FUNCTION__.4336, 5
__PRETTY_FUNCTION__.4336:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
