	.file	"553710.c"
	.intel_syntax noprefix
	.text
	.globl	fun
	.type	fun, @function
fun:
.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
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm1, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC0[rip]
	mulss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movsd	QWORD PTR -16[rbp], xmm2
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -4[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	cos@PLT
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fun, .-fun
	.section	.rodata
.LC3:
	.string	"iteration No. %d = %f\n"
	.text
	.globl	bisection
	.type	bisection, @function
bisection:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	movss	DWORD PTR -12[rbp], xmm0
	movss	DWORD PTR -16[rbp], xmm1
	mov	QWORD PTR -24[rbp], rsi
	movss	xmm0, DWORD PTR -12[rbp]
	addss	xmm0, DWORD PTR -16[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	divss	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bisection, .-bisection
	.section	.rodata
	.align 8
.LC5:
	.string	"Enter the value of a, b, Allowed Error and maximum iteration : "
.LC6:
	.string	"%f %f %f %d"
	.align 8
.LC8:
	.string	"After %d th iteration, root = %f\n"
	.align 8
.LC9:
	.string	"The solution does not converge or not sufficient"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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 -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -32[rbp]
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	lea	rax, -24[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	lea	rcx, -36[rbp]
	lea	rax, -28[rbp]
	mov	rsi, rcx
	movaps	xmm1, xmm0
	movd	xmm0, edx
	mov	rdi, rax
	call	bisection
.L11:
	mov	eax, DWORD PTR -24[rbp]
	movd	xmm0, eax
	call	fun
	movss	DWORD PTR -52[rbp], xmm0
	mov	eax, DWORD PTR -28[rbp]
	movd	xmm0, eax
	call	fun
	movss	xmm1, DWORD PTR -52[rbp]
	mulss	xmm1, xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L16
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR -20[rbp], xmm0
	jmp	.L7
.L16:
	movss	xmm0, DWORD PTR -28[rbp]
	movss	DWORD PTR -24[rbp], xmm0
.L7:
	movss	xmm0, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	lea	rcx, -36[rbp]
	lea	rax, -12[rbp]
	mov	rsi, rcx
	movaps	xmm1, xmm0
	movd	xmm0, edx
	mov	rdi, rax
	call	bisection
	movss	xmm0, DWORD PTR -12[rbp]
	movss	xmm1, DWORD PTR -28[rbp]
	subss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC7[rip]
	andps	xmm1, xmm0
	movss	xmm0, DWORD PTR -16[rbp]
	comiss	xmm0, xmm1
	jbe	.L17
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	eax, DWORD PTR -36[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	jmp	.L12
.L17:
	movss	xmm0, DWORD PTR -12[rbp]
	movss	DWORD PTR -28[rbp], xmm0
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	jl	.L11
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L12:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1077936128
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 4
.LC2:
	.long	1073741824
	.align 16
.LC7:
	.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	"553710.c"
	.text
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.global	__aeabi_dsub
	.global	__aeabi_d2f
	.align	2
	.global	fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun, %function
fun:
	@ 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, #-16]	@ float
	ldr	r1, .L3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]	@ 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, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L3+4
	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, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L4:
	.align	2
.L3:
	.word	1077936128
	.word	1072693248
	.size	fun, .-fun
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"iteration No. %d = %f\012\000"
	.text
	.align	2
	.global	bisection
	.syntax unified
	.arm
	.fpu softvfp
	.type	bisection, %function
bisection:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]	@ float
	str	r2, [fp, #-24]	@ float
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, #1073741824
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L6
	bl	printf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	bisection, .-bisection
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter the value of a, b, Allowed Error and maximum "
	.ascii	"iteration : \000"
	.align	2
.LC2:
	.ascii	"%f %f %f %d\000"
	.global	__aeabi_fcmplt
	.global	__aeabi_fsub
	.align	2
.LC3:
	.ascii	"After %d th iteration, root = %f\012\000"
	.align	2
.LC4:
	.ascii	"The solution does not converge or not sufficient\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	ldr	r0, .L22+4
	bl	printf
	sub	r0, fp, #24
	sub	r2, fp, #28
	sub	r1, fp, #32
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r1, [fp, #-32]	@ float
	ldr	r2, [fp, #-28]	@ float
	sub	r3, fp, #44
	sub	r0, fp, #36
	bl	bisection
.L15:
	ldr	r3, [fp, #-32]	@ float
	mov	r0, r3
	bl	fun
	mov	r4, r0
	ldr	r3, [fp, #-36]	@ float
	mov	r0, r3
	bl	fun
	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	.L20
	ldr	r3, [fp, #-36]	@ float
	str	r3, [fp, #-28]	@ float
	b	.L11
.L20:
	ldr	r3, [fp, #-36]	@ float
	str	r3, [fp, #-32]	@ float
.L11:
	ldr	r1, [fp, #-32]	@ float
	ldr	r2, [fp, #-28]	@ float
	sub	r3, fp, #44
	sub	r0, fp, #20
	bl	bisection
	ldr	r3, [fp, #-20]	@ float
	ldr	r2, [fp, #-36]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	bic	r3, r3, #-2147483648
	ldr	r2, [fp, #-24]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r4, [fp, #-44]
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L22+12
	bl	printf
	mov	r3, #0
	b	.L16
.L21:
	ldr	r3, [fp, #-20]	@ float
	str	r3, [fp, #-36]	@ float
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L15
	ldr	r0, .L22+16
	bl	printf
	mov	r3, #0
.L16:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
