	.file	"445643.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socketpair"
.LC1:
	.string	"X"
.LC2:
	.string	"unable to open %s\n"
	.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -168[rbp]
	mov	rcx, rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socketpair@PLT
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -168[rbp]
	mov	edx, 0
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 0
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	call	fork@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L4
.L8:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 100000
	call	usleep@PLT
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	jns	.L5
	mov	edi, 66
	call	putchar@PLT
	jmp	.L6
.L5:
	lea	rcx, -180[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 4
	je	.L7
	mov	edi, 98
	call	putchar@PLT
	jmp	.L6
.L7:
	mov	edi, 114
	call	putchar@PLT
.L6:
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 100000
	call	usleep@PLT
.L4:
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	recvfd
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L8
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	_exit@PLT
.L3:
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
.L13:
	mov	DWORD PTR -176[rbp], 1
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L10
	mov	eax, DWORD PTR -176[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, DWORD PTR -172[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sendfd
	mov	edi, 119
	call	putchar@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
.L11:
	add	DWORD PTR -176[rbp], 1
.L9:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L12
	mov	edi, 190000
	call	usleep@PLT
	jmp	.L13
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"sendfd: failed %s\n"
	.text
	.globl	sendfd
	.type	sendfd, @function
sendfd:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	lea	rax, -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 1
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 24
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 1
	mov	QWORD PTR -32[rbp], 24
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -16[rbp], eax
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sendmsg@PLT
	test	rax, rax
	jns	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sendfd, .-sendfd
	.section	.rodata
.LC4:
	.string	"recvmsg: failed %s\n"
	.text
	.globl	recvfd
	.type	recvfd, @function
recvfd:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	lea	rax, -120[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], 4
	lea	rax, -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 1
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 24
	mov	QWORD PTR -32[rbp], 24
	mov	DWORD PTR -16[rbp], -1
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	recvmsg@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L22
.L20:
	mov	eax, DWORD PTR -16[rbp]
.L22:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	recvfd, .-recvfd
	.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	"445643.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socketpair\000"
	.align	2
.LC1:
	.ascii	"X\000"
	.align	2
.LC2:
	.ascii	"unable to open %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socketpair
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L15+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	ldr	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	b	.L4
.L8:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L15+12
	bl	usleep
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	mov	r0, #66
	bl	putchar
	b	.L6
.L5:
	sub	r3, fp, #120
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	read
	mov	r3, r0
	cmp	r3, #4
	beq	.L7
	mov	r0, #98
	bl	putchar
	b	.L6
.L7:
	mov	r0, #114
	bl	putchar
.L6:
	ldr	r0, [fp, #-112]
	bl	close
	ldr	r0, .L15+12
	bl	usleep
.L4:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	recvfd
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L15+16
	bl	puts
	mov	r0, #0
	bl	_exit
.L3:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
.L13:
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L9
.L12:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L15+20
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L15+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+28
	bl	fprintf
	b	.L11
.L10:
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	sendfd
	mov	r0, #119
	bl	putchar
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, [fp, #-112]
	bl	close
.L11:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L9:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	blt	.L12
	ldr	r0, .L15+32
	bl	usleep
	b	.L13
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	stdout
	.word	100000
	.word	.LC1
	.word	438
	.word	stderr
	.word	.LC2
	.word	190000
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"sendfd: failed %s\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendfd, %function
sendfd:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #52
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	str	r3, [r2, #16]
	str	r3, [r2, #20]
	str	r3, [r2, #24]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	sub	r3, fp, #24
	str	r3, [fp, #-36]
	mov	r3, #16
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #16
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-12]
	sub	r3, fp, #52
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	sendmsg
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	mov	r0, #1
	bl	exit
.L20:
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	.LC4
	.size	sendfd, .-sendfd
	.section	.rodata
	.align	2
.LC6:
	.ascii	"recvmsg: failed %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recvfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	recvfd, %function
recvfd:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #52
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	str	r3, [r2, #16]
	str	r3, [r2, #20]
	str	r3, [r2, #24]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #68
	str	r3, [fp, #-60]
	mov	r3, #4
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	sub	r3, fp, #24
	str	r3, [fp, #-36]
	mov	r3, #16
	str	r3, [fp, #-32]
	mov	r3, #16
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #52
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	recvmsg
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L24
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L28+4
	bl	printf
	mvn	r3, #0
	b	.L26
.L24:
	ldr	r3, [fp, #-12]
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC7
	.word	.LC6
	.size	recvfd, .-recvfd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
