	.file	"37798.c"
	.intel_syntax noprefix
	.text
	.type	get_factor.0, @function
get_factor.0:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rcx, r10
	mov	QWORD PTR -16[rbp], r10
	mov	rax, QWORD PTR 8[rcx]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR 16[rcx]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR [rcx]
	add	rax, rdx
	mov	QWORD PTR [rax], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR 16[rcx]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR [rcx]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 16[rcx]
	movsx	rdx, edx
	lea	rsi, 0[0+rdx*8]
	mov	rdx, QWORD PTR [rcx]
	add	rdx, rsi
	imul	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR 8[rcx]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rcx], rax
.L4:
	mov	rax, QWORD PTR 8[rcx]
	cqo
	idiv	QWORD PTR -8[rbp]
	mov	rax, rdx
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR 16[rcx]
	add	eax, 1
	mov	DWORD PTR 16[rcx], eax
	jmp	.L1
.L6:
	nop
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_factor.0, .-get_factor.0
	.globl	factorize
	.type	factorize, @function
factorize:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, 0
	mov	DWORD PTR -32[rbp], eax
	lea	rax, -48[rbp]
	mov	r10, rax
	mov	edi, 2
	call	get_factor.0
	lea	rax, -48[rbp]
	mov	r10, rax
	mov	edi, 3
	call	get_factor.0
	mov	QWORD PTR -64[rbp], 5
	mov	QWORD PTR -56[rbp], 4
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, -48[rbp]
	mov	r10, rdx
	mov	rdi, rax
	call	get_factor.0
	mov	eax, 6
	sub	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	QWORD PTR -64[rbp], rax
.L8:
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, rax
	mov	rdx, QWORD PTR -40[rbp]
	cmp	rdx, rax
	jge	.L9
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, 1
	jle	.L10
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -48[rbp]
	mov	r10, rdx
	mov	rdi, rax
	call	get_factor.0
.L10:
	mov	eax, DWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	factorize, .-factorize
	.globl	mul_inv
	.type	mul_inv, @function
mul_inv:
.LFB8:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 1
	cmp	QWORD PTR -64[rbp], 1
	jne	.L16
	mov	eax, 1
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -56[rbp]
	cqo
	idiv	QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	cqo
	idiv	QWORD PTR -64[rbp]
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
.L16:
	cmp	QWORD PTR -56[rbp], 1
	jg	.L17
	cmp	QWORD PTR -32[rbp], 0
	jns	.L18
	mov	rax, QWORD PTR -24[rbp]
	add	QWORD PTR -32[rbp], rax
.L18:
	mov	rax, QWORD PTR -32[rbp]
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mul_inv, .-mul_inv
	.section	.rodata
.LC0:
	.string	"too many results\n"
	.text
	.type	kaps.1, @function
kaps.1:
.LFB10:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rbx, r10
	mov	QWORD PTR -56[rbp], r10
	mov	eax, DWORD PTR 544[rbx]
	cmp	DWORD PTR -44[rbp], eax
	jge	.L20
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	add	rax, 2
	mov	rax, QWORD PTR 8[rbx+rax*8]
	imul	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	esi, edx
	mov	rdi, rax
	call	kaps.1
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	esi, edx
	mov	rdi, rax
	call	kaps.1
	jmp	.L19
