	.file	"167330329.c"
	.intel_syntax noprefix
	.text
	.globl	q
	.bss
	.align 32
	.type	q, @object
	.size	q, 2500
q:
	.zero	2500
	.globl	h
	.data
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.long	-1
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.long	-1
	.section	.rodata
.LC0:
	.string	"1) Airplane lands."
.LC1:
	.string	"2) Airplane takes off"
.LC2:
	.string	"3) Display"
.LC3:
	.string	"4) Exit\n"
.LC4:
	.string	"Enter the choice:"
.LC5:
	.string	"%d"
.LC6:
	.string	"Enter the valid choice."
.LC7:
	.string	"\nDo you want to continue.? "
.LC8:
	.string	"%c"
	.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
	mov	BYTE PTR -13[rbp], 121
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L2
.L11:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	je	.L14
	cmp	eax, 4
	jg	.L4
	cmp	eax, 3
	je	.L5
	cmp	eax, 3
	jg	.L4
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	je	.L7
	jmp	.L4
.L6:
	mov	eax, 0
	call	enqueue
	jmp	.L8
.L7:
	mov	eax, 0
	call	dequeue
	jmp	.L8
.L5:
	mov	eax, 0
	call	display
	jmp	.L8
.L4:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L8:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 110
	je	.L10
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 78
	jne	.L11
.L10:
	mov	eax, 0
	jmp	.L1
.L14:
	nop
	nop
.L1:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"Airport is full"
.LC10:
	.string	"\nEnter the ID of plane:"
.LC11:
	.string	"%s"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR t[rip]
	cmp	eax, 49
	jne	.L16
	mov	DWORD PTR t[rip], 0
	jmp	.L17
.L16:
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	mov	DWORD PTR t[rip], eax
.L17:
	mov	edx, DWORD PTR h[rip]
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jne	.L18
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L18:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR t[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, q[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR h[rip]
	cmp	eax, -1
	jne	.L15
	mov	DWORD PTR h[rip], 0
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	enqueue, .-enqueue
	.section	.rodata
	.align 8
.LC12:
	.string	"\nNo such plan in Airport which can do take off."
	.align 8
.LC13:
	.string	"The plan with ID %s departured."
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR t[rip]
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L20
.L21:
	mov	eax, DWORD PTR h[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, q[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR h[rip]
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jne	.L23
	mov	DWORD PTR h[rip], -1
	mov	DWORD PTR t[rip], -1
	jmp	.L20
.L23:
	mov	eax, DWORD PTR h[rip]
	cmp	eax, 49
	jne	.L24
	mov	DWORD PTR h[rip], 0
	jmp	.L20
.L24:
	mov	eax, DWORD PTR h[rip]
	add	eax, 1
	mov	DWORD PTR h[rip], eax
.L20:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC14:
	.string	"Airport is Empty."
	.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
	mov	eax, DWORD PTR h[rip]
	cmp	eax, -1
	jne	.L26
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L26:
	mov	eax, DWORD PTR h[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	lea	rdx, q[rip]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
	cmp	DWORD PTR -4[rbp], 49
	jne	.L29
	mov	DWORD PTR -4[rbp], -1
.L29:
	add	DWORD PTR -4[rbp], 1
.L28:
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L30
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	display, .-display
	.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	"167330329.c"
	.text
	.comm	q,2500,4
	.global	h
	.data
	.align	2
	.type	h, %object
	.size	h, 4
h:
	.word	-1
	.global	t
	.align	2
	.type	t, %object
	.size	t, 4
t:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1) Airplane lands.\000"
	.align	2
.LC1:
	.ascii	"2) Airplane takes off\000"
	.align	2
.LC2:
	.ascii	"3) Display\000"
	.align	2
.LC3:
	.ascii	"4) Exit\012\000"
	.align	2
.LC4:
	.ascii	"Enter the choice:\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Enter the valid choice.\000"
	.align	2
.LC7:
	.ascii	"\012Do you want to continue.? \000"
	.align	2
.LC8:
	.ascii	"%c\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #121
	strb	r3, [fp, #-13]
	ldr	r0, .L16+4
	bl	puts
	ldr	r0, .L16+8
	bl	puts
	ldr	r0, .L16+12
	bl	puts
	ldr	r0, .L16+16
	bl	puts
	b	.L2
.L12:
	ldr	r0, .L16+20
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L16+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L15
.L8:
	bl	enqueue
	b	.L9
.L7:
	bl	dequeue
	b	.L9
.L6:
	bl	display
	b	.L9
.L3:
	ldr	r0, .L16+28
	bl	printf
	nop
.L9:
	ldr	r0, .L16+32
	bl	printf
	sub	r3, fp, #13
	mov	r1, r3
	ldr	r0, .L16+36
	bl	__isoc99_scanf
	sub	r3, fp, #13
	mov	r1, r3
	ldr	r0, .L16+36
	bl	__isoc99_scanf
.L2:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L11
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L12
.L11:
	mov	r3, #0
	b	.L1
.L15:
	nop
	nop
.L1:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Airport is full\000"
	.align	2
.LC11:
	.ascii	"\012Enter the ID of plane:\000"
	.align	2
.LC12:
	.ascii	"%s\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #49
	bne	.L19
	ldr	r3, .L23
	mov	r2, #0
	str	r2, [r3]
	b	.L20
.L19:
	ldr	r3, .L23
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23
	str	r3, [r2]
.L20:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L21
	ldr	r0, .L23+8
	bl	printf
	pop	{fp, pc}
.L21:
	ldr	r0, .L23+12
	bl	printf
	ldr	r3, .L23
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L23+16
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L23+20
	bl	__isoc99_scanf
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmn	r3, #1
	popne	{fp, pc}
	ldr	r3, .L23+4
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	t
	.word	h
	.word	.LC10
	.word	.LC11
	.word	q
	.word	.LC12
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012No such plan in Airport which can do take off.\000"
	.align	2
.LC14:
	.ascii	"The plan with ID %s departured.\000"
	.text
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L30
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L30+4
	bl	puts
	pop	{fp, pc}
.L26:
	ldr	r3, .L30+8
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L30+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L30+16
	bl	printf
	ldr	r3, .L30+8
	ldr	r2, [r3]
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L28
	ldr	r3, .L30+8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L30
	mvn	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L28:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, #49
	bne	.L29
	ldr	r3, .L30+8
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L29:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L30+8
	str	r3, [r2]
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	t
	.word	.LC13
	.word	h
	.word	q
	.word	.LC14
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Airport is Empty.\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	r3, .L39
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L39+4
	bl	printf
	b	.L38
.L33:
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L35
.L37:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L39+8
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	cmp	r3, #49
	bne	.L36
	mvn	r3, #0
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r3, .L39+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L37
.L38:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	h
	.word	.LC15
	.word	q
	.word	t
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
