	.file	"782314.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nError : factorial of negative integer not defined"
	.text
	.globl	factorial
	.type	factorial, @function
factorial:
.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, 16
	mov	eax, DWORD PTR j[rip]
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR j[rip]
	mov	DWORD PTR -4[rbp], eax
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR fact[rip], xmm0
	jmp	.L3
.L4:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4[rbp]
	movsd	xmm0, QWORD PTR fact[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR fact[rip], xmm0
	sub	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L4
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	factorial, .-factorial
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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	"782314.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Error : factorial of negative integer not defin"
	.ascii	"ed\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, .L6+8
	mov	r2, #0
	ldr	r3, .L6+12
	stm	r1, {r2-r3}
	b	.L3
.L4:
	ldr	r0, [fp, #-8]
	bl	__aeabi_i2d
	ldr	r3, .L6+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L6+8
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L4
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	j
	.word	.LC0
	.word	fact
	.word	1072693248
	.size	factorial, .-factorial
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
