	.file	"663501.c"
	.intel_syntax noprefix
	.text
	.globl	compare_person
	.type	compare_person, @function
compare_person:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	compare_person, .-compare_person
	.section	.rodata
.LC0:
	.string	"nikos"
.LC1:
	.string	"petros"
.LC2:
	.string	"maria"
.LC3:
	.string	"kostas"
.LC4:
	.string	"andreas"
.LC5:
	.string	"1. MIN + MAX"
.LC6:
	.string	"MIN AGE=%d\n"
.LC7:
	.string	"MAX AGE=%d\n"
.LC8:
	.string	"2. SEARCH"
.LC9:
	.string	"Found %s %d\n"
.LC10:
	.string	"Not found %s\n"
	.align 8
.LC11:
	.string	"3. SORT BY NAMES IN ASCENDING ORDER"
.LC12:
	.string	"%s %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -88[rbp], 20
	lea	rax, .LC1[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -72[rbp], 25
	lea	rax, .LC2[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -56[rbp], 30
	lea	rax, .LC3[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 22
	lea	rax, .LC4[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -24[rbp], 37
	mov	DWORD PTR -108[rbp], 5
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -128[rbp], 2147483647
	mov	DWORD PTR -124[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -132[rbp], eax
	jge	.L5
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -132[rbp], eax
.L5:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -128[rbp], eax
	jle	.L6
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -128[rbp], eax
.L6:
	add	DWORD PTR -124[rbp], 1
.L4:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L7
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, .LC3[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 96
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -104[rbp], rax
	jne	.L9
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 96
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -120[rbp], 1
	jmp	.L10
.L9:
	add	DWORD PTR -116[rbp], 1
.L8:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L11
.L10:
	cmp	DWORD PTR -120[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	esi, DWORD PTR -108[rbp]
	lea	rax, -96[rbp]
	lea	rcx, compare_person[rip]
	mov	edx, 16
	mov	rdi, rax
	mov	eax, 0
	call	qsort@PLT
	mov	DWORD PTR -112[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 88
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 96
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -112[rbp], 1
.L13:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"663501.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"nikos\000"
	.align	2
.LC1:
	.ascii	"petros\000"
	.align	2
.LC2:
	.ascii	"maria\000"
	.align	2
.LC3:
	.ascii	"kostas\000"
	.align	2
.LC4:
	.ascii	"andreas\000"
	.text
	.align	2
	.global	compare_person
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_person, %function
compare_person:
	@ 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	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	compare_person, .-compare_person
	.section	.rodata
	.align	2
.LC7:
	.ascii	"1. MIN + MAX\000"
	.align	2
.LC8:
	.ascii	"MIN AGE=%d\012\000"
	.align	2
.LC9:
	.ascii	"MAX AGE=%d\012\000"
	.align	2
.LC10:
	.ascii	"2. SEARCH\000"
	.align	2
.LC11:
	.ascii	"Found %s %d\012\000"
	.align	2
.LC12:
	.ascii	"Not found %s\012\000"
	.align	2
.LC13:
	.ascii	"3. SORT BY NAMES IN ASCENDING ORDER\000"
	.align	2
.LC14:
	.ascii	"%s %d\012\000"
	.align	2
.LC6:
	.word	.LC0
	.word	20
	.word	.LC1
	.word	25
	.word	.LC2
	.word	30
	.word	.LC3
	.word	22
	.word	.LC4
	.word	37
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L17+4
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #5
	str	r3, [fp, #-56]
	ldr	r0, .L17+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-80]
	mvn	r3, #-2147483648
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L4
.L7:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-80]
.L5:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	str	r3, [fp, #-76]
.L6:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L4:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L7
	ldr	r1, [fp, #-76]
	ldr	r0, .L17+12
	bl	printf
	ldr	r1, [fp, #-80]
	ldr	r0, .L17+16
	bl	printf
	ldr	r0, .L17+20
	bl	puts
	ldr	r3, .L17+24
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L8
.L11:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-44]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	mov	r2, r3
	ldr	r0, .L17+28
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L10
.L9:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L8:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L11
.L10:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L12
	ldr	r1, [fp, #-52]
	ldr	r0, .L17+32
	bl	printf
.L12:
	ldr	r0, .L17+36
	bl	puts
	sub	r0, fp, #48
	ldr	r3, .L17+40
	mov	r2, #8
	ldr	r1, [fp, #-56]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L13
.L14:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-44]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	mov	r2, r3
	ldr	r0, .L17+44
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L13:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC15
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC3
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	compare_person
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
