	.file	"427546.c"
	.intel_syntax noprefix
	.text
	.globl	nop
	.bss
	.align 4
	.type	nop, @object
	.size	nop, 4
nop:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	ti
	.align 32
	.type	ti, @object
	.size	ti, 32
ti:
	.zero	32
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t-----welcome-----\n\n\n\t\t\t\t\t\t"
.LC1:
	.string	"pause"
.LC2:
	.string	"cls"
.LC3:
	.string	"\n1.Book ticket"
.LC4:
	.string	"\n2.My bookings"
.LC5:
	.string	"\n3.Cancel ticket"
.LC6:
	.string	"\n4.Exit"
.LC7:
	.string	"\n Enter your choice..."
.LC8:
	.string	"%d"
.LC9:
	.string	"\nWrong option entered.."
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	system@PLT
.L8:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	system@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	je	.L2
	cmp	eax, 4
	jg	.L3
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L3
.L5:
	mov	eax, 0
	call	bookticket
	jmp	.L7
.L6:
	mov	eax, 0
	call	display
	jmp	.L7
.L4:
	mov	eax, 0
	call	cancelticket
	jmp	.L7
.L2:
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
.L7:
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC10:
	.string	"a"
.LC11:
	.string	"btick"
.LC12:
	.string	"Enter number of passengers - "
	.align 8
.LC13:
	.string	"------------------------------"
.LC14:
	.string	"passenger %d name - "
.LC15:
	.string	"%s"
.LC16:
	.string	"passenger Age - "
	.text
	.globl	passenger
	.type	passenger, @function
passenger:
.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, 16
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR n[rip]
	mov	DWORD PTR nop[rip], eax
	mov	DWORD PTR i[rip], 0
	jmp	.L11
