	.file	"74624.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.text
	.globl	checkprime
	.type	checkprime, @function
checkprime:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L2
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	cqo
	idiv	QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	cqo
	idiv	QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	DWORD PTR -36[rbp], 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jl	.L8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L2:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L6
	jmp	.L4
.L8:
	nop
.L4:
	mov	eax, DWORD PTR -36[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checkprime, .-checkprime
	.section	.rodata
.LC0:
	.string	"%ld\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -24[rbp], 2
	jmp	.L10
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	checkprime
	test	eax, eax
	je	.L11
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR head[rip], rax
	jmp	.L13
.L12:
	mov	rax, QWORD PTR tail[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR tail[rip], rax
.L11:
	add	QWORD PTR -24[rbp], 1
.L10:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jle	.L14
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L15:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -32[rbp], rax
.L17:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L18
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"74624.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	checkprime
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkprime, %function
checkprime:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L2
.L6:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L4
.L3:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	b	.L4
.L8:
	nop
.L4:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	head
	.size	checkprime, .-checkprime
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%ld\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L12
.L16:
	ldr	r0, [fp, #-16]
	bl	checkprime
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r2, .L22
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	b	.L15
.L14:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
.L15:
	ldr	r2, .L22+4
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L16
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L17
.L18:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+8
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
.L17:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L19
.L20:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	head
	.word	tail
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
