	.file	"124051.c"
	.intel_syntax noprefix
	.text
	.local	s
	.comm	s,4,4
	.globl	diep
	.type	diep, @function
diep:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	diep, .-diep
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"sendto peer"
	.text
	.globl	send_message_to_peer
	.type	send_message_to_peer, @function
send_message_to_peer:
.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, 544
	mov	QWORD PTR -536[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR s[rip]
	mov	rdx, QWORD PTR -536[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	diep
.L5:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	mov	eax, DWORD PTR s[rip]
	mov	rdx, QWORD PTR -536[rbp]
	lea	rsi, -528[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	diep
	jmp	.L5
	.cfi_endproc
.LFE7:
	.size	send_message_to_peer, .-send_message_to_peer
	.section	.rodata
.LC2:
	.string	"socket"
.LC3:
	.string	"18.225.5.21"
.LC4:
	.string	"aton"
.LC5:
	.string	"i"
.LC6:
	.string	"sendto server"
.LC7:
	.string	"recvfrom server"
.LC8:
	.string	"Received packet from %s:%d\n"
.LC9:
	.string	"Your peer %s:%d\n"
.LC10:
	.string	"recieve from unknown server"
.LC11:
	.string	"Error creating thread\n"
.LC12:
	.string	"recvfrom peer"
.LC13:
	.string	"%s"
	.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	rbx
	sub	rsp, 616
	.cfi_offset 3, -24
	mov	DWORD PTR -612[rbp], edi
	mov	QWORD PTR -624[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -608[rbp], 16
	mov	DWORD PTR -604[rbp], 0
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR s[rip], eax
	mov	eax, DWORD PTR s[rip]
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC2[rip]
	call	diep
.L8:
	lea	rax, -576[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -576[rbp], 2
	mov	edi, 6868
	call	htons@PLT
	mov	WORD PTR -574[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -572[rbp], eax
	lea	rax, -560[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -560[rbp], 2
	mov	edi, 6868
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	lea	rax, -560[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	inet_aton@PLT
	test	eax, eax
	jne	.L9
	lea	rdi, .LC4[rip]
	call	diep
.L9:
	mov	eax, DWORD PTR -556[rbp]
	mov	DWORD PTR -584[rbp], eax
	movzx	eax, WORD PTR -558[rbp]
	mov	WORD PTR -580[rbp], ax
	mov	eax, DWORD PTR -608[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR s[rip]
	lea	rdx, -560[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L10
	lea	rdi, .LC6[rip]
	call	diep
.L10:
	mov	eax, DWORD PTR s[rip]
	lea	rcx, -608[rbp]
	lea	rdx, -560[rbp]
	lea	rsi, -592[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	recvfrom@PLT
	cmp	rax, -1
	jne	.L11
	lea	rdi, .LC7[rip]
	call	diep
.L11:
	movzx	eax, WORD PTR -558[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -556[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -584[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -556[rbp]
	cmp	edx, eax
	jne	.L12
	movzx	eax, WORD PTR -580[rbp]
	movzx	edx, WORD PTR -558[rbp]
	cmp	ax, dx
	jne	.L12
	mov	eax, DWORD PTR -592[rbp]
	mov	DWORD PTR -556[rbp], eax
	movzx	eax, WORD PTR -588[rbp]
	mov	WORD PTR -558[rbp], ax
	movzx	eax, WORD PTR -558[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -556[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	lea	rdi, .LC10[rip]
	call	diep
.L13:
	lea	rdx, -560[rbp]
	lea	rax, -600[rbp]
	mov	rcx, rdx
	lea	rdx, send_message_to_peer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 1
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	jmp	.L18
.L14:
	mov	eax, DWORD PTR s[rip]
	lea	rcx, -608[rbp]
	lea	rdx, -560[rbp]
	lea	rsi, -544[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recvfrom@PLT
	cmp	rax, -1
	jne	.L16
	lea	rdi, .LC12[rip]
	call	diep
.L16:
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L18:
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.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	"124051.c"
	.text
	.local	s
	.comm	s,4,4
	.align	2
	.global	diep
	.syntax unified
	.arm
	.fpu softvfp
	.type	diep, %function
diep:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	diep, .-diep
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"sendto peer\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_message_to_peer
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_message_to_peer, %function
send_message_to_peer:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-528]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	ldr	r0, [r3]
	mov	r3, #16
	str	r3, [sp, #4]
	ldr	r3, [fp, #-528]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r1, .L7+8
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+12
	bl	diep
.L5:
	ldr	r3, .L7+16
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	ldr	r3, .L7+4
	ldr	r0, [r3]
	sub	r1, fp, #520
	mov	r3, #16
	str	r3, [sp, #4]
	ldr	r3, [fp, #-528]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+12
	bl	diep
	b	.L5
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	s
	.word	.LC0
	.word	.LC1
	.word	stdin
	.size	send_message_to_peer, .-send_message_to_peer
	.section	.rodata
	.align	2
.LC3:
	.ascii	"socket\000"
	.align	2
.LC4:
	.ascii	"18.225.5.21\000"
	.align	2
.LC5:
	.ascii	"aton\000"
	.align	2
.LC6:
	.ascii	"i\000"
	.align	2
.LC7:
	.ascii	"sendto server\000"
	.align	2
.LC8:
	.ascii	"recvfrom server\000"
	.align	2
.LC9:
	.ascii	"Received packet from %s:%d\012\000"
	.align	2
.LC10:
	.ascii	"Your peer %s:%d\012\000"
	.align	2
.LC11:
	.ascii	"recieve from unknown server\000"
	.align	2
.LC12:
	.ascii	"Error creating thread\012\000"
	.align	2
.LC13:
	.ascii	"recvfrom peer\000"
	.align	2
.LC14:
	.ascii	"%s\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 = 584
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #596
	str	r0, [fp, #-592]
	str	r1, [fp, #-596]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-588]
	mov	r3, #0
	str	r3, [fp, #-580]
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L21+4
	str	r3, [r2]
	ldr	r3, .L21+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L21+8
	bl	diep
.L10:
	sub	r3, fp, #560
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #548
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L21+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #548
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-556]
	sub	r3, fp, #544
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #532
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L21+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #532
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #544
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L21+16
	bl	inet_aton
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L21+20
	bl	diep
.L11:
	ldr	r3, [fp, #-540]
	str	r3, [fp, #-568]
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #556
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, .L21+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-588]
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r1, .L21+24
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L21+28
	bl	diep
.L12:
	ldr	r3, .L21+4
	ldr	r0, [r3]
	sub	r1, fp, #576
	sub	r3, fp, #588
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #8
	bl	recvfrom
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L21+32
	bl	diep
.L13:
	ldr	r0, [fp, #-540]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L21+36
	bl	printf
	ldr	r3, [fp, #-568]
	mov	r2, r3
	ldr	r3, [fp, #-540]
	cmp	r2, r3
	bne	.L14
	sub	r3, fp, #12
	sub	r3, r3, #556
	ldrsh	r2, [r3, #4]
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-576]
	str	r3, [fp, #-540]
	sub	r3, fp, #12
	sub	r3, r3, #564
	ldrsh	r3, [r3, #4]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #12
	sub	r3, r3, #532
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, [fp, #-540]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L21+40
	bl	printf
	b	.L15
.L14:
	ldr	r0, .L21+44
	bl	diep
.L15:
	sub	r3, fp, #544
	sub	r0, fp, #584
	ldr	r2, .L21+48
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L21+52
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L21+56
	bl	fwrite
	mov	r3, #1
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	b	.L20
.L16:
	ldr	r3, .L21+4
	ldr	r0, [r3]
	sub	r1, fp, #528
	sub	r3, fp, #588
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	bl	recvfrom
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L21+60
	bl	diep
.L18:
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L21+64
	bl	printf
	b	.L16
.L20:
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC15
	.word	s
	.word	.LC3
	.word	6868
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	send_message_to_peer
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
