	.file	"47878.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Please enter the number: "
.LC1:
	.string	"%s"
.LC2:
	.string	"%llu"
	.align 8
.LC3:
	.string	"Would you like to have each divisor printed out to the screen? (0/1)  "
.LC4:
	.string	"%d"
.LC5:
	.string	"%lu "
.LC6:
	.string	""
.LC7:
	.string	"%llu "
	.align 8
.LC8:
	.string	"The total number of divisors of %llu is: %lu\n"
	.align 8
.LC9:
	.string	"The sum of the divisors is: %llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 12
	mov	QWORD PTR -32[rbp], 1
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	BYTE PTR -49[rbp], 0
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	jne	.L2
	mov	BYTE PTR -49[rbp], 1
.L2:
	mov	DWORD PTR -44[rbp], 0
	mov	QWORD PTR -16[rbp], 1
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	div	QWORD PTR -16[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -24[rbp], rax
	add	QWORD PTR -32[rbp], 1
	add	DWORD PTR -44[rbp], 1
	cmp	BYTE PTR -49[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	cmp	BYTE PTR -49[rbp], 0
	je	.L4
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, ecx
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx, 4
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L4
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L4:
	add	QWORD PTR -16[rbp], 1
.L3:
	mov	rax, QWORD PTR -40[rbp]
	shr	rax
	add	rax, 1
	cmp	QWORD PTR -16[rbp], rax
	jb	.L6
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -24[rbp], rax
	cmp	BYTE PTR -49[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"47878.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter the number: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%llu\000"
	.align	2
.LC3:
	.ascii	"Would you like to have each divisor printed out to "
	.ascii	"the screen? (0/1)  \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.global	__aeabi_uldivmod
	.align	2
.LC5:
	.ascii	"%lu \000"
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"%llu \000"
	.align	2
.LC8:
	.ascii	"The total number of divisors of %llu is: %lu\012\000"
	.align	2
.LC9:
	.ascii	"The sum of the divisors is: %llu\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #64
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #12
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L10+12
	bl	__isoc99_scanf
	ldr	r1, .L10+16
	ldr	r0, .L10+8
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L10+20
	bl	__isoc99_scanf
	mov	r3, #0
	strb	r3, [fp, #-69]
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	bne	.L2
	mov	r3, #1
	strb	r3, [fp, #-69]
.L2:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L3
.L6:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r3, #0
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L4
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	adds	r8, r0, r2
	adc	r9, r1, r3
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r1, [fp, #-56]
	ldr	r0, .L10+24
	bl	printf
.L5:
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r1, [fp, #-60]
	ldr	r3, .L10+28
	umull	r2, r3, r1, r3
	lsr	r2, r3, #4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L4
	ldr	r0, .L10+32
	bl	puts
.L4:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L3:
	ldr	r3, [fp, #-56]
	mov	r1, r3
	mov	r2, #0
	str	r1, [fp, #-84]
	str	r2, [fp, #-80]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #1
	orr	r2, r2, r1, lsl #31
	lsr	r3, r1, #1
	adds	r6, r2, #1
	adc	r7, r3, #0
	sub	r2, fp, #84
	ldmia	r2, {r1-r2}
	cmp	r2, r7
	cmpeq	r1, r6
	bcc	.L6
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+36
	bl	printf
.L7:
	ldr	r0, .L10+32
	bl	puts
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-64]
	str	r1, [sp]
	ldr	r0, .L10+40
	bl	printf
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+44
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	-858993459
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
