	.file	"225143791.c"
	.intel_syntax noprefix
	.text
	.globl	socket_fd
	.bss
	.align 4
	.type	socket_fd, @object
	.size	socket_fd, 4
socket_fd:
	.zero	4
	.text
	.globl	clean
	.type	clean, @function
clean:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	unlink@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clean, .-clean
	.section	.rodata
.LC0:
	.string	"socket call error"
.LC1:
	.string	"client: bind"
.LC2:
	.string	"%s (PID: %d)"
.LC3:
	.string	"sendto call error"
.LC4:
	.string	"[->] %s\n"
.LC5:
	.string	"recvfrom() call failed"
.LC6:
	.string	"[<-] %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 360
	.cfi_offset 3, -24
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -336[rbp], rax
	mov	DWORD PTR -348[rbp], 110
	mov	edx, 0
	mov	esi, 2
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR socket_fd[rip], eax
	mov	eax, DWORD PTR socket_fd[rip]
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L8
.L3:
	mov	WORD PTR -320[rbp], 1
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -344[rbp]
	lea	rcx, -320[rbp]
	add	rcx, 2
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	edx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR socket_fd[rip]
	lea	rcx, -320[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L8
.L5:
	mov	WORD PTR -208[rbp], 1
	lea	rax, -208[rbp]
	add	rax, 2
	movabs	rbx, 8299696943394874739
	mov	QWORD PTR [rax], rbx
	mov	WORD PTR 8[rax], 25455
	call	getpid@PLT
	mov	ecx, eax
	mov	rdx, QWORD PTR -336[rbp]
	lea	rax, -96[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	ebx, DWORD PTR -348[rbp]
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR socket_fd[rip]
	lea	rcx, -208[rbp]
	lea	rsi, -96[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L8
.L6:
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR socket_fd[rip]
	lea	rcx, -348[rbp]
	lea	rdx, -208[rbp]
	lea	rsi, -96[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 64
	mov	edi, eax
	call	recvfrom@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR socket_fd[rip]
	mov	rdx, QWORD PTR -344[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	clean
	mov	eax, 1
	jmp	.L8
.L7:
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -328[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR socket_fd[rip]
	mov	rdx, QWORD PTR -344[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	clean
	mov	eax, 0
.L8:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"225143791.c"
	.text
	.comm	socket_fd,4,4
	.align	2
	.global	clean
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean, %function
clean:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r0, [fp, #-12]
	bl	unlink
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	clean, .-clean
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket call error\000"
	.align	2
.LC1:
	.ascii	"client: bind\000"
	.align	2
.LC2:
	.ascii	"server.soc\000"
	.align	2
.LC3:
	.ascii	"%s (PID: %d)\000"
	.align	2
.LC4:
	.ascii	"sendto call error\000"
	.align	2
.LC5:
	.ascii	"[->] %s\012\000"
	.align	2
.LC6:
	.ascii	"recvfrom() call failed\000"
	.align	2
.LC7:
	.ascii	"[<-] %s\012\000"
	.align	2
.LC8:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #332
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-332]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-332]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-312]
	mov	r3, #110
	str	r3, [fp, #-320]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #1
	bl	socket
	mov	r3, r0
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L10+8
	bl	perror
	mov	r3, #1
	b	.L8
.L3:
	sub	r3, fp, #12
	sub	r3, r3, #292
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-316]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #304
	add	r3, r3, #2
	ldr	r1, [fp, #-316]
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	sub	r1, fp, #304
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+12
	bl	perror
	mov	r3, #1
	b	.L8
.L5:
	mov	r3, #1
	strh	r3, [fp, #-192]	@ movhi
	sub	r3, fp, #192
	add	r3, r3, #2
	ldr	r2, .L10+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #80
	str	r3, [sp]
	ldr	r3, [fp, #-312]
	ldr	r2, .L10+20
	mov	r1, #64
	bl	snprintf
	ldr	r3, .L10+4
	ldr	r4, [r3]
	sub	r3, fp, #80
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-320]
	sub	r1, fp, #80
	str	r3, [sp, #4]
	sub	r3, fp, #192
	str	r3, [sp]
	mov	r3, #0
	mov	r0, r4
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+24
	bl	perror
	mov	r3, #1
	b	.L8
.L6:
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, .L10+4
	ldr	r0, [r3]
	sub	r1, fp, #80
	sub	r3, fp, #320
	str	r3, [sp, #4]
	sub	r3, fp, #192
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #64
	bl	recvfrom
	str	r0, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L10+32
	bl	perror
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-316]
	mov	r0, r3
	bl	clean
	mov	r3, #1
	b	.L8
.L7:
	sub	r2, fp, #80
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-316]
	mov	r0, r3
	bl	clean
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC8
	.word	socket_fd
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
