	.file	"238740.c"
	.intel_syntax noprefix
	.text
	.globl	size
	.bss
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.globl	author
	.align 8
	.type	author, @object
	.size	author, 8
author:
	.zero	8
	.text
	.globl	getinp
	.type	getinp, @function
getinp:
.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	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L2
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L3:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getinp, .-getinp
	.globl	getint
	.type	getint, @function
getint:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	getinp
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getint, .-getint
	.globl	sema
	.bss
	.align 32
	.type	sema, @object
	.size	sema, 32
sema:
	.zero	32
	.text
	.globl	sig
	.type	sig, @function
sig:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, sema[rip]
	call	sem_post@PLT
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, sema[rip]
	call	sem_wait@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sig, .-sig
	.section	.rodata
.LC0:
	.string	"\nEnter Size %d: "
.LC1:
	.string	"\nEnter Author name : "
.LC2:
	.string	"\nEnter Data %d: "
.LC3:
	.string	"\nData entered"
	.text
	.globl	run
	.type	run, @function
run:
.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, 288
	mov	DWORD PTR -276[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, sema[rip]
	call	sem_wait@PLT
	mov	edi, 4
	call	alarm@PLT
	lea	rsi, sig[rip]
	mov	edi, 14
	call	signal@PLT
.L11:
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getint
	mov	DWORD PTR size[rip], eax
	mov	eax, DWORD PTR size[rip]
	test	eax, eax
	jle	.L11
	mov	eax, DWORD PTR size[rip]
	cmp	eax, 1000
	jg	.L11
	mov	eax, DWORD PTR size[rip]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR ptr[rip], rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	esi, 240
	mov	rdi, rax
	call	getinp
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR author[rip], rax
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR size[rip]
	mov	rax, QWORD PTR ptr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	getinp
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, sema[rip]
	call	sem_post@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.globl	thread
	.type	thread, @function
thread:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 2
	call	run
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	thread, .-thread
	.section	.rodata
	.align 8
.LC4:
	.string	"How many chunks at a time (1/2) ? "
.LC5:
	.string	"invalid no!!"
	.text
	.globl	alloc
	.type	alloc, @function
alloc:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getint
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L15
	cmp	DWORD PTR -20[rbp], 2
	jle	.L16
.L15:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	edx, 1
	mov	esi, 0
	lea	rdi, sema[rip]
	call	sem_init@PLT
	cmp	DWORD PTR -20[rbp], 2
	jne	.L17
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L17:
	mov	edi, 1
	call	run
	cmp	DWORD PTR -20[rbp], 2
	jne	.L20
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
.L20:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	alloc, .-alloc
	.section	.rodata
.LC6:
	.string	"Edit the last entered data:"
.LC7:
	.string	"Enter new data: "
	.text
	.globl	edit
	.type	edit, @function
edit:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR ptr[rip]
	test	rax, rax
	je	.L24
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR size[rip]
	mov	rax, QWORD PTR ptr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	getinp
	jmp	.L21
.L24:
	nop
.L21:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	edit, .-edit
	.section	.rodata
.LC8:
	.string	"-----------------------"
.LC9:
	.string	"#### @******@ Menu ####"
.LC10:
	.string	"| 1. alloc            |"
.LC11:
	.string	"| 2. edit             |"
.LC12:
	.string	"| 3. Exit             |"
.LC13:
	.string	"Enter choice >> "
	.text
	.globl	printmenu
	.type	printmenu, @function
printmenu:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getint
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printmenu, .-printmenu
	.globl	initialise
	.type	initialise, @function
initialise:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	initialise, .-initialise
	.section	.rodata
.LC14:
	.string	"Invalid"
	.text
	.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
	mov	eax, 0
	call	initialise
	mov	edx, 1
	mov	esi, 0
	lea	rdi, sema[rip]
	call	sem_init@PLT
.L34:
	mov	eax, 0
	call	printmenu
	cmp	eax, 3
	je	.L29
	cmp	eax, 3
	jg	.L30
	cmp	eax, 1
	je	.L31
	cmp	eax, 2
	je	.L32
	jmp	.L30
.L31:
	mov	eax, 0
	call	alloc
	jmp	.L33
.L32:
	mov	eax, 0
	call	edit
	jmp	.L33
.L29:
	mov	edi, 0
	call	exit@PLT
.L30:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	nop
.L33:
	jmp	.L34
	.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	"238740.c"
	.text
	.comm	size,4,4
	.global	ptr
	.bss
	.align	2
	.type	ptr, %object
	.size	ptr, 4
ptr:
	.space	4
	.global	author
	.align	2
	.type	author, %object
	.size	author, 4
author:
	.space	4
	.text
	.align	2
	.global	getinp
	.syntax unified
	.arm
	.fpu softvfp
	.type	getinp, %function
getinp:
	@ 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]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L2
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L3:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getinp, .-getinp
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getint
	.syntax unified
	.arm
	.fpu softvfp
	.type	getint, %function
getint:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r1, #32
	mov	r0, r3
	bl	getinp
	sub	r3, fp, #40
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	getint, .-getint
	.comm	sema,16,4
	.align	2
	.global	sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig, %function
