	.file	"971287.c"
	.intel_syntax noprefix
	.text
	.globl	allowedFlags
	.section	.rodata
.LC0:
	.string	"--version"
.LC1:
	.string	"--hep"
	.section	.data.rel.ro.local,"aw"
	.align 16
	.type	allowedFlags, @object
	.size	allowedFlags, 16
allowedFlags:
	.quad	.LC0
	.quad	.LC1
	.globl	commandsStore
	.section	.data.rel.local,"aw"
	.align 16
	.type	commandsStore, @object
	.size	commandsStore, 16
commandsStore:
	.quad	versionCommand
	.quad	helpCommand
	.globl	allowedFlagsLength
	.section	.rodata
	.align 4
	.type	allowedFlagsLength, @object
	.size	allowedFlagsLength, 4
allowedFlagsLength:
	.long	2
.LC2:
	.string	"\033[0m"
	.align 8
.LC3:
	.string	"\033[31m[-] Error: %s incorrect flag was given!%s\n"
	.text
	.globl	validateFlags
	.type	validateFlags, @function
validateFlags:
.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	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, allowedFlags[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR -12[rbp], -1
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 2
	cmp	eax, edx
	jb	.L6
.L5:
	cmp	DWORD PTR -12[rbp], 0
	js	.L7
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, .LC2[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	validateFlags, .-validateFlags
	.globl	invokeCommands
	.type	invokeCommands, @function
invokeCommands:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 1
	jmp	.L10
.L14:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, allowedFlags[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	cmp	eax, -1
	jne	.L12
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, commandsStore[rip]
	mov	rax, QWORD PTR [rdx+rax]
	call	rax
.L12:
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 2
	cmp	eax, edx
	jb	.L13
	add	DWORD PTR -8[rbp], 1
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -28[rbp], eax
	ja	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	invokeCommands, .-invokeCommands
	.section	.rodata
.LC4:
	.string	"0.1.0"
.LC5:
	.string	"App version: %s\n"
	.text
	.globl	versionCommand
	.type	versionCommand, @function
versionCommand:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	versionCommand, .-versionCommand
	.section	.rodata
.LC6:
	.string	"Help command invoked."
	.text
	.globl	helpCommand
	.type	helpCommand, @function
helpCommand:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	helpCommand, .-helpCommand
	.section	.rodata
.LC7:
	.string	"\033[32m[+] Congratulations!%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L18
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	validateFlags
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	invokeCommands
	jmp	.L19
.L18:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"971287.c"
	.text
	.global	allowedFlags
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--version\000"
	.align	2
.LC1:
	.ascii	"--hep\000"
	.align	2
	.type	allowedFlags, %object
	.size	allowedFlags, 8
allowedFlags:
	.word	.LC0
	.word	.LC1
	.global	commandsStore
	.data
	.align	2
	.type	commandsStore, %object
	.size	commandsStore, 8
commandsStore:
	.word	versionCommand
	.word	helpCommand
	.global	allowedFlagsLength
	.section	.rodata
	.align	2
	.type	allowedFlagsLength, %object
	.size	allowedFlagsLength, 4
allowedFlagsLength:
	.word	2
	.align	2
.LC2:
	.ascii	"\033[0m\000"
	.align	2
.LC3:
	.ascii	"\033[31m[-] Error: %s incorrect flag was given!%s\012"
	.ascii	"\000"
	.text
	.align	2
	.global	validateFlags
	.syntax unified
	.arm
	.fpu softvfp
	.type	validateFlags, %function
validateFlags:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L8:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L6:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, .L9
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L4:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	mov	r2, #2
	cmp	r3, r2
	bcc	.L6
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L9+4
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	allowedFlags
	.word	.LC2
	.word	.LC3
	.size	validateFlags, .-validateFlags
	.align	2
	.global	invokeCommands
	.syntax unified
	.arm
	.fpu softvfp
	.type	invokeCommands, %function
invokeCommands:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L12
.L16:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L15:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, .L17
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r2, .L17+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	blx	r3
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	mov	r2, #2
	cmp	r3, r2
	bcc	.L15
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	allowedFlags
	.word	commandsStore
	.size	invokeCommands, .-invokeCommands
	.section	.rodata
	.align	2
.LC4:
	.ascii	"0.1.0\000"
	.align	2
.LC5:
	.ascii	"App version: %s\012\000"
	.text
	.align	2
	.global	versionCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	versionCommand, %function
versionCommand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L20
	ldr	r0, .L20+4
	bl	printf
	nop
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	.LC5
	.size	versionCommand, .-versionCommand
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Help command invoked.\000"
	.text
	.align	2
	.global	helpCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	helpCommand, %function
helpCommand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L23
	bl	puts
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC6
	.size	helpCommand, .-helpCommand
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\033[32m[+] Congratulations!%s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, [fp, #-8]
	cmp	r3, #1
	ble	.L26
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	validateFlags
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	invokeCommands
	b	.L27
.L26:
	ldr	r1, .L29
	ldr	r0, .L29+4
	bl	printf
.L27:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC2
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
