	.file	"808325.c"
	.intel_syntax noprefix
	.text
	.globl	prime_check
	.type	prime_check, @function
prime_check:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 1
	jg	.L2
	mov	DWORD PTR -8[rbp], 1000
	jmp	.L3
.L2:
	mov	DWORD PTR -8[rbp], 2000
	mov	DWORD PTR -4[rbp], 2
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L5
	mov	DWORD PTR -8[rbp], 1000
	jmp	.L3
.L5:
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -4[rbp], eax
	jle	.L6
.L3:
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prime_check, .-prime_check
	.section	.rodata
.LC0:
	.string	"[-] Error in binding"
.LC1:
	.string	"[+] Successfully binded."
	.align 8
.LC2:
	.string	"\n[+] Listening for connections..."
.LC3:
	.string	"[-] Error in receiving."
	.align 8
.LC4:
	.string	"[+] Response successfully received."
.LC5:
	.string	"[-] Error in sending."
	.align 8
.LC6:
	.string	"[+] Successfully responded to the client."
	.text
	.globl	main
	.type	main, @function
main:
.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, 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 -56[rbp], eax
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	edi, 9043
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -68[rbp], 16
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L9
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L15
.L9:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L15:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rcx, -68[rbp]
	lea	rdx, -32[rbp]
	lea	rsi, -64[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L11
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L12:
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	prime_check
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -60[rbp], eax
	lea	rdx, -32[rbp]
	lea	rsi, -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L13
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L15
.L13:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE7:
	.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	"808325.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	prime_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_check, %function
prime_check:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L2
	mov	r3, #1000
	str	r3, [fp, #-12]
	b	.L3
.L2:
	mov	r3, #2000
	str	r3, [fp, #-12]
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L5
	mov	r3, #1000
	str	r3, [fp, #-12]
	b	.L3
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L6
.L3:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	prime_check, .-prime_check
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[-] Error in binding\000"
	.align	2
.LC1:
	.ascii	"[+] Successfully binded.\000"
	.align	2
.LC2:
	.ascii	"\012[+] Listening for connections...\000"
	.align	2
.LC3:
	.ascii	"[-] Error in receiving.\000"
	.align	2
.LC4:
	.ascii	"[+] Response successfully received.\000"
	.align	2
.LC5:
	.ascii	"[-] Error in sending.\000"
	.align	2
.LC6:
	.ascii	"[+] Successfully responded to the client.\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-48]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L17+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #16
	str	r3, [fp, #-60]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	bind
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L17+8
	bl	puts
	b	.L15
.L9:
	ldr	r0, .L17+12
	bl	puts
.L15:
	ldr	r0, .L17+16
	bl	puts
	sub	r1, fp, #56
	sub	r3, fp, #60
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-48]
	bl	recvfrom
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L17+20
	bl	puts
	b	.L12
.L11:
	ldr	r0, .L17+24
	bl	puts
.L12:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	prime_check
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-52]
	sub	r1, fp, #52
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-48]
	bl	sendto
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L17+28
	bl	puts
	b	.L15
.L13:
	ldr	r0, .L17+32
	bl	puts
	b	.L15
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	9043
	.word	.LC0
	.word	.LC1
	.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
