	.file	"1091663.c"
	.intel_syntax noprefix
	.text
	.type	is_prime, @function
is_prime:
.LFB0:
	.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
	mov	DWORD PTR -4[rbp], 2
	jmp	.L2
.L5:
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L3
	mov	eax, 0
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax
	cmp	DWORD PTR -20[rbp], eax
	jnb	.L5
	mov	eax, 1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_prime, .-is_prime
	.type	split, @function
split:
.LFB1:
	.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
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, ecx
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx, 3
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	shr	eax, 3
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L8
	mov	rax, QWORD PTR -32[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	split, .-split
	.type	join, @function
join:
.LFB2:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L12:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	sub	DWORD PTR -4[rbp], 1
.L11:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L12
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	join, .-join
	.type	permute4, @function
permute4:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -84[rbp], 0
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	split
	mov	DWORD PTR -80[rbp], 0
	jmp	.L15
.L30:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L16
.L29:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	je	.L32
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -72[rbp], 0
	jmp	.L19
.L28:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	je	.L33
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	je	.L33
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L23
.L27:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	je	.L34
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	je	.L34
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	je	.L34
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -84[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -112[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -48[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	join
	mov	DWORD PTR [rbx], eax
	jmp	.L26
.L34:
	nop
.L26:
	add	DWORD PTR -68[rbp], 1
.L23:
	cmp	DWORD PTR -68[rbp], 3
	jle	.L27
	jmp	.L22
.L33:
	nop
.L22:
	add	DWORD PTR -72[rbp], 1
.L19:
	cmp	DWORD PTR -72[rbp], 3
	jle	.L28
	jmp	.L18
.L32:
	nop
.L18:
	add	DWORD PTR -76[rbp], 1
.L16:
	cmp	DWORD PTR -76[rbp], 3
	jle	.L29
	add	DWORD PTR -80[rbp], 1
.L15:
	cmp	DWORD PTR -80[rbp], 3
	jle	.L30
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	permute4, .-permute4
	.type	check_diff, @function
check_diff:
.LFB4:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 1
	jmp	.L36
.L43:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L37
.L42:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jne	.L38
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jl	.L44
	add	DWORD PTR -8[rbp], 1
.L37:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L42
	jmp	.L41
.L44:
	nop
.L41:
	add	DWORD PTR -12[rbp], 1
.L36:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L43
	mov	eax, 0
.L39:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	check_diff, .-check_diff
	.type	sort, @function
sort:
.LFB5:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L46
.L50:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L47
.L49:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	lea	rcx, -4[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	sub	DWORD PTR -8[rbp], 1
.L47:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L48
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L49
.L48:
	add	DWORD PTR -12[rbp], 1
.L46:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L50
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	sort, .-sort
	.globl	four_digit_primes
	.type	four_digit_primes, @function
four_digit_primes:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -140[rbp], 1001
	jmp	.L52
.L61:
	mov	eax, DWORD PTR -140[rbp]
	mov	edi, eax
	call	is_prime
	test	eax, eax
	je	.L53
	cmp	DWORD PTR -140[rbp], 1487
	je	.L53
	mov	eax, DWORD PTR -140[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	permute4
	mov	DWORD PTR -136[rbp], 1
	mov	DWORD PTR -132[rbp], 1
	jmp	.L54
.L56:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	mov	edi, eax
	call	is_prime
	test	eax, eax
	je	.L55
	mov	eax, DWORD PTR -136[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -136[rbp], edx
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -112[rbp+rdx*4]
	cdqe
	mov	DWORD PTR -112[rbp+rax*4], edx
.L55:
	add	DWORD PTR -132[rbp], 1
.L54:
	cmp	DWORD PTR -132[rbp], 23
	jle	.L56
	mov	edx, DWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort
	mov	DWORD PTR -128[rbp], 0
	jmp	.L57
.L59:
	add	DWORD PTR -128[rbp], 1
.L57:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jge	.L58
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	cmp	DWORD PTR -140[rbp], eax
	jg	.L59
.L58:
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, DWORD PTR -128[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, -112[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	check_diff
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jle	.L53
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	imul	eax, eax, 10000
	cdqe
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	movsx	rdx, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	imul	rax, rax, 10000
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	edx, DWORD PTR -112[rbp+rax*4]
	mov	eax, DWORD PTR -124[rbp]
	add	eax, eax
	add	eax, edx
	cdqe
	add	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	jmp	.L62
.L53:
	add	DWORD PTR -140[rbp], 2
.L52:
	cmp	DWORD PTR -140[rbp], 9999
	jle	.L61
	mov	rax, -1
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	four_digit_primes, .-four_digit_primes
	.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	"1091663.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.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]
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bcs	.L5
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_prime, .-is_prime
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	split, %function
split:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r1, [fp, #-16]
	ldr	r3, .L10
	umull	r2, r3, r1, r3
	lsr	r2, r3, #3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, .L10
	umull	r1, r3, r2, r3
	lsr	r3, r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	-858993459
	.size	split, .-split
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	join, %function
join:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L14
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	join, .-join
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	permute4, %function
permute4:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #48
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	split
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L17
.L32:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L18
.L31:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	beq	.L34
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L21
.L30:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	beq	.L35
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	beq	.L35
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L25
.L29:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	beq	.L36
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	beq	.L36
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L36
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	str	r2, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r4, r2, r3
	sub	r3, fp, #32
	mov	r1, #4
	mov	r0, r3
	bl	join
	mov	r3, r0
	str	r3, [r4]
	b	.L28
.L36:
	nop
.L28:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L25:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L29
	b	.L24
.L35:
	nop
.L24:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L21:
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	ble	.L30
	b	.L20
.L34:
	nop
.L20:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L18:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	ble	.L31
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L17:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	ble	.L32
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.size	permute4, .-permute4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_diff, %function
check_diff:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L40
.L47:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L41
.L46:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L42
	ldr	r3, [fp, #-8]
	b	.L43
.L42:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L41:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L46
	b	.L45
.L48:
	nop
.L45:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L47
	mov	r3, #0
.L43:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_diff, .-check_diff
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L50
.L54:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L51
.L53:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L51:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L52
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L53
.L52:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L50:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L54
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sort, .-sort
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	four_digit_primes
	.syntax unified
	.arm
	.fpu softvfp
	.type	four_digit_primes, %function
four_digit_primes:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L68+4
	str	r3, [fp, #-128]
	b	.L56
.L65:
	ldr	r3, [fp, #-128]
	mov	r0, r3
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-128]
	ldr	r2, .L68+8
	cmp	r3, r2
	beq	.L57
	ldr	r3, [fp, #-128]
	sub	r2, fp, #104
	mov	r1, r2
	mov	r0, r3
	bl	permute4
	mov	r3, #1
	str	r3, [fp, #-124]
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L58
.L60:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-100]
	mov	r0, r3
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r2, [fp, #-124]
	add	r3, r2, #1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-100]
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-100]
.L59:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L58:
	ldr	r3, [fp, #-120]
	cmp	r3, #23
	ble	.L60
	sub	r3, fp, #104
	ldr	r1, [fp, #-124]
	mov	r0, r3
	bl	sort
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L61
.L63:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L61:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	bge	.L62
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-100]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	bgt	.L63
.L62:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #104
	add	r0, r2, r3
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-116]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	check_diff
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	ble	.L57
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-100]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-100]
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-100]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	b	.L66
.L57:
	ldr	r3, [fp, #-128]
	add	r3, r3, #2
	str	r3, [fp, #-128]
.L56:
	ldr	r3, [fp, #-128]
	ldr	r2, .L68+12
	cmp	r3, r2
	ble	.L65
	mvn	r3, #0
.L66:
	ldr	r2, .L68
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC1
	.word	1001
	.word	1487
	.word	9999
	.size	four_digit_primes, .-four_digit_primes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
