	.file	"956140.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"How many names to Read:"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter the Names in ascending order:"
.LC3:
	.string	"%s"
	.align 8
.LC4:
	.string	"\nType the name to be searched:"
	.align 8
.LC5:
	.string	"\nSearch successful and Name found in the list at  position:%d"
	.align 8
.LC6:
	.string	"Name not found and search Unsuccessful....!"
	.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, 2608
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2580[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -2600[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -2596[rbp], 0
	jmp	.L2
.L3:
	lea	rcx, -2576[rbp]
	mov	eax, DWORD PTR -2596[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -2596[rbp], 1
.L2:
	mov	eax, DWORD PTR -2600[rbp]
	cmp	DWORD PTR -2596[rbp], eax
	jl	.L3
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -2592[rbp], 0
	mov	eax, DWORD PTR -2600[rbp]
	sub	eax, 1
	mov	DWORD PTR -2588[rbp], eax
	jmp	.L4
.L8:
	mov	edx, DWORD PTR -2592[rbp]
	mov	eax, DWORD PTR -2588[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -2584[rbp], eax
	lea	rcx, -2576[rbp]
	mov	eax, DWORD PTR -2584[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	DWORD PTR -2580[rbp], 1
	jmp	.L4
.L5:
	lea	rcx, -2576[rbp]
	mov	eax, DWORD PTR -2584[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jns	.L6
	mov	eax, DWORD PTR -2584[rbp]
	add	eax, 1
	mov	DWORD PTR -2592[rbp], eax
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -2584[rbp]
	sub	eax, 1
	mov	DWORD PTR -2588[rbp], eax
.L4:
	mov	eax, DWORD PTR -2592[rbp]
	cmp	eax, DWORD PTR -2588[rbp]
	jg	.L7
	cmp	DWORD PTR -2580[rbp], 0
	je	.L8
.L7:
	cmp	DWORD PTR -2580[rbp], 1
	jne	.L9
	mov	eax, DWORD PTR -2584[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L9:
	lea	rdi, .LC6[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	"956140.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"How many names to Read:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the Names in ascending order:\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"\012Type the name to be searched:\000"
	.align	2
.LC5:
	.ascii	"\012Search successful and Name found in the list at"
	.ascii	"  position:%d\000"
	.align	2
.LC6:
	.ascii	"Name not found and search Unsuccessful....!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2584
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2576
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2564]
	ldr	r0, .L13+4
	bl	puts
	sub	r3, fp, #2576
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r0, .L13+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-2580]
	b	.L2
.L3:
	sub	r2, fp, #2544
	sub	r2, r2, #4
	sub	r2, r2, #12
	ldr	r1, [fp, #-2580]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-2580]
	add	r3, r3, #1
	str	r3, [fp, #-2580]
.L2:
	ldr	r3, [fp, #-2584]
	ldr	r2, [fp, #-2580]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L13+20
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L13+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-2576]
	ldr	r3, [fp, #-2584]
	sub	r3, r3, #1
	str	r3, [fp, #-2572]
	b	.L4
.L8:
	ldr	r2, [fp, #-2576]
	ldr	r3, [fp, #-2572]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-2568]
	sub	r2, fp, #2544
	sub	r2, r2, #4
	sub	r2, r2, #12
	ldr	r1, [fp, #-2568]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
	str	r3, [fp, #-2564]
	b	.L4
.L5:
	sub	r2, fp, #2544
	sub	r2, r2, #4
	sub	r2, r2, #12
	ldr	r1, [fp, #-2568]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r3, [fp, #-2568]
	add	r3, r3, #1
	str	r3, [fp, #-2576]
	b	.L4
.L6:
	ldr	r3, [fp, #-2568]
	sub	r3, r3, #1
	str	r3, [fp, #-2572]
.L4:
	ldr	r2, [fp, #-2576]
	ldr	r3, [fp, #-2572]
	cmp	r2, r3
	bgt	.L7
	ldr	r3, [fp, #-2564]
	cmp	r3, #0
	beq	.L8
.L7:
	ldr	r3, [fp, #-2564]
	cmp	r3, #1
	bne	.L9
	ldr	r3, [fp, #-2568]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L13+24
	bl	printf
	b	.L12
.L9:
	ldr	r0, .L13+28
	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	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
