	.file	"22882.c"
	.intel_syntax noprefix
	.text
	.globl	is_valid
	.type	is_valid, @function
is_valid:
.LFB0:
	.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	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, ecx
	mov	BYTE PTR -16[rbp], al
	cmp	BYTE PTR -16[rbp], 43
	jne	.L2
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	sete	al
	jmp	.L3
.L2:
	cmp	BYTE PTR -16[rbp], 45
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -12[rbp], eax
	sete	al
	jmp	.L3
.L4:
	cmp	BYTE PTR -16[rbp], 42
	jne	.L5
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -12[rbp], eax
	sete	al
	jmp	.L3
.L5:
	cmp	BYTE PTR -16[rbp], 73
	jne	.L6
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 43
	mov	edi, eax
	call	is_valid
	test	al, al
	jne	.L7
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 45
	mov	edi, eax
	call	is_valid
	test	al, al
	jne	.L7
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 42
	mov	edi, eax
	call	is_valid
	test	al, al
	jne	.L7
	mov	eax, 1
	jmp	.L3
.L7:
	mov	eax, 0
	jmp	.L3
.L6:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_valid, .-is_valid
	.section	.rodata
.LC0:
	.string	"%d %d=%d\n"
.LC1:
	.string	"%50s"
.LC2:
	.string	"%hhu "
.LC3:
	.string	"You Shall All Pass!"
.LC4:
	.string	"None Shall Pass!"
.LC5:
	.string	"%s%c"
.LC6:
	.string	"%hhu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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, 248
	.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
	jmp	.L10
.L41:
	mov	rax, rsp
	mov	rbx, rax
	movzx	edx, BYTE PTR -182[rbp]
	movzx	eax, dl
	sub	rax, 1
	mov	QWORD PTR -176[rbp], rax
	movzx	eax, dl
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movzx	eax, dl
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movzx	eax, dl
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L11:
	cmp	rsp, rcx
	je	.L12
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L11
.L12:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L13
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L13:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -168[rbp], rax
	movzx	edx, BYTE PTR -182[rbp]
	movzx	eax, dl
	sub	rax, 1
	mov	QWORD PTR -160[rbp], rax
	movzx	eax, dl
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	movzx	eax, dl
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movzx	eax, dl
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L14:
	cmp	rsp, rcx
	je	.L15
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L14
.L15:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L16
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L16:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -152[rbp], rax
	movzx	edx, BYTE PTR -182[rbp]
	movzx	eax, dl
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	movzx	eax, dl
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	movzx	eax, dl
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	movzx	eax, dl
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L17:
	cmp	rsp, rcx
	je	.L18
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L17
.L18:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L19
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L19:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -136[rbp], rax
	movzx	esi, BYTE PTR -182[rbp]
	movzx	eax, sil
	sub	rax, 1
	mov	QWORD PTR -128[rbp], rax
	movzx	eax, sil
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 408
	imul	rax, r14, 0
	lea	rcx, [rdx+rax]
	mov	eax, 408
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	movzx	eax, sil
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 408
	imul	rax, r12, 0
	lea	rcx, [rdx+rax]
	mov	eax, 408
	mul	r12
	add	rcx, rdx
	mov	rdx, rcx
	movzx	eax, sil
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L20:
	cmp	rsp, rcx
	je	.L21
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L20
.L21:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L22
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L22:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -120[rbp], rax
	mov	BYTE PTR -180[rbp], 0
	mov	BYTE PTR -178[rbp], 0
	jmp	.L23
