	.file	"979746.c"
	.intel_syntax noprefix
	.text
	.globl	f
	.data
	.align 32
	.type	f, @object
	.size	f, 52
f:
	.long	1
	.long	1
	.long	2
	.long	6
	.long	24
	.long	120
	.long	720
	.long	5040
	.long	40320
	.long	362880
	.long	3628800
	.long	39916800
	.long	479001600
	.text
	.globl	factorial
	.type	factorial, @function
factorial:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 1
	jg	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	QWORD PTR -8[rbp], 12
	jg	.L4
	mov	rax, QWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, f[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	mov	rdi, rax
	call	factorial
	imul	rax, QWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	factorial, .-factorial
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%Ld\n"
.LC2:
	.string	"%d %d"
	.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
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L6
.L9:
	mov	QWORD PTR -24[rbp], 1
	mov	DWORD PTR -28[rbp], 0
	jmp	.L7
.L8:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	rdi, rax
	call	factorial
	mov	rdx, QWORD PTR -24[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -28[rbp], 1
.L7:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, f[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	cqo
	idiv	QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rdx, -36[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"979746.c"
	.text
	.global	f
	.data
	.align	2
	.type	f, %object
	.size	f, 52
f:
	.word	1
	.word	1
	.word	2
	.word	6
	.word	24
	.word	120
	.word	720
	.word	5040
	.word	40320
	.word	362880
	.word	3628800
	.word	39916800
	.word	479001600
	.text
	.align	2
	.global	factorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorial, %function
factorial:
	@ 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, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	bge	.L2
	mov	r0, #1
	mov	r1, #0
	b	.L3
.L2:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r2, #13
	sbcs	r3, r3, #0
	bge	.L4
	ldr	r3, [fp, #-20]
	ldr	r2, .L5
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	asr	r1, r0, #31
	b	.L3
.L4:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	factorial
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	mul	r0, r3, r1
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-20]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
.L3:
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	.align	2
.L5:
	.word	f
	.size	factorial, .-factorial
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.global	__aeabi_ldivmod
	.align	2
.LC1:
	.ascii	"%Ld\012\000"
	.align	2
.LC2:
	.ascii	"%d %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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L8
.L11:
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L10:
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L14+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	factorial
	ldr	r3, [fp, #-24]
	mul	r2, r0, r3
	ldr	r3, [fp, #-28]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-28]
	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]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-44]
	ldr	r2, .L14+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+12
	bl	printf
.L8:
	sub	r2, fp, #40
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L14+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	.LC0
	.word	f
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
