	.file	"449798.c"
	.intel_syntax noprefix
	.text
	.globl	arrangment
	.type	arrangment, @function
arrangment:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	jle	.L2
	cmp	DWORD PTR -20[rbp], 0
	jg	.L3
.L2:
	mov	eax, 0
	jmp	.L4
.L3:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -4[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L5:
	sub	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], 0
	jns	.L6
	mov	eax, DWORD PTR -4[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	arrangment, .-arrangment
	.globl	countDifferentNumber
	.type	countDifferentNumber, @function
countDifferentNumber:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	cmp	DWORD PTR -32[rbp], 0
	jns	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L11
	add	DWORD PTR -12[rbp], 1
.L11:
	add	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -8[rbp], 9
	jg	.L12
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L13
.L12:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -32[rbp]
	mov	edx, 10
	sub	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	mov	edi, edx
	call	arrangment
	mov	edx, DWORD PTR -12[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L9
.L15:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -32[rbp]
	lea	edi, -1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	countDifferentNumber
	mov	edx, DWORD PTR -4[rbp]
	add	eax, edx
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	countDifferentNumber, .-countDifferentNumber
	.globl	numDupDigitsAtMostN
	.type	numDupDigitsAtMostN, @function
numDupDigitsAtMostN:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -136[rbp], 0
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -132[rbp], eax
	jmp	.L17
.L18:
	mov	esi, DWORD PTR -136[rbp]
	lea	eax, 1[rsi]
	mov	DWORD PTR -136[rbp], eax
	mov	ecx, DWORD PTR -132[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	edi, ecx
	sar	edi, 31
	sub	eax, edi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, esi
	mov	DWORD PTR -112[rbp+rax*4], edx
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -132[rbp], eax
.L17:
	cmp	DWORD PTR -132[rbp], 0
	jne	.L18
	cmp	DWORD PTR -136[rbp], 1
	jne	.L19
	mov	eax, 0
	jmp	.L24
.L19:
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	lea	ebx, -1[rax]
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	mov	esi, eax
	mov	edi, 9
	call	arrangment
	imul	eax, ebx
	mov	DWORD PTR -128[rbp], eax
	mov	DWORD PTR -124[rbp], 1
	mov	DWORD PTR -120[rbp], 9
	mov	DWORD PTR -116[rbp], 81
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -128[rbp], eax
	add	DWORD PTR -124[rbp], 1
	sub	DWORD PTR -120[rbp], 1
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -116[rbp]
	imul	eax, edx
	mov	DWORD PTR -116[rbp], eax
.L21:
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	cmp	DWORD PTR -124[rbp], eax
	jl	.L22
	cmp	DWORD PTR -136[rbp], 1
	jle	.L23
	add	DWORD PTR -128[rbp], 9
.L23:
	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	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], 1
	mov	eax, DWORD PTR -136[rbp]
	lea	edi, -2[rax]
	lea	rdx, -64[rbp]
	mov	esi, DWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	countDifferentNumber
	mov	edx, DWORD PTR -128[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, edx
.L24:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	numDupDigitsAtMostN, .-numDupDigitsAtMostN
	.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	"449798.c"
	.text
	.align	2
	.global	arrangment
	.syntax unified
	.arm
	.fpu softvfp
	.type	arrangment, %function
arrangment:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L3
.L2:
	mov	r3, #0
	b	.L4
.L3:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L6
	ldr	r3, [fp, #-8]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	arrangment, .-arrangment
	.align	2
	.global	countDifferentNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	countDifferentNumber, %function
countDifferentNumber:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L8
	mov	r3, #0
	b	.L9
.L8:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L13:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L11
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	bgt	.L12
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L13
.L12:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	b	.L9
.L14:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	rsb	r3, r3, #10
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	arrangment
	mov	r2, r0
	ldr	r3, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L15
	ldr	r3, [fp, #-8]
	b	.L9
.L15:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	countDifferentNumber
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	countDifferentNumber, .-countDifferentNumber
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	numDupDigitsAtMostN
	.syntax unified
	.arm
	.fpu softvfp
	.type	numDupDigitsAtMostN, %function
numDupDigitsAtMostN:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	str	r0, [fp, #-128]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-116]
	b	.L17
.L18:
	ldr	r0, [fp, #-120]
	add	r3, r0, #1
	str	r3, [fp, #-120]
	ldr	r1, [fp, #-116]
	ldr	r3, .L26+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r0, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-116]
	ldr	r2, .L26+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-116]
.L17:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	bne	.L19
	mov	r3, #0
	b	.L24
.L19:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	sub	r4, r3, #1
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, #9
	bl	arrangment
	mov	r3, r0
	mul	r3, r4, r3
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-108]
	mov	r3, #9
	str	r3, [fp, #-104]
	mov	r3, #81
	str	r3, [fp, #-100]
	b	.L21
.L22:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	mul	r3, r2, r3
	str	r3, [fp, #-100]
.L21:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	ble	.L23
	ldr	r3, [fp, #-112]
	add	r3, r3, #9
	str	r3, [fp, #-112]
.L23:
	sub	r3, fp, #56
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-120]
	sub	r2, r3, #2
	sub	r3, fp, #56
	sub	r0, fp, #96
	ldr	r1, [fp, #-120]
	bl	countDifferentNumber
	mov	r2, r0
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [fp, #-128]
	sub	r3, r2, r3
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	1717986919
	.size	numDupDigitsAtMostN, .-numDupDigitsAtMostN
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