.L24:
	movzx	eax, BYTE PTR -178[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -178[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, [rdx+rax]
	movzx	eax, BYTE PTR -178[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -178[rbp]
	add	eax, 1
	mov	BYTE PTR -178[rbp], al
.L23:
	movzx	eax, BYTE PTR -182[rbp]
	cmp	BYTE PTR -178[rbp], al
	jb	.L24
	mov	BYTE PTR -178[rbp], 0
	jmp	.L25
.L27:
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -181[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	BYTE PTR -177[rbp], al
	movzx	eax, BYTE PTR -181[rbp]
	sub	eax, 1
	mov	BYTE PTR -181[rbp], al
	movsx	ecx, BYTE PTR -177[rbp]
	movzx	eax, BYTE PTR -181[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR -136[rbp]
	cdqe
	mov	edi, DWORD PTR [rdx+rax*4]
	movzx	eax, BYTE PTR -181[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR -152[rbp]
	cdqe
	mov	esi, DWORD PTR [rdx+rax*4]
	movzx	eax, BYTE PTR -181[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	edx, edi
	mov	edi, eax
	call	is_valid
	test	al, al
	jne	.L26
	movzx	eax, BYTE PTR -180[rbp]
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	lea	rax, -112[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	movzx	eax, BYTE PTR -180[rbp]
	add	eax, 1
	mov	BYTE PTR -180[rbp], al
.L26:
	movzx	eax, BYTE PTR -178[rbp]
	add	eax, 1
	mov	BYTE PTR -178[rbp], al
.L25:
	movzx	eax, BYTE PTR -182[rbp]
	cmp	BYTE PTR -178[rbp], al
	jb	.L27
	cmp	BYTE PTR -180[rbp], 0
	jne	.L28
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L29
.L28:
	movzx	eax, BYTE PTR -182[rbp]
	cmp	BYTE PTR -180[rbp], al
	jne	.L30
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L29
.L30:
	movzx	eax, BYTE PTR -180[rbp]
	mov	BYTE PTR -179[rbp], al
	mov	BYTE PTR -177[rbp], 32
	jmp	.L31
.L40:
	mov	BYTE PTR -178[rbp], 0
	jmp	.L32
.L35:
	movzx	eax, BYTE PTR -178[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L44
	movzx	eax, BYTE PTR -178[rbp]
	add	eax, 1
	mov	BYTE PTR -178[rbp], al
.L32:
	movzx	eax, BYTE PTR -178[rbp]
	cmp	al, BYTE PTR -180[rbp]
	jb	.L35
	jmp	.L34
.L44:
	nop
.L34:
	movzx	eax, BYTE PTR -178[rbp]
	mov	BYTE PTR -181[rbp], al
	jmp	.L36
.L38:
	movzx	eax, BYTE PTR -178[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L37
	movzx	eax, BYTE PTR -181[rbp]
	movzx	eax, al
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -178[rbp]
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rsi, rcx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jns	.L37
	movzx	eax, BYTE PTR -178[rbp]
	mov	BYTE PTR -181[rbp], al
.L37:
	movzx	eax, BYTE PTR -178[rbp]
	add	eax, 1
	mov	BYTE PTR -178[rbp], al
.L36:
	movzx	eax, BYTE PTR -178[rbp]
	cmp	al, BYTE PTR -180[rbp]
	jb	.L38
	cmp	BYTE PTR -179[rbp], 0
	jne	.L39
	mov	BYTE PTR -177[rbp], 10
.L39:
	movsx	ecx, BYTE PTR -177[rbp]
	movzx	eax, BYTE PTR -181[rbp]
	movzx	eax, al
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -181[rbp]
	movzx	eax, al
	cdqe
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rdx
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L31:
	movzx	edx, BYTE PTR -179[rbp]
	lea	eax, -1[rdx]
	mov	BYTE PTR -179[rbp], al
	test	dl, dl
	jne	.L40
	mov	rsp, rbx
	jmp	.L10
.L29:
	mov	rsp, rbx
.L10:
	lea	rax, -182[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L41
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"22882.c"
	.text
	.align	2
	.global	is_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid, %function
is_valid:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L3
.L2:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L4
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L3
.L4:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L5
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L3
.L5:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #73
	bne	.L6
	mov	r3, #43
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	is_valid
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #45
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	is_valid
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #42
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	is_valid
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	and	r3, r3, #255
	b	.L3
.L6:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_valid, .-is_valid
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d=%d\012\000"
	.align	2
.LC1:
	.ascii	"%50s\000"
	.align	2
.LC2:
	.ascii	"%hhu \000"
	.align	2
.LC3:
	.ascii	"You Shall All Pass!\000"
	.align	2
.LC4:
	.ascii	"None Shall Pass!\000"
	.align	2
.LC5:
	.ascii	"%s%c\000"
	.align	2
.LC6:
	.ascii	"%hhu\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #100
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	b	.L10
.L29:
	mov	r3, sp
	mov	r8, r3
	ldrb	ip, [fp, #-122]	@ zero_extendqisi2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-116]
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	and	r0, ip, #255
	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, #-112]
	ldrb	ip, [fp, #-122]	@ zero_extendqisi2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-108]
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	and	r0, ip, #255
	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, #-104]
	ldrb	ip, [fp, #-122]	@ zero_extendqisi2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	and	r0, ip, #255
	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, #-96]
	ldrb	ip, [fp, #-122]	@ zero_extendqisi2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-92]
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	strb	r3, [fp, #-120]
	mov	r3, #0
	strb	r3, [fp, #-118]
	b	.L11
.L12:
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r1, r2, r3
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r0, r2, r3
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L33+4
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-118]
.L11:
	ldrb	r3, [fp, #-122]	@ zero_extendqisi2
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L12
	mov	r3, #0
	strb	r3, [fp, #-118]
	b	.L13
.L15:
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	sub	r3, fp, #121
	mov	r1, r3
	ldr	r0, .L33+12
	bl	__isoc99_scanf
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-117]
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-121]
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-112]
	ldr	r0, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-104]
	ldr	r1, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	bl	is_valid
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldrb	r2, [fp, #-120]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldrb	r3, [fp, #-120]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-120]
.L14:
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-118]
.L13:
	ldrb	r3, [fp, #-122]	@ zero_extendqisi2
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L15
	ldrb	r3, [fp, #-120]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L33+16
	bl	puts
	b	.L17
.L16:
	ldrb	r3, [fp, #-122]	@ zero_extendqisi2
	ldrb	r2, [fp, #-120]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L18
	ldr	r0, .L33+20
	bl	puts
	b	.L17
.L18:
	ldrb	r3, [fp, #-120]
	strb	r3, [fp, #-119]
	mov	r3, #32
	strb	r3, [fp, #-117]
	b	.L19
.L28:
	mov	r3, #0
	strb	r3, [fp, #-118]
	b	.L20
.L23:
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	ldr	r1, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-118]
.L20:
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	ldrb	r3, [fp, #-120]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L23
	b	.L22
.L32:
	nop
.L22:
	ldrb	r3, [fp, #-118]
	strb	r3, [fp, #-121]
	b	.L24
.L26:
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	ldr	r1, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-88]
	add	r0, r2, r3
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L25
	ldrb	r3, [fp, #-118]
	strb	r3, [fp, #-121]
.L25:
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-118]
.L24:
	ldrb	r2, [fp, #-118]	@ zero_extendqisi2
	ldrb	r3, [fp, #-120]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L26
	ldrb	r3, [fp, #-119]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
	mov	r3, #10
	strb	r3, [fp, #-117]
.L27:
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldrb	r2, [fp, #-117]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L33+24
	bl	printf
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L19:
	ldrb	r3, [fp, #-119]	@ zero_extendqisi2
	sub	r2, r3, #1
	strb	r2, [fp, #-119]
	cmp	r3, #0
	bne	.L28
	mov	sp, r8
	b	.L10
.L17:
	mov	sp, r8
.L10:
	sub	r3, fp, #122
	mov	r1, r3
	ldr	r0, .L33+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
