	.file	"137967.c"
	.intel_syntax noprefix
	.text
	.globl	RecordArray
	.bss
	.align 32
	.type	RecordArray, @object
	.size	RecordArray, 104000
RecordArray:
	.zero	104000
	.globl	linearSearch
	.align 8
	.type	linearSearch, @object
	.size	linearSearch, 8
linearSearch:
	.zero	8
	.section	.rodata
.LC0:
	.string	"[ID = %d, Name = %s]\n"
	.text
	.globl	printRecord
	.type	printRecord, @function
printRecord:
.LFB6:
	.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	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printRecord, .-printRecord
	.globl	isIDEqual
	.type	isIDEqual, @function
isIDEqual:
.LFB7:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L4
	mov	eax, 1
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isIDEqual, .-isIDEqual
	.globl	isNameEqual
	.type	isNameEqual, @function
isNameEqual:
.LFB8:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isNameEqual, .-isNameEqual
	.section	.rodata
	.align 8
.LC1:
	.string	"\nEnter the ID to search for-  "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"\nEnter the name to search for-  "
.LC4:
	.string	"%[^\n]s"
	.text
	.globl	linearSearchRecords
	.type	linearSearchRecords, @function
linearSearchRecords:
.LFB9:
	.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	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -132[rbp], 1
	je	.L10
	cmp	DWORD PTR -132[rbp], 2
	je	.L11
	jmp	.L9
.L10:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -116[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	r9, QWORD PTR linearSearch[rip]
	mov	edx, DWORD PTR -136[rbp]
	lea	rax, -116[rbp]
	lea	r8, printRecord[rip]
	lea	rcx, isIDEqual[rip]
	mov	rsi, rax
	lea	rdi, RecordArray[rip]
	call	r9
	jmp	.L12
.L11:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	r9, QWORD PTR linearSearch[rip]
	mov	edx, DWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	lea	r8, printRecord[rip]
	lea	rcx, isNameEqual[rip]
	mov	rsi, rax
	lea	rdi, RecordArray[rip]
	call	r9
	nop
.L12:
	nop
.L9:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	linearSearchRecords, .-linearSearchRecords
	.section	.rodata
.LC5:
	.string	"./libLIBRARY.so"
.LC6:
	.string	"linearSearch"
	.align 8
.LC7:
	.string	"Enter the number of records - "
	.align 8
.LC8:
	.string	"\nEnter the details\n\nRecord #%d-\n"
	.align 8
.LC9:
	.string	"Enter the Unique Record ID of the record  "
	.align 8
.LC10:
	.string	"Enter the Record name of the record  "
.LC11:
	.string	"1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 2
	jne	.L16
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	dlopen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR linearSearch[rip], rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, RecordArray[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, RecordArray[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -36[rbp], 1
.L17:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L18
	mov	ebx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	eax, 1
	jmp	.L20
.L19:
	mov	eax, 2
.L20:
	mov	esi, ebx
	mov	edi, eax
	call	linearSearchRecords
.L16:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"137967.c"
	.text
	.comm	RecordArray,104000,4
	.comm	linearSearch,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[ID = %d, Name = %s]\012\000"
	.text
	.align	2
	.global	printRecord
	.syntax unified
	.arm
	.fpu softvfp
	.type	printRecord, %function
printRecord:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L3
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	printRecord, .-printRecord
	.align	2
	.global	isIDEqual
	.syntax unified
	.arm
	.fpu softvfp
	.type	isIDEqual, %function
isIDEqual:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	mov	r3, #1
	b	.L7
.L6:
	mov	r3, #0
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isIDEqual, .-isIDEqual
	.align	2
	.global	isNameEqual
	.syntax unified
	.arm
	.fpu softvfp
	.type	isNameEqual, %function
isNameEqual:
	@ 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]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
	b	.L10
.L9:
	mov	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isNameEqual, .-isNameEqual
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Enter the ID to search for-  \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\012Enter the name to search for-  \000"
	.align	2
.LC4:
	.ascii	"%[^\012]s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	linearSearchRecords
	.syntax unified
	.arm
	.fpu softvfp
	.type	linearSearchRecords, %function
linearSearchRecords:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	cmp	r3, #1
	beq	.L12
	ldr	r3, [fp, #-128]
	cmp	r3, #2
	beq	.L13
	b	.L11
.L12:
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r3, .L17+12
	ldr	r4, [r3]
	sub	r1, fp, #120
	ldr	r3, .L17+16
	str	r3, [sp]
	ldr	r3, .L17+20
	ldr	r2, [fp, #-132]
	ldr	r0, .L17+24
	blx	r4
	b	.L14
.L13:
	ldr	r0, .L17+28
	bl	printf
	bl	getchar
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L17+32
	bl	__isoc99_scanf
	ldr	r3, .L17+12
	ldr	r4, [r3]
	sub	r1, fp, #116
	ldr	r3, .L17+16
	str	r3, [sp]
	ldr	r3, .L17+36
	ldr	r2, [fp, #-132]
	ldr	r0, .L17+24
	blx	r4
	nop
.L14:
	nop
.L11:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	linearSearch
	.word	printRecord
	.word	isIDEqual
	.word	RecordArray
	.word	.LC3
	.word	.LC4
	.word	isNameEqual
	.size	linearSearchRecords, .-linearSearchRecords
	.section	.rodata
	.align	2
.LC6:
	.ascii	"./libLIBRARY.so\000"
	.align	2
.LC7:
	.ascii	"linearSearch\000"
	.align	2
.LC8:
	.ascii	"Enter the number of records - \000"
	.align	2
.LC9:
	.ascii	"\012Enter the details\012\012Record #%d-\012\000"
	.align	2
.LC10:
	.ascii	"Enter the Unique Record ID of the record  \000"
	.align	2
.LC11:
	.ascii	"Enter the Record name of the record  \000"
	.align	2
.LC12:
	.ascii	"1\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L20
	mov	r1, #1
	ldr	r0, .L27+4
	bl	dlopen
	str	r0, [fp, #-12]
	ldr	r1, .L27+8
	ldr	r0, [fp, #-12]
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L27+12
	str	r2, [r3]
	ldr	r0, .L27+16
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L27+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L21
.L22:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L27+24
	bl	printf
	ldr	r0, .L27+28
	bl	printf
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L27+32
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L27+20
	bl	__isoc99_scanf
	ldr	r0, .L27+36
	bl	printf
	bl	getchar
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L27+32
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L27+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L27+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	mov	r3, #1
	b	.L24
.L23:
	mov	r3, #2
.L24:
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	linearSearchRecords
.L20:
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC13
	.word	.LC6
	.word	.LC7
	.word	linearSearch
	.word	.LC8
	.word	.LC2
	.word	.LC9
	.word	.LC10
	.word	RecordArray
	.word	.LC11
	.word	.LC4
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
