	.file	"121768.c"
	.intel_syntax noprefix
	.text
	.globl	factor
	.type	factor, @function
factor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -44[rbp], edi
	mov	DWORD PTR ar.0[rip], -1
	mov	ebx, DWORD PTR -44[rbp]
	mov	r12d, 2
	jmp	.L2
.L3:
	mov	eax, DWORD PTR ar.0[rip]
	add	eax, 1
	mov	DWORD PTR ar.0[rip], eax
	mov	ecx, DWORD PTR ar.0[rip]
	mov	eax, ebx
	cdq
	idiv	r12d
	mov	esi, edx
	movsx	rax, ecx
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	DWORD PTR [rdx+rax], esi
	mov	eax, ebx
	cdq
	idiv	r12d
	mov	ebx, eax
	add	r12d, 1
.L2:
	test	ebx, ebx
	jne	.L3
	mov	r13d, 2
	jmp	.L4
.L12:
	add	r13d, 1
	mov	ebx, 0
	jmp	.L5
.L8:
	lea	r12d, 1[rbx]
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	movsx	rax, r12d
	lea	rcx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, r12d
	mov	ecx, edx
	sub	ecx, eax
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L6
.L7:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	lea	eax, 0[r13+rbx]
	lea	ecx, [rdx+rax]
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
.L6:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	js	.L7
	mov	ebx, r12d
.L5:
	mov	eax, DWORD PTR ar.0[rip]
	cmp	ebx, eax
	jne	.L8
	jmp	.L9
.L10:
	mov	eax, DWORD PTR ar.0[rip]
	sub	eax, 1
	mov	DWORD PTR ar.0[rip], eax
.L9:
	mov	eax, DWORD PTR ar.0[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar.0[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L10
.L4:
	mov	eax, DWORD PTR ar.0[rip+4]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR ar.0[rip]
	cmp	eax, 1
	jg	.L12
.L11:
	mov	eax, DWORD PTR ar.0[rip+4]
	test	eax, eax
	jne	.L13
	mov	DWORD PTR -28[rbp], r13d
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -28[rbp], eax
.L14:
	mov	eax, DWORD PTR -28[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	factor, .-factor
	.section	.rodata
.LC0:
	.string	"\t1"
.LC1:
	.string	"\t%d\n"
	.text
	.globl	printfactors
	.type	printfactors, @function
printfactors:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	ebx, edi
	cmp	ebx, 1
	jne	.L19
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L21
.L20:
	mov	edi, ebx
	mov	eax, 0
	call	factor
	mov	r12d, eax
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, ebx
	cdq
	idiv	r12d
	mov	ebx, eax
.L19:
	cmp	ebx, 1
	jne	.L20
.L21:
	nop
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	printfactors, .-printfactors
	.section	.rodata
.LC2:
	.string	"%d"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -20[rbp], 1
	jle	.L25
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -12[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L24
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	mov	eax, 0
	call	printfactors
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L25
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	mov	eax, 0
	call	printfactors
.L25:
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L26
.L24:
	mov	eax, 0
	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
.LFE2:
	.size	main, .-main
	.local	ar.0
	.comm	ar.0,100,32
	.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	"121768.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.global	factor
	.syntax unified
	.arm
	.fpu softvfp
	.type	factor, %function
factor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	str	r0, [fp, #-32]
	ldr	r3, .L16
	mvn	r2, #0
	str	r2, [r3]
	ldr	r5, [fp, #-32]
	mov	r4, #2
	b	.L2
.L3:
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, .L16
	ldr	r6, [r3]
	mov	r1, r4
	mov	r0, r5
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r2, .L16
	lsl	r3, r6, #2
	add	r3, r2, r3
	str	r1, [r3, #4]
	mov	r1, r4
	mov	r0, r5
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r5, r3
	add	r4, r4, #1
.L2:
	cmp	r5, #0
	bne	.L3
	mov	r6, #2
	b	.L4
.L12:
	add	r6, r6, #1
	mov	r4, #0
	b	.L5
.L8:
	add	r5, r4, #1
	ldr	r2, .L16
	lsl	r3, r4, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, .L16
	lsl	r3, r5, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	mul	r3, r5, r3
	sub	r2, r2, r3
	ldr	r1, .L16
	lsl	r3, r4, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	b	.L6
.L7:
	ldr	r2, .L16
	lsl	r3, r4, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	add	r3, r6, r4
	add	r2, r2, r3
	ldr	r1, .L16
	lsl	r3, r4, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r2, .L16
	lsl	r3, r5, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r1, .L16
	lsl	r3, r5, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
.L6:
	ldr	r2, .L16
	lsl	r3, r4, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	blt	.L7
	mov	r4, r5
.L5:
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r4, r3
	bne	.L8
	b	.L9
.L10:
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L16
	str	r3, [r2]
.L9:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L10
.L4:
	ldr	r3, .L16
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L12
.L11:
	ldr	r3, .L16
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L13
	str	r6, [fp, #-24]
	b	.L14
.L13:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
.L14:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L17:
	.align	2
.L16:
	.word	ar.4606
	.size	factor, .-factor
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\0111\000"
	.align	2
.LC1:
	.ascii	"\011%d\012\000"
	.text
	.align	2
	.global	printfactors
	.syntax unified
	.arm
	.fpu softvfp
	.type	printfactors, %function
printfactors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	mov	r4, r0
	cmp	r4, #1
	bne	.L21
	ldr	r0, .L24
	bl	puts
	b	.L23
.L22:
	mov	r0, r4
	bl	factor
	mov	r5, r0
	mov	r1, r5
	ldr	r0, .L24+4
	bl	printf
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
.L21:
	cmp	r4, #1
	bne	.L22
.L23:
	nop
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	.LC1
	.size	printfactors, .-printfactors
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L29
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L33+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	printfactors
	b	.L28
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L29
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	printfactors
.L29:
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L33+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L30
.L28:
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC3
	.word	.LC2
	.size	main, .-main
	.local	ar.4606
	.comm	ar.4606,100,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
