	.file	"300921.c"
	.intel_syntax noprefix
	.text
	.globl	global_n
	.bss
	.align 4
	.type	global_n, @object
	.size	global_n, 4
global_n:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter number to check if it's prime: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Prime"
.LC3:
	.string	"Non-prime"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, global_n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	prime
	cmp	eax, 1
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	call	prime
	test	eax, eax
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L3:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	prime
	.type	prime, @function
prime:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR global_n[rip]
	and	eax, 1
	test	eax, eax
	jne	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	mov	DWORD PTR -4[rbp], 3
	jmp	.L8
.L10:
	mov	eax, DWORD PTR global_n[rip]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L9
	mov	eax, 0
	jmp	.L7
.L9:
	add	DWORD PTR -4[rbp], 2
.L8:
	mov	eax, DWORD PTR global_n[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -4[rbp], eax
	jle	.L10
	mov	eax, 1
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	prime, .-prime
	.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	"300921.c"
	.text
	.comm	global_n,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter number to check if it's prime: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Prime\000"
	.align	2
.LC3:
	.ascii	"Non-prime\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
	ldr	r0, .L5
	bl	printf
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	__isoc99_scanf
	bl	prime
	mov	r3, r0
	cmp	r3, #1
	bne	.L2
	ldr	r0, .L5+12
	bl	puts
	b	.L3
.L2:
	bl	prime
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L5+16
	bl	puts
.L3:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	global_n
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime, %function
prime:
	@ 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, .L13
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	b	.L9
.L8:
	mov	r3, #3
	str	r3, [fp, #-8]
	b	.L10
.L12:
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L9
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
.L10:
	ldr	r3, .L13
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L12
	mov	r3, #1
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	global_n
	.size	prime, .-prime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
