Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
*r;main(p,q,l){for(;~scanf("%d%d",&p,&q);){for(r=calloc(q*4,l=1);*r=!r[p%=q];putchar(p/q+48))r[p]=l++,p*=10;for(puts("");p*l;)putchar(--l?--r[p]>0?32:94:10);}}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L24
	movl	8(%rsp), %r14d
	movl	$1, %esi
	leal	0(,%r14,4), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rcx
	movq	%rax, r(%rip)
	movl	12(%rsp), %eax
	cltd
	idivl	%r14d
	movslq	%edx, %rax
	movl	%edx, 12(%rsp)
	movl	(%rcx,%rax,4), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movl	%eax, (%rcx)
	jne	.L3
	movl	$1, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	movl	12(%rsp), %edx
	movl	%r14d, %eax
.L5:
	movslq	%edx, %rdx
	leal	1(%rax), %r14d
	movl	%eax, (%rcx,%rdx,4)
	movl	12(%rsp), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	cltd
	movl	%eax, 12(%rsp)
	idivl	8(%rsp)
	leal	48(%rax), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	movq	r(%rip), %rcx
	cltd
	idivl	8(%rsp)
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%edx, %edx
	sete	%al
	movl	%eax, (%rcx)
	je	.L25
	movq	%r13, %rdi
	call	puts@PLT
.L22:
	movslq	12(%rsp), %rax
	movl	%r14d, %edx
	imull	%eax, %edx
	testl	%edx, %edx
	je	.L2
.L6:
	subl	$1, %r14d
	jne	.L26
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	movq	r(%rip), %rdx
	leaq	(%rdx,%rax,4), %rdx
	movl	(%rdx), %eax
	subl	$1, %eax
	movl	%eax, (%rdx)
	testl	%eax, %eax
	jle	.L9
	movl	$32, %edi
	call	putchar@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$94, %edi
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	%eax, %edx
	imull	%r14d, %edx
	testl	%edx, %edx
	jne	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r13, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L24
	movl	8(%rsp), %r14d
	movl	$1, %esi
	leal	0(,%r14,4), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rcx
	movq	%rax, r(%rip)
	movl	12(%rsp), %eax
	cltd
	idivl	%r14d
	movslq	%edx, %rax
	movl	%edx, 12(%rsp)
	movl	(%rcx,%rax,4), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movl	%eax, (%rcx)
	jne	.L3
	movl	$1, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	movl	12(%rsp), %edx
	movl	%r14d, %eax
.L5:
	movslq	%edx, %rdx
	leal	1(%rax), %r14d
	movl	%eax, (%rcx,%rdx,4)
	movl	12(%rsp), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	cltd
	movl	%eax, 12(%rsp)
	idivl	8(%rsp)
	leal	48(%rax), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	movq	r(%rip), %rcx
	cltd
	idivl	8(%rsp)
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%edx, %edx
	sete	%al
	movl	%eax, (%rcx)
	je	.L25
	movq	%r13, %rdi
	call	puts@PLT
.L22:
	movslq	12(%rsp), %rax
	movl	%r14d, %edx
	imull	%eax, %edx
	testl	%edx, %edx
	je	.L2
.L6:
	subl	$1, %r14d
	jne	.L26
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	movq	r(%rip), %rdx
	leaq	(%rdx,%rax,4), %rdx
	movl	(%rdx), %eax
	subl	$1, %eax
	movl	%eax, (%rdx)
	testl	%eax, %eax
	jle	.L9
	movl	$32, %edi
	call	putchar@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$94, %edi
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	%eax, %edx
	imull	%r14d, %edx
	testl	%edx, %edx
	jne	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r13, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L24
	movl	8(%rsp), %r14d
	movl	$1, %esi
	leal	0(,%r14,4), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rcx
	movq	%rax, r(%rip)
	movl	12(%rsp), %eax
	cltd
	idivl	%r14d
	movslq	%edx, %rax
	movl	%edx, 12(%rsp)
	movl	(%rcx,%rax,4), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movl	%eax, (%rcx)
	jne	.L3
	movl	$1, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	movl	12(%rsp), %edx
	movl	%r14d, %eax
.L5:
	movslq	%edx, %rdx
	leal	1(%rax), %r14d
	movl	%eax, (%rcx,%rdx,4)
	movl	12(%rsp), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	cltd
	movl	%eax, 12(%rsp)
	idivl	8(%rsp)
	leal	48(%rax), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	movq	r(%rip), %rcx
	cltd
	idivl	8(%rsp)
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%edx, %edx
	sete	%al
	movl	%eax, (%rcx)
	je	.L25
	movq	%r13, %rdi
	call	puts@PLT
.L22:
	movslq	12(%rsp), %rax
	movl	%r14d, %edx
	imull	%eax, %edx
	testl	%edx, %edx
	je	.L2
