	.file	"558255.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	curr
	.align 8
	.type	curr, @object
	.size	curr, 8
curr:
	.zero	8
	.text
	.globl	insertFirst
	.type	insertFirst, @function
insertFirst:
.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, 16
	mov	edi, 144
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	lea	rax, 20[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 24[rax]
	lea	rax, 40[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 44[rax]
	lea	rax, 60[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 64[rax]
	lea	rax, 80[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 84[rax]
	lea	rax, 100[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR head[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR head[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insertFirst, .-insertFirst
	.section	.rodata
.LC0:
	.string	"\nEnter Name of Patient\t"
.LC1:
	.string	" %[^\n]p.name"
.LC2:
	.string	"\nEnter Age\t"
.LC3:
	.string	"%d"
.LC4:
	.string	"\nEnter House Name\t"
.LC5:
	.string	"%s"
.LC6:
	.string	"\nEnter Street Name\t"
.LC7:
	.string	"\nEnter City\t"
	.align 8
.LC8:
	.string	"\nEnter symptoms seperated by space\t"
.LC9:
	.string	" %[^\n]p.symp"
	.text
	.globl	getData
	.type	getData, @function
getData:
.LFB7:
	.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, 168
	.cfi_offset 3, -24
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 24
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 44
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 64
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -160[rbp]
	add	rax, 84
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -160[rbp]
	mov	rbx, QWORD PTR -152[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -144[rbp]
	mov	rbx, QWORD PTR -136[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -120[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 112[rax], rcx
	mov	QWORD PTR 120[rax], rbx
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	mov	rax, QWORD PTR -168[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getData, .-getData
	.section	.rodata
.LC10:
	.string	"\nPrinting all data"
.LC11:
	.string	"######################"
.LC12:
	.string	"Name :\t%s\n"
.LC13:
	.string	"Age :\t%d\n"
.LC14:
	.string	"Address"
.LC15:
	.string	"House name :\t %s\n"
.LC16:
	.string	"Street :\t%s\n"
.LC17:
	.string	"City :\t%s\n"
.LC18:
	.string	"Symptoms :\t%s\n\n"
	.text
	.globl	printList
	.type	printList, @function
printList:
.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, 16
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L6
.L7:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 24
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 44
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 64
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 84
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -8[rbp], rax
.L6:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printList, .-printList
	.section	.rodata
.LC19:
	.string	"$$$$$$$$$$$$$$$$$$$$"
.LC20:
	.string	"Name :\t %s\n"
.LC21:
	.string	"Age :\t %d\n"
.LC22:
	.string	"\t\tAddress"
.LC23:
	.string	"Street :\t %s\n"
.LC24:
	.string	"City :\t %s\n"
.LC25:
	.string	"Symptoms :\t %s"
	.text
	.globl	printGiven
	.type	printGiven, @function
printGiven:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 24
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 44
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 64
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 84
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printGiven, .-printGiven
	.section	.rodata
	.align 8
.LC26:
	.string	"Enter choice\n1.\tTo edit Name\n2.\tTo edit Age\n3.\tTo edit Address\n4.\tTo edit Symptoms\n5.\tBack to MAIN"
	.text
	.globl	editChoiceOpt
	.type	editChoiceOpt, @function
editChoiceOpt:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	editChoiceOpt, .-editChoiceOpt
	.section	.rodata
	.align 8
.LC27:
	.string	"Enter the Name to find data of"
.LC28:
	.string	"No data found"
	.align 8
.LC29:
	.string	"Data found following is entered"
.LC30:
	.string	"Enter Name\t"
.LC31:
	.string	" %[^\n]curr->patient.name"
.LC32:
	.string	"Enter Age\t"
.LC33:
	.string	"Enter Address"
.LC34:
	.string	"Enter Hous Name\t"
.LC35:
	.string	"\nEnter Street\t"
.LC36:
	.string	"Enter Symptoms\t"
.LC37:
	.string	" %[^\n]curr->patient.symp"
	.text
	.globl	edit
	.type	edit, @function
edit:
.LFB11:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L26
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 136[rax]
	test	rax, rax
	jne	.L16
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L26
.L16:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -40[rbp], rax
.L15:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	printGiven
	mov	DWORD PTR -44[rbp], 0
.L18:
	call	editChoiceOpt
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 5
	ja	.L19
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L21[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L21[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L21:
	.long	.L19-.L21
	.long	.L25-.L21
	.long	.L24-.L21
	.long	.L23-.L21
	.long	.L22-.L21
	.long	.L19-.L21
	.text
.L25:
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L18
.L24:
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L18
.L23:
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 44
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 64
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L18
.L22:
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 84
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -40[rbp]
.L26:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	edit, .-edit
	.section	.rodata
.LC38:
	.string	"Enter name to be deleted"
	.text
	.globl	delete
	.type	delete, @function
delete:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L31
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L36
.L33:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 136[rax]
	test	rax, rax
	jne	.L32
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L36
.L32:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -48[rbp], rax
.L31:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR head[rip]
	cmp	QWORD PTR -48[rbp], rax
	jne	.L34
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR head[rip], rax
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 136[rax], rdx
.L35:
	mov	rax, QWORD PTR -48[rbp]
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	delete, .-delete
	.section	.rodata
.LC39:
	.string	"w"
.LC40:
	.string	"hospital.txt"
	.align 8
.LC41:
	.string	"-----------------------------------"
.LC42:
	.string	"\nName :\t %s"
.LC43:
	.string	"\nAge :\t %d"
.LC44:
	.string	"\n\t\tAddress"
.LC45:
	.string	"\nHouse Name:\t%s"
.LC46:
	.string	"\nStreet    :\t %s"
.LC47:
	.string	"\nCity      :\t %s"
.LC48:
	.string	"\nSymptoms  :\t %s"
	.text
	.globl	fileSave
	.type	fileSave, @function
fileSave:
.LFB13:
	.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 head[rip]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L39
	mov	eax, 0
	jmp	.L40
.L39:
	lea	rsi, .LC39[rip]
	lea	rdi, .LC40[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L41
.L42:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC41[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC44[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 44[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 84[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -16[rbp], rax
.L41:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L42
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	fileSave, .-fileSave
	.section	.rodata
	.align 8
.LC49:
	.string	"\nWelcome to Hospital managment System\nPlease select your option"
	.align 8
.LC50:
	.string	"1.\tInsert Data\n2.\tDelete Data\n3.\tEdit Data\n4.\tPrint All\n5.\tExit"
.LC51:
	.string	"%c"
.LC52:
	.string	"\nWrong choice"
	.text
	.globl	menu
	.type	menu, @function
menu:
.LFB14:
	.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
.L44:
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC50[rip]
	call	puts@PLT
	lea	rax, -145[rbp]
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -145[rbp]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L45
	lea	rdi, .LC52[rip]
	call	puts@PLT
	call	menu
.L45:
	movzx	eax, BYTE PTR -145[rbp]
	movsx	eax, al
	sub	eax, 49
	cmp	eax, 4
	ja	.L54
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L48[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L48[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L48:
	.long	.L52-.L48
	.long	.L51-.L48
	.long	.L50-.L48
	.long	.L49-.L48
	.long	.L47-.L48
	.text
.L52:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	getData
	sub	rsp, 8
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -88[rbp]
	push	QWORD PTR -96[rbp]
	push	QWORD PTR -104[rbp]
	push	QWORD PTR -112[rbp]
	push	QWORD PTR -120[rbp]
	push	QWORD PTR -128[rbp]
	push	QWORD PTR -136[rbp]
	push	QWORD PTR -144[rbp]
	call	insertFirst
	add	rsp, 144
	jmp	.L44
.L51:
	call	delete
	call	menu
	jmp	.L46
.L50:
	call	edit
	call	menu
	jmp	.L46
.L49:
	call	printList
	call	menu
	jmp	.L46
.L47:
	call	fileSave
	nop
.L46:
.L54:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	menu, .-menu
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	menu
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"558255.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	curr
	.align	2
	.type	curr, %object
	.size	curr, 4
curr:
	.space	4
	.text
	.align	2
	.global	insertFirst
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertFirst, %function
insertFirst:
	@ args = 136, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r0, #140
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	add	r2, fp, #8
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	add	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #44
	add	r2, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	add	r2, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #84
	add	r2, fp, #88
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L2
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #136]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L3:
	.align	2
.L2:
	.word	head
	.size	insertFirst, .-insertFirst
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter Name of Patient\011\000"
	.align	2
.LC1:
	.ascii	" %[^\012]p.name\000"
	.align	2
.LC2:
	.ascii	"\012Enter Age\011\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012Enter House Name\011\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"\012Enter Street Name\011\000"
	.align	2
.LC7:
	.ascii	"\012Enter City\011\000"
	.align	2
.LC8:
	.ascii	"\012Enter symptoms seperated by space\011\000"
	.align	2
.LC9:
	.ascii	" %[^\012]p.symp\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getData
	.syntax unified
	.arm
	.fpu softvfp
	.type	getData, %function
getData:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	printf
	sub	r3, fp, #144
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	ldr	r0, .L7+12
	bl	printf
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L7+16
	bl	__isoc99_scanf
	ldr	r0, .L7+20
	bl	printf
	sub	r3, fp, #144
	add	r3, r3, #24
	mov	r1, r3
	ldr	r0, .L7+24
	bl	__isoc99_scanf
	ldr	r0, .L7+28
	bl	printf
	sub	r3, fp, #144
	add	r3, r3, #44
	mov	r1, r3
	ldr	r0, .L7+24
	bl	__isoc99_scanf
	ldr	r0, .L7+32
	bl	printf
	sub	r3, fp, #144
	add	r3, r3, #64
	mov	r1, r3
	ldr	r0, .L7+24
	bl	__isoc99_scanf
	ldr	r0, .L7+36
	bl	printf
	sub	r3, fp, #144
	add	r3, r3, #84
	mov	r1, r3
	ldr	r0, .L7+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-152]
	mov	r0, r3
	sub	r3, fp, #144
	mov	r2, #136
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	ldr	r0, [fp, #-152]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	getData, .-getData
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012Printing all data\000"
	.align	2
.LC12:
	.ascii	"######################\000"
	.align	2
.LC13:
	.ascii	"Name :\011%s\012\000"
	.align	2
.LC14:
	.ascii	"Age :\011%d\012\000"
	.align	2
.LC15:
	.ascii	"Address\000"
	.align	2
.LC16:
	.ascii	"House name :\011 %s\012\000"
	.align	2
.LC17:
	.ascii	"Street :\011%s\012\000"
	.align	2
.LC18:
	.ascii	"City :\011%s\012\000"
	.align	2
.LC19:
	.ascii	"Symptoms :\011%s\012\012\000"
	.text
	.align	2
	.global	printList
	.syntax unified
	.arm
	.fpu softvfp
	.type	printList, %function
printList:
	@ 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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, .L12+4
	bl	puts
	b	.L10
.L11:
	ldr	r0, .L12+8
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L12+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	ldr	r0, .L12+20
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	mov	r1, r3
	ldr	r0, .L12+24
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #44
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #84
	mov	r1, r3
	ldr	r0, .L12+36
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #136]
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	head
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	printList, .-printList
	.section	.rodata
	.align	2
.LC20:
	.ascii	"$$$$$$$$$$$$$$$$$$$$\000"
	.align	2
.LC21:
	.ascii	"Name :\011 %s\012\000"
	.align	2
.LC22:
	.ascii	"Age :\011 %d\012\000"
	.align	2
.LC23:
	.ascii	"\011\011Address\000"
	.align	2
.LC24:
	.ascii	"Street :\011 %s\012\000"
	.align	2
.LC25:
	.ascii	"City :\011 %s\012\000"
	.align	2
.LC26:
	.ascii	"Symptoms :\011 %s\000"
	.text
	.align	2
	.global	printGiven
	.syntax unified
	.arm
	.fpu softvfp
	.type	printGiven, %function
printGiven:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L15
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	ldr	r0, .L15+12
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #44
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #84
	mov	r1, r3
	ldr	r0, .L15+28
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC16
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	printGiven, .-printGiven
	.section	.rodata
	.align	2
.LC27:
	.ascii	"Enter choice\0121.\011To edit Name\0122.\011To edit"
	.ascii	" Age\0123.\011To edit Address\0124.\011To edit Symp"
	.ascii	"toms\0125.\011Back to MAIN\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editChoiceOpt
	.syntax unified
	.arm
	.fpu softvfp
	.type	editChoiceOpt, %function
editChoiceOpt:
	@ 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, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L20+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L20+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC28
	.word	.LC27
	.word	.LC3
	.size	editChoiceOpt, .-editChoiceOpt
	.section	.rodata
	.align	2
.LC29:
	.ascii	"Enter the Name to find data of\000"
	.align	2
.LC30:
	.ascii	"No data found\000"
	.align	2
.LC31:
	.ascii	"Data found following is entered\000"
	.align	2
.LC32:
	.ascii	"Enter Name\011\000"
	.align	2
.LC33:
	.ascii	" %[^\012]curr->patient.name\000"
	.align	2
.LC34:
	.ascii	"Enter Age\011\000"
	.align	2
.LC35:
	.ascii	"Enter Address\000"
	.align	2
.LC36:
	.ascii	"Enter Hous Name\011\000"
	.align	2
.LC37:
	.ascii	"\012Enter Street\011\000"
	.align	2
.LC38:
	.ascii	"Enter Symptoms\011\000"
	.align	2
.LC39:
	.ascii	" %[^\012]curr->patient.symp\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	edit
	.syntax unified
	.arm
	.fpu softvfp
	.type	edit, %function
edit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L38+4
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r0, .L38+8
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L38+16
	bl	printf
	mov	r3, #0
	b	.L36
.L27:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #136]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L38+16
	bl	printf
	mov	r3, #0
	b	.L36
.L26:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #136]
	str	r3, [fp, #-36]
.L25:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L38+20
	bl	puts
	ldr	r0, [fp, #-36]
	bl	printGiven
	mov	r3, #0
	str	r3, [fp, #-32]
.L28:
	bl	editChoiceOpt
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L31:
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L29
.L35:
	ldr	r0, .L38+24
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L38+28
	bl	__isoc99_scanf
	b	.L28
.L34:
	ldr	r0, .L38+32
	bl	printf
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L38+36
	bl	__isoc99_scanf
	b	.L28
.L33:
	ldr	r0, .L38+40
	bl	puts
	ldr	r0, .L38+44
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #24
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	ldr	r0, .L38+48
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #44
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	ldr	r0, .L38+52
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #64
	mov	r1, r3
	ldr	r0, .L38+12
	bl	__isoc99_scanf
	b	.L28
.L32:
	ldr	r0, .L38+56
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #84
	mov	r1, r3
	ldr	r0, .L38+60
	bl	__isoc99_scanf
	b	.L28
.L29:
	ldr	r3, [fp, #-36]
.L36:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC40
	.word	head
	.word	.LC29
	.word	.LC5
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC3
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC7
	.word	.LC38
	.word	.LC39
	.size	edit, .-edit
	.section	.rodata
	.align	2
.LC41:
	.ascii	"Enter name to be deleted\000"
	.align	2
.LC42:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L50+4
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, .L50+8
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L50+12
	bl	__isoc99_scanf
	ldr	r3, .L50+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
	ldr	r0, .L50+16
	bl	printf
	mov	r3, #0
	b	.L48
.L45:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #136]
	cmp	r3, #0
	bne	.L44
	ldr	r0, .L50+16
	bl	printf
	mov	r3, #0
	b	.L48
.L44:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #136]
	str	r3, [fp, #-36]
.L43:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L46
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldr	r3, [r3, #136]
	ldr	r2, .L50+4
	str	r3, [r2]
	b	.L47
.L46:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #136]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #136]
.L47:
	ldr	r3, [fp, #-36]
.L48:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC42
	.word	head
	.word	.LC41
	.word	.LC5
	.word	.LC30
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC43:
	.ascii	"w\000"
	.align	2
.LC44:
	.ascii	"hospital.txt\000"
	.align	2
.LC45:
	.ascii	"-----------------------------------\000"
	.align	2
.LC46:
	.ascii	"\012Name :\011 %s\000"
	.align	2
.LC47:
	.ascii	"\012Age :\011 %d\000"
	.align	2
.LC48:
	.ascii	"\012\011\011Address\000"
	.align	2
.LC49:
	.ascii	"\012House Name:\011%s\000"
	.align	2
.LC50:
	.ascii	"\012Street    :\011 %s\000"
	.align	2
.LC51:
	.ascii	"\012City      :\011 %s\000"
	.align	2
.LC52:
	.ascii	"\012Symptoms  :\011 %s\000"
	.text
	.align	2
	.global	fileSave
	.syntax unified
	.arm
	.fpu softvfp
	.type	fileSave, %function
fileSave:
	@ 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, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L53
	mov	r3, #0
	b	.L54
.L53:
	ldr	r1, .L57+4
	ldr	r0, .L57+8
	bl	fopen
	str	r0, [fp, #-8]
	b	.L55
.L56:
	ldr	r3, [fp, #-8]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L57+12
	bl	fwrite
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L57+16
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L57+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-8]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L57+24
	bl	fwrite
	ldr	r3, [fp, #-12]
	add	r3, r3, #24
	mov	r2, r3
	ldr	r1, .L57+28
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #44
	mov	r2, r3
	ldr	r1, .L57+32
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #64
	mov	r2, r3
	ldr	r1, .L57+36
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #84
	mov	r2, r3
	ldr	r1, .L57+40
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #136]
	str	r3, [fp, #-12]
.L55:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L56
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	head
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.size	fileSave, .-fileSave
	.section	.rodata
	.align	2
.LC53:
	.ascii	"\012Welcome to Hospital managment System\012Please "
	.ascii	"select your option\000"
	.align	2
.LC54:
	.ascii	"1.\011Insert Data\0122.\011Delete Data\0123.\011Edi"
	.ascii	"t Data\0124.\011Print All\0125.\011Exit\000"
	.align	2
.LC55:
	.ascii	"%c\000"
	.align	2
.LC56:
	.ascii	"\012Wrong choice\000"
	.align	2
.LC57:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L60:
	ldr	r0, .L71+4
	bl	printf
	ldr	r0, .L71+8
	bl	puts
	sub	r3, fp, #145
	mov	r1, r3
	ldr	r0, .L71+12
	bl	__isoc99_scanf
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-145]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L61
	ldr	r0, .L71+16
	bl	puts
	bl	menu
.L61:
	ldrb	r3, [fp, #-145]	@ zero_extendqisi2
	sub	r3, r3, #49
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L70
.L64:
	.word	.L68
	.word	.L67
	.word	.L66
	.word	.L65
	.word	.L63
.L68:
	sub	r3, fp, #144
	mov	r0, r3
	bl	getData
	mov	r0, sp
	sub	r3, fp, #128
	mov	r2, #120
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #144
	ldm	r3, {r0, r1, r2, r3}
	bl	insertFirst
	b	.L60
.L67:
	bl	delete
	bl	menu
	b	.L62
.L66:
	bl	edit
	bl	menu
	b	.L62
.L65:
	bl	printList
	bl	menu
	b	.L62
.L63:
	bl	fileSave
	nop
.L62:
.L70:
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC57
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.size	menu, .-menu
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	menu
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
