	.file	"458195.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Input the number of steps: "
.LC2:
	.string	"%d"
.LC8:
	.string	"%3d: %5.2f %*c\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 40
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -40[rbp], xmm0
	mov	BYTE PTR -53[rbp], 42
.L2:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 1
	jle	.L2
	mov	DWORD PTR -48[rbp], 0
	jmp	.L3
.L9:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -40[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -44[rbp], eax
	movsd	xmm0, QWORD PTR -16[rbp]
	movq	xmm1, QWORD PTR .LC5[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	comisd	xmm0, xmm1
	jbe	.L14
	mov	BYTE PTR -53[rbp], 42
	jmp	.L6
.L14:
	movsd	xmm0, QWORD PTR -16[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jbe	.L15
	mov	BYTE PTR -53[rbp], 92
	jmp	.L6
.L15:
	mov	BYTE PTR -53[rbp], 47
.L6:
	movsx	ecx, BYTE PTR -53[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movq	xmm0, rsi
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -48[rbp], 1
.L3:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jle	.L9
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1413754136
	.long	1075388923
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	1078853632
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC6:
	.long	-1717986918
	.long	1069128089
	.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	"458195.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input the number of steps: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpgt
	.align	2
.LC2:
	.ascii	"%3d: %5.2f %*c\012\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #40
	str	r3, [fp, #-72]
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r3, #42
	strb	r3, [fp, #-73]
.L2:
	ldr	r0, .L16+12
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L16+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	ble	.L2
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L3
.L9:
	ldr	r0, [fp, #-68]
	bl	__aeabi_i2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	sin
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	cos
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	mov	r2, #0
	ldr	r3, .L16+20
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r4, [fp, #-36]
	ldr	r3, [fp, #-32]
	bic	r5, r3, #-2147483648
	ldr	r2, .L16+28
	ldr	r3, .L16+32
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r3, #42
	strb	r3, [fp, #-73]
	b	.L6
.L14:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	mov	r3, #92
	strb	r3, [fp, #-73]
	b	.L6
.L15:
	mov	r3, #47
	strb	r3, [fp, #-73]
.L6:
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	str	r3, [sp, #4]
	ldr	r3, [fp, #-64]
	str	r3, [sp]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-68]
	ldr	r0, .L16+36
	bl	printf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L3:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	ble	.L9
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	1413754136
	.word	1075388923
	.word	.LC0
	.word	.LC1
	.word	1072693248
	.word	1078853632
	.word	-1717986918
	.word	1069128089
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
