	.file	"154829587.c"
	.intel_syntax noprefix
	.text
	.globl	divisor_count
	.type	divisor_count, @function
divisor_count:
.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 -12[rbp], 1
	jmp	.L2
.L3:
	add	DWORD PTR -12[rbp], 1
	shr	DWORD PTR -20[rbp]
.L2:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	DWORD PTR -8[rbp], 3
	jmp	.L4
.L7:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L5
.L6:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	div	DWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], eax
.L5:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	div	DWORD PTR -8[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -8[rbp], 2
.L4:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, eax
	cmp	DWORD PTR -20[rbp], eax
	jnb	.L7
	cmp	DWORD PTR -20[rbp], 1
	jbe	.L8
	sal	DWORD PTR -12[rbp]
.L8:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	divisor_count, .-divisor_count
	.globl	divisor_product
	.type	divisor_product, @function
divisor_product:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	divisor_count
	mov	eax, eax
	test	rax, rax
	js	.L11
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L12:
	movsd	xmm1, QWORD PTR .LC0[rip]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	mov	eax, DWORD PTR -4[rbp]
	test	rax, rax
	js	.L13
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, rax
	movq	rax, xmm3
	jmp	.L14
.L13:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L14:
	movapd	xmm1, xmm2
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	divisor_product, .-divisor_product
	.section	.rodata
	.align 8
.LC1:
	.string	"Product of divisors for the first %d positive integers:\n"
.LC2:
	.string	"%11d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], 50
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 1
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	divisor_product
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, ecx
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	shr	eax, 2
	mov	edx, eax
	sal	edx, 2
	add	edx, eax
	mov	eax, ecx
	sub	eax, edx
	test	eax, eax
	jne	.L18
	mov	edi, 10
	call	putchar@PLT
.L18:
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jbe	.L19
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.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	"154829587.c"
	.text
	.global	__aeabi_uidiv
	.global	__aeabi_uidivmod
	.align	2
	.global	divisor_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	divisor_count, %function
divisor_count:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	mov	r3, #3
	str	r3, [fp, #-12]
	b	.L4
.L7:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-24]
.L5:
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcs	.L7
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bls	.L8
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	divisor_count, .-divisor_count
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2uiz
	.align	2
	.global	divisor_product
	.syntax unified
	.arm
	.fpu softvfp
	.type	divisor_product, %function
divisor_product:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]
	bl	divisor_count
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	divisor_product, .-divisor_product
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Product of divisors for the first %d positive integ"
	.ascii	"ers:\012\000"
	.align	2
.LC1:
	.ascii	"%11d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #50
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L17
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L13
.L15:
	ldr	r0, [fp, #-12]
	bl	divisor_product
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r3, .L17+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L14
	mov	r0, #10
	bl	putchar
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bls	.L15
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	-858993459
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
