	.file	"505052.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -36[rbp]
	lea	rax, -14[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	movzx	edx, BYTE PTR -14[rbp+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	cmp	dl, al
	jg	.L3
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	movzx	edx, BYTE PTR -14[rbp+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	cmp	dl, al
	jne	.L4
	mov	DWORD PTR -24[rbp], 1
	jmp	.L4
.L3:
	mov	eax, 0
	jmp	.L7
.L4:
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 5
	jle	.L6
	mov	eax, DWORD PTR -24[rbp]
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_valid, .-is_valid
	.globl	is_valid_strict
	.type	is_valid_strict, @function
is_valid_strict:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -14[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -80[rbp], 1
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	cdqe
	movzx	edx, BYTE PTR -14[rbp+rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	cmp	dl, al
	jg	.L11
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	cdqe
	movzx	edx, BYTE PTR -14[rbp+rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	cmp	dl, al
	jne	.L12
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], edx
	jmp	.L12
.L11:
	mov	eax, 0
	jmp	.L18
.L12:
	add	DWORD PTR -80[rbp], 1
.L10:
	cmp	DWORD PTR -80[rbp], 5
	jle	.L14
	mov	DWORD PTR -76[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	cmp	eax, 1
	jne	.L16
	mov	eax, 1
	jmp	.L18
.L16:
	add	DWORD PTR -76[rbp], 1
.L15:
	cmp	DWORD PTR -76[rbp], 9
	jle	.L17
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	is_valid_strict, .-is_valid_strict
	.section	.rodata
.LC1:
	.string	"Number of valid: %d\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB2:
	.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	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -20[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	edi, eax
	call	rdx
	test	eax, eax
	je	.L22
	add	DWORD PTR -4[rbp], 1
.L22:
	add	DWORD PTR -20[rbp], 1
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L23
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	run, .-run
	.section	.rodata
.LC2:
	.string	"168630-718098"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 168630
	mov	DWORD PTR -12[rbp], 718098
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, is_valid[rip]
	mov	esi, ecx
	mov	edi, eax
	call	run
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, is_valid_strict[rip]
	mov	esi, ecx
	mov	edi, eax
	call	run
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"505052.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	is_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid, %function
is_valid:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	ldr	r2, [fp, #-32]
	ldr	r1, .L9+4
	mov	r0, r3
	bl	sprintf
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L6:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-12]	@ zero_extendqisi2
	sub	r1, fp, #16
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bhi	.L3
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-12]	@ zero_extendqisi2
	sub	r1, fp, #16
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L3:
	mov	r3, #0
	b	.L7
.L4:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #5
	ble	.L6
	ldr	r3, [fp, #-24]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	is_valid, .-is_valid
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	is_valid_strict
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid_strict, %function
is_valid_strict:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	ldr	r2, [fp, #-80]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	sprintf
	mov	r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #56
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L12
.L16:
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-12]	@ zero_extendqisi2
	sub	r1, fp, #16
	ldr	r3, [fp, #-72]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bhi	.L13
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-12]	@ zero_extendqisi2
	sub	r1, fp, #16
	ldr	r3, [fp, #-72]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L14
	sub	r2, fp, #16
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	add	r2, r3, #1
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-52]
	b	.L14
.L13:
	mov	r3, #0
	b	.L20
.L14:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L12:
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	ble	.L16
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L17
.L19:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	cmp	r3, #1
	bne	.L18
	mov	r3, #1
	b	.L20
.L18:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L17:
	ldr	r3, [fp, #-68]
	cmp	r3, #9
	ble	.L19
	mov	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	.LC0
	.size	is_valid_strict, .-is_valid_strict
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Number of valid: %d\012\000"
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L27:
	ldr	r3, [fp, #-24]
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L27
	ldr	r1, [fp, #-8]
	ldr	r0, .L28
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC3
	.size	run, .-run
	.section	.rodata
	.align	2
.LC4:
	.ascii	"168630-718098\000"
	.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
	ldr	r3, .L32
	str	r3, [fp, #-16]
	ldr	r3, .L32+4
	str	r3, [fp, #-12]
	ldr	r3, .L32+8
	str	r3, [fp, #-8]
	ldr	r2, .L32+12
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	run
	ldr	r2, .L32+16
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	run
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC4
	.word	168630
	.word	718098
	.word	is_valid
	.word	is_valid_strict
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
