	.file	"990369.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	front
	.data
	.align 4
	.type	front, @object
	.size	front, 4
front:
	.long	-1
	.globl	rear
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	-1
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	x
	.data
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.long	-1
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR count[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jge	.L4
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L3
	mov	DWORD PTR front[rip], 0
.L3:
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR rear[rip]
	mov	ecx, DWORD PTR n[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR count[rip]
	test	eax, eax
	jle	.L6
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR front[rip], eax
	mov	eax, DWORD PTR front[rip]
	mov	ecx, DWORD PTR n[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR front[rip], eax
	mov	eax, DWORD PTR count[rip]
	sub	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L5
.L6:
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dequeue, .-dequeue
	.globl	isFull
	.type	isFull, @function
isFull:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR count[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isFull, .-isFull
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB3:
	.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 count[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align 8
.LC0:
	.string	"Barber busy. Waiting list full. %d leaves.\n"
	.align 8
.LC1:
	.string	"Barber busy. %d went to waiting room.\n"
	.align 8
.LC2:
	.string	"Barber sleeping, %d gets a haircut.\n"
	.text
	.globl	come
	.type	come, @function
come:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR x[rip]
	cmp	eax, -1
	je	.L13
	mov	eax, 0
	call	isFull
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L14:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	enqueue
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L13:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR x[rip], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	come, .-come
	.section	.rodata
.LC3:
	.string	"%d hair cut finish. "
	.align 8
.LC4:
	.string	"0 in waiting room. Barber sleeps."
.LC5:
	.string	"%d gets a haircut.\n"
.LC6:
	.string	"Barber is sleeping."
	.text
	.globl	finish
	.type	finish, @function
finish:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR x[rip]
	cmp	eax, -1
	je	.L18
	mov	eax, DWORD PTR x[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	isEmpty
	test	eax, eax
	je	.L19
	mov	DWORD PTR x[rip], -1
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L21
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dequeue
	mov	DWORD PTR x[rip], eax
	mov	eax, DWORD PTR x[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L18:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	finish, .-finish
	.section	.rodata
.LC7:
	.string	"Enter n: "
.LC8:
	.string	"%d"
	.align 8
.LC9:
	.string	"\n**Commands**\nC : Customer arrival\nF : Finish haircut\nQ : Quit"
.LC10:
	.string	"\nEnter option:"
.LC11:
	.string	" %c"
.LC12:
	.string	"Enter id: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC7[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]
	sub	eax, 1
	mov	DWORD PTR n[rip], eax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR n[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L23:
	cmp	rsp, rdx
	je	.L24
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L23
.L24:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L25
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L25:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -76[rbp], 1
	jmp	.L26
.L31:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -81[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -81[rbp]
	movsx	eax, al
	cmp	eax, 81
	je	.L27
	cmp	eax, 81
	jg	.L26
	cmp	eax, 67
	je	.L28
	cmp	eax, 70
	je	.L29
	jmp	.L26
.L28:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	clientArrival@PLT
	jmp	.L26
.L29:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	finishHaircut@PLT
	jmp	.L26
.L27:
	mov	DWORD PTR -76[rbp], 0
	nop
.L26:
	cmp	DWORD PTR -76[rbp], 1
	je	.L31
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"990369.c"
	.text
	.comm	n,4,4
	.global	front
	.data
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.word	-1
	.global	rear
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	-1
	.global	count
	.bss
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.global	x
	.data
	.align	2
	.type	x, %object
	.size	x, 4
x:
	.word	-1
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L4
	ldr	r3, .L5+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L5+8
	mov	r2, #0
	str	r2, [r3]
.L3:
	ldr	r3, .L5+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+12
	str	r3, [r2]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	ldr	r2, .L5+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L5+12
	str	r2, [r3]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5
	str	r3, [r2]
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	count
	.word	n
	.word	front
	.word	rear
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L8
	ldr	r3, .L10+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10+4
	str	r2, [r3]
	ldr	r3, .L10
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L10
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	b	.L7
.L8:
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	count
	.word	front
	.word	n
	.size	dequeue, .-dequeue
	.align	2
	.global	isFull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFull, %function
isFull:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	count
	.word	n
	.size	isFull, .-isFull
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	count
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Barber busy. Waiting list full. %d leaves.\012\000"
	.align	2
.LC1:
	.ascii	"Barber busy. %d went to waiting room.\012\000"
	.align	2
.LC2:
	.ascii	"Barber sleeping, %d gets a haircut.\012\000"
	.text
	.align	2
	.global	come
	.syntax unified
	.arm
	.fpu softvfp
	.type	come, %function
come:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L25
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L21
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+4
	bl	printf
	b	.L24
.L22:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	enqueue
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+8
	bl	printf
	b	.L24
.L21:
	ldr	r2, .L25
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+12
	bl	printf
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	x
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	come, .-come
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d hair cut finish. \000"
	.align	2
.LC4:
	.ascii	"0 in waiting room. Barber sleeps.\000"
	.align	2
.LC5:
	.ascii	"%d gets a haircut.\012\000"
	.align	2
.LC6:
	.ascii	"Barber is sleeping.\000"
	.text
	.align	2
	.global	finish
	.syntax unified
	.arm
	.fpu softvfp
	.type	finish, %function
finish:
	@ 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	r3, .L32
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L28
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+4
	bl	printf
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L32
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, .L32+8
	bl	puts
	b	.L31
.L29:
	ldr	r0, [fp, #-8]
	bl	dequeue
	mov	r3, r0
	ldr	r2, .L32
	str	r3, [r2]
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+12
	bl	printf
	b	.L31
.L28:
	ldr	r0, .L32+16
	bl	puts
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	x
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	finish, .-finish
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Enter n: \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"\012**Commands**\012C : Customer arrival\012F : Fin"
	.ascii	"ish haircut\012Q : Quit\000"
	.align	2
.LC10:
	.ascii	"\012Enter option:\000"
	.align	2
.LC11:
	.ascii	" %c\000"
	.align	2
.LC12:
	.ascii	"Enter id: \000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L43+4
	bl	printf
	ldr	r1, .L43+8
	ldr	r0, .L43+12
	bl	__isoc99_scanf
	ldr	r3, .L43+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L43+8
	str	r3, [r2]
	ldr	r0, .L43+16
	bl	puts
	ldr	r3, .L43+8
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L35
.L40:
	ldr	r0, .L43+20
	bl	printf
	sub	r3, fp, #33
	mov	r1, r3
	ldr	r0, .L43+24
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #81
	beq	.L36
	cmp	r3, #81
	bgt	.L35
	cmp	r3, #67
	beq	.L37
	cmp	r3, #70
	beq	.L38
	b	.L35
.L37:
	ldr	r0, .L43+28
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L43+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	clientArrival
	b	.L35
.L38:
	ldr	r0, [fp, #-20]
	bl	finishHaircut
	b	.L35
.L36:
	mov	r3, #0
	str	r3, [fp, #-28]
	nop
.L35:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L40
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC13
	.word	.LC7
	.word	n
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
