	.file	"162644328.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\n\n\n\t\t-----------------Searching------------------------ \n"
	.align 8
.LC1:
	.string	"\n\t\t1.Linear search\n\n\t\t2.Binary search\n\n\t\t3.Binary search with recursion\n\n\t\t3.Exit"
.LC2:
	.string	"\n\n\t\tEnter your choice\t\n"
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"\n\n\t--------------------------------------------------------------------"
.LC5:
	.string	"\n\n\n\n\t\t*** Linear search *** \n"
	.align 8
.LC6:
	.string	"\n\n\t\tEnter number of student attended training program :"
	.align 8
.LC7:
	.string	"\n\n\t\tEnter the roll numbers of student :"
	.align 8
.LC8:
	.string	"\n\n\t\tEnter the roll number to Searching whether particular student attended training program or not :"
.LC9:
	.string	"\n\n\n\n\t\t*** Binary search *** \n"
	.align 8
.LC10:
	.string	"\n\n\n\n\t\t*** Binary search with Recursion *** \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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L12:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, 3
	je	.L2
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L4
	cmp	eax, 2
	je	.L5
	jmp	.L3
.L4:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L6
.L7:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -132[rbp], 1
.L6:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L7
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -144[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	lea	rax, -128[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	linear_search
	jmp	.L3
.L5:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L8
.L9:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -132[rbp], 1
.L8:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L9
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -144[rbp]
	mov	ecx, DWORD PTR -140[rbp]
	lea	rax, -128[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	bin_search
	jmp	.L3
.L2:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L10
.L11:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -132[rbp], 1
.L10:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L11
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bubble_sort
	mov	edx, DWORD PTR -144[rbp]
	mov	esi, DWORD PTR -140[rbp]
	lea	rax, -128[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	bin_searchR
	nop
.L3:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, 3
	jle	.L12
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	bubble_sort
	.type	bubble_sort, @function
bubble_sort:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 1
	jmp	.L16
.L20:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L18
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
.L18:
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L19
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L20
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bubble_sort, .-bubble_sort
	.section	.rodata
	.align 8
.LC11:
	.string	"\n\n\n student attended training program "
	.align 8
.LC12:
	.string	"\n student not attended training program"
	.text
	.globl	bin_search
	.type	bin_search, @function
bin_search:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bubble_sort
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L27:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L23
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L24
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L24:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L30
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jle	.L27
	jmp	.L26
.L30:
	nop
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jg	.L28
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L28:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bin_search, .-bin_search
	.globl	bin_searchR
	.type	bin_searchR, @function
bin_searchR:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jg	.L33
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L34
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L35
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, 1[rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	bin_searchR
.L35:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L37
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	bin_searchR
	jmp	.L37
.L33:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L37:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bin_searchR, .-bin_searchR
	.globl	linear_search
	.type	linear_search, @function
linear_search:
.LFB4:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L40
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L41
.L40:
	mov	DWORD PTR -4[rbp], 0
	add	DWORD PTR -8[rbp], 1
.L39:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L42
.L41:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L44
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	linear_search, .-linear_search
	.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	"162644328.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012\012\012\011\011-----------------Searching-"
	.ascii	"----------------------- \012\000"
	.align	2
.LC1:
	.ascii	"\012\011\0111.Linear search\012\012\011\0112.Binary"
	.ascii	" search\012\012\011\0113.Binary search with recursi"
	.ascii	"on\012\012\011\0113.Exit\000"
	.align	2
.LC2:
	.ascii	"\012\012\011\011Enter your choice\011\012\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012\012\011---------------------------------------"
	.ascii	"-----------------------------\000"
	.align	2
.LC5:
	.ascii	"\012\012\012\012\011\011*** Linear search *** \012\000"
	.align	2
.LC6:
	.ascii	"\012\012\011\011Enter number of student attended tr"
	.ascii	"aining program :\000"
	.align	2
.LC7:
	.ascii	"\012\012\011\011Enter the roll numbers of student :"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"\012\012\011\011Enter the roll number to Searching "
	.ascii	"whether particular student attended training progra"
	.ascii	"m or not :\000"
	.align	2
.LC9:
	.ascii	"\012\012\012\012\011\011*** Binary search *** \012\000"
	.align	2
.LC10:
	.ascii	"\012\012\012\012\011\011*** Binary search with Recu"
	.ascii	"rsion *** \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 = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L12:
	ldr	r0, .L15+4
	bl	puts
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, .L15+12
	bl	puts
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	beq	.L2
	cmp	r3, #3
	bgt	.L3
	cmp	r3, #1
	beq	.L4
	cmp	r3, #2
	beq	.L5
	b	.L3
.L4:
	ldr	r0, .L15+20
	bl	printf
	ldr	r0, .L15+24
	bl	puts
	ldr	r0, .L15+20
	bl	printf
	ldr	r0, .L15+28
	bl	printf
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r0, .L15+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L6
.L7:
	sub	r2, fp, #128
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L6:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L15+36
	bl	printf
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r1, [fp, #-140]
	ldr	r2, [fp, #-144]
	sub	r3, fp, #128
	mov	r0, r3
	bl	linear_search
	b	.L3
.L5:
	ldr	r0, .L15+20
	bl	printf
	ldr	r0, .L15+40
	bl	puts
	ldr	r0, .L15+20
	bl	printf
	ldr	r0, .L15+28
	bl	printf
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r0, .L15+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L8
.L9:
	sub	r2, fp, #128
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L8:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	blt	.L9
	ldr	r0, .L15+36
	bl	printf
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r1, [fp, #-140]
	ldr	r2, [fp, #-144]
	sub	r3, fp, #128
	mov	r0, r3
	bl	bin_search
	b	.L3
.L2:
	ldr	r0, .L15+20
	bl	printf
	ldr	r0, .L15+44
	bl	puts
	ldr	r0, .L15+20
	bl	printf
	ldr	r0, .L15+28
	bl	printf
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r0, .L15+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L10
.L11:
	sub	r2, fp, #128
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L10:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	blt	.L11
	ldr	r0, .L15+36
	bl	printf
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r2, [fp, #-144]
	sub	r3, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	bubble_sort
	ldr	r1, [fp, #-140]
	ldr	r3, [fp, #-144]
	sub	r0, fp, #128
	mov	r2, #0
	bl	bin_searchR
	nop
.L3:
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	ble	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.global	bubble_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubble_sort, %function
bubble_sort:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L18
.L22:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L21:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L20
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L22
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bubble_sort, .-bubble_sort
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\012\012\012 student attended training program \000"
	.align	2
.LC13:
	.ascii	"\012 student not attended training program\000"
	.text
	.align	2
	.global	bin_search
	.syntax unified
	.arm
	.fpu softvfp
	.type	bin_search, %function
bin_search:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	bubble_sort
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L29:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L25
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L26
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L26:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L32
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L29
	b	.L28
.L32:
	nop
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bgt	.L30
	ldr	r0, .L34
	bl	printf
	b	.L33
.L30:
	ldr	r0, .L34+4
	bl	printf
.L33:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC12
	.word	.LC13
	.size	bin_search, .-bin_search
	.align	2
	.global	bin_searchR
	.syntax unified
	.arm
	.fpu softvfp
	.type	bin_searchR, %function
bin_searchR:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bgt	.L37
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L38
	ldr	r0, .L42
	bl	printf
.L38:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L39
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	bin_searchR
.L39:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L41
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	bin_searchR
	b	.L41
.L37:
	ldr	r0, .L42+4
	bl	printf
.L41:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC12
	.word	.LC13
	.size	bin_searchR, .-bin_searchR
	.align	2
	.global	linear_search
	.syntax unified
	.arm
	.fpu softvfp
	.type	linear_search, %function
linear_search:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L45
.L48:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L46
	ldr	r0, .L51
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L47
.L46:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L48
.L47:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L50
	ldr	r0, .L51+4
	bl	printf
.L50:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC12
	.word	.LC13
	.size	linear_search, .-linear_search
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
