	.file	"1002654.c"
	.intel_syntax noprefix
	.text
	.globl	insert
	.type	insert, @function
insert:
.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	QWORD PTR -32[rbp], rsi
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], 0
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L1
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -16[rbp], rax
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], rdx
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insert, .-insert
	.section	.rodata
.LC0:
	.string	"Passengers are : "
	.text
	.globl	show
	.type	show, @function
show:
.LFB7:
	.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	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -8[rbp], rax
.L7:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	show, .-show
	.section	.rodata
.LC1:
	.string	"Ticket Reserved"
.LC2:
	.string	"Not Reserved"
	.text
	.globl	CheckPassenger
	.type	CheckPassenger, @function
CheckPassenger:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -8[rbp], rax
.L10:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	lea	rdi, .LC2[rip]
	call	puts@PLT
	nop
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	CheckPassenger, .-CheckPassenger
	.globl	DeletePassenger
	.type	DeletePassenger, @function
DeletePassenger:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L14
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -16[rbp], rax
.L17:
	cmp	QWORD PTR -16[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	DeletePassenger, .-DeletePassenger
	.section	.rodata
	.align 8
.LC3:
	.string	"\nEnter Your Option\n1)Reserve Ticket\n2)Cancel Reservation\n3)Check Reservation\n4)Display Passengers\n5)Exit"
.LC4:
	.string	"\n%d"
.LC5:
	.string	"Give your range"
.LC6:
	.string	"%d"
.LC7:
	.string	"Enter Passenger Names"
.LC8:
	.string	"%s"
.LC9:
	.string	"Enter Passenger Name"
	.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
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -136[rbp], 0
.L29:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 1
	jne	.L21
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -148[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -140[rbp], 0
	jmp	.L22
.L23:
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -128[rbp]
	lea	rax, -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insert
	add	DWORD PTR -140[rbp], 1
.L22:
	mov	eax, DWORD PTR -148[rbp]
	cmp	DWORD PTR -140[rbp], eax
	jl	.L23
.L21:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 4
	jne	.L24
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	show
.L24:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 3
	jne	.L25
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	CheckPassenger
.L25:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 2
	jne	.L26
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	DeletePassenger
.L26:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 5
	je	.L33
	jmp	.L29
.L33:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	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	"1002654.c"
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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]
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #52]
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L1
.L2:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #52]
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Passengers are : \000"
	.text
	.align	2
	.global	show
	.syntax unified
	.arm
	.fpu softvfp
	.type	show, %function
show:
	@ 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]
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r0, .L9
	bl	puts
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #52]
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	show, .-show
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Ticket Reserved\000"
	.align	2
.LC2:
	.ascii	"Not Reserved\000"
	.text
	.align	2
	.global	CheckPassenger
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckPassenger, %function
CheckPassenger:
	@ 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]
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L16
	bl	puts
	b	.L11
.L13:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #52]
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L16+4
	bl	puts
	nop
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC2
	.size	CheckPassenger, .-CheckPassenger
	.align	2
	.global	DeletePassenger
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeletePassenger, %function
DeletePassenger:
	@ 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]
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L18
.L23:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
.L22:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #52]
	ldr	r0, [fp, #-12]
	bl	free
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DeletePassenger, .-DeletePassenger
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Enter Your Option\0121)Reserve Ticket\0122)Canc"
	.ascii	"el Reservation\0123)Check Reservation\0124)Display "
	.ascii	"Passengers\0125)Exit\000"
	.align	2
.LC4:
	.ascii	"\012%d\000"
	.align	2
.LC5:
	.ascii	"Give your range\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Enter Passenger Names\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	"Enter Passenger Name\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
.L33:
	ldr	r0, .L38+4
	bl	puts
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, .L38+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	bne	.L25
	ldr	r0, .L38+12
	bl	puts
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, .L38+16
	bl	__isoc99_scanf
	ldr	r0, .L38+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L26
.L27:
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, .L38+24
	bl	__isoc99_scanf
	sub	r2, fp, #112
	sub	r3, fp, #120
	mov	r1, r2
	mov	r0, r3
	bl	insert
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L26:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	blt	.L27
.L25:
	ldr	r3, [fp, #-124]
	cmp	r3, #4
	bne	.L28
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	show
.L28:
	ldr	r3, [fp, #-124]
	cmp	r3, #3
	bne	.L29
	ldr	r0, .L38+28
	bl	puts
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L38+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-120]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	CheckPassenger
.L29:
	ldr	r3, [fp, #-124]
	cmp	r3, #2
	bne	.L30
	ldr	r0, .L38+28
	bl	puts
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L38+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-120]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	DeletePassenger
.L30:
	ldr	r3, [fp, #-124]
	cmp	r3, #5
	beq	.L37
	b	.L33
.L37:
	nop
	mov	r3, #0
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC10
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
