	.file	"362748.c"
	.intel_syntax noprefix
	.text
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.globl	message
	.align 8
	.type	message, @object
	.size	message, 8
message:
	.zero	8
	.text
	.globl	beNice
	.type	beNice, @function
beNice:
.LFB6:
	.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
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	beNice, .-beNice
	.section	.rodata
.LC0:
	.string	"You must create a user first"
	.text
	.globl	bye
	.type	bye, @function
bye:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	bye, .-bye
	.section	.rodata
.LC1:
	.string	"Enter age of user: "
.LC2:
	.string	"%d"
.LC3:
	.string	"Enter username: "
	.text
	.globl	createUser
	.type	createUser, @function
createUser:
.LFB8:
	.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, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR root[rip], rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR root[rip]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	edx, 31
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	rbx, QWORD PTR root[rip]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	createUser, .-createUser
	.globl	editUsername
	.type	editUsername, @function
editUsername:
.LFB9:
	.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 root[rip]
	test	rax, rax
	jne	.L6
	mov	eax, 0
	call	bye
.L6:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR root[rip]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR root[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, 31
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	editUsername, .-editUsername
	.globl	deleteUser
	.type	deleteUser, @function
deleteUser:
.LFB10:
	.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 root[rip]
	test	rax, rax
	jne	.L8
	mov	eax, 0
	call	bye
.L8:
	mov	rax, QWORD PTR root[rip]
	mov	rdi, rax
	call	free@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deleteUser, .-deleteUser
	.section	.rodata
.LC4:
	.string	"Enter message to be sent: "
.LC5:
	.string	"Message recieved: "
.LC6:
	.string	"\nSaving it for admin to see!\n"
	.text
	.globl	sendMessage
	.type	sendMessage, @function
sendMessage:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	edx, 127
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR message[rip], rax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sendMessage, .-sendMessage
	.section	.rodata
.LC7:
	.string	"### USER ADMINISTRATION ###\n"
.LC8:
	.string	"0) Create user"
.LC9:
	.string	"1) Edit user name"
.LC10:
	.string	"2) Delete user"
.LC11:
	.string	"3) Send admin a message"
.LC12:
	.string	"4) exit"
.LC13:
	.string	"Enter your choice: "
.LC14:
	.string	"Wrong choice try again..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	beNice
.L20:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[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, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	ja	.L12
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L14[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L14[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L18-.L14
	.long	.L17-.L14
	.long	.L16-.L14
	.long	.L15-.L14
	.long	.L13-.L14
	.text
.L18:
	mov	eax, 0
	call	createUser
	jmp	.L19
.L17:
	mov	eax, 0
	call	editUsername
	jmp	.L19
.L16:
	mov	eax, 0
	call	deleteUser
	jmp	.L19
.L15:
	mov	eax, 0
	call	sendMessage
	jmp	.L19
.L13:
	mov	edi, 0
	call	exit@PLT
.L12:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L19:
	jmp	.L20
	.cfi_endproc
.LFE12:
	.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	"362748.c"
	.text
	.global	root
	.bss
	.align	2
	.type	root, %object
	.size	root, 4
root:
	.space	4
	.comm	message,4,4
	.text
	.align	2
	.global	beNice
	.syntax unified
	.arm
	.fpu softvfp
	.type	beNice, %function
beNice:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stdout
	.size	beNice, .-beNice
	.section	.rodata
	.align	2
.LC0:
	.ascii	"You must create a user first\000"
	.text
	.align	2
	.global	bye
	.syntax unified
	.arm
	.fpu softvfp
	.type	bye, %function
bye:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	puts
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	bye, .-bye
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter age of user: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Enter username: \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createUser
	.syntax unified
	.arm
	.fpu softvfp
	.type	createUser, %function
createUser:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+4
	str	r2, [r3]
	ldr	r0, .L9+8
	bl	printf
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L9+12
	bl	__isoc99_scanf
	ldr	r0, .L9+16
	bl	printf
	sub	r3, fp, #48
	mov	r2, #31
	mov	r1, r3
	mov	r0, #0
	bl	read
	ldr	r3, .L9+4
	ldr	r4, [r3]
	sub	r3, fp, #48
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [r4]
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	root
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	createUser, .-createUser
	.align	2
	.global	editUsername
	.syntax unified
	.arm
	.fpu softvfp
	.type	editUsername, %function
editUsername:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	bl	bye
.L12:
	ldr	r0, .L13+4
	bl	printf
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r0, .L13+12
	bl	printf
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, r3
	mov	r0, #0
	bl	read
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	root
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	editUsername, .-editUsername
	.align	2
	.global	deleteUser
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteUser, %function
deleteUser:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	bl	bye
.L16:
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	root
	.size	deleteUser, .-deleteUser
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Enter message to be sent: \000"
	.align	2
.LC6:
	.ascii	"Message recieved: \000"
	.align	2
.LC7:
	.ascii	"\012Saving it for admin to see!\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendMessage, %function
sendMessage:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L21+4
	bl	puts
	sub	r3, fp, #136
	mov	r2, #127
	mov	r1, r3
	mov	r0, #0
	bl	read
	ldr	r0, .L21+8
	bl	puts
	sub	r3, fp, #136
	mov	r0, r3
	bl	puts
	ldr	r0, .L21+12
	bl	puts
	sub	r3, fp, #136
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L21+16
	str	r2, [r3]
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	message
	.size	sendMessage, .-sendMessage
	.section	.rodata
	.align	2
.LC9:
	.ascii	"### USER ADMINISTRATION ###\012\000"
	.align	2
.LC10:
	.ascii	"0) Create user\000"
	.align	2
.LC11:
	.ascii	"1) Edit user name\000"
	.align	2
.LC12:
	.ascii	"2) Delete user\000"
	.align	2
.LC13:
	.ascii	"3) Send admin a message\000"
	.align	2
.LC14:
	.ascii	"4) exit\000"
	.align	2
.LC15:
	.ascii	"Enter your choice: \000"
	.align	2
.LC16:
	.ascii	"Wrong choice try again...\000"
	.align	2
.LC17:
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	beNice
.L32:
	ldr	r0, .L34+4
	bl	puts
	ldr	r0, .L34+8
	bl	puts
	ldr	r0, .L34+12
	bl	puts
	ldr	r0, .L34+16
	bl	puts
	ldr	r0, .L34+20
	bl	puts
	ldr	r0, .L34+24
	bl	puts
	ldr	r0, .L34+28
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L34+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L24
.L26:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L25
.L30:
	bl	createUser
	b	.L31
.L29:
	bl	editUsername
	b	.L31
.L28:
	bl	deleteUser
	b	.L31
.L27:
	bl	sendMessage
	b	.L31
.L25:
	mov	r0, #0
	bl	exit
.L24:
	ldr	r0, .L34+36
	bl	puts
.L31:
	b	.L32
.L35:
	.align	2
.L34:
	.word	.LC17
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC2
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
