	.file	"815928.c"
	.intel_syntax noprefix
	.text
	.globl	getNextPrime
	.type	getNextPrime, @function
getNextPrime:
.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	eax, edi
	mov	WORD PTR -20[rbp], ax
	cmp	WORD PTR -20[rbp], -15
	jbe	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	WORD PTR -2[rbp], 4680
	movzx	eax, WORD PTR -20[rbp]
	mov	WORD PTR -4[rbp], ax
	jmp	.L4
.L6:
	movzx	eax, WORD PTR -4[rbp]
	mov	edi, eax
	call	isPrime
	xor	eax, 1
	test	al, al
	je	.L5
	movzx	eax, WORD PTR -4[rbp]
	jmp	.L3
.L5:
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L4:
	movzx	eax, WORD PTR -4[rbp]
	movzx	ecx, WORD PTR -20[rbp]
	movzx	edx, WORD PTR -2[rbp]
	add	edx, ecx
	cmp	eax, edx
	jl	.L6
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getNextPrime, .-getNextPrime
	.globl	isPrime
	.type	isPrime, @function
isPrime:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	cmp	WORD PTR -20[rbp], 1
	ja	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	WORD PTR -2[rbp], 2
	jmp	.L10
.L12:
	movzx	eax, WORD PTR -20[rbp]
	mov	edx, 0
	div	WORD PTR -2[rbp]
	mov	eax, edx
	test	ax, ax
	jne	.L11
	mov	eax, 0
	jmp	.L9
.L11:
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L10:
	movzx	edx, WORD PTR -2[rbp]
	movzx	eax, WORD PTR -2[rbp]
	imul	edx, eax
	movzx	eax, WORD PTR -20[rbp]
	cmp	edx, eax
	jle	.L12
	mov	eax, 1
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isPrime, .-isPrime
	.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	"815928.c"
	.text
	.align	2
	.global	getNextPrime
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNextPrime, %function
getNextPrime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-14]
	ldr	r2, .L7
	cmp	r3, r2
	bls	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, .L7+4
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-14]	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	b	.L4
.L6:
	ldrh	r3, [fp, #-8]
	mov	r0, r3
	bl	isPrime
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L5
	ldrh	r3, [fp, #-8]
	b	.L3
.L5:
	ldrh	r3, [fp, #-8]
	add	r3, r3, #1
	strh	r3, [fp, #-8]	@ movhi
.L4:
	ldrh	r2, [fp, #-8]
	ldrh	r1, [fp, #-14]
	ldrh	r3, [fp, #-6]
	add	r3, r1, r3
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	65521
	.word	4680
	.size	getNextPrime, .-getNextPrime
	.global	__aeabi_uidivmod
	.align	2
	.global	isPrime
	.syntax unified
	.arm
	.fpu softvfp
	.type	isPrime, %function
isPrime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-14]
	cmp	r3, #1
	bhi	.L10
	mov	r3, #0
	b	.L11
.L10:
	mov	r3, #2
	strh	r3, [fp, #-6]	@ movhi
	b	.L12
.L14:
	ldrh	r3, [fp, #-14]
	ldrh	r2, [fp, #-6]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
	b	.L11
.L13:
	ldrh	r3, [fp, #-6]
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L12:
	ldrh	r3, [fp, #-6]
	ldrh	r2, [fp, #-6]
	mul	r2, r3, r2
	ldrh	r3, [fp, #-14]
	cmp	r2, r3
	ble	.L14
	mov	r3, #1
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isPrime, .-isPrime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
