	.file	"788645.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"bind"
.LC2:
	.string	"select"
.LC3:
	.string	"recvfrom"
.LC4:
	.string	"FROM: %s\n"
.LC5:
	.string	"DATA:\n%.*s\n\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, 2256
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2248[rbp], eax
	lea	rdi, .LC0[rip]
	call	perror@PLT
	lea	rax, -2224[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -2224[rbp], 2
	mov	edi, 3000
	call	htons@PLT
	mov	WORD PTR -2222[rbp], ax
	mov	DWORD PTR -2220[rbp], 0
	lea	rcx, -2224[rbp]
	mov	eax, DWORD PTR -2248[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -2192[rbp]
	mov	rdi, rdx
#APP
# 31 "the_stack_data/788645.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2244[rbp], edx
	mov	DWORD PTR -2240[rbp], eax
	mov	eax, DWORD PTR -2248[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2248[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -2192[rbp+rax*8], rdx
.L2:
	mov	eax, DWORD PTR -2248[rbp]
	lea	edi, 1[rax]
	lea	rax, -2192[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	DWORD PTR -2252[rbp], 16
	lea	rcx, -2252[rbp]
	lea	rdx, -2208[rbp]
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2248[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -2236[rbp], eax
	lea	rdi, .LC3[rip]
	call	perror@PLT
	lea	rax, -2208[rbp]
	mov	QWORD PTR -2232[rbp], rax
	mov	rax, QWORD PTR -2232[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -2236[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
	.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	"788645.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"bind\000"
	.align	2
.LC2:
	.ascii	"select\000"
	.align	2
.LC3:
	.ascii	"recvfrom\000"
	.align	2
.LC4:
	.ascii	"FROM: %s\012\000"
	.align	2
.LC5:
	.ascii	"DATA:\012%.*s\012\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 = 2240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2240
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2232]
	ldr	r0, .L6+4
	bl	perror
	sub	r3, fp, #2208
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #2208
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L6+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #2208
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-2212]
	sub	r3, fp, #2208
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-2232]
	bl	bind
	ldr	r0, .L6+12
	bl	perror
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-2228]
	mov	r3, #0
	str	r3, [fp, #-2236]
	b	.L2
.L3:
	ldr	r3, [fp, #-2228]
	ldr	r2, [fp, #-2236]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2236]
	add	r3, r3, #1
	str	r3, [fp, #-2236]
.L2:
	ldr	r3, [fp, #-2236]
	cmp	r3, #31
	bls	.L3
	ldr	r3, [fp, #-2232]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-2180]
	ldr	r3, [fp, #-2232]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-2180]
.L4:
	ldr	r3, [fp, #-2232]
	add	r0, r3, #1
	sub	r1, fp, #2176
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	ldr	r0, .L6+16
	bl	perror
	mov	r3, #16
	str	r3, [fp, #-2240]
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2224
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-2232]
	bl	recvfrom
	str	r0, [fp, #-2224]
	ldr	r0, .L6+20
	bl	perror
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-2220]
	ldr	r3, [fp, #-2220]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+24
	bl	printf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-2224]
	ldr	r0, .L6+28
	bl	printf
	b	.L4
.L7:
	.align	2
.L6:
	.word	.LC6
	.word	.LC0
	.word	3000
	.word	.LC1
	.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