sig:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L12
	bl	sem_post
	mov	r0, #1
	bl	sleep
	ldr	r0, .L12
	bl	sem_wait
	nop
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	sema
	.size	sig, .-sig
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Enter Size %d: \000"
	.align	2
.LC2:
	.ascii	"\012Enter Author name : \000"
	.align	2
.LC3:
	.ascii	"\012Enter Data %d: \000"
	.align	2
.LC4:
	.ascii	"\012Data entered\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L17+4
	bl	sem_wait
	mov	r0, #4
	bl	alarm
	ldr	r1, .L17+8
	mov	r0, #14
	bl	signal
.L15:
	ldr	r1, [fp, #-272]
	ldr	r0, .L17+12
	bl	printf
	bl	getint
	mov	r3, r0
	ldr	r2, .L17+16
	str	r3, [r2]
	ldr	r3, .L17+16
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L15
	ldr	r3, .L17+16
	ldr	r3, [r3]
	cmp	r3, #1000
	bgt	.L15
	ldr	r3, .L17+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+20
	str	r2, [r3]
	ldr	r0, .L17+24
	bl	printf
	sub	r3, fp, #264
	mov	r1, #240
	mov	r0, r3
	bl	getinp
	sub	r3, fp, #264
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+28
	str	r2, [r3]
	ldr	r1, [fp, #-272]
	ldr	r0, .L17+32
	bl	printf
	ldr	r3, .L17+20
	ldr	r3, [r3]
	ldr	r2, .L17+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	getinp
	ldr	r0, .L17+36
	bl	puts
	ldr	r0, .L17+4
	bl	sem_post
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	sema
	.word	sig
	.word	.LC1
	.word	size
	.word	ptr
	.word	.LC2
	.word	author
	.word	.LC3
	.word	.LC4
	.size	run, .-run
	.align	2
	.global	thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread, %function
thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #2
	bl	run
	nop
	mov	r0, r3
	pop	{fp, pc}
	.size	thread, .-thread
	.section	.rodata
	.align	2
.LC6:
	.ascii	"How many chunks at a time (1/2) ? \000"
	.align	2
.LC7:
	.ascii	"invalid no!!\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc, %function
alloc:
	@ 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, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L27+4
	bl	printf
	bl	getint
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L21
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L22
.L21:
	ldr	r0, .L27+8
	bl	puts
	mov	r0, #0
	bl	exit
.L22:
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L27+12
	bl	sem_init
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L23
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L27+16
	mov	r1, #0
	bl	pthread_create
.L23:
	mov	r0, #1
	bl	run
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L26
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
.L26:
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.word	sema
	.word	thread
	.size	alloc, .-alloc
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Edit the last entered data:\000"
	.align	2
.LC10:
	.ascii	"Enter new data: \000"
	.text
	.align	2
	.global	edit
	.syntax unified
	.arm
	.fpu softvfp
	.type	edit, %function
edit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L32
	ldr	r0, .L33+4
	bl	puts
	ldr	r0, .L33+8
	bl	printf
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, .L33+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	getinp
	pop	{fp, pc}
.L32:
	nop
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	ptr
	.word	.LC9
	.word	.LC10
	.word	size
	.size	edit, .-edit
	.section	.rodata
	.align	2
.LC11:
	.ascii	"-----------------------\000"
	.align	2
.LC12:
	.ascii	"#### @******@ Menu ####\000"
	.align	2
.LC13:
	.ascii	"| 1. alloc            |\000"
	.align	2
.LC14:
	.ascii	"| 2. edit             |\000"
	.align	2
.LC15:
	.ascii	"| 3. Exit             |\000"
	.align	2
.LC16:
	.ascii	"Enter choice >> \000"
	.text
	.align	2
	.global	printmenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	printmenu, %function
printmenu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L37
	bl	puts
	ldr	r0, .L37+4
	bl	puts
	ldr	r0, .L37
	bl	puts
	ldr	r0, .L37+8
	bl	puts
	ldr	r0, .L37+12
	bl	puts
	ldr	r0, .L37+16
	bl	puts
	ldr	r0, .L37
	bl	puts
	ldr	r0, .L37+20
	bl	printf
	bl	getint
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	printmenu, .-printmenu
	.align	2
	.global	initialise
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialise, %function
initialise:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L40
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L40+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L40+8
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	nop
	mov	r0, r3
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	stdout
	.word	stdin
	.word	stderr
	.size	initialise, .-initialise
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Invalid\000"
	.text
	.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	initialise
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L49
	bl	sem_init
.L48:
	bl	printmenu
	mov	r3, r0
	cmp	r3, #3
	beq	.L43
	cmp	r3, #3
	bgt	.L44
	cmp	r3, #1
	beq	.L45
	cmp	r3, #2
	beq	.L46
	b	.L44
.L45:
	bl	alloc
	b	.L47
.L46:
	bl	edit
	b	.L47
.L43:
	mov	r0, #0
	bl	exit
.L44:
	ldr	r0, .L49+4
	bl	puts
	nop
.L47:
	b	.L48
.L50:
	.align	2
.L49:
	.word	sema
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