.L12:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, ti[rip+12]
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, ti[rip+8]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	rand@PLT
	cdqe
	mov	QWORD PTR ti[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L11:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	system@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	passenger, .-passenger
	.section	.rodata
.LC17:
	.string	"\n1.General ticket"
.LC18:
	.string	"2.Sleeper coach"
.LC19:
	.string	"\n3.AC coach"
.LC20:
	.string	"Enter your choice - "
.LC21:
	.string	"\nTicket booked ....."
.LC22:
	.string	"Total=%f "
.LC23:
	.string	"Wrong option entered..."
	.text
	.globl	bookticket
	.type	bookticket, @function
bookticket:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 50
	mov	DWORD PTR -16[rbp], 100
	mov	DWORD PTR -12[rbp], 200
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 1
	jne	.L15
	mov	eax, 0
	call	passenger
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR nop[rip]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -24[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 2
	jne	.L17
	mov	eax, 0
	call	passenger
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR nop[rip]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -24[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 3
	jne	.L18
	mov	eax, 0
	call	passenger
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR nop[rip]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -24[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
	jmp	.L16
.L18:
	lea	rdi, .LC23[rip]
	call	puts@PLT
.L16:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	system@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bookticket, .-bookticket
	.section	.rodata
.LC24:
	.string	"r"
.LC25:
	.string	"\n__________Bookings________"
.LC26:
	.string	"\n\nName\tAge\tPNR"
.LC27:
	.string	"\t\n%s\t%d\t%d\n"
	.text
	.globl	display
	.type	display, @function
display:
.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, 16
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	system@PLT
	lea	rsi, .LC24[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	jmp	.L21
.L22:
	mov	rdx, QWORD PTR ti[rip]
	mov	eax, DWORD PTR ti[rip+8]
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, ti[rip+12]
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fread@PLT
	test	rax, rax
	jne	.L22
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	system@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	display, .-display
	.globl	searchpnr
	.type	searchpnr, @function
searchpnr:
.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	DWORD PTR -20[rbp], edi
	lea	rsi, .LC24[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR ti[rip]
	cmp	rdx, rax
	jne	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	searchpnr, .-searchpnr
	.section	.rodata
.LC28:
	.string	"Enter the PNR :"
	.align 8
.LC29:
	.string	"Ticket with PNR %d is not available in the file\n"
.LC30:
	.string	"w"
.LC31:
	.string	"TempFile"
.LC32:
	.string	"\nTICKET DELETED"
	.text
	.globl	cancelticket
	.type	cancelticket, @function
cancelticket:
.LFB5:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	system@PLT
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	searchpnr
	test	eax, eax
	jne	.L28
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	system@PLT
	jmp	.L35
.L28:
	lea	rsi, .LC24[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rsi, .LC30[rip]
	lea	rdi, .LC31[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L30
.L31:
	mov	rax, QWORD PTR ti[rip]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	je	.L30
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fwrite@PLT
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fread@PLT
	test	rax, rax
	jne	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC30[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC31[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fwrite@PLT
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 32
	lea	rdi, ti[rip]
	call	fread@PLT
	test	rax, rax
	jne	.L33
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	system@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L35:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	cancelticket, .-cancelticket
	.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	"427546.c"
	.text
	.comm	nop,4,4
	.comm	n,4,4
	.comm	i,4,4
	.global	j
	.bss
	.align	2
	.type	j, %object
	.size	j, 4
j:
	.space	4
	.comm	ti,28,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012\012\012\012\012\012\012\012\012\012\012\011\011"
	.ascii	"\011\011-----welcome-----\012\012\012\011\011\011\011"
	.ascii	"\011\011\000"
	.align	2
.LC2:
	.ascii	"pause\000"
	.align	2
.LC3:
	.ascii	"cls\000"
	.align	2
.LC4:
	.ascii	"\0121.Book ticket\000"
	.align	2
.LC5:
	.ascii	"\0122.My bookings\000"
	.align	2
.LC6:
	.ascii	"\0123.Cancel ticket\000"
	.align	2
.LC7:
	.ascii	"\0124.Exit\000"
	.align	2
.LC8:
	.ascii	"\012 Enter your choice...\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"\012Wrong option entered..\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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	printf
	ldr	r0, .L11+8
	bl	system
.L9:
	ldr	r0, .L11+12
	bl	system
	ldr	r0, .L11+16
	bl	printf
	ldr	r0, .L11+20
	bl	printf
	ldr	r0, .L11+24
	bl	printf
	ldr	r0, .L11+28
	bl	printf
	ldr	r0, .L11+32
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L11+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	bl	bookticket
	b	.L8
.L6:
	bl	display
	b	.L8
.L5:
	bl	cancelticket
	b	.L8
.L3:
	mov	r0, #0
	bl	exit
.L2:
	ldr	r0, .L11+40
	bl	puts
	nop
.L8:
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"a\000"
	.align	2
.LC13:
	.ascii	"btick\000"
	.align	2
.LC14:
	.ascii	"Enter number of passengers - \000"
	.align	2
.LC15:
	.ascii	"------------------------------\000"
	.align	2
.LC16:
	.ascii	"passenger %d name - \000"
	.align	2
.LC17:
	.ascii	"%s\000"
	.align	2
.LC18:
	.ascii	"passenger Age - \000"
	.text
	.align	2
	.global	passenger
	.syntax unified
	.arm
	.fpu softvfp
	.type	passenger, %function
passenger:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L17
	ldr	r0, .L17+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r0, .L17+8
	bl	printf
	ldr	r1, .L17+12
	ldr	r0, .L17+16
	bl	__isoc99_scanf
	ldr	r3, .L17+12
	ldr	r3, [r3]
	ldr	r2, .L17+20
	str	r3, [r2]
	ldr	r3, .L17+24
	mov	r2, #0
	str	r2, [r3]
	b	.L14
.L15:
	ldr	r0, .L17+28
	bl	puts
	ldr	r3, .L17+24
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+32
	bl	printf
	ldr	r1, .L17+36
	ldr	r0, .L17+40
	bl	__isoc99_scanf
	ldr	r0, .L17+44
	bl	printf
	ldr	r1, .L17+48
	ldr	r0, .L17+16
	bl	__isoc99_scanf
	bl	rand
	mov	r3, r0
	ldr	r2, .L17+52
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L17+52
	bl	fwrite
	ldr	r3, .L17+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+24
	str	r3, [r2]
.L14:
	ldr	r3, .L17+24
	ldr	r2, [r3]
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L15
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, .L17+56
	bl	system
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	n
	.word	.LC9
	.word	nop
	.word	i
	.word	.LC15
	.word	.LC16
	.word	ti+8
	.word	.LC17
	.word	.LC18
	.word	ti+4
	.word	ti
	.word	.LC2
	.size	passenger, .-passenger
	.section	.rodata
	.align	2
.LC19:
	.ascii	"\0121.General ticket\000"
	.align	2
.LC20:
	.ascii	"2.Sleeper coach\000"
	.align	2
.LC21:
	.ascii	"\0123.AC coach\000"
	.align	2
.LC22:
	.ascii	"Enter your choice - \000"
	.align	2
.LC23:
	.ascii	"\012Ticket booked .....\000"
	.global	__aeabi_i2f
	.global	__aeabi_f2d
	.align	2
.LC24:
	.ascii	"Total=%f \000"
	.align	2
.LC25:
	.ascii	"Wrong option entered...\000"
	.align	2
.LC0:
	.word	50
	.word	100
	.word	200
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bookticket
	.syntax unified
	.arm
	.fpu softvfp
	.type	bookticket, %function
bookticket:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L25+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r0, .L25+8
	bl	puts
	ldr	r0, .L25+12
	bl	printf
	ldr	r0, .L25+16
	bl	puts
	ldr	r0, .L25+20
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L25+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L20
	bl	passenger
	ldr	r0, .L25+28
	bl	puts
	ldr	r3, [fp, #-20]
	ldr	r2, .L25+32
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+36
	bl	printf
	ldr	r3, .L25+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+40
	str	r3, [r2]
	b	.L21
.L20:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L22
	bl	passenger
	ldr	r0, .L25+28
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r2, .L25+32
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+36
	bl	printf
	ldr	r3, .L25+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+40
	str	r3, [r2]
	b	.L21
.L22:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L23
	bl	passenger
	ldr	r0, .L25+28
	bl	puts
	ldr	r3, [fp, #-12]
	ldr	r2, .L25+32
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+36
	bl	printf
	ldr	r3, .L25+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+40
	str	r3, [r2]
	b	.L21
.L23:
	ldr	r0, .L25+44
	bl	puts
.L21:
	ldr	r0, .L25+48
	bl	system
	nop
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC26
	.word	.LC0
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC9
	.word	.LC23
	.word	nop
	.word	.LC24
	.word	j
	.word	.LC25
	.word	.LC2
	.size	bookticket, .-bookticket
	.section	.rodata
	.align	2
.LC27:
	.ascii	"r\000"
	.align	2
.LC28:
	.ascii	"\012__________Bookings________\000"
	.align	2
.LC29:
	.ascii	"\012\012Name\011Age\011PNR\000"
	.align	2
.LC30:
	.ascii	"\011\012%s\011%d\011%d\012\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L30
	bl	system
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r0, .L30+12
	bl	puts
	ldr	r0, .L30+16
	bl	puts
	b	.L28
.L29:
	ldr	r3, .L30+20
	ldr	r2, [r3, #4]
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r1, .L30+24
	ldr	r0, .L30+28
	bl	printf
.L28:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L30+20
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, .L30+32
	bl	system
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC3
	.word	.LC27
	.word	.LC13
	.word	.LC28
	.word	.LC29
	.word	ti
	.word	ti+8
	.word	.LC30
	.word	.LC2
	.size	display, .-display
	.align	2
	.global	searchpnr
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchpnr, %function
searchpnr:
	@ 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]
	ldr	r1, .L36
	ldr	r0, .L36+4
	bl	fopen
	str	r0, [fp, #-8]
	b	.L33
.L35:
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L36+8
	bl	fread
	ldr	r3, .L36+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L33
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #1
	b	.L34
.L33:
	ldr	r0, [fp, #-8]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC27
	.word	.LC13
	.word	ti
	.size	searchpnr, .-searchpnr
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Enter the PNR :\000"
	.align	2
.LC32:
	.ascii	"Ticket with PNR %d is not available in the file\012"
	.ascii	"\000"
	.align	2
.LC33:
	.ascii	"w\000"
	.align	2
.LC34:
	.ascii	"TempFile\000"
	.align	2
.LC35:
	.ascii	"\012TICKET DELETED\000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cancelticket
	.syntax unified
	.arm
	.fpu softvfp
	.type	cancelticket, %function
cancelticket:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L47+4
	bl	system
	ldr	r0, .L47+8
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L47+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	searchpnr
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L47+16
	bl	printf
	ldr	r0, .L47+20
	bl	system
	b	.L46
.L39:
	ldr	r1, .L47+24
	ldr	r0, .L47+28
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, .L47+32
	ldr	r0, .L47+36
	bl	fopen
	str	r0, [fp, #-16]
	b	.L41
.L42:
	ldr	r3, .L47+40
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L41
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L47+40
	bl	fwrite
.L41:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L47+40
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r1, .L47+32
	ldr	r0, .L47+28
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, .L47+24
	ldr	r0, .L47+36
	bl	fopen
	str	r0, [fp, #-16]
	b	.L43
.L44:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L47+40
	bl	fwrite
.L43:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #28
	ldr	r0, .L47+40
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r0, .L47+44
	bl	puts
	ldr	r0, .L47+20
	bl	system
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
.L46:
	nop
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC36
	.word	.LC3
	.word	.LC31
	.word	.LC9
	.word	.LC32
	.word	.LC2
	.word	.LC27
	.word	.LC13
	.word	.LC33
	.word	.LC34
	.word	ti
	.word	.LC35
	.size	cancelticket, .-cancelticket
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
