	.file	"161576.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Socket pathname too long (max %d bytes)\n"
.LC1:
	.string	"Creating unix socket"
.LC2:
	.string	"Connecting to unix socket"
	.text
	.globl	connect_to_unix_socket
	.type	connect_to_unix_socket, @function
connect_to_unix_socket:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 106
	jbe	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 107
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L6
.L2:
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, -128[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	WORD PTR -128[rbp], 1
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L6
.L4:
	lea	rax, -128[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 3[rax]
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -132[rbp]
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	connect_to_unix_socket, .-connect_to_unix_socket
	.globl	send_the_socket
	.type	send_the_socket, @function
send_the_socket:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 688
	mov	DWORD PTR -660[rbp], edi
	mov	DWORD PTR -664[rbp], esi
	mov	DWORD PTR -668[rbp], edx
	mov	QWORD PTR -680[rbp], rcx
	mov	DWORD PTR -672[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -624[rbp], 0
	mov	QWORD PTR -616[rbp], 0
	mov	QWORD PTR -608[rbp], 0
	mov	QWORD PTR -600[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	QWORD PTR -576[rbp], 0
	mov	rax, QWORD PTR -680[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 255
	jbe	.L9
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
	jmp	.L15
.L9:
	mov	BYTE PTR -528[rbp], 1
	mov	eax, DWORD PTR -668[rbp]
	mov	BYTE PTR -527[rbp], al
	mov	eax, DWORD PTR -672[rbp]
	sar	eax, 8
	mov	BYTE PTR -526[rbp], al
	mov	eax, DWORD PTR -672[rbp]
	mov	BYTE PTR -525[rbp], al
	mov	rax, QWORD PTR -680[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR -524[rbp], al
	lea	rax, -528[rbp]
	add	rax, 5
	mov	rdx, QWORD PTR -680[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -528[rbp]
	mov	QWORD PTR -640[rbp], rax
	mov	rax, QWORD PTR -680[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 5
	mov	QWORD PTR -632[rbp], rax
	lea	rax, -640[rbp]
	mov	QWORD PTR -608[rbp], rax
	mov	QWORD PTR -600[rbp], 1
	lea	rax, -560[rbp]
	mov	QWORD PTR -592[rbp], rax
	mov	QWORD PTR -584[rbp], 24
	mov	rax, QWORD PTR -584[rbp]
	cmp	rax, 15
	jbe	.L11
	mov	rax, QWORD PTR -592[rbp]
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	QWORD PTR -648[rbp], rax
	mov	rax, QWORD PTR -648[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -648[rbp]
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR -648[rbp]
	mov	QWORD PTR [rax], 20
	mov	rax, QWORD PTR -648[rbp]
	lea	rdx, 16[rax]
	mov	eax, DWORD PTR -660[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -648[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -584[rbp], rax
	lea	rcx, -624[rbp]
	mov	eax, DWORD PTR -664[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sendmsg@PLT
	mov	rdx, QWORD PTR -632[rbp]
	cmp	rax, rdx
	je	.L13
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
	jmp	.L15
.L13:
	call	__errno_location@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -664[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	cmp	rax, 4
	je	.L14
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
.L14:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	al
	movzx	eax, al
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	send_the_socket, .-send_the_socket
	.section	.rodata
	.align 8
.LC3:
	.string	"Syntax: socket_user <path to socket binder> <4|6> <ip address> <port>\n"
.LC4:
	.string	"Setting up TCP/IP socket"
.LC5:
	.string	"Enabling SO_REUSEADDR"
.LC6:
	.string	"Enabling IPV6_V6ONLY"
.LC7:
	.string	"send_the_socket"
.LC8:
	.string	"Listening on TCP/IP socket"
	.align 8
.LC9:
	.string	"Got remote socket. Entering accept"
	.align 8
.LC10:
	.string	"Accepting incoming connection on remote fd"
.LC11:
	.string	"This is socket_user 2.0\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 1
	cmp	DWORD PTR -52[rbp], 4
	jg	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 70
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L29
.L18:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	connect_to_unix_socket
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L20
	mov	eax, 1
	jmp	.L29
.L20:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	cmp	rax, 6
	jne	.L21
	mov	eax, 10
	jmp	.L22
.L21:
	mov	eax, 2
.L22:
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L23
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L29
.L23:
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L29
.L24:
	mov	DWORD PTR -40[rbp], 1
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	cmp	rax, 6
	jne	.L25
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 41
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L25
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L29
.L25:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	edx, eax
	mov	esi, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	r8d, r12d
	mov	rcx, rbx
	mov	edi, eax
	call	send_the_socket
	test	eax, eax
	jne	.L26
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L29
.L26:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, 65535
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L27
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L29
.L27:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L28
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 24
	lea	rsi, .LC11[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L29:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"161576.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket pathname too long (max %d bytes)\012\000"
	.align	2
.LC1:
	.ascii	"Creating unix socket\000"
	.align	2
.LC2:
	.ascii	"Connecting to unix socket\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connect_to_unix_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_to_unix_socket, %function
connect_to_unix_socket:
	@ 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]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-128]
	bl	strlen
	mov	r3, r0
	cmp	r3, #106
	bls	.L2
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r2, #107
	ldr	r1, .L8+8
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L6
.L2:
	sub	r3, fp, #120
	add	r3, r3, #2
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	strcpy
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L8+12
	bl	perror
	mvn	r3, #0
	b	.L6
.L4:
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #3
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L8+16
	bl	perror
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-124]
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	connect_to_unix_socket, .-connect_to_unix_socket
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_the_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_the_socket, %function
send_the_socket:
	@ args = 4, pretend = 0, frame = 592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #592
	str	r0, [fp, #-584]
	str	r1, [fp, #-588]
	str	r2, [fp, #-592]
	str	r3, [fp, #-596]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #564
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	ldr	r0, [fp, #-596]
	bl	strlen
	mov	r3, r0
	cmp	r3, #255
	bls	.L11
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r3, #0
	b	.L17
.L11:
	mov	r3, #1
	strb	r3, [fp, #-520]
	ldr	r3, [fp, #-592]
	and	r3, r3, #255
	strb	r3, [fp, #-519]
	ldr	r3, [fp, #4]
	asr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-518]
	ldr	r3, [fp, #4]
	and	r3, r3, #255
	strb	r3, [fp, #-517]
	ldr	r0, [fp, #-596]
	bl	strlen
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-516]
	sub	r3, fp, #520
	add	r3, r3, #5
	ldr	r1, [fp, #-596]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #520
	str	r3, [fp, #-572]
	ldr	r0, [fp, #-596]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #5
	str	r3, [fp, #-568]
	sub	r3, fp, #572
	str	r3, [fp, #-556]
	mov	r3, #1
	str	r3, [fp, #-552]
	sub	r3, fp, #536
	str	r3, [fp, #-548]
	mov	r3, #16
	str	r3, [fp, #-544]
	ldr	r3, [fp, #-544]
	cmp	r3, #11
	bls	.L13
	ldr	r3, [fp, #-548]
	b	.L14
.L13:
	mov	r3, #0
.L14:
	str	r3, [fp, #-576]
	ldr	r3, [fp, #-576]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-576]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-576]
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, [fp, #-576]
	add	r3, r3, #12
	ldr	r2, [fp, #-584]
	str	r2, [r3]
	ldr	r3, [fp, #-576]
	ldr	r3, [r3]
	str	r3, [fp, #-544]
	sub	r3, fp, #564
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	sendmsg
	mov	r3, r0
	ldr	r2, [fp, #-568]
	cmp	r3, r2
	beq	.L15
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r3, #0
	b	.L17
.L15:
	bl	__errno_location
	mov	r1, r0
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-588]
	bl	recv
	mov	r3, r0
	cmp	r3, #4
	beq	.L16
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
.L16:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.size	send_the_socket, .-send_the_socket
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Syntax: socket_user <path to socket binder> <4|6> <"
	.ascii	"ip address> <port>\012\000"
	.align	2
.LC6:
	.ascii	"Setting up TCP/IP socket\000"
	.align	2
.LC7:
	.ascii	"Enabling SO_REUSEADDR\000"
	.align	2
.LC8:
	.ascii	"Enabling IPV6_V6ONLY\000"
	.align	2
.LC9:
	.ascii	"send_the_socket\000"
	.align	2
.LC10:
	.ascii	"Listening on TCP/IP socket\000"
	.align	2
.LC11:
	.ascii	"Got remote socket. Entering accept\000"
	.align	2
.LC12:
	.ascii	"Accepting incoming connection on remote fd\000"
	.align	2
.LC13:
	.ascii	"This is socket_user 2.0\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	bgt	.L22
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r2, #70
	mov	r1, #1
	ldr	r0, .L35+8
	bl	fwrite
	mov	r3, #1
	b	.L33
.L22:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	connect_to_unix_socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L24
	mov	r3, #1
	b	.L33
.L24:
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	cmp	r3, #6
	bne	.L25
	mov	r3, #10
	b	.L26
.L25:
	mov	r3, #2
.L26:
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L35+12
	bl	perror
	mov	r3, #1
	b	.L33
.L27:
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L35+16
	bl	perror
	mov	r3, #1
	b	.L33
.L28:
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	cmp	r3, #6
	bne	.L29
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #41
	ldr	r0, [fp, #-24]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L35+20
	bl	perror
	mov	r3, #1
	b	.L33
.L29:
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r5, r0
	ldr	r3, [fp, #-44]
	add	r3, r3, #12
	ldr	r4, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	mov	r2, r5
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	send_the_socket
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L35+24
	bl	perror
	mov	r3, #1
	b	.L33
.L30:
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r1, .L35+28
	ldr	r0, [fp, #-24]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L35+32
	bl	perror
	mov	r3, #1
	b	.L33
.L31:
	ldr	r0, .L35+36
	bl	puts
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	accept
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L35+40
	bl	perror
	mov	r3, #1
	b	.L33
.L32:
	mov	r2, #24
	ldr	r1, .L35+44
	ldr	r0, [fp, #-20]
	bl	write
	ldr	r0, [fp, #-20]
	bl	close
	mov	r3, #0
.L33:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC14
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	65535
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
