	.file	"182952813.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"----DFA Assignment----"
	.align 8
.LC1:
	.string	"\nEnter total number of states:"
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"\nEnter total number of input symbols:"
.LC4:
	.string	"\nEnter name of symbol %d:"
.LC5:
	.string	"%s"
	.align 8
.LC6:
	.string	"\nMultiple characters cannot be taken as input symbol!!!"
	.align 8
.LC7:
	.string	"\nEnter the number of final states:"
	.align 8
.LC8:
	.string	"\nNumber of final states cannot be zero or negative!!"
	.align 8
.LC9:
	.string	"\nNumber of final states cannot be greater than total states!!!"
.LC10:
	.string	"\nFinal state %d : q"
.LC11:
	.string	"\nInvalid final state!!"
	.align 8
.LC12:
	.string	"\nDefine transitions as\t(initial state, input symbol ) = target state"
	.align 8
.LC13:
	.string	"\nEnter -1 if the target state is NULL"
.LC14:
	.string	"\n(q%d , %s ) = q"
.LC15:
	.string	"\nState Does not exit!!!"
	.align 8
.LC16:
	.string	"\nEvery non-existing state will be taken as state NULL"
	.align 8
.LC17:
	.string	"\nContinue or Re-enter state(1/0)\t"
.LC18:
	.string	"\nEnter Input String :"
	.align 8
.LC19:
	.string	"\nString Terminated at state:q%d"
.LC20:
	.string	"\nString accepted."
.LC21:
	.string	"\nString not accepted."
.LC22:
	.string	"\nContinue?(1/0):"
	.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	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -96[rbp], 1
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -108[rbp]
	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, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -92[rbp], 1
