	.file	"26736.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Socket creation failed"
.LC1:
	.string	"socket initiated"
.LC2:
	.string	"bind failed"
.LC3:
	.string	"bind successfull"
.LC4:
	.string	"waiting on port %d\n"
.LC5:
	.string	"receive failed"
.LC6:
	.string	"received %d bytes\n"
.LC7:
	.string	"received message: %s\n"
.LC8:
	.string	"loging it to file"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2104[rbp], eax
	cmp	DWORD PTR -2104[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L8
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	WORD PTR -2096[rbp], 2
	mov	edi, 5000
	call	htons@PLT
	mov	WORD PTR -2094[rbp], ax
	mov	edi, 0
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -2092[rbp], eax
	lea	rcx, -2096[rbp]
	mov	eax, DWORD PTR -2104[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L8
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L7:
	mov	esi, 5000
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2108[rbp], 16
	lea	rcx, -2108[rbp]
	lea	rdx, -2080[rbp]
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2104[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -2100[rbp], eax
	cmp	DWORD PTR -2100[rbp], -1
	jne	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L8
.L5:
	mov	eax, DWORD PTR -2100[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -2100[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"26736.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket creation failed\000"
	.align	2
.LC1:
	.ascii	"socket initiated\000"
	.align	2
.LC2:
	.ascii	"bind failed\000"
	.align	2
.LC3:
	.ascii	"bind successfull\000"
	.align	2
.LC4:
	.ascii	"waiting on port %d\012\000"
	.align	2
.LC5:
	.ascii	"receive failed\000"
	.align	2
.LC6:
	.ascii	"received %d bytes\012\000"
	.align	2
.LC7:
	.ascii	"received message: %s\012\000"
	.align	2
.LC8:
	.ascii	"loging it to file\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2096
	sub	sp, sp, #8
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L10+4
	bl	perror
	mov	r3, #0
	b	.L8
.L2:
	ldr	r0, .L10+8
	bl	puts
	sub	r3, fp, #4
	sub	r3, r3, #2080
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L10+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #2080
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-2084]
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-2096]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L10+16
	bl	perror
	mov	r3, #0
	b	.L8
.L4:
	ldr	r0, .L10+20
	bl	puts
.L7:
	ldr	r1, .L10+12
	ldr	r0, .L10+24
	bl	printf
	mov	r3, #16
	str	r3, [fp, #-2100]
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2096
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-2096]
	bl	recvfrom
	str	r0, [fp, #-2092]
	ldr	r3, [fp, #-2092]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+28
	bl	perror
	mov	r3, #0
	b	.L8
.L5:
	ldr	r1, [fp, #-2092]
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	ble	.L7
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2092]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r0, .L10+40
	bl	puts
	b	.L7
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	5000
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
