	.file	"275460.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./vsock-helper {echosrv [-d] <port> | echo <cid> <port>}\n"
	.align 8
.LC1:
	.string	"  echosrv       start a vsock echo server. The server will accept\n"
	.align 8
.LC2:
	.string	"                any incoming connection, and echo back any data\n"
	.align 8
.LC3:
	.string	"                received on it.\n"
	.align 8
.LC4:
	.string	"                -d can be used to daemonize the server.\n"
	.align 8
.LC5:
	.string	"  echo          connect to an echo server, listening on CID:port.\n"
	.align 8
.LC6:
	.string	"                STDIN will be piped through to the echo server, and\n"
	.align 8
.LC7:
	.string	"                data coming from the server will pe sent to STDOUT.\n"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 66
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 66
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 68
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 68
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_usage, .-print_usage
	.globl	xfer
	.type	xfer, @function
xfer:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	DWORD PTR -16420[rbp], edi
	mov	DWORD PTR -16424[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -16400[rbp]
	mov	eax, DWORD PTR -16420[rbp]
	mov	edx, 16384
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -16408[rbp], eax
	cmp	DWORD PTR -16408[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L9
.L4:
	cmp	DWORD PTR -16408[rbp], 0
	jns	.L6
	mov	eax, -1
	jmp	.L9
.L6:
	mov	DWORD PTR -16412[rbp], 0
.L8:
	mov	eax, DWORD PTR -16408[rbp]
	sub	eax, DWORD PTR -16412[rbp]
	movsx	rdx, eax
	lea	rcx, -16400[rbp]
	mov	eax, DWORD PTR -16412[rbp]
	cdqe
	add	rcx, rax
	mov	eax, DWORD PTR -16424[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -16404[rbp], eax
	cmp	DWORD PTR -16404[rbp], 0
	jg	.L7
	mov	eax, -1
	jmp	.L9
.L7:
	mov	eax, DWORD PTR -16404[rbp]
	add	DWORD PTR -16412[rbp], eax
	mov	eax, DWORD PTR -16412[rbp]
	cmp	eax, DWORD PTR -16408[rbp]
	jl	.L8
	mov	eax, DWORD PTR -16412[rbp]
.L9:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	xfer, .-xfer
	.section	.rodata
.LC8:
	.string	"socket()"
.LC9:
	.string	"bind()"
.LC10:
	.string	"listen()"
.LC11:
	.string	"accept()"
.LC12:
	.string	"fork()"
.LC13:
	.string	"New client forked..."
	.text
	.globl	run_echosrv
	.type	run_echosrv, @function
run_echosrv:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	WORD PTR -48[rbp], 40
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -40[rbp], -1
	mov	edx, 0
	mov	esi, 1
	mov	edi, 40
	call	socket@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L12
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L24
.L12:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	je	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L24
.L14:
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 128
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	je	.L15
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L24
.L15:
	mov	DWORD PTR -76[rbp], 16
	lea	rdx, -76[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L16
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L23
.L16:
	call	fork@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L18
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L23
.L18:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L19
.L20:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, edx
	mov	edi, eax
	call	xfer
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jg	.L20
	cmp	DWORD PTR -52[rbp], 0
	js	.L21
	mov	eax, 0
	jmp	.L24
.L21:
	mov	eax, -1
	jmp	.L24
.L19:
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -72[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	call	waitpid@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L23:
	jmp	.L15
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	run_echosrv, .-run_echosrv
	.section	.rodata
.LC14:
	.string	"connect()"
	.text
	.globl	run_echo
	.type	run_echo, @function
run_echo:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 40
	call	socket@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L27
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L36
.L27:
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -32[rbp], 40
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -24[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L29
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L36
.L29:
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	mov	edi, 0
	call	xfer
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	je	.L39
	cmp	DWORD PTR -40[rbp], 0
	jns	.L32
	mov	eax, -1
	jmp	.L36
.L32:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, 1
	mov	edi, eax
	call	xfer
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jg	.L34
	mov	eax, -1
	jmp	.L36
.L34:
	mov	eax, DWORD PTR -36[rbp]
	add	DWORD PTR -48[rbp], eax
.L33:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L35
	jmp	.L29
.L39:
	nop
	mov	eax, 0
.L36:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run_echo, .-run_echo
	.section	.rodata
.LC15:
	.string	"echosrv"
.LC16:
	.string	"-d"
	.align 8
.LC17:
	.string	"Forked vsock echo daemon listening on port %d\n"
.LC18:
	.string	"echo"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	jg	.L41
	mov	eax, 0
	call	print_usage
	jmp	.L42
.L41:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	cmp	DWORD PTR -20[rbp], 3
	jg	.L45
	mov	eax, 0
	call	print_usage
	jmp	.L42
.L45:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L46
	mov	eax, 0
	call	print_usage
	jmp	.L42
.L46:
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L47
	mov	eax, -1
	jmp	.L42
.L47:
	cmp	DWORD PTR -4[rbp], 0
	je	.L48
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L42
.L48:
	call	setsid@PLT
	mov	edi, 0
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	jmp	.L49
.L44:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L49
	mov	eax, 0
	call	print_usage
	jmp	.L42
.L49:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	run_echosrv
	jmp	.L42
.L43:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L50
	cmp	DWORD PTR -20[rbp], 4
	je	.L51
	mov	eax, 0
	call	print_usage
	jmp	.L42
.L51:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L52
	cmp	DWORD PTR -8[rbp], 0
	jne	.L53
.L52:
	mov	eax, 0
	call	print_usage
	jmp	.L42
.L53:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	run_echo
	jmp	.L42
.L50:
	mov	eax, 0
	call	print_usage
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-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	"275460.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./vsock-helper {echosrv [-d] <port> | echo <"
	.ascii	"cid> <port>}\012\000"
	.align	2
.LC1:
	.ascii	"  echosrv       start a vsock echo server. The serv"
	.ascii	"er will accept\012\000"
	.align	2
.LC2:
	.ascii	"                any incoming connection, and echo b"
	.ascii	"ack any data\012\000"
	.align	2
.LC3:
	.ascii	"                received on it.\012\000"
	.align	2
.LC4:
	.ascii	"                -d can be used to daemonize the ser"
	.ascii	"ver.\012\000"
	.align	2
.LC5:
	.ascii	"  echo          connect to an echo server, listenin"
	.ascii	"g on CID:port.\012\000"
	.align	2
.LC6:
	.ascii	"                STDIN will be piped through to the "
	.ascii	"echo server, and\012\000"
	.align	2
.LC7:
	.ascii	"                data coming from the server will pe"
	.ascii	" sent to STDOUT.\012\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, .L3+4
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #66
	mov	r1, #1
	ldr	r0, .L3+8
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, .L3+12
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L3+16
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L3+20
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #66
	mov	r1, #1
	ldr	r0, .L3+24
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #68
	mov	r1, #1
	ldr	r0, .L3+28
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #68
	mov	r1, #1
	ldr	r0, .L3+32
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mvn	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfer
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfer, %function
xfer:
	@ args = 0, pretend = 0, frame = 16408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16384
	sub	sp, sp, #28
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16384
	mov	r1, r3
	ldr	r0, [r0, #-20]
	bl	read
	str	r0, [r4, #-12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	b	.L11
.L6:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L8
	mvn	r3, #0
	b	.L11
.L8:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
.L10:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	add	r1, r3, r2
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	write
	str	r0, [r4, #-8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bgt	.L9
	mvn	r3, #0
	b	.L11
.L9:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-8]
	add	r3, r2, r3
	str	r3, [r1, #-16]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-12]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.size	xfer, .-xfer
	.section	.rodata
	.align	2
.LC9:
	.ascii	"socket()\000"
	.align	2
.LC10:
	.ascii	"bind()\000"
	.align	2
.LC11:
	.ascii	"listen()\000"
	.align	2
.LC12:
	.ascii	"accept()\000"
	.align	2
.LC13:
	.ascii	"fork()\000"
	.align	2
.LC14:
	.ascii	"New client forked...\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run_echosrv
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_echosrv, %function
run_echosrv:
	@ 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, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #40
	strh	r3, [fp, #-40]	@ movhi
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-36]
	mvn	r3, #0
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #40
	bl	socket
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L30+4
	bl	perror
	mvn	r3, #0
	b	.L28
.L16:
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	bind
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L30+8
	bl	perror
	mvn	r3, #0
	b	.L28
.L18:
	mov	r1, #128
	ldr	r0, [fp, #-60]
	bl	listen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L30+12
	bl	perror
	mvn	r3, #0
	b	.L28
.L19:
	mov	r3, #16
	str	r3, [fp, #-68]
	sub	r2, fp, #68
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	accept
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L30+16
	bl	perror
	b	.L27
.L20:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L30+20
	bl	perror
	ldr	r0, [fp, #-52]
	bl	close
	b	.L27
.L22:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L23
.L24:
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	xfer
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L24
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L25
	mov	r3, #0
	b	.L28
.L25:
	mvn	r3, #0
	b	.L28
.L23:
	ldr	r0, [fp, #-52]
	bl	close
	sub	r3, fp, #64
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	ldr	r0, .L30+24
	bl	puts
.L27:
	b	.L19
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC15
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	run_echosrv, .-run_echosrv
	.section	.rodata
	.align	2
.LC16:
	.ascii	"connect()\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run_echo
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_echo, %function
run_echo:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #40
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L33
	ldr	r0, .L46+4
	bl	perror
	mvn	r3, #0
	b	.L42
.L33:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #40
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L46+8
	bl	perror
	mvn	r3, #0
	b	.L42
.L35:
	ldr	r1, [fp, #-36]
	mov	r0, #0
	bl	xfer
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L38
	mvn	r3, #0
	b	.L42
.L38:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L39
.L41:
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	xfer
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L40
	mvn	r3, #0
	b	.L42
.L40:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-40]
.L39:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L41
	b	.L35
.L45:
	nop
	mov	r3, #0
.L42:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC17
	.word	.LC9
	.word	.LC16
	.size	run_echo, .-run_echo
	.section	.rodata
	.align	2
.LC18:
	.ascii	"echosrv\000"
	.align	2
.LC19:
	.ascii	"-d\000"
	.align	2
.LC20:
	.ascii	"Forked vsock echo daemon listening on port %d\012\000"
	.align	2
.LC21:
	.ascii	"echo\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, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bgt	.L49
	bl	print_usage
	mov	r3, r0
	b	.L50
.L49:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L62
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L62+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bgt	.L53
	bl	print_usage
	mov	r3, r0
	b	.L50
.L53:
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L54
	bl	print_usage
	mov	r3, r0
	b	.L50
.L54:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L55
	mvn	r3, #0
	b	.L50
.L55:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L56
	ldr	r1, [fp, #-20]
	ldr	r0, .L62+8
	bl	printf
	mov	r3, #0
	b	.L50
.L56:
	bl	setsid
	mov	r0, #0
	bl	close
	mov	r0, #1
	bl	close
	b	.L57
.L52:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L57
	bl	print_usage
	mov	r3, r0
	b	.L50
.L57:
	ldr	r0, [fp, #-20]
	bl	run_echosrv
	mov	r3, r0
	b	.L50
.L51:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L62+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L59
	bl	print_usage
	mov	r3, r0
	b	.L50
.L59:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L61
.L60:
	bl	print_usage
	mov	r3, r0
	b	.L50
.L61:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	run_echo
	mov	r3, r0
	b	.L50
.L58:
	bl	print_usage
	mov	r3, r0
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