.L2:
	mov	eax, DWORD PTR -108[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L3
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L4
.L8:
	mov	DWORD PTR -96[rbp], 1
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L6
	mov	DWORD PTR -96[rbp], 0
	jmp	.L5
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L5:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	je	.L7
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -92[rbp], 1
.L4:
	mov	eax, DWORD PTR -104[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L8
	jmp	.L9
.L17:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -100[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -100[rbp]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -108[rbp]
	cmp	edx, eax
	jle	.L11
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -92[rbp], 0
	jmp	.L12
.L16:
	mov	DWORD PTR -96[rbp], 1
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L14
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	cmp	edx, eax
	jge	.L14
	mov	DWORD PTR -96[rbp], 0
	jmp	.L13
.L14:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	je	.L15
	add	DWORD PTR -92[rbp], 1
.L12:
	mov	eax, DWORD PTR -100[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L16
.L9:
	mov	eax, DWORD PTR -100[rbp]
	test	eax, eax
	jle	.L17
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -108[rbp]
	cmp	edx, eax
	jg	.L17
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L18
.L24:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L19
.L23:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L21
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	cmp	edx, eax
	jge	.L21
	mov	DWORD PTR -96[rbp], 1
	jmp	.L20
.L21:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L20:
	mov	eax, DWORD PTR -96[rbp]
	test	eax, eax
	je	.L22
	add	DWORD PTR -88[rbp], 1
.L19:
	mov	eax, DWORD PTR -104[rbp]
	cmp	DWORD PTR -88[rbp], eax
	jl	.L23
	add	DWORD PTR -92[rbp], 1
.L18:
	mov	eax, DWORD PTR -108[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L24
	jmp	.L25
.L37:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L26
.L29:
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax]
	movsx	eax, al
	mov	rdi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	esi, DWORD PTR -84[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	check
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L27
	mov	DWORD PTR -96[rbp], 0
.L27:
	add	DWORD PTR -92[rbp], 1
.L26:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L28
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax]
	test	al, al
	jne	.L29
.L28:
	cmp	DWORD PTR -84[rbp], -1
	je	.L30
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L31
.L34:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -84[rbp], eax
	jne	.L32
	mov	DWORD PTR -80[rbp], 1
.L32:
	add	DWORD PTR -92[rbp], 1
.L31:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L33
	mov	eax, DWORD PTR -100[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jge	.L33
	cmp	DWORD PTR -80[rbp], 0
	je	.L34
.L33:
	cmp	DWORD PTR -80[rbp], 1
	jne	.L35
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L36
.L35:
	lea	rdi, .LC21[rip]
	call	puts@PLT
.L36:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L25:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	je	.L37
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	check
	.type	check, @function
check:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	mov	BYTE PTR -20[rbp], al
	movsx	eax, BYTE PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L41
.L44:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L42
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L43
.L42:
	add	DWORD PTR -12[rbp], 1
.L41:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L44
	mov	eax, -1
.L43:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check, .-check
	.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	"182952813.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"----DFA Assignment----\000"
	.align	2
.LC1:
	.ascii	"\012Enter total number of states:\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\012Enter total number of input symbols:\000"
	.align	2
.LC4:
	.ascii	"\012Enter name of symbol %d:\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"\012Multiple characters cannot be taken as input sy"
	.ascii	"mbol!!!\000"
	.align	2
.LC7:
	.ascii	"\012Enter the number of final states:\000"
	.align	2
.LC8:
	.ascii	"\012Number of final states cannot be zero or negati"
	.ascii	"ve!!\000"
	.align	2
.LC9:
	.ascii	"\012Number of final states cannot be greater than t"
	.ascii	"otal states!!!\000"
	.align	2
.LC10:
	.ascii	"\012Final state %d : q\000"
	.align	2
.LC11:
	.ascii	"\012Invalid final state!!\000"
	.align	2
.LC12:
	.ascii	"\012Define transitions as\011(initial state, input "
	.ascii	"symbol ) = target state\000"
	.align	2
.LC13:
	.ascii	"\012Enter -1 if the target state is NULL\000"
	.align	2
.LC14:
	.ascii	"\012(q%d , %s ) = q\000"
	.align	2
.LC15:
	.ascii	"\012State Does not exit!!!\000"
	.align	2
.LC16:
	.ascii	"\012Every non-existing state will be taken as state"
	.ascii	" NULL\000"
	.align	2
.LC17:
	.ascii	"\012Continue or Re-enter state(1/0)\011\000"
	.align	2
.LC18:
	.ascii	"\012Enter Input String :\000"
	.align	2
.LC19:
	.ascii	"\012String Terminated at state:q%d\000"
	.align	2
.LC20:
	.ascii	"\012String accepted.\000"
	.align	2
.LC21:
	.ascii	"\012String not accepted.\000"
	.align	2
.LC22:
	.ascii	"\012Continue?(1/0):\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #1
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-72]
	ldr	r0, .L40+4
	bl	puts
	ldr	r0, .L40+8
	bl	printf
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
	ldr	r0, .L40+16
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L2
.L3:
	ldr	r3, [fp, #-80]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L2:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L4
.L8:
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L5
.L7:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L40+20
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L40+24
	bl	__isoc99_scanf
	sub	r3, fp, #36
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L5
.L6:
	ldr	r0, .L40+28
	bl	puts
.L5:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	beq	.L7
	sub	r3, fp, #36
	mov	r0, r3
	bl	strlen
	mov	r1, r0
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L4:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L8
	b	.L9
.L17:
	ldr	r0, .L40+32
	bl	printf
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L40+36
	bl	puts
	b	.L9
.L10:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	ble	.L11
	ldr	r0, .L40+40
	bl	puts
	b	.L9
.L11:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L12
.L16:
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L13
.L15:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L40+44
	bl	printf
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L14
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bge	.L14
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L13
.L14:
	ldr	r0, .L40+48
	bl	printf
.L13:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	beq	.L15
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L12:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L16
.L9:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	ble	.L17
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bgt	.L17
	ldr	r0, .L40+52
	bl	printf
	ldr	r0, .L40+56
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L18
.L24:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L19
.L23:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L20
.L22:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-68]
	ldr	r0, .L40+60
	bl	printf
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L21
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	bge	.L21
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L20
.L21:
	ldr	r0, .L40+64
	bl	puts
	ldr	r0, .L40+68
	bl	puts
	ldr	r0, .L40+72
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
.L20:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L19:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L18:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L24
	b	.L25
.L37:
	ldr	r0, .L40+76
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L40+24
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L26
.L29:
	sub	r2, fp, #36
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-56]
	bl	check
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L27
	mov	r3, #0
	str	r3, [fp, #-72]
.L27:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L26:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bne	.L28
	sub	r2, fp, #36
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L29
.L28:
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	beq	.L30
	ldr	r1, [fp, #-56]
	ldr	r0, .L40+80
	bl	printf
.L30:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L31
.L34:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L32
	mov	r3, #1
	str	r3, [fp, #-52]
.L32:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L31:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bne	.L33
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bge	.L33
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L34
.L33:
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L35
	ldr	r0, .L40+84
	bl	puts
	b	.L36
.L35:
	ldr	r0, .L40+88
	bl	puts
.L36:
	ldr	r0, .L40+92
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L40+12
	bl	__isoc99_scanf
.L25:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	beq	.L37
	mov	r3, #0
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC23
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L43
.L46:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L45
.L44:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L46
	mvn	r3, #0
.L45:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check, .-check
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
