	.file	"198581826.c"
	.intel_syntax noprefix
	.text
	.globl	tr_run_dup2_master2x_test
	.type	tr_run_dup2_master2x_test, @function
tr_run_dup2_master2x_test:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -18[rbp], 42
	lea	rax, -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	pipe@PLT
	cmp	eax, -1
	jne	.L2
	mov	eax, 32
	jmp	.L12
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L4
	mov	eax, 33
	jmp	.L12
.L4:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	dup2@PLT
	cmp	eax, -1
	jne	.L5
	mov	eax, 34
	jmp	.L12
.L5:
	lea	rcx, -18[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	eax, -1
	jne	.L6
	mov	eax, 35
	jmp	.L12
.L6:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	cmp	eax, -1
	jne	.L7
	mov	eax, 36
	jmp	.L12
.L7:
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -17[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	cmp	eax, -1
	jne	.L8
	mov	eax, 37
	jmp	.L12
.L8:
	movzx	edx, BYTE PTR -17[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	cmp	dl, al
	je	.L9
	mov	eax, 38
	jmp	.L12
.L9:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	cmp	eax, -1
	jne	.L10
	mov	eax, 39
	jmp	.L12
.L10:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	cmp	eax, -1
	jne	.L11
	mov	eax, 40
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tr_run_dup2_master2x_test, .-tr_run_dup2_master2x_test
	.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	"198581826.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tr_run_dup2_master2x_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	tr_run_dup2_master2x_test, %function
tr_run_dup2_master2x_test:
	@ 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, #-24]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #42
	strb	r3, [fp, #-18]
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	mov	r3, #32
	b	.L12
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L4
	mov	r3, #33
	b	.L12
.L4:
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	mov	r3, #34
	b	.L12
.L5:
	sub	r3, fp, #18
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	mov	r3, #35
	b	.L12
.L6:
	ldr	r0, [fp, #-24]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	mov	r3, #36
	b	.L12
.L7:
	ldr	r3, [fp, #-16]
	sub	r1, fp, #17
	mov	r2, #1
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mov	r3, #37
	b	.L12
.L8:
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L9
	mov	r3, #38
	b	.L12
.L9:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	mov	r3, #39
	b	.L12
.L10:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	mov	r3, #40
	b	.L12
.L11:
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	tr_run_dup2_master2x_test, .-tr_run_dup2_master2x_test
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
