	.file	"671609.c"
	.intel_syntax noprefix
	.text
	.globl	value_of
	.type	value_of, @function
value_of:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	QWORD PTR -8[rbp], rax
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	QWORD PTR -8[rbp], rax
	add	BYTE PTR -9[rbp], 1
.L2:
	cmp	BYTE PTR -9[rbp], 9
	jbe	.L3
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	value_of, .-value_of
	.globl	match_rules
	.type	match_rules, @function
match_rules:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	jne	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	mov	eax, 0
	jmp	.L7
.L8:
	cmp	DWORD PTR -12[rbp], 3
	jg	.L9
	mov	eax, 1
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L10
	mov	eax, 0
	jmp	.L7
.L10:
	cmp	DWORD PTR -12[rbp], 4
	jg	.L11
	mov	eax, 1
	jmp	.L7
.L11:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	je	.L12
	mov	eax, 0
	jmp	.L7
.L12:
	cmp	DWORD PTR -12[rbp], 5
	jg	.L13
	mov	eax, 1
	jmp	.L7
.L13:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	je	.L14
	mov	eax, 0
	jmp	.L7
.L14:
	cmp	DWORD PTR -12[rbp], 6
	jg	.L15
	mov	eax, 1
	jmp	.L7
.L15:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, -1840700269
	shr	rax, 32
	add	eax, edx
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 3
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	je	.L16
	mov	eax, 0
	jmp	.L7
.L16:
	cmp	DWORD PTR -12[rbp], 7
	jg	.L17
	mov	eax, 1
	jmp	.L7
.L17:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	ecx, [rdx+rax]
	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
	test	edx, edx
	je	.L18
	mov	eax, 0
	jmp	.L7
.L18:
	cmp	DWORD PTR -12[rbp], 8
	jg	.L19
	mov	eax, 1
	jmp	.L7
.L19:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	ecx, [rdx+rax]
	movsx	rax, ecx
	imul	rax, rax, 1321528399
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	mov	edx, ecx
	sub	edx, eax
	test	edx, edx
	je	.L20
	mov	eax, 0
	jmp	.L7
.L20:
	cmp	DWORD PTR -12[rbp], 9
	jg	.L21
	mov	eax, 1
	jmp	.L7
.L21:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	ecx, eax, 100
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 9
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 2021161081
	shr	rax, 32
	sar	eax, 3
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 4
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	je	.L22
	mov	eax, 0
	jmp	.L7
.L22:
	mov	eax, 1
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	match_rules, .-match_rules
	.globl	perm
	.type	perm, @function
perm:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 10
	jne	.L24
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	match_rules
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	value_of
	jmp	.L26
.L25:
	mov	eax, 0
	jmp	.L26
.L24:
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	BYTE PTR -11[rbp], al
	jmp	.L27
.L29:
	movzx	edx, BYTE PTR -11[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	movzx	edx, BYTE PTR -11[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	match_rules
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	perm
	add	QWORD PTR -8[rbp], rax
.L28:
	movzx	edx, BYTE PTR -11[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	add	BYTE PTR -11[rbp], 1
.L27:
	cmp	BYTE PTR -11[rbp], 9
	jbe	.L29
	mov	rax, QWORD PTR -8[rbp]
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	perm, .-perm
	.section	.rodata
.LC0:
	.string	"SUM: %llu\n"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -33[rbp], 0
	jmp	.L31
.L32:
	movzx	eax, BYTE PTR -33[rbp]
	cdqe
	movzx	edx, BYTE PTR -33[rbp]
	mov	BYTE PTR -18[rbp+rax], dl
	add	BYTE PTR -33[rbp], 1
.L31:
	cmp	BYTE PTR -33[rbp], 9
	jbe	.L32
	lea	rax, -18[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	perm
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	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	.L34
	call	__stack_chk_fail@PLT
.L34:
	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	"671609.c"
	.text
	.align	2
	.global	value_of
	.syntax unified
	.arm
	.fpu softvfp
	.type	value_of, %function
value_of:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #28
	str	r0, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	strb	r3, [fp, #-37]
	b	.L2
.L3:
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
	ldrb	r3, [fp, #-37]
	add	r3, r3, #1
	strb	r3, [fp, #-37]
.L2:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	value_of, .-value_of
	.align	2
	.global	match_rules
	.syntax unified
	.arm
	.fpu softvfp
	.type	match_rules, %function
match_rules:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	b	.L7
.L6:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	b	.L7
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bgt	.L9
	mov	r3, #1
	b	.L7
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
	mov	r3, #0
	b	.L7
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bgt	.L11
	mov	r3, #1
	b	.L7
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #4
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r1, r3, r2
	ldr	r3, .L23
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L12
	mov	r3, #0
	b	.L7
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	bgt	.L13
	mov	r3, #1
	b	.L7
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #5
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r1, r3, r2
	ldr	r3, .L23+4
	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
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L14
	mov	r3, #0
	b	.L7
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	bgt	.L15
	mov	r3, #1
	b	.L7
.L15:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #6
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r3, r2
	ldr	r3, .L23+8
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r1, r2, r3
	cmp	r1, #0
	beq	.L16
	mov	r3, #0
	b	.L7
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	bgt	.L17
	mov	r3, #1
	b	.L7
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #7
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r1, r3, r2
	ldr	r3, .L23+12
	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, #0
	beq	.L18
	mov	r3, #0
	b	.L7
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	bgt	.L19
	mov	r3, #1
	b	.L7
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #8
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r1, r3, r2
	ldr	r3, .L23+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L20
	mov	r3, #0
	b	.L7
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bgt	.L21
	mov	r3, #1
	b	.L7
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #9
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r1, r3, r2
	ldr	r3, .L23+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	beq	.L22
	mov	r3, #0
	b	.L7
.L22:
	mov	r3, #1
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	1431655766
	.word	1717986919
	.word	-1840700269
	.word	780903145
	.word	1321528399
	.word	2021161081
	.size	match_rules, .-match_rules
	.align	2
	.global	perm
	.syntax unified
	.arm
	.fpu softvfp
	.type	perm, %function
perm:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #10
	bne	.L26
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	match_rules
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, [fp, #-32]
	bl	value_of
	mov	r2, r0
	mov	r3, r1
	b	.L28
.L27:
	mov	r2, #0
	mov	r3, #0
	b	.L28
.L26:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	strb	r3, [fp, #-23]
	b	.L29
.L31:
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-22]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [fp, #-22]
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	match_rules
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	perm
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
.L30:
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [fp, #-22]
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldrb	r3, [fp, #-23]
	add	r3, r3, #1
	strb	r3, [fp, #-23]
.L29:
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L31
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
.L28:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	perm, .-perm
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SUM: %llu\012\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-29]
	b	.L33
.L34:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-29]
	strb	r2, [r3, #-16]
	ldrb	r3, [fp, #-29]
	add	r3, r3, #1
	strb	r3, [fp, #-29]
.L33:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L34
	sub	r3, fp, #20
	mov	r1, #0
	mov	r0, r3
	bl	perm
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L37+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
