	.file	"606953.c"
	.intel_syntax noprefix
	.text
	.globl	ar
	.bss
	.align 8
	.type	ar, @object
	.size	ar, 12
ar:
	.zero	12
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	factorial
	.align 32
	.type	factorial, @object
	.size	factorial, 48
factorial:
	.zero	48
	.globl	last
	.align 32
	.type	last, @object
	.size	last, 16384
last:
	.zero	16384
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 11943936
dp:
	.zero	11943936
	.globl	pos
	.align 32
	.type	pos, @object
	.size	pos, 11943936
pos:
	.zero	11943936
	.text
	.globl	backtrack
	.type	backtrack, @function
backtrack:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L2
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	movzx	eax, BYTE PTR ar[rip]
	movsx	eax, al
	movzx	edx, BYTE PTR ar[rip+1]
	movsx	ecx, dl
	movzx	edx, BYTE PTR ar[rip+2]
	movsx	esi, dl
	movzx	edx, BYTE PTR ar[rip+3]
	movsx	r8d, dl
	movzx	edx, BYTE PTR ar[rip+4]
	movsx	edi, dl
	movzx	edx, BYTE PTR ar[rip+5]
	movsx	r9d, dl
	mov	edx, DWORD PTR counter[rip]
	movsx	r10, r9d
	movsx	r8, r8d
	movsx	rdi, edi
	movsx	rcx, ecx
	movsx	rsi, esi
	movsx	r9, eax
	mov	rax, r8
	sal	rax, 3
	add	rax, r8
	sal	rax, 4
	imul	r8, r9, 248832
	add	r8, rax
	mov	rax, rdi
	add	rax, rax
	add	rax, rdi
	sal	rax, 2
	lea	rdi, [r8+rax]
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	lea	rsi, 0[0+rax*8]
	add	rax, rsi
	sal	rax, 6
	lea	rsi, [rdi+rax]
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	add	rax, rcx
	sal	rax, 8
	add	rax, rsi
	add	rax, r10
	lea	rcx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	DWORD PTR [rcx+rax], edx
.L3:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 2
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, last[rip]
	mov	edx, DWORD PTR [rdx+rax]
	lea	eax, 1[rdx]
	mov	ecx, DWORD PTR -24[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*4]
	lea	rcx, last[rip]
	mov	DWORD PTR [rsi+rcx], eax
	movzx	eax, BYTE PTR ar[rip]
	movsx	eax, al
	movzx	ecx, BYTE PTR ar[rip+1]
	movsx	ecx, cl
	movzx	esi, BYTE PTR ar[rip+2]
	movsx	esi, sil
	movzx	edi, BYTE PTR ar[rip+3]
	movsx	r8d, dil
	movzx	edi, BYTE PTR ar[rip+4]
	movsx	edi, dil
	movzx	r9d, BYTE PTR ar[rip+5]
	movsx	r9d, r9b
	movsx	r10, r9d
	movsx	r8, r8d
	movsx	rdi, edi
	movsx	rcx, ecx
	movsx	rsi, esi
	movsx	r9, eax
	mov	rax, r8
	sal	rax, 3
	add	rax, r8
	sal	rax, 4
	imul	r8, r9, 248832
	add	r8, rax
	mov	rax, rdi
	add	rax, rax
	add	rax, rdi
	sal	rax, 2
	lea	rdi, [r8+rax]
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	lea	rsi, 0[0+rax*8]
	add	rax, rsi
	sal	rax, 6
	lea	rsi, [rdi+rax]
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	add	rax, rcx
	sal	rax, 8
	add	rax, rsi
	add	rax, r10
	lea	rcx, 0[0+rax*4]
	lea	rax, pos[rip]
	mov	DWORD PTR [rcx+rax], edx
	jmp	.L9
