	.file	"143233.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/143233.c"
.LC1:
	.string	"argc == 2"
.LC2:
	.string	"open"
.LC3:
	.string	"tee"
.LC4:
	.string	"splice"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 436
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	ecx, 2
	mov	edx, 2147483647
	mov	esi, 1
	mov	edi, 0
	call	tee@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L13
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	cmp	DWORD PTR -12[rbp], 0
	je	.L14
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	mov	r9d, 1
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, eax
	mov	esi, 0
	mov	edi, 0
	call	splice@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -4[rbp]
	sub	DWORD PTR -12[rbp], eax
.L9:
	cmp	DWORD PTR -12[rbp], 0
	jg	.L11
	jmp	.L3
.L13:
	nop
.L6:
	jmp	.L3
.L14:
	nop
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"143233.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/143233.c\000"
	.align	2
.LC1:
	.ascii	"argc == 2\000"
	.align	2
.LC2:
	.ascii	"open\000"
	.align	2
.LC3:
	.ascii	"tee\000"
	.align	2
.LC4:
	.ascii	"splice\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L15
	mov	r2, #16
	ldr	r1, .L15+4
	ldr	r0, .L15+8
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #436
	ldr	r1, .L15+12
	mov	r0, r3
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L15+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #2
	mvn	r2, #-2147483648
	mov	r1, #1
	mov	r0, #0
	bl	tee
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L13
	ldr	r0, .L15+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L14
	b	.L9
.L11:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-12]
	mov	r1, #0
	mov	r0, #0
	bl	splice
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L15+24
	bl	perror
	b	.L6
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L11
	b	.L3
.L13:
	nop
.L6:
	b	.L3
.L14:
	nop
	ldr	r0, [fp, #-12]
	bl	close
	mov	r0, #0
	bl	exit
.L16:
	.align	2
.L15:
	.word	__PRETTY_FUNCTION__.6204
	.word	.LC0
	.word	.LC1
	.word	577
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6204, %object
	.size	__PRETTY_FUNCTION__.6204, 5
__PRETTY_FUNCTION__.6204:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
