	.file	"193892106.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Socket not created error"
.LC1:
	.string	"Socket created successfully"
.LC2:
	.string	"Bind not created error"
.LC3:
	.string	"Bind created successfully"
.LC4:
	.string	"sendto"
.LC5:
	.string	"\n  %d sum \"\n"
	.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, 80
	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 -72[rbp], eax
	cmp	DWORD PTR -72[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L3:
	mov	WORD PTR -48[rbp], 2
	mov	edi, 6005
	call	ntohs@PLT
	mov	WORD PTR -46[rbp], ax
	mov	DWORD PTR -44[rbp], 0
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L5:
	lea	rcx, -80[rbp]
	lea	rdx, -32[rbp]
	lea	rsi, -60[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 10
	mov	edx, 30
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	edi, 49
	call	putchar@PLT
	cmp	DWORD PTR -64[rbp], -1
	jne	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -32[rbp]
	lea	rsi, -76[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 10
	mov	edx, 10
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, 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	"193892106.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket not created error\000"
	.align	2
.LC1:
	.ascii	"Socket created successfully\000"
	.align	2
.LC2:
	.ascii	"Bind not created error\000"
	.align	2
.LC3:
	.ascii	"Bind created successfully\000"
	.align	2
.LC4:
	.ascii	"sendto\000"
	.align	2
.LC5:
	.ascii	"\012  %d sum \"\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	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, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L10+4
	bl	puts
	b	.L3
.L2:
	ldr	r0, .L10+8
	bl	puts
.L3:
	mov	r3, #2
	strh	r3, [fp, #-40]	@ movhi
	ldr	r0, .L10+12
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	bind
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L10+16
	bl	puts
	b	.L5
.L4:
	ldr	r0, .L10+20
	bl	puts
.L5:
	sub	r1, fp, #52
	sub	r3, fp, #72
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #10
	mov	r2, #30
	ldr	r0, [fp, #-64]
	bl	recvfrom
	str	r0, [fp, #-56]
	mov	r0, #49
	bl	putchar
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+24
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	sub	r1, fp, #68
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #10
	mov	r2, #10
	ldr	r0, [fp, #-64]
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+24
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #0
	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	.LC6
	.word	.LC0
	.word	.LC1
	.word	6005
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
