	.file	"294374.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L5:
	call	getchar@PLT
	mov	BYTE PTR -25[rbp], al
	cmp	BYTE PTR -25[rbp], 10
	je	.L8
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR -20[rbp+rax], dl
	add	DWORD PTR -24[rbp], 1
.L2:
	cmp	DWORD PTR -24[rbp], 11
	jle	.L5
	jmp	.L4
.L8:
	nop
.L4:
	mov	edx, DWORD PTR -24[rbp]
	lea	rax, -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	is_valid
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	is_valid
	.type	is_valid, @function
is_valid:
.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 -16[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -28[rbp], 10
	je	.L10
	mov	eax, 0
	jmp	.L11
.L10:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L12
	cmp	DWORD PTR -8[rbp], 12
	jle	.L13
	cmp	DWORD PTR -8[rbp], 33
	jle	.L14
.L13:
	cmp	DWORD PTR -8[rbp], 12
	jle	.L15
	cmp	DWORD PTR -8[rbp], 53
	jg	.L15
.L14:
	mov	eax, 0
	jmp	.L11
.L15:
	cmp	DWORD PTR -4[rbp], 31
	jle	.L16
	mov	eax, 0
	jmp	.L11
.L16:
	cmp	DWORD PTR -8[rbp], 52
	ja	.L17
	mov	eax, DWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L19[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L19[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L19:
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L20-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L20-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L20-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.text
.L18:
	cmp	DWORD PTR -4[rbp], 31
	jle	.L20
	mov	eax, 0
	jmp	.L11
.L20:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L21
	cmp	DWORD PTR -4[rbp], 29
	jle	.L17
	mov	eax, 0
	jmp	.L11
.L21:
	cmp	DWORD PTR -4[rbp], 28
	jle	.L17
	mov	eax, 0
	jmp	.L11
.L17:
	cmp	DWORD PTR -4[rbp], 30
	jle	.L22
	mov	eax, 0
	jmp	.L11
.L22:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, eax
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	sal	eax, 2
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	sal	eax, 3
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	add	DWORD PTR -16[rbp], eax
	mov	ecx, DWORD PTR -16[rbp]
	movsx	rax, ecx
	imul	rax, rax, 780903145
	shr	rax, 32
	sar	eax
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, edx
	sub	ecx, eax
	mov	edx, ecx
	cmp	edx, 9
	jg	.L23
	mov	edx, DWORD PTR -16[rbp]
	movsx	rax, edx
	imul	rax, rax, 780903145
	shr	rax, 32
	sar	eax
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -16[rbp], edx
	jmp	.L24
.L23:
	mov	DWORD PTR -16[rbp], 0
.L24:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 9
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cmp	DWORD PTR -16[rbp], eax
	je	.L12
	mov	eax, 0
	jmp	.L11
.L12:
	mov	eax, 1
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_valid, .-is_valid
	.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	"294374.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L5:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L8
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [fp, #-25]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #11
	ble	.L5
	b	.L4
.L8:
	nop
.L4:
	sub	r3, fp, #20
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	is_valid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L9
	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}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	is_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid, %function
is_valid:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r3, #10
	beq	.L12
	mov	r3, #0
	b	.L13
.L12:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L15
	ldr	r3, [fp, #-12]
	cmp	r3, #33
	ble	.L16
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #53
	bgt	.L17
.L16:
	mov	r3, #0
	b	.L13
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #31
	ble	.L18
	mov	r3, #0
	b	.L13
.L18:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #51
	ldrls	pc, [pc, r3, asl #2]
	b	.L19
.L21:
	.word	.L20
	.word	.L22
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L20
	.word	.L22
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L20
	.word	.L22
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L20
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L20
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #31
	ble	.L22
	mov	r3, #0
	b	.L13
.L22:
	ldr	r3, [fp, #-16]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	ble	.L19
	mov	r3, #0
	b	.L13
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #28
	ble	.L19
	mov	r3, #0
	b	.L13
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #30
	ble	.L24
	mov	r3, #0
	b	.L13
.L24:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r3, .L27
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #9
	bgt	.L25
	ldr	r2, [fp, #-20]
	ldr	r3, .L27
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L26
.L25:
	mov	r3, #0
	str	r3, [fp, #-20]
.L26:
	ldr	r3, [fp, #-24]
	add	r3, r3, #9
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L14
	mov	r3, #0
	b	.L13
.L14:
	mov	r3, #1
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	780903145
	.size	is_valid, .-is_valid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
