	.file	"548177.c"
	.intel_syntax noprefix
	.text
	.globl	sum_divisors
	.type	sum_divisors, @function
sum_divisors:
.LFB0:
	.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	QWORD PTR -8[rbp], 1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -20[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	cvttsd2si	eax, xmm0
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 2
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax
	cmp	DWORD PTR -20[rbp], eax
	je	.L3
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
.L3:
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L4
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sum_divisors, .-sum_divisors
	.section	.rodata
.LC0:
	.string	"%lld"
	.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
	lea	r11, -77824[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80032[rbp], 2
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -80032[rbp]
	mov	edi, eax
	call	sum_divisors
	mov	edx, DWORD PTR -80032[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -80016[rbp+rdx*8], rax
	add	DWORD PTR -80032[rbp], 1
.L7:
	cmp	DWORD PTR -80032[rbp], 9999
	jle	.L8
	mov	DWORD PTR -80028[rbp], 2
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -80028[rbp]
	cdqe
	mov	rax, QWORD PTR -80016[rbp+rax*8]
	cmp	rax, 9999
	jg	.L10
	mov	eax, DWORD PTR -80028[rbp]
	cdqe
	mov	rdx, QWORD PTR -80016[rbp+rax*8]
	mov	eax, DWORD PTR -80028[rbp]
	cdqe
	cmp	rdx, rax
	je	.L10
	mov	eax, DWORD PTR -80028[rbp]
	cdqe
	mov	rax, QWORD PTR -80016[rbp+rax*8]
	mov	rdx, QWORD PTR -80016[rbp+rax*8]
	mov	eax, DWORD PTR -80028[rbp]
	cdqe
	cmp	rdx, rax
	jne	.L10
	mov	eax, DWORD PTR -80028[rbp]
	cdqe
	add	QWORD PTR -80024[rbp], rax
.L10:
	add	DWORD PTR -80028[rbp], 1
.L9:
	cmp	DWORD PTR -80028[rbp], 9999
	jle	.L11
	mov	rax, QWORD PTR -80024[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"548177.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.global	sum_divisors
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum_divisors, %function
sum_divisors:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-40]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-32]
	mov	r3, #2
	str	r3, [fp, #-36]
	b	.L2
.L4:
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-36]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	ldr	r3, [fp, #-36]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
.L3:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L2:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L4
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	sum_divisors, .-sum_divisors
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lld\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #79872
	sub	sp, sp, #152
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2200]
	b	.L7
.L8:
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r0, [r3, #-2200]
	bl	sum_divisors
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2200]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #2176
	sub	r3, r3, #8
	stm	r3, {r0-r1}
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2200]
	add	r3, r3, #1
	str	r3, [r2, #-2200]
.L7:
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2200]
	ldr	r2, .L14+4
	cmp	r3, r2
	ble	.L8
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2196]
	b	.L9
.L11:
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #2176
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+4
	mov	r1, #0
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L10
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #2176
	sub	r3, r3, #8
	ldmia	r3, {r0-r1}
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	mov	r2, r3
	asr	r3, r2, #31
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L10
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #2176
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	sub	r1, fp, #77824
	sub	r1, r1, #12
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #2176
	sub	r3, r3, #8
	ldmia	r3, {r0-r1}
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	mov	r2, r3
	asr	r3, r2, #31
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L10
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #79872
	sub	r1, r1, #12
	sub	r1, r1, #144
	mov	ip, r1
	sub	r1, fp, #79872
	sub	r1, r1, #12
	sub	r1, r1, #144
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	stm	ip, {r4-r5}
.L10:
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	add	r3, r3, #1
	str	r3, [r2, #-2196]
.L9:
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldr	r3, [r3, #-2196]
	ldr	r2, .L14+4
	cmp	r3, r2
	ble	.L11
	sub	r3, fp, #79872
	sub	r3, r3, #12
	sub	r3, r3, #144
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	9999
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