.L6:
	subl	$1, %r14d
	jne	.L26
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	movq	r(%rip), %rdx
	leaq	(%rdx,%rax,4), %rdx
	movl	(%rdx), %eax
	subl	$1, %eax
	movl	%eax, (%rdx)
	testl	%eax, %eax
	jle	.L9
	movl	$32, %edi
	call	putchar@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$94, %edi
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	%eax, %edx
	imull	%r14d, %edx
	testl	%edx, %edx
	jne	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r13, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
```c
*r;main(p,q,l){for(;~scanf("%d%d",&p,&q);){for(r=calloc(q*4,l=1);*r=!r[p%=q];putchar(p/q+48))r[p]=l++,p*=10;for(puts("");p*l;)putchar(--l?--r[p]>0?32:94:10);}}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
*r;main(p,q,l){for(;~scanf("%d%d",&p,&q);){for(r=calloc(q*4,l=1);*r=!r[p%=q];putchar(p/q+48))r[p]=l++,p*=10;for(puts("");p*l;)putchar(--l?--r[p]>0?32:94:10);}}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

1 12
10000 32768
1 11100
1 459550

083
  ^
30517578125
00009
  ^^^
00000217604178
  ^^^^^^^^^^^^

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
*r;main(p,q,l){for(;~scanf("%d%d",&p,&q);){for(r=calloc(q*4,l=1);*r=!r[p%=q];putchar(p/q+48))r[p]=l++,p*=10;for(puts("");p*l;)putchar(--l?--r[p]>0?32:94:10);}}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L24
	movl	8(%rsp), %r14d
	movl	$1, %esi
	leal	0(,%r14,4), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rcx
	movq	%rax, r(%rip)
	movl	12(%rsp), %eax
	cltd
	idivl	%r14d
	movslq	%edx, %rax
	movl	%edx, 12(%rsp)
	movl	(%rcx,%rax,4), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movl	%eax, (%rcx)
	jne	.L3
	movl	$1, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	movl	12(%rsp), %edx
	movl	%r14d, %eax
.L5:
	movslq	%edx, %rdx
	leal	1(%rax), %r14d
	movl	%eax, (%rcx,%rdx,4)
	movl	12(%rsp), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	cltd
	movl	%eax, 12(%rsp)
	idivl	8(%rsp)
	leal	48(%rax), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	movq	r(%rip), %rcx
	cltd
	idivl	8(%rsp)
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%edx, %edx
	sete	%al
	movl	%eax, (%rcx)
	je	.L25
	movq	%r13, %rdi
	call	puts@PLT
.L22:
	movslq	12(%rsp), %rax
	movl	%r14d, %edx
	imull	%eax, %edx
	testl	%edx, %edx
	je	.L2
.L6:
	subl	$1, %r14d
	jne	.L26
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	movq	r(%rip), %rdx
	leaq	(%rdx,%rax,4), %rdx
	movl	(%rdx), %eax
	subl	$1, %eax
	movl	%eax, (%rdx)
	testl	%eax, %eax
	jle	.L9
	movl	$32, %edi
	call	putchar@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$94, %edi
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	%eax, %edx
	imull	%r14d, %edx
	testl	%edx, %edx
	jne	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r13, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L24
	movl	8(%rsp), %r14d
	movl	$1, %esi
	leal	0(,%r14,4), %edi
	movslq	%edi, %rdi
	call	calloc@PLT
	movq	%rax, %rcx
	movq	%rax, r(%rip)
	movl	12(%rsp), %eax
	cltd
	idivl	%r14d
	movslq	%edx, %rax
	movl	%edx, 12(%rsp)
	movl	(%rcx,%rax,4), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movl	%eax, (%rcx)
	jne	.L3
	movl	$1, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	movl	12(%rsp), %edx
	movl	%r14d, %eax
.L5:
	movslq	%edx, %rdx
	leal	1(%rax), %r14d
	movl	%eax, (%rcx,%rdx,4)
	movl	12(%rsp), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	cltd
	movl	%eax, 12(%rsp)
	idivl	8(%rsp)
	leal	48(%rax), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	movq	r(%rip), %rcx
	cltd
	idivl	8(%rsp)
	xorl	%eax, %eax
	movl	%edx, 12(%rsp)
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%edx, %edx
	sete	%al
	movl	%eax, (%rcx)
	je	.L25
	movq	%r13, %rdi
	call	puts@PLT
.L22:
	movslq	12(%rsp), %rax
	movl	%r14d, %edx
	imull	%eax, %edx
	testl	%edx, %edx
	je	.L2
.L6:
	subl	$1, %r14d
	jne	.L26
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	movq	r(%rip), %rdx
	leaq	(%rdx,%rax,4), %rdx
	movl	(%rdx), %eax
	subl	$1, %eax
	movl	%eax, (%rdx)
	testl	%eax, %eax
	jle	.L9
	movl	$32, %edi
	call	putchar@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$94, %edi
	call	putchar@PLT
	movslq	12(%rsp), %rax
	movl	%eax, %edx
	imull	%r14d, %edx
	testl	%edx, %edx
	jne	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L24:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movq	%r13, %rdi
	call	puts@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```