	.file	"22012622.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n Enter the range of array: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\n Enter the elements of the array: "
.LC3:
	.string	"\n Enter item to search: "
.LC4:
	.string	"\n Item found at location: %d"
.LC5:
	.string	"\n Item doesn't exist."
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L2
.L3:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf@PLT
	add	DWORD PTR -52[rbp], 1
.L2:
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jle	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf@PLT
	mov	DWORD PTR -64[rbp], 0
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	mov	DWORD PTR -56[rbp], eax
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -60[rbp], eax
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	cmp	edx, eax
	jle	.L5
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	mov	DWORD PTR -56[rbp], eax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	DWORD PTR -64[rbp], eax
.L6:
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -60[rbp], eax
.L4:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jg	.L7
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	cmp	edx, eax
	jne	.L8
.L7:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -68[rbp]
	cmp	edx, eax
	jne	.L9
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L9:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 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
	.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	"22012622.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Enter the range of array: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012 Enter the elements of the array: \000"
	.align	2
.LC3:
	.ascii	"\012 Enter item to search: \000"
	.align	2
.LC4:
	.ascii	"\012 Item found at location: %d\000"
	.align	2
.LC5:
	.ascii	"\012 Item doesn't exist.\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	puts
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L13+8
	bl	scanf
	ldr	r0, .L13+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L2
.L3:
	sub	r2, fp, #48
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+8
	bl	scanf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L2:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L3
	ldr	r0, .L13+16
	bl	puts
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L13+8
	bl	scanf
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L4
.L8:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	str	r3, [fp, #-56]
	b	.L6
.L5:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L6:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bgt	.L7
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bne	.L8
.L7:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L13+20
	bl	printf
	b	.L12
.L9:
	ldr	r0, .L13+24
	bl	printf
.L12:
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
