	.file	"481312.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"nf0"
.LC2:
	.string	"ioctl"
.LC3:
	.string	"Bind"
.LC4:
	.string	"Error send"
	.align 8
.LC5:
	.string	"Packet%d -----------------------------------------------------\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, 4096
	or	QWORD PTR [rsp], 0
	add	rsp, -128
	mov	DWORD PTR -4212[rbp], edi
	mov	QWORD PTR -4224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4208[rbp], 1
	mov	DWORD PTR -4204[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4204[rbp]
	cdqe
	mov	BYTE PTR -4112[rbp+rax], 0
	mov	eax, DWORD PTR -4204[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	add	DWORD PTR -4204[rbp], 1
.L2:
	cmp	DWORD PTR -4204[rbp], 2047
	jle	.L3
	mov	edi, 3
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -4200[rbp], eax
	cmp	DWORD PTR -4200[rbp], 0
	jns	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -4160[rbp]
	mov	edx, 16
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdx, -4160[rbp]
	mov	eax, DWORD PTR -4200[rbp]
	mov	esi, 35123
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -4200[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	WORD PTR -4192[rbp], 17
	mov	edi, 3
	call	htons@PLT
	mov	WORD PTR -4190[rbp], ax
	mov	eax, DWORD PTR -4144[rbp]
	mov	DWORD PTR -4188[rbp], eax
	lea	rcx, -4192[rbp]
	mov	eax, DWORD PTR -4200[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -4200[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	BYTE PTR -2064[rbp], -2
	mov	BYTE PTR -2063[rbp], -54
	mov	BYTE PTR -2062[rbp], -82
	mov	BYTE PTR -2057[rbp], 3
	mov	BYTE PTR -2032[rbp], 10
	mov	BYTE PTR -2031[rbp], 11
	mov	BYTE PTR -2030[rbp], 12
	mov	BYTE PTR -2029[rbp], 13
	mov	BYTE PTR -2028[rbp], 26
	mov	BYTE PTR -2027[rbp], 27
	mov	BYTE PTR -2026[rbp], 28
	mov	BYTE PTR -2025[rbp], 29
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -4200[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jg	.L8
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L8:
	lea	rsi, -4112[rbp]
	mov	eax, DWORD PTR -4200[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -4196[rbp], eax
	mov	eax, DWORD PTR -4208[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -4196[rbp]
	lea	rax, -4112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_hex
	add	DWORD PTR -4208[rbp], 1
	jmp	.L8
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"%x "
	.text
	.globl	print_hex
	.type	print_hex, @function
print_hex:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 31
	cmp	eax, 31
	jne	.L12
	mov	edi, 10
	call	putchar@PLT
.L12:
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_hex, .-print_hex
	.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	"481312.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"nf0\000"
	.align	2
.LC2:
	.ascii	"ioctl\000"
	.align	2
.LC3:
	.ascii	"Bind\000"
	.align	2
.LC4:
	.ascii	"Error send\000"
	.align	2
.LC5:
	.ascii	"Packet%d ------------------------------------------"
	.ascii	"-----------\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 = 4176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-76]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-80]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-72]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-68]
	b	.L2
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-68]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	add	r3, r3, #1
	str	r3, [r2, #-68]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	cmp	r3, #2048
	blt	.L3
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [r4, #-64]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L10+4
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r2, #16
	ldr	r1, .L10+8
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L10+12
	ldr	r0, [r0, #-64]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+16
	bl	perror
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	close
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #17
	strh	r2, [r3, #-56]	@ movhi
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strh	r2, [r3, #-54]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #56
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [r0, #-64]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L10+20
	bl	perror
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	close
	mov	r0, #1
	bl	exit
.L6:
	mvn	r3, #1
	strb	r3, [fp, #-2064]
	mvn	r3, #53
	strb	r3, [fp, #-2063]
	mvn	r3, #81
	strb	r3, [fp, #-2062]
	mov	r3, #3
	strb	r3, [fp, #-2057]
	mov	r3, #10
	strb	r3, [fp, #-2032]
	mov	r3, #11
	strb	r3, [fp, #-2031]
	mov	r3, #12
	strb	r3, [fp, #-2030]
	mov	r3, #13
	strb	r3, [fp, #-2029]
	mov	r3, #26
	strb	r3, [fp, #-2028]
	mov	r3, #27
	strb	r3, [fp, #-2027]
	mov	r3, #28
	strb	r3, [fp, #-2026]
	mov	r3, #29
	strb	r3, [fp, #-2025]
	sub	r1, fp, #2048
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	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, #100
	ldr	r0, [r0, #-64]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bgt	.L8
	ldr	r0, .L10+24
	bl	puts
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	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, #2048
	ldr	r0, [r0, #-64]
	bl	recvfrom
	str	r0, [r4, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-72]
	ldr	r0, .L10+28
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-60]
	mov	r0, r3
	bl	print_hex
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	add	r3, r3, #1
	str	r3, [r2, #-72]
	b	.L8
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	35123
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%x \000"
	.text
	.align	2
	.global	print_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hex, %function
print_hex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L15:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16
	bl	printf
	ldr	r3, [fp, #-8]
	and	r3, r3, #31
	cmp	r3, #31
	bne	.L14
	mov	r0, #10
	bl	putchar
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L15
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.size	print_hex, .-print_hex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
