	.file	"323527.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Problem creating socket"
.LC1:
	.string	"localhost"
.LC2:
	.string	"%d"
.LC3:
	.string	"Problem sending data"
.LC4:
	.string	"Sendto sent %d bytes\n"
.LC5:
	.string	"Problem in recvfrom"
.LC6:
	.string	"Problem writing to stdout"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	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 -10300[rbp], eax
	cmp	DWORD PTR -10300[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -10272[rbp], 2
	lea	rdi, .LC1[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -10288[rbp], rax
	mov	rax, QWORD PTR -10288[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -10288[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -10272[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edi, 9876
	call	htons@PLT
	mov	WORD PTR -10270[rbp], ax
	mov	DWORD PTR -10304[rbp], 0
	jmp	.L3
.L8:
	mov	edx, DWORD PTR -10304[rbp]
	lea	rax, -10256[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -10256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -10280[rbp], rax
	lea	rcx, -10272[rbp]
	mov	rdx, QWORD PTR -10280[rbp]
	lea	rsi, -10256[rbp]
	mov	eax, DWORD PTR -10300[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -10296[rbp], eax
	cmp	DWORD PTR -10296[rbp], 0
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -10296[rbp]
	cdqe
	cmp	QWORD PTR -10280[rbp], rax
	je	.L5
	mov	eax, DWORD PTR -10296[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	lea	rsi, -10256[rbp]
	mov	eax, DWORD PTR -10300[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 10240
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -10292[rbp], eax
	cmp	DWORD PTR -10292[rbp], 0
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -10292[rbp]
	movsx	rdx, eax
	lea	rax, -10256[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	test	rax, rax
	jns	.L7
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	add	DWORD PTR -10304[rbp], 1
.L3:
	cmp	DWORD PTR -10304[rbp], 50
	jle	.L8
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"323527.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Problem creating socket\000"
	.align	2
.LC1:
	.ascii	"localhost\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Problem sending data\000"
	.align	2
.LC4:
	.ascii	"Sendto sent %d bytes\012\000"
	.align	2
.LC5:
	.ascii	"Problem in recvfrom\000"
	.align	2
.LC6:
	.ascii	"Problem writing to stdout\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10240
	sub	sp, sp, #60
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-2088]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2088]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L11+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2064
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L11+8
	bl	gethostbyname
	str	r0, [r4, #-2084]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2084]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2084]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #20
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L11+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2064
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2092]
	b	.L3
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-2092]
	ldr	r1, .L11+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	str	r0, [r4, #-2080]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r1, fp, #10240
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #20
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [r2, #-2080]
	ldr	r0, [r0, #-2088]
	bl	sendto
	str	r0, [r4, #-2076]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2076]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L11+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2076]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-2080]
	cmp	r2, r3
	beq	.L5
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-2076]
	ldr	r0, .L11+24
	bl	printf
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #10240
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #10240
	ldr	r0, [r0, #-2088]
	bl	recvfrom
	str	r0, [r4, #-2072]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L11+28
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-2072]
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L11+32
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2092]
	add	r3, r3, #1
	str	r3, [r2, #-2092]
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2092]
	cmp	r3, #50
	ble	.L8
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	9876
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
