	.file	"137352.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%8.3E"
	.text
	.type	float_2_ascii, @function
float_2_ascii:
.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
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -4[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rsi, .LC0[rip]
	lea	rdi, result.0[rip]
	mov	eax, 1
	call	sprintf@PLT
	lea	rax, result.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	float_2_ascii, .-float_2_ascii
	.section	.rodata
.LC1:
	.string	"%8.4e"
.LC2:
	.string	"%e"
	.text
	.globl	fix_float
	.type	fix_float, @function
fix_float:
.LFB7:
	.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
	movss	DWORD PTR -36[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -36[rbp]
	movq	rdx, xmm1
	lea	rax, -18[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 1
	call	sprintf@PLT
	lea	rdx, -24[rbp]
	lea	rax, -18[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	movss	xmm0, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fix_float, .-fix_float
	.globl	factorial
	.type	factorial, @function
factorial:
.LFB8:
	.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
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR .LC3[rip]
	comiss	xmm0, DWORD PTR -4[rbp]
	jb	.L11
	movss	xmm0, DWORD PTR -4[rbp]
	jmp	.L9
.L11:
	movss	xmm0, DWORD PTR -4[rbp]
	movss	xmm1, DWORD PTR .LC3[rip]
	subss	xmm0, xmm1
	movd	eax, xmm0
	movd	xmm0, eax
	call	factorial
	movd	eax, xmm0
	movd	xmm0, eax
	mulss	xmm0, DWORD PTR -4[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	factorial, .-factorial
	.section	.rodata
.LC4:
	.string	"Usage is:\n"
.LC5:
	.string	"  sine <value>\n"
.LC7:
	.string	"x**%d     %s\n"
.LC8:
	.string	"%d!       %s\n"
.LC9:
	.string	"x**%d/%d! %s\n"
.LC12:
	.string	"  total   %s\n"
.LC13:
	.string	"%d term computed\n"
.LC14:
	.string	"sin(%s)=\n"
.LC15:
	.string	"  %s\n"
.LC16:
	.string	"Actual sin(%G)=%G\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	cmp	DWORD PTR -68[rbp], 2
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 8
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	pxor	xmm2, xmm2
	cvtsd2ss	xmm2, xmm0
	movd	eax, xmm2
	movd	xmm0, eax
	call	fix_float
	movd	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -52[rbp], xmm0
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -48[rbp], xmm0
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -44[rbp], xmm0
	mov	DWORD PTR -40[rbp], 0
.L17:
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -48[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -36[rbp]
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	pxor	xmm4, xmm4
	cvtsd2ss	xmm4, xmm0
	movd	eax, xmm4
	movd	xmm0, eax
	call	fix_float
	movd	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movd	xmm0, eax
	call	factorial
	movd	eax, xmm0
	movd	xmm0, eax
	call	fix_float
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	movss	xmm0, DWORD PTR -32[rbp]
	divss	xmm0, DWORD PTR -28[rbp]
	movd	eax, xmm0
	movd	xmm0, eax
	call	fix_float
	movd	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	movd	xmm0, eax
	call	float_2_ascii
	mov	rdx, rax
	movss	xmm0, DWORD PTR -48[rbp]
	cvttss2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	movd	xmm0, eax
	call	float_2_ascii
	mov	rdx, rax
	movss	xmm0, DWORD PTR -48[rbp]
	cvttss2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movd	xmm0, eax
	call	float_2_ascii
	mov	rcx, rax
	movss	xmm0, DWORD PTR -48[rbp]
	cvttss2si	edx, xmm0
	movss	xmm0, DWORD PTR -48[rbp]
	cvttss2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	movss	xmm0, DWORD PTR -44[rbp]
	mulss	xmm0, DWORD PTR -24[rbp]
	addss	xmm0, DWORD PTR -52[rbp]
	movd	eax, xmm0
	movd	xmm0, eax
	call	fix_float
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	movss	xmm0, DWORD PTR -20[rbp]
	ucomiss	xmm0, DWORD PTR -52[rbp]
	jp	.L14
	movss	xmm0, DWORD PTR -20[rbp]
	ucomiss	xmm0, DWORD PTR -52[rbp]
	je	.L19
.L14:
	movss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -52[rbp], xmm0
	movss	xmm0, DWORD PTR -44[rbp]
	movss	xmm1, DWORD PTR .LC10[rip]
	xorps	xmm0, xmm1
	movss	DWORD PTR -44[rbp], xmm0
	movss	xmm1, DWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR .LC11[rip]
	addss	xmm0, xmm1
	movss	DWORD PTR -48[rbp], xmm0
	mov	eax, DWORD PTR -52[rbp]
	movd	xmm0, eax
	call	float_2_ascii
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -40[rbp], 1
	jmp	.L17
.L19:
	nop
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	movd	xmm0, eax
	call	float_2_ascii
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	movd	xmm0, eax
	call	float_2_ascii
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	movq	rbx, xmm0
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	result.0
	.comm	result.0,10,8
	.section	.rodata
	.align 4
.LC3:
	.long	1065353216
	.align 16
.LC10:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.align 4
.LC11:
	.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	"137352.c"
	.text
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%8.3E\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	float_2_ascii, %function
float_2_ascii:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L3
	ldr	r0, .L3+4
	bl	sprintf
	ldr	r3, .L3+4
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	result.6156
	.size	float_2_ascii, .-float_2_ascii
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%8.4e\000"
	.align	2
.LC2:
	.ascii	"%e\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fix_float
	.syntax unified
	.arm
	.fpu softvfp
	.type	fix_float, %function
fix_float:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]	@ float
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r0, fp, #20
	ldr	r1, .L8+4
	bl	sprintf
	sub	r2, fp, #24
	sub	r3, fp, #20
	ldr	r1, .L8+8
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-24]	@ float
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	fix_float, .-fix_float
	.global	__aeabi_fcmple
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.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
	str	r0, [fp, #-8]	@ float
	mov	r1, #1065353216
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-8]	@ float
	b	.L13
.L15:
	mov	r1, #1065353216
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	factorial
	mov	r3, r0
	ldr	r1, [fp, #-8]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	factorial, .-factorial
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage is:\012\000"
	.align	2
.LC5:
	.ascii	"  sine <value>\012\000"
	.global	__aeabi_d2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2iz
	.align	2
.LC6:
	.ascii	"x**%d     %s\012\000"
	.align	2
.LC7:
	.ascii	"%d!       %s\012\000"
	.align	2
.LC8:
	.ascii	"x**%d/%d! %s\012\000"
	.global	__aeabi_fadd
	.global	__aeabi_fcmpeq
	.align	2
.LC9:
	.ascii	"  total   %s\012\000"
	.align	2
.LC10:
	.ascii	"%d term computed\012\000"
	.align	2
.LC11:
	.ascii	"sin(%s)=\012\000"
	.align	2
.LC12:
	.ascii	"  %s\012\000"
	.align	2
.LC13:
	.ascii	"Actual sin(%G)=%G\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L17
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	mov	r0, #8
	bl	exit
.L17:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	bl	fix_float
	str	r0, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-48]	@ float
	mov	r3, #1065353216
	str	r3, [fp, #-44]	@ float
	mov	r3, #1065353216
	str	r3, [fp, #-40]	@ float
	mov	r3, #0
	str	r3, [fp, #-36]
.L21:
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	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_d2f
	mov	r3, r0
	mov	r0, r3
	bl	fix_float
	str	r0, [fp, #-28]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	factorial
	mov	r3, r0
	mov	r0, r3
	bl	fix_float
	str	r0, [fp, #-24]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	fix_float
	str	r0, [fp, #-20]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2iz
	mov	r4, r0
	ldr	r0, [fp, #-28]	@ float
	bl	float_2_ascii
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L24+12
	bl	printf
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2iz
	mov	r4, r0
	ldr	r0, [fp, #-24]	@ float
	bl	float_2_ascii
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L24+16
	bl	printf
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2iz
	mov	r4, r0
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2iz
	mov	r5, r0
	ldr	r0, [fp, #-20]	@ float
	bl	float_2_ascii
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L24+20
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, [fp, #-48]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	fix_float
	str	r0, [fp, #-16]	@ float
	ldr	r1, [fp, #-48]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-16]	@ float
	str	r3, [fp, #-48]	@ float
	ldr	r3, [fp, #-40]
	eor	r3, r3, #-2147483648
	str	r3, [fp, #-40]	@ float
	mov	r1, #1073741824
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #-48]	@ float
	bl	float_2_ascii
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+24
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L21
.L23:
	nop
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L24+28
	bl	printf
	ldr	r0, [fp, #-32]	@ float
	bl	float_2_ascii
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+32
	bl	printf
	ldr	r0, [fp, #-48]	@ float
	bl	float_2_ascii
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+36
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L24+40
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.local	result.6156
	.comm	result.6156,10,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
