	.file	"463313.c"
	.intel_syntax noprefix
	.text
	.globl	f
	.type	f, @function
f:
.LFB0:
	.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, 24
	.cfi_offset 3, -24
	movss	DWORD PTR -20[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -20[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sin@PLT
	movq	rbx, xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -20[rbp]
	movsd	QWORD PTR -32[rbp], xmm3
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -20[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -32[rbp]
	movq	xmm1, rbx
	subsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtsd2ss	xmm0, xmm1
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	f, .-f
	.section	.rodata
.LC2:
	.string	"Enter the min value x (a):"
.LC3:
	.string	"%f"
.LC4:
	.string	"Enter the max value x (b):"
.LC5:
	.string	"x\tf(x)"
.LC6:
	.string	"%.2f\t%f\n"
	.align 8
.LC8:
	.string	"How many times you want to input intervals:"
.LC9:
	.string	"%d"
.LC10:
	.string	"\nInput the intervals:"
.LC11:
	.string	"%f%f"
	.align 8
.LC15:
	.string	"xm=%f\tf(xm)=%f\tz=%f\taccuracy=%f\n"
	.align 8
.LC16:
	.string	"\nroot=%f\tf(xm)=%f\tz=%f\taccuracy=%f\n"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -20[rbp], xmm0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	movss	xmm0, DWORD PTR -60[rbp]
	movss	DWORD PTR -40[rbp], xmm0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -40[rbp]
	movd	xmm0, eax
	call	f
	cvtss2sd	xmm0, xmm0
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, DWORD PTR -40[rbp]
	movq	rax, xmm5
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 2
	call	printf@PLT
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -40[rbp], xmm0
.L4:
	movss	xmm0, DWORD PTR -56[rbp]
	comiss	xmm0, DWORD PTR -40[rbp]
	jnb	.L5
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -28[rbp], 1
	jmp	.L6
.L16:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdx, -48[rbp]
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -52[rbp]
	movss	DWORD PTR -40[rbp], xmm0
	jmp	.L7
.L15:
	mov	eax, DWORD PTR -40[rbp]
	movd	xmm0, eax
	call	f
	movss	DWORD PTR -72[rbp], xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	movaps	xmm4, xmm0
	addss	xmm4, DWORD PTR -20[rbp]
	movd	eax, xmm4
	movd	xmm0, eax
	call	f
	movss	xmm1, DWORD PTR -72[rbp]
	mulss	xmm1, xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L8
	movss	xmm0, DWORD PTR -40[rbp]
	movss	DWORD PTR -36[rbp], xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	addss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -32[rbp], xmm0
.L14:
	movss	xmm0, DWORD PTR -36[rbp]
	addss	xmm0, DWORD PTR -32[rbp]
	movss	xmm1, DWORD PTR .LC13[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR -16[rbp]
	movd	xmm0, eax
	call	f
	movss	DWORD PTR -72[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	movd	xmm0, eax
	call	f
	mulss	xmm0, DWORD PTR -72[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L10
	movss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR -36[rbp], xmm0
.L10:
	mov	eax, DWORD PTR -16[rbp]
	movd	xmm0, eax
	call	f
	movss	DWORD PTR -72[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	movd	xmm0, eax
	call	f
	movss	xmm1, DWORD PTR -72[rbp]
	mulss	xmm1, xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L12
	movss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR -32[rbp], xmm0
.L12:
	movss	xmm0, DWORD PTR -36[rbp]
	subss	xmm0, DWORD PTR -32[rbp]
	movss	xmm1, DWORD PTR -36[rbp]
	addss	xmm1, DWORD PTR -32[rbp]
	divss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC14[rip]
	andps	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, DWORD PTR -24[rbp]
	movsd	QWORD PTR -72[rbp], xmm7
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -12[rbp]
	movsd	QWORD PTR -80[rbp], xmm2
	mov	eax, DWORD PTR -16[rbp]
	movd	xmm0, eax
	call	f
	cvtss2sd	xmm0, xmm0
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, DWORD PTR -16[rbp]
	movq	rax, xmm5
	movsd	xmm3, QWORD PTR -72[rbp]
	movsd	xmm2, QWORD PTR -80[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 4
	call	printf@PLT
	movss	xmm0, DWORD PTR -12[rbp]
	comiss	xmm0, DWORD PTR -24[rbp]
	ja	.L14
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -24[rbp]
	movsd	QWORD PTR -72[rbp], xmm3
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, DWORD PTR -12[rbp]
	movsd	QWORD PTR -80[rbp], xmm6
	mov	eax, DWORD PTR -16[rbp]
	movd	xmm0, eax
	call	f
	cvtss2sd	xmm0, xmm0
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, DWORD PTR -16[rbp]
	movq	rax, xmm7
	movsd	xmm3, QWORD PTR -72[rbp]
	movsd	xmm2, QWORD PTR -80[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 4
	call	printf@PLT
.L8:
	movss	xmm0, DWORD PTR -40[rbp]
	addss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -40[rbp], xmm0
.L7:
	movss	xmm0, DWORD PTR -48[rbp]
	comiss	xmm0, DWORD PTR -40[rbp]
	jnb	.L15
	add	DWORD PTR -28[rbp], 1
.L6:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L16
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	925353388
	.align 4
.LC1:
	.long	1056964608
	.align 8
.LC7:
	.long	-1717986918
	.long	1069128089
	.align 4
.LC13:
	.long	1073741824
	.align 16
.LC14:
	.long	2147483647
	.long	0
	.long	0
	.long	0
	.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	"463313.c"
	.text
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_d2f
	.align	2
	.global	f
	.syntax unified
	.arm
	.fpu softvfp
	.type	f, %function
f:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	str	r0, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	f, .-f
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the min value x (a):\000"
	.align	2
.LC1:
	.ascii	"%f\000"
	.align	2
.LC2:
	.ascii	"Enter the max value x (b):\000"
	.align	2
.LC3:
	.ascii	"x\011f(x)\000"
	.align	2
.LC4:
	.ascii	"%.2f\011%f\012\000"
	.global	__aeabi_dadd
	.global	__aeabi_fcmple
	.align	2
.LC5:
	.ascii	"How many times you want to input intervals:\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"\012Input the intervals:\000"
	.align	2
.LC8:
	.ascii	"%f%f\000"
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.global	__aeabi_fcmplt
	.global	__aeabi_fdiv
	.global	__aeabi_fcmpgt
	.global	__aeabi_fsub
	.align	2
.LC9:
	.ascii	"xm=%f\011f(xm)=%f\011z=%f\011accuracy=%f\012\000"
	.align	2
.LC10:
	.ascii	"\012root=%f\011f(xm)=%f\011z=%f\011accuracy=%f\012\000"
	.align	2
.LC11:
	.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, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #80
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, .L22+4
	str	r3, [fp, #-48]	@ float
	mov	r3, #1056964608
	str	r3, [fp, #-44]	@ float
	ldr	r0, .L22+8
	bl	printf
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	ldr	r0, .L22+16
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	ldr	r0, .L22+20
	bl	puts
	ldr	r3, [fp, #-84]	@ float
	str	r3, [fp, #-64]	@ float
	b	.L4
.L5:
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-64]	@ float
	bl	f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L22+24
	bl	printf
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L22+28
	ldr	r3, .L22+32
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-64]	@ float
.L4:
	ldr	r3, [fp, #-80]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L22+36
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L22+40
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L6
.L16:
	ldr	r0, .L22+44
	bl	puts
	sub	r2, fp, #72
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L22+48
	bl	__isoc99_scanf
	ldr	r3, [fp, #-76]	@ float
	str	r3, [fp, #-64]	@ float
	b	.L7
.L15:
	ldr	r0, [fp, #-64]	@ float
	bl	f
	mov	r4, r0
	ldr	r1, [fp, #-44]	@ float
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-64]	@ float
	str	r3, [fp, #-60]	@ float
	ldr	r1, [fp, #-44]	@ float
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
.L14:
	ldr	r1, [fp, #-56]	@ float
	ldr	r0, [fp, #-60]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, #1073741824
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-40]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	f
	mov	r4, r0
	ldr	r0, [fp, #-60]	@ float
	bl	f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-40]	@ float
	str	r3, [fp, #-60]	@ float
.L10:
	ldr	r0, [fp, #-40]	@ float
	bl	f
	mov	r4, r0
	ldr	r0, [fp, #-60]	@ float
	bl	f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-40]	@ float
	str	r3, [fp, #-56]	@ float
.L12:
	ldr	r1, [fp, #-56]	@ float
	ldr	r0, [fp, #-60]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-56]	@ float
	ldr	r0, [fp, #-60]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-36]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_f2d
	mov	r8, r0
	mov	r9, r1
	ldr	r0, [fp, #-40]	@ float
	bl	f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r8
	mov	r3, r9
	ldr	r0, .L22+52
	bl	printf
	ldr	r1, [fp, #-48]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_f2d
	mov	r8, r0
	mov	r9, r1
	ldr	r0, [fp, #-40]	@ float
	bl	f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r8
	mov	r3, r9
	ldr	r0, .L22+56
	bl	printf
.L8:
	ldr	r1, [fp, #-44]	@ float
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-64]	@ float
.L7:
	ldr	r3, [fp, #-72]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L6:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L16
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	925353388
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	-1717986918
	.word	1069128089
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
