	.file	"754947.c"
	.intel_syntax noprefix
	.text
	.globl	getTotient
	.type	getTotient, @function
getTotient:
.LFB0:
	.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	neg	rax
	add	QWORD PTR -16[rbp], rax
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 1
	test	rax, rax
	je	.L3
.L2:
	mov	QWORD PTR -8[rbp], 3
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	cqo
	idiv	QWORD PTR -8[rbp]
	sub	QWORD PTR -16[rbp], rax
.L6:
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	je	.L6
.L5:
	add	QWORD PTR -8[rbp], 2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax
	cmp	QWORD PTR -24[rbp], rax
	jge	.L7
	cmp	QWORD PTR -24[rbp], 1
	jle	.L8
	mov	rax, QWORD PTR -16[rbp]
	cqo
	idiv	QWORD PTR -24[rbp]
	sub	QWORD PTR -16[rbp], rax
.L8:
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getTotient, .-getTotient
	.section	.rodata
.LC0:
	.string	"%ld"
	.align 8
.LC1:
	.string	"Sum of Totients between [%ld..%ld] is %ld \n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, 1
	jne	.L11
	mov	QWORD PTR -16[rbp], 1
	mov	QWORD PTR -32[rbp], 2
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rdi, rax
	call	getTotient
	add	QWORD PTR -16[rbp], rax
	add	DWORD PTR -36[rbp], 1
.L12:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	jle	.L13
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"754947.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.global	getTotient
	.syntax unified
	.arm
	.fpu softvfp
	.type	getTotient, %function
getTotient:
	@ 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, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
.L2:
	mov	r3, #3
	str	r3, [fp, #-8]
	b	.L4
.L7:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L5
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, r2
	str	r3, [fp, #-12]
.L6:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L6
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	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
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L8
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, r2
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getTotient, .-getTotient
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%ld\000"
	.align	2
.LC1:
	.ascii	"Sum of Totients between [%ld..%ld] is %ld \012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L16+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L16+4
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #2
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L12
.L13:
	ldr	r0, [fp, #-16]
	bl	getTotient
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L13
	ldr	r1, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	ldr	r0, .L16+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
