	.file	"454570.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket %d disconnected\n"
.LC1:
	.string	"recv"
	.align 8
.LC2:
	.string	"Data Received from Socket %d: %s\n"
	.text
	.globl	send_recv
	.type	send_recv, @function
send_recv:
.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, 1152
	mov	DWORD PTR -1124[rbp], edi
	mov	DWORD PTR -1128[rbp], esi
	mov	QWORD PTR -1136[rbp], rdx
	mov	DWORD PTR -1140[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 7162221081430090052
	movabs	rdx, 8386019596711651685
	mov	QWORD PTR -1104[rbp], rax
	mov	QWORD PTR -1096[rbp], rdx
	movabs	rax, 32199706744804128
	mov	edx, 0
	mov	QWORD PTR -1088[rbp], rax
	mov	QWORD PTR -1080[rbp], rdx
	mov	QWORD PTR -1072[rbp], 0
	mov	QWORD PTR -1064[rbp], 0
	mov	WORD PTR -1056[rbp], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1108[rbp], eax
	cmp	DWORD PTR -1108[rbp], 0
	jg	.L2
	cmp	DWORD PTR -1108[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -1124[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L4:
	mov	eax, DWORD PTR -1124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1124[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	mov	rax, QWORD PTR -1136[rbp]
	movsx	rdx, esi
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -1124[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	not	rax
	mov	rcx, rdi
	and	rcx, rax
	mov	rax, QWORD PTR -1136[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	jmp	.L7
.L2:
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1104[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	send_recv, .-send_recv
	.section	.rodata
.LC3:
	.string	"accept"
	.align 8
.LC4:
	.string	"New connection from %s on port %d \n"
	.text
	.globl	connection_accept
	.type	connection_accept, @function
connection_accept:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 16
	lea	rdx, -32[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L9
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	mov	rax, QWORD PTR -40[rbp]
	movsx	rdx, esi
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -28[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	mov	rcx, rdi
	or	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L10
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
.L10:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	connection_accept, .-connection_accept
	.section	.rodata
.LC5:
	.string	"Socket"
.LC6:
	.string	"setsockopt"
.LC7:
	.string	"Unable to bind"
.LC8:
	.string	"listen"
.LC9:
	.string	"\nconnected to server on 777"
	.text
	.globl	connect_request
	.type	connect_request, @function
connect_request:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 1
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], 2
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR 2[rax], 777
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rdx, -12[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	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
.LFE8:
	.size	connect_request, .-connect_request
	.section	.rodata
.LC10:
	.string	"select"
	.text
	.globl	main
	.type	main, @function
main:
.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, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -328[rbp], 0
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -272[rbp]
	mov	rdi, rdx
#APP
# 98 "the_stack_data/454570.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -320[rbp], edx
	mov	DWORD PTR -316[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 99 "the_stack_data/454570.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -312[rbp], edx
	mov	DWORD PTR -308[rbp], eax
	lea	rdx, -304[rbp]
	lea	rax, -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	connect_request
	mov	eax, DWORD PTR -328[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -328[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR -328[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -328[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -272[rbp+rax*8], rdx
	mov	eax, DWORD PTR -328[rbp]
	mov	DWORD PTR -332[rbp], eax
.L24:
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR -232[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -332[rbp]
	lea	edi, 1[rax]
	lea	rax, -144[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	cmp	eax, -1
	jne	.L19
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L19:
	mov	DWORD PTR -324[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -324[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -324[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L21
	mov	eax, DWORD PTR -328[rbp]
	cmp	DWORD PTR -324[rbp], eax
	jne	.L22
	mov	edx, DWORD PTR -328[rbp]
	lea	rcx, -288[rbp]
	lea	rsi, -332[rbp]
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	connection_accept
	jmp	.L21
.L22:
	mov	ecx, DWORD PTR -332[rbp]
	mov	esi, DWORD PTR -328[rbp]
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -324[rbp]
	mov	edi, eax
	call	send_recv
.L21:
	add	DWORD PTR -324[rbp], 1
.L20:
	mov	eax, DWORD PTR -332[rbp]
	cmp	DWORD PTR -324[rbp], eax
	jle	.L23
	jmp	.L24
	.cfi_endproc
.LFE9:
	.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	"454570.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"socket %d disconnected\012\000"
	.align	2
.LC2:
	.ascii	"recv\000"
	.align	2
.LC3:
	.ascii	"Data Received from Socket %d: %s\012\000"
	.align	2
.LC0:
	.ascii	"Data Received at Server\000"
	.space	26
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_recv
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_recv, %function
send_recv:
	@ args = 0, pretend = 0, frame = 1104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1104
	str	r0, [fp, #-1096]
	str	r1, [fp, #-1100]
	str	r2, [fp, #-1104]
	str	r3, [fp, #-1108]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L8+4
	sub	ip, fp, #1072
	sub	ip, ip, #4
	sub	ip, ip, #8
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #1056
	sub	r3, r3, #4
	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]
	strh	r2, [r3, #24]	@ movhi
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1096]
	bl	read
	str	r0, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-1096]
	ldr	r0, .L8+8
	bl	printf
	b	.L4
.L3:
	ldr	r0, .L8+12
	bl	perror
.L4:
	ldr	r0, [fp, #-1096]
	bl	close
	ldr	r3, [fp, #-1096]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-1104]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1096]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	mvn	r3, r3
	and	r1, r1, r3
	ldr	r3, [fp, #-1104]
	str	r1, [r3, r2, lsl #2]
	b	.L7
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1096]
	ldr	r0, .L8+16
	bl	printf
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1096]
	bl	write
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L7:
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	send_recv, .-send_recv
	.section	.rodata
	.align	2
.LC5:
	.ascii	"accept\000"
	.align	2
.LC6:
	.ascii	"New connection from %s on port %d \012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connection_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	connection_accept, %function
connection_accept:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	accept
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L14+4
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-20]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	ldr	r3, [fp, #-32]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
.L12:
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r4, r0
	ldr	r3, [fp, #-44]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+8
	bl	printf
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	connection_accept, .-connection_accept
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Socket\000"
	.align	2
.LC9:
	.ascii	"setsockopt\000"
	.align	2
.LC10:
	.ascii	"Unable to bind\000"
	.align	2
.LC11:
	.ascii	"listen\000"
	.align	2
.LC12:
	.ascii	"\012connected to server on 777\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connect_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_request, %function
connect_request:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L22+4
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-20]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-20]
	ldr	r2, .L22+8
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L22+12
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L22+16
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L22+20
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	ldr	r0, .L22+24
	bl	puts
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC13
	.word	.LC8
	.word	777
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	stdout
	.size	connect_request, .-connect_request
	.section	.rodata
	.align	2
.LC14:
	.ascii	"select\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-320]
	sub	r3, fp, #264
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L25
.L26:
	ldr	r3, [fp, #-304]
	ldr	r2, [fp, #-312]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L25:
	ldr	r3, [fp, #-312]
	cmp	r3, #31
	bls	.L26
	sub	r3, fp, #136
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L27
.L28:
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-308]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L27:
	ldr	r3, [fp, #-308]
	cmp	r3, #31
	bls	.L28
	sub	r2, fp, #296
	sub	r3, fp, #320
	mov	r1, r2
	mov	r0, r3
	bl	connect_request
	ldr	r3, [fp, #-320]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-320]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-320]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-260]
	ldr	r3, [fp, #-320]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-260]
	ldr	r3, [fp, #-320]
	str	r3, [fp, #-324]
.L34:
	sub	r3, fp, #136
	sub	r1, fp, #264
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-324]
	add	r0, r3, #1
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L36+4
	bl	perror
	mov	r0, #4
	bl	exit
.L29:
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L30
.L33:
	ldr	r3, [fp, #-316]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-316]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-320]
	ldr	r2, [fp, #-316]
	cmp	r2, r3
	bne	.L32
	ldr	r2, [fp, #-320]
	sub	r3, fp, #280
	sub	r1, fp, #324
	sub	r0, fp, #264
	bl	connection_accept
	b	.L31
.L32:
	ldr	r1, [fp, #-320]
	ldr	r3, [fp, #-324]
	sub	r2, fp, #264
	ldr	r0, [fp, #-316]
	bl	send_recv
.L31:
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L30:
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-316]
	cmp	r2, r3
	ble	.L33
	b	.L34
.L37:
	.align	2
.L36:
	.word	.LC15
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
