	.file	"482441.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"create socket.\n\r"
.LC2:
	.string	"bind"
.LC3:
	.string	"bind address to socket.\n\r"
.LC4:
	.string	"recvfrom"
	.align 8
.LC5:
	.string	"recive come from %s:%d message:%s\n\r"
	.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
	push	rbx
	sub	rsp, 216
	.cfi_offset 3, -24
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -192[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -192[rbp], 2
	mov	edi, 7838
	call	htons@PLT
	mov	WORD PTR -190[rbp], ax
	mov	DWORD PTR -188[rbp], 0
	lea	rcx, -192[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -204[rbp], 16
.L5:
	lea	rcx, -204[rbp]
	lea	rdx, -176[rbp]
	lea	rsi, -160[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 127
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jns	.L4
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	BYTE PTR -160[rbp+rax], 0
	movzx	eax, WORD PTR -174[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rax, -160[rbp]
	mov	rcx, rax
	mov	edx, ebx
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
	.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	"482441.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"create socket.\012\015\000"
	.align	2
.LC2:
	.ascii	"bind\000"
	.align	2
.LC3:
	.ascii	"bind address to socket.\012\015\000"
	.align	2
.LC4:
	.ascii	"recvfrom\000"
	.align	2
.LC5:
	.ascii	"recive come from %s:%d message:%s\012\015\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 = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #196
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L7+8
	bl	printf
	sub	r3, fp, #176
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-176]	@ movhi
	ldr	r0, .L7+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-174]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-172]
	sub	r3, fp, #176
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-184]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L7+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L7+20
	bl	printf
	mov	r3, #16
	str	r3, [fp, #-188]
.L5:
	sub	r1, fp, #144
	sub	r3, fp, #188
	str	r3, [sp, #4]
	sub	r3, fp, #160
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #127
	ldr	r0, [fp, #-184]
	bl	recvfrom
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L7+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r2, fp, #144
	ldr	r3, [fp, #-180]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-156]
	bl	inet_ntoa
	mov	r4, r0
	ldrh	r3, [fp, #-158]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #144
	mov	r1, r4
	ldr	r0, .L7+28
	bl	printf
	b	.L5
.L8:
	.align	2
.L7:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	7838
	.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
