	.file	"195368.c"
	.intel_syntax noprefix
	.text
	.globl	maxl
	.bss
	.align 4
	.type	maxl, @object
	.size	maxl, 4
maxl:
	.zero	4
	.globl	maxr
	.align 4
	.type	maxr, @object
	.size	maxr, 4
maxr:
	.zero	4
	.text
	.globl	is_prime
	.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	edx, DWORD PTR -20[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR -4[rbp], 6
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 5[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L6
.L5:
	mov	eax, 0
	jmp	.L3
.L6:
	add	DWORD PTR -4[rbp], 6
.L4:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax
	cmp	DWORD PTR -20[rbp], eax
	jge	.L7
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_prime, .-is_prime
	.globl	left
	.type	left, @function
left:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR maxl[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L9
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR maxl[rip], eax
.L9:
	cmp	DWORD PTR -20[rbp], 99999
	jg	.L14
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -8[rbp], 1
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_prime
	test	eax, eax
	je	.L12
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	left
.L12:
	add	DWORD PTR -8[rbp], 1
.L11:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L13
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	left, .-left
	.globl	right
	.type	right, @function
right:
.LFB2:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR maxr[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L16
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR maxr[rip], eax
.L16:
	cmp	DWORD PTR -20[rbp], 99999
	jg	.L21
	mov	DWORD PTR -8[rbp], 1
	jmp	.L18
.L20:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, d.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_prime
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	right
.L19:
	add	DWORD PTR -8[rbp], 1
.L18:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L20
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	right, .-right
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 1
	mov	edi, 3
	call	left
	mov	esi, 1
	mov	edi, 7
	call	left
	mov	edi, 3
	call	right
	mov	edi, 5
	call	right
	mov	edi, 7
	call	right
	mov	edx, DWORD PTR maxr[rip]
	mov	eax, DWORD PTR maxl[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.data
	.align 16
	.type	d.0, @object
	.size	d.0, 16
d.0:
	.long	1
	.long	3
	.long	7
	.long	9
	.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	"195368.c"
	.text
	.comm	maxl,4,4
	.comm	maxr,4,4
	.global	__aeabi_idivmod
	.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	r1, [fp, #-16]
	ldr	r3, .L8
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #6
	str	r3, [fp, #-8]
	b	.L4
.L7:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	add	r2, r3, #5
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L6
.L5:
	mov	r3, #0
	b	.L3
.L6:
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L7
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	1431655766
	.size	is_prime, .-is_prime
	.align	2
	.global	left
	.syntax unified
	.arm
	.fpu softvfp
	.type	left, %function
left:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L11
	ldr	r2, .L17
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, .L17+4
	cmp	r3, r2
	bge	.L16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L13
.L15:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	left
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L15
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	maxl
	.word	100000
	.size	left, .-left
	.align	2
	.global	right
	.syntax unified
	.arm
	.fpu softvfp
	.type	right, %function
right:
	@ 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, .L26
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L20
	ldr	r2, .L26
	ldr	r3, [fp, #-16]
	str	r3, [r2]
.L20:
	ldr	r3, [fp, #-16]
	ldr	r2, .L26+4
	cmp	r3, r2
	bge	.L25
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L22
.L24:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r2, .L26+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	is_prime
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-8]
	bl	right
.L23:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L24
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	maxr
	.word	100000
	.word	d.4621
	.size	right, .-right
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\012\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
	mov	r1, #1
	mov	r0, #3
	bl	left
	mov	r1, #1
	mov	r0, #7
	bl	left
	mov	r0, #3
	bl	right
	mov	r0, #5
	bl	right
	mov	r0, #7
	bl	right
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+4
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L30+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	maxl
	.word	maxr
	.word	.LC0
	.size	main, .-main
	.data
	.align	2
	.type	d.4621, %object
	.size	d.4621, 16
d.4621:
	.word	1
	.word	3
	.word	7
	.word	9
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