.L20:
	mov	rax, QWORD PTR 16[rbx]
	sub	rax, 1
	cqo
	idiv	QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mul_inv
	mov	rdx, QWORD PTR -40[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 1
	jle	.L19
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR -24[rbp], rax
	jge	.L19
	mov	eax, DWORD PTR 540[rbx]
	lea	edx, 1[rax]
	mov	DWORD PTR 540[rbx], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR [rbx]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	edx, DWORD PTR 540[rbx]
	mov	eax, DWORD PTR 536[rbx]
	cmp	edx, eax
	jl	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	call	abort@PLT
.L19:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	kaps.1, .-kaps.1
	.section	.rodata
.LC1:
	.string	"too large: %lld\n"
	.text
	.globl	kaprekars
	.type	kaprekars, @function
kaprekars:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 608
	mov	DWORD PTR -580[rbp], edi
	mov	QWORD PTR -592[rbp], rsi
	mov	QWORD PTR -600[rbp], rdx
	mov	DWORD PTR -584[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -592[rbp]
	mov	QWORD PTR -568[rbp], rax
	mov	rax, QWORD PTR -600[rbp]
	mov	QWORD PTR -576[rbp], rax
	mov	eax, DWORD PTR -584[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, 0
	mov	DWORD PTR -36[rbp], eax
	mov	rcx, QWORD PTR -568[rbp]
	movabs	rax, 9223372036854775807
	cqo
	idiv	rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -568[rbp]
	cmp	rax, rdx
	jl	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -568[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L23:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 1
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	QWORD PTR -560[rbp], rax
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -560[rbp]
	sub	rax, 1
	lea	rdx, -576[rbp]
	add	rdx, 24
	mov	rsi, rdx
	mov	rdi, rax
	call	factorize
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	cdqe
	add	rax, 2
	mov	rax, QWORD PTR -568[rbp+rax*8]
	mov	rdx, QWORD PTR -568[rbp]
	cmp	rdx, rax
	jl	.L25
	lea	rax, -576[rbp]
	mov	r10, rax
	mov	esi, 0
	mov	edi, 1
	call	kaps.1
.L25:
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	rdx, QWORD PTR -560[rbp]
	imul	rax, rdx
	mov	QWORD PTR -560[rbp], rax
.L24:
	mov	rdx, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR -568[rbp]
	imul	rax, rdx
	mov	edx, DWORD PTR -580[rbp]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -560[rbp]
	cmp	rax, rdx
	jle	.L26
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	kaprekars, .-kaprekars
	.section	.rodata
.LC2:
	.string	"base %d:\n"
.LC3:
	.string	"\t%d kaprepar numbers\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3936
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8024[rbp], 2
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -8024[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -8016[rbp]
	mov	eax, DWORD PTR -8024[rbp]
	mov	ecx, 1000
	mov	esi, 2147483647
	mov	edi, eax
	call	kaprekars
	mov	DWORD PTR -8020[rbp], eax
	mov	eax, DWORD PTR -8020[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8024[rbp], 1
.L30:
	cmp	DWORD PTR -8024[rbp], 98
	jle	.L31
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"37798.c"
	.text
	.global	__aeabi_ldivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_factor.5146, %function
get_factor.5146:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r4, ip
	str	ip, [fp, #-24]
	ldmia	r4, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	bne	.L6
	ldr	r3, [r4, #12]
	lsl	r3, r3, #3
	ldr	r2, [r4, #8]
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L4
.L5:
	ldr	r3, [r4, #12]
	lsl	r3, r3, #3
	ldr	r2, [r4, #8]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #12]
	lsl	r1, r1, #3
	ldr	r0, [r4, #8]
	add	ip, r0, r1
	ldr	r1, [fp, #-20]
	mul	r0, r3, r1
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	add	lr, r0, r1
	ldr	r5, [fp, #-20]
	umull	r0, r1, r5, r2
	add	r3, lr, r1
	mov	r1, r3
	stm	ip, {r0-r1}
	ldmia	r4, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
.L4:
	ldmia	r4, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	beq	.L5
	ldr	r3, [r4, #12]
	add	r3, r3, #1
	str	r3, [r4, #12]
	b	.L1
.L6:
	nop
.L1:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	get_factor.5146, .-get_factor.5146
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	factorize
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorize, %function
factorize:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	str	r2, [fp, #-80]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-36]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	mov	ip, r3
	mov	r0, #2
	mov	r1, #0
	bl	get_factor.5146
	sub	r3, fp, #52
	mov	ip, r3
	mov	r0, #3
	mov	r1, #0
	bl	get_factor.5146
	mov	r2, #5
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #4
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L8
.L9:
	sub	r3, fp, #52
	mov	ip, r3
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	get_factor.5146
	mov	r0, #6
	mov	r1, #0
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-68]
	str	r7, [fp, #-64]
.L8:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	ldr	r1, [fp, #-68]
	mul	r3, r1, r3
	add	r0, r2, r3
	ldr	r1, [fp, #-68]
	umull	r2, r3, r1, r1
	add	r1, r0, r3
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L9
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	blt	.L10
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	mov	ip, r1
	mov	r0, r2
	mov	r1, r3
	bl	get_factor.5146
.L10:
	ldr	r3, [fp, #-40]
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	factorize, .-factorize
	.align	2
	.global	mul_inv
	.syntax unified
	.arm
	.fpu softvfp
	.type	mul_inv, %function
mul_inv:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #56
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bne	.L18
	mov	r2, #1
	mov	r3, #0
	b	.L17
.L19:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-60]
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r1, r2, r3
	ldr	ip, [fp, #-36]
	ldr	r0, [fp, #-60]
	umull	r2, r3, ip, r0
	add	r1, r1, r3
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	str	r6, [fp, #-60]
	str	r7, [fp, #-56]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L18:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	bge	.L19
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L20
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-52]
	str	r5, [fp, #-48]
.L20:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
.L17:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	mul_inv, .-mul_inv
	.section	.rodata
	.align	2
.LC1:
	.ascii	"too many results\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kaps.5180, %function
kaps.5180:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	mov	r4, ip
	str	ip, [fp, #-44]
	ldr	r3, [r4, #540]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bge	.L22
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	lsl	r3, r3, #3
	add	r3, r4, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-36]
	mul	r0, r3, r1
	ldr	r1, [fp, #-32]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-36]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	ip, r4
	mov	r2, r3
	bl	kaps.5180
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	ip, r4
	mov	r2, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	kaps.5180
	b	.L21
.L22:
	add	r3, r4, #8
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	mul_inv
	ldr	r3, [fp, #-32]
	mul	r2, r0, r3
	ldr	r3, [fp, #-36]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-36]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	blt	.L21
	ldmia	r4, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L21
	ldr	r3, [r4, #536]
	add	r2, r3, #1
	str	r2, [r4, #536]
	lsl	r3, r3, #3
	ldr	r2, [r4, #532]
	add	r1, r2, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r2, [r4, #536]
	ldr	r3, [r4, #528]
	cmp	r2, r3
	blt	.L21
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	bl	abort
.L21:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC1
	.size	kaps.5180, .-kaps.5180
	.section	.rodata
	.align	2
.LC2:
	.ascii	"too large: %lld\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kaprekars
	.syntax unified
	.arm
	.fpu softvfp
	.type	kaprekars, %function
kaprekars:
	@ args = 8, pretend = 0, frame = 576
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #576
	str	r0, [fp, #-584]
	str	r2, [fp, #-596]
	str	r3, [fp, #-592]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-588]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-36]
	sub	r3, fp, #596
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-580]
	str	r3, [fp, #-576]
	ldr	r3, [fp, #-588]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-44]
	sub	r3, fp, #580
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #-2147483648
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #580
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	r3, r3, r1
	blt	.L27
	ldr	r3, .L33+4
	ldr	r0, [r3]
	sub	r3, fp, #580
	ldmia	r3, {r2-r3}
	ldr	r1, .L33+8
	bl	fprintf
	bl	abort
.L27:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-584]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-572]
	str	r3, [fp, #-568]
	b	.L28
.L30:
	sub	r3, fp, #572
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	sub	r3, fp, #580
	add	r3, r3, #16
	mov	r2, r3
	mov	r0, r6
	mov	r1, r7
	bl	factorize
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	add	r3, r3, #2
	lsl	r3, r3, #3
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r3, r3, #560
	ldmia	r3, {r2-r3}
	sub	r1, fp, #580
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L29
	sub	r3, fp, #580
	mov	ip, r3
	mov	r2, #0
	mov	r0, #1
	mov	r1, #0
	bl	kaps.5180
.L29:
	ldr	r3, [fp, #-584]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #572
	ldmia	r1, {r0-r1}
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	str	r4, [fp, #-572]
	str	r5, [fp, #-568]
.L28:
	sub	r1, fp, #580
	ldmia	r1, {r0-r1}
	sub	r3, fp, #580
	ldmia	r3, {r2-r3}
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	ldr	r3, [fp, #-584]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #572
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L30
	ldr	r3, [fp, #-44]
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC3
	.word	stderr
	.word	.LC2
	.size	kaprekars, .-kaprekars
	.section	.rodata
	.align	2
.LC4:
	.ascii	"base %d:\012\000"
	.align	2
.LC5:
	.ascii	"\011%d kaprepar numbers\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8000
	sub	sp, sp, #28
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3920]
	b	.L36
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-3920]
	ldr	r0, .L40+4
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, #1000
	str	r3, [sp, #4]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mvn	r2, #-2147483648
	mov	r3, #0
	ldr	r0, [r1, #-3920]
	bl	kaprekars
	str	r0, [r4, #-3916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-3916]
	ldr	r0, .L40+8
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	add	r3, r3, #1
	str	r3, [r2, #-3920]
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3920]
	cmp	r3, #98
	ble	.L37
	mov	r3, #0
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
