	.file	"117709.c"
	.intel_syntax noprefix
	.text
	.globl	value
	.bss
	.align 8
	.type	value, @object
	.size	value, 8
value:
	.zero	8
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 2
	je	.L2
	cmp	QWORD PTR -24[rbp], 3
	je	.L2
	cmp	QWORD PTR -24[rbp], 5
	je	.L2
	cmp	QWORD PTR -24[rbp], 7
	jne	.L3
.L2:
	mov	eax, 1
	jmp	.L4
.L3:
	cmp	QWORD PTR -24[rbp], 1
	je	.L5
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 1
	test	rax, rax
	je	.L5
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, -6148914691236517205
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L6
.L5:
	mov	eax, 0
	jmp	.L4
.L6:
	fild	QWORD PTR -24[rbp]
	cmp	QWORD PTR -24[rbp], 0
	jns	.L7
	fld	TBYTE PTR .LC0[rip]
	faddp	st(1), st
.L7:
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	call	sqrtl@PLT
	add	rsp, 16
	fld	TBYTE PTR .LC1[rip]
	fxch	st(1)
	fcomi	st, st(1)
	fstp	st(1)
	jnb	.L8
	fnstcw	WORD PTR -26[rbp]
	movzx	eax, WORD PTR -26[rbp]
	or	ah, 12
	mov	WORD PTR -28[rbp], ax
	fldcw	WORD PTR -28[rbp]
	fistp	QWORD PTR -8[rbp]
	fldcw	WORD PTR -26[rbp]
	jmp	.L9
.L8:
	fld	TBYTE PTR .LC1[rip]
	fsubp	st(1), st
	fnstcw	WORD PTR -26[rbp]
	movzx	eax, WORD PTR -26[rbp]
	or	ah, 12
	mov	WORD PTR -28[rbp], ax
	fldcw	WORD PTR -28[rbp]
	fistp	QWORD PTR -8[rbp]
	fldcw	WORD PTR -26[rbp]
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -8[rbp], rax
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 5
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	QWORD PTR -16[rbp]
	mov	rax, rdx
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L12
.L11:
	mov	eax, 0
	jmp	.L4
.L12:
	add	QWORD PTR -16[rbp], 6
.L10:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jbe	.L13
	mov	eax, 1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_prime, .-is_prime
	.section	.rodata
	.align 8
.LC3:
	.string	"\n #   #    ####    #####  ######\n  # #    #    #     #    #\n### ###  #          #    #####\n  # #    #          #    #\n #   #   #    #     #    #\n          ####      #    #\n\n"
	.text
	.globl	init
	.type	init, @function
init:
.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, 16
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	lea	rax, .LC3[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init, .-init
	.section	.rodata
.LC4:
	.string	"%lu"
.LC5:
	.string	"Bye"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	init
	lea	rax, value[rip]
	mov	QWORD PTR p[rip], rax
	mov	rax, QWORD PTR p[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR value[rip]
	mov	rdi, rax
	call	is_prime
	test	eax, eax
	jne	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
#APP
# 51 "the_stack_data/117709.c" 1
	xor %rax,%rax
	xor %rbx,%rbx
	xor %rcx,%rcx
	xor %rdx,%rdx
	xor %rsi,%rsi
	xor %rdi,%rdi
	xor %rsp,%rsp
	xor %rbp,%rbp
	xor %r8,%r8
	xor %r9,%r9
	xor %r10,%r10
	xor %r11,%r11
	xor %r12,%r12
	xor %r13,%r13
	xor %r14,%r14
	xor %r15,%r15
	jmp *QWORD PTR p[rip]
	
# 0 "" 2
#NO_APP
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC0:
	.long	0
	.long	-2147483648
	.long	16447
	.long	0
	.align 16
.LC1:
	.long	0
	.long	-2147483648
	.long	16446
	.long	0
	.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	"117709.c"
	.text
	.comm	value,4,4
	.comm	p,4,4
	.global	__aeabi_ui2d
	.global	__aeabi_d2uiz
	.global	__aeabi_uidivmod
	.align	2
	.global	is_prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_prime, %function
is_prime:
	@ 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, #2
	beq	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	beq	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	beq	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	bne	.L3
.L2:
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L5
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldr	r1, [fp, #-16]
	ldr	r3, .L11
	umull	r2, r3, r1, r3
	lsr	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L6
.L5:
	mov	r3, #0
	b	.L4
.L6:
	ldr	r0, [fp, #-16]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrtl
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #5
	str	r3, [fp, #-12]
	b	.L7
.L10:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	add	r2, r3, #2
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L9
.L8:
	mov	r3, #0
	b	.L4
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #6
	str	r3, [fp, #-12]
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bls	.L10
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	-1431655765
	.size	is_prime, .-is_prime
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 #   #    ####    #####  ######\012  # #    #  "
	.ascii	"  #     #    #\012### ###  #          #    #####\012"
	.ascii	"  # #    #          #    #\012 #   #   #    #     #"
	.ascii	"    #\012          ####      #    #\012\012\000"
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L14
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L14+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L14+8
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stdout
	.word	stdin
	.word	.LC0
	.size	init, .-init
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%lu\000"
	.align	2
.LC2:
	.ascii	"Bye\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	init
	ldr	r3, .L19
	ldr	r2, .L19+4
	str	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L19+12
	bl	puts
	mov	r0, #0
	bl	exit
.L17:
	ldr	r3, .L19
	.syntax divided
@ 51 "the_stack_data/117709.c" 1
	xor %rax,%rax
	xor %rbx,%rbx
	xor %rcx,%rcx
	xor %rdx,%rdx
	xor %rsi,%rsi
	xor %rdi,%rdi
	xor %rsp,%rsp
	xor %rbp,%rbp
	xor %r8,%r8
	xor %r9,%r9
	xor %r10,%r10
	xor %r11,%r11
	xor %r12,%r12
	xor %r13,%r13
	xor %r14,%r14
	xor %r15,%r15
	jmp *[r3]
	
@ 0 "" 2
	.arm
	.syntax unified
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	p
	.word	value
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