.L2:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, ar[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	ecx, 1[rdx]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	backtrack
.L7:
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L8
	jmp	.L1
.L9:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	backtrack, .-backtrack
	.globl	Generate
	.type	Generate, @function
Generate:
.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, 16
	mov	edx, 12
	mov	esi, 0
	lea	rdi, ar[rip]
	call	memset@PLT
	mov	edx, 16384
	mov	esi, 0
	lea	rdi, last[rip]
	call	memset@PLT
	mov	DWORD PTR counter[rip], 0
	mov	eax, DWORD PTR n[rip]
	sar	eax
	mov	DWORD PTR m[rip], eax
	mov	DWORD PTR factorial[rip], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, factorial[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, factorial[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L11:
	cmp	DWORD PTR -4[rbp], 11
	jle	.L12
	mov	eax, DWORD PTR n[rip]
	and	eax, 1
	test	eax, eax
	je	.L13
	mov	edx, 1
	mov	esi, 0
	mov	edi, 0
	call	backtrack
	mov	eax, DWORD PTR m[rip]
	add	eax, 1
	mov	DWORD PTR m[rip], eax
	mov	edx, 2
	mov	esi, 0
	mov	edi, 0
	call	backtrack
	mov	eax, DWORD PTR m[rip]
	sub	eax, 1
	mov	DWORD PTR m[rip], eax
	jmp	.L15
.L13:
	mov	edx, 3
	mov	esi, 0
	mov	edi, 0
	call	backtrack
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Generate, .-Generate
	.globl	F
	.type	F, @function
F:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	WORD PTR -16[rbp], 0
	mov	DWORD PTR -14[rbp], 0
	mov	WORD PTR -10[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -20[rbp+rax], dl
	add	DWORD PTR -32[rbp], 1
.L17:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR m[rip]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -24[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -14[rbp+rax], dl
	add	DWORD PTR -32[rbp], 1
.L19:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L20
	movzx	eax, BYTE PTR -20[rbp]
	movsx	eax, al
	movzx	edx, BYTE PTR -19[rbp]
	movsx	edx, dl
	movzx	ecx, BYTE PTR -18[rbp]
	movsx	ecx, cl
	movzx	esi, BYTE PTR -17[rbp]
	movsx	edi, sil
	movzx	esi, BYTE PTR -16[rbp]
	movsx	esi, sil
	movzx	r8d, BYTE PTR -15[rbp]
	movsx	r8d, r8b
	movsx	r9, r8d
	movsx	rdi, edi
	movsx	rsi, esi
	movsx	rdx, edx
	movsx	rcx, ecx
	movsx	r8, eax
	mov	rax, rdi
	sal	rax, 3
	add	rax, rdi
	sal	rax, 4
	imul	rdi, r8, 248832
	add	rdi, rax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	lea	rsi, [rdi+rax]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	add	rax, rcx
	sal	rax, 6
	lea	rcx, [rsi+rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 8
	add	rax, rcx
	add	rax, r9
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, factorial[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	ecx, eax
	mov	r9d, ecx
	movzx	eax, BYTE PTR -14[rbp]
	movsx	eax, al
	movzx	edx, BYTE PTR -13[rbp]
	movsx	edx, dl
	movzx	ecx, BYTE PTR -12[rbp]
	movsx	ecx, cl
	movzx	esi, BYTE PTR -11[rbp]
	movsx	edi, sil
	movzx	esi, BYTE PTR -10[rbp]
	movsx	esi, sil
	movzx	r8d, BYTE PTR -9[rbp]
	movsx	r8d, r8b
	movsx	r10, r8d
	movsx	rdi, edi
	movsx	rsi, esi
	movsx	rdx, edx
	movsx	rcx, ecx
	movsx	r8, eax
	mov	rax, rdi
	sal	rax, 3
	add	rax, rdi
	sal	rax, 4
	imul	rdi, r8, 248832
	add	rdi, rax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	lea	rsi, [rdi+rax]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	add	rax, rcx
	sal	rax, 6
	lea	rcx, [rsi+rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 8
	add	rax, rcx
	add	rax, r10
	lea	rdx, 0[0+rax*4]
	lea	rax, pos[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, r9d
	add	eax, 1
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	F, .-F
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L24
.L29:
	mov	eax, 0
	call	Generate
	mov	DWORD PTR -72[rbp], 0
	jmp	.L25
.L26:
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -72[rbp], 1
.L25:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -72[rbp], eax
	jl	.L26
	mov	DWORD PTR -72[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], edx
	add	DWORD PTR -72[rbp], 1
.L27:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -72[rbp], eax
	jl	.L28
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	F
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L29
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	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	"606953.c"
	.text
	.comm	ar,12,4
	.comm	n,4,4
	.comm	m,4,4
	.comm	counter,4,4
	.comm	factorial,48,4
	.comm	last,16384,4
	.comm	dp,11943936,4
	.comm	pos,11943936,4
	.align	2
	.global	backtrack
	.syntax unified
	.arm
	.fpu softvfp
	.type	backtrack, %function
backtrack:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-40]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, .L10+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r6, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	lr, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	mov	r4, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	mov	r5, r3
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	ip, .L10+12
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	mov	r1, #248832
	mul	r1, r6, r1
	add	r1, r3, r1
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r3, r4
	lsl	r3, r3, #4
	add	r1, r1, r3
	mov	r3, r0
	lsl	r3, r3, #1
	add	r3, r3, r0
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #6
	add	r1, r1, r3
	mov	r3, lr
	lsl	r3, r3, #3
	add	r3, r3, lr
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #8
	add	r3, r1, r3
	add	r3, r3, r5
	str	r2, [ip, r3, lsl #2]
.L3:
	ldr	r3, [fp, #-40]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L9
	ldr	r2, .L10+16
	ldr	r3, [fp, #-36]
	ldr	r2, [r2, r3, lsl #2]
	add	r1, r2, #1
	ldr	r0, .L10+16
	ldr	r3, [fp, #-36]
	str	r1, [r0, r3, lsl #2]
	ldr	r3, .L10+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r6, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	lr, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	mov	r4, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L10+8
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	mov	r5, r3
	ldr	ip, .L10+20
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	mov	r1, #248832
	mul	r1, r6, r1
	add	r1, r3, r1
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r3, r4
	lsl	r3, r3, #4
	add	r1, r1, r3
	mov	r3, r0
	lsl	r3, r3, #1
	add	r3, r3, r0
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #6
	add	r1, r1, r3
	mov	r3, lr
	lsl	r3, r3, #3
	add	r3, r3, lr
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #8
	add	r3, r1, r3
	add	r3, r3, r5
	str	r2, [ip, r3, lsl #2]
	b	.L9
.L2:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L6
.L8:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-24]
	and	r1, r3, #255
	ldr	r2, .L10+8
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r0, r3, #1
	mov	r2, #1
	ldr	r3, [fp, #-24]
	lsl	r2, r2, r3
	ldr	r3, [fp, #-36]
	orr	r3, r2, r3
	ldr	r2, [fp, #-40]
	mov	r1, r3
	bl	backtrack
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldr	r3, .L10+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L8
	b	.L1
.L9:
	nop
.L1:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L11:
	.align	2
.L10:
	.word	m
	.word	counter
	.word	ar
	.word	dp
	.word	last
	.word	pos
	.word	n
	.size	backtrack, .-backtrack
	.align	2
	.global	Generate
	.syntax unified
	.arm
	.fpu softvfp
	.type	Generate, %function
Generate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r2, #12
	mov	r1, #0
	ldr	r0, .L18
	bl	memset
	mov	r2, #16384
	mov	r1, #0
	ldr	r0, .L18+4
	bl	memset
	ldr	r3, .L18+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	asr	r3, r3, #1
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r3, .L18+20
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, .L18+20
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	mul	r2, r3, r2
	ldr	r1, .L18+20
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	ble	.L14
	ldr	r3, .L18+12
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L15
	mov	r2, #1
	mov	r1, #0
	mov	r0, #0
	bl	backtrack
	ldr	r3, .L18+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+16
	str	r3, [r2]
	mov	r2, #2
	mov	r1, #0
	mov	r0, #0
	bl	backtrack
	ldr	r3, .L18+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L18+16
	str	r3, [r2]
	b	.L17
.L15:
	mov	r2, #3
	mov	r1, #0
	mov	r0, #0
	bl	backtrack
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	ar
	.word	last
	.word	counter
	.word	n
	.word	m
	.word	factorial
	.size	Generate, .-Generate
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	F
	.syntax unified
	.arm
	.fpu softvfp
	.type	F, %function
F:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #44
	str	r0, [fp, #-56]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	strh	r3, [fp, #-36]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	strh	r3, [fp, #-28]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L21
.L22:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r1, r3, #1
	str	r1, [fp, #-48]
	and	r2, r2, #255
	sub	r1, fp, #20
	add	r3, r1, r3
	strb	r2, [r3, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L21:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L22
	ldr	r3, .L27+4
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	b	.L23
.L24:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	and	r2, r2, #255
	sub	r1, fp, #20
	add	r3, r1, r3
	strb	r2, [r3, #-12]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L23:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L24
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	mov	r5, r3
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	mov	r4, r3
	ldr	r0, .L27+12
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, #248832
	mul	r2, r5, r2
	add	r2, r3, r2
	mov	r3, lr
	lsl	r3, r3, #3
	add	r3, r3, lr
	lsl	r3, r3, #4
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r2, r2, r3
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, ip
	lsl	r1, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #8
	add	r3, r2, r3
	add	r3, r3, r4
	ldr	r3, [r0, r3, lsl #2]
	sub	r3, r3, #1
	ldr	r1, .L27+16
	ldr	r2, [fp, #-44]
	ldr	r2, [r1, r2, lsl #2]
	mul	r2, r3, r2
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r6, r3
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	mov	r5, r3
	ldr	ip, .L27+20
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	mov	r1, #248832
	mul	r1, r6, r1
	add	r1, r3, r1
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r3, r4
	lsl	r3, r3, #4
	add	r1, r1, r3
	mov	r3, r0
	lsl	r3, r3, #1
	add	r3, r3, r0
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #6
	add	r1, r1, r3
	mov	r3, lr
	lsl	r3, r3, #3
	add	r3, r3, lr
	lsl	r0, r3, #3
	add	r3, r3, r0
	lsl	r3, r3, #8
	add	r3, r1, r3
	add	r3, r3, r5
	ldr	r3, [ip, r3, lsl #2]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	m
	.word	n
	.word	dp
	.word	factorial
	.word	pos
	.size	F, .-F
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L30
.L35:
	bl	Generate
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L31
.L32:
	sub	r2, fp, #56
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L38+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L31:
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L32
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L33
.L34:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	sub	r2, r3, #1
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-52]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L33:
	ldr	r3, .L38+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L34
	sub	r3, fp, #56
	mov	r0, r3
	bl	F
	str	r0, [fp, #-60]
	ldr	r1, [fp, #-60]
	ldr	r0, .L38+12
	bl	printf
.L30:
	ldr	r1, .L38+8
	ldr	r0, .L38+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L35
	mov	r3, #0
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC3
	.word	.LC1
	.word	n
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
