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

```c
//
//  main.c
//  Recurring Decimals
//
//  Created by x15071xx on 2016/06/09.
//  Copyright ?? 2016??´ AIT. All rights reserved.
//

#include <stdio.h>


void swap(int x,int y){
    int tmp;
    tmp = x;
    x = y;
    y= tmp;
}

int main(int argc, const char * argv[]) {
    
    
    while (1) {
        
        int i,j;
        int dai_1=0,sho_1=0;
        int a,keta,bu=1;
        int array_a[21]={0},count=1,tmp,c=0;
        int dai_array[6]={0},sho_array[6]={0};
        scanf("%d %d",&a,&keta);
        
        if (a==0&&keta==0) {
            break;
        }
        
        array_a[0] = a;
        
        while (count != 21) {
            
            bu=1;
            for (i=0; i<keta-1; i++) {
                bu*=10;
            }
            
            for (i=0; i<keta; i++) {
                dai_array[i] = a/bu;
                sho_array[i] = a/bu;
                a = a - bu*dai_array[i];
                bu = bu /10;
            }
            
            for (i=0; i<keta-1; i++) {
                for (j=keta-1; j>i; j--) {
                    if (dai_array[j-1] < dai_array[j]) {
                        //swap(dai_array[j-1],dai_array[j]);
                        tmp = dai_array[j-1];
                        dai_array[j-1] = dai_array[j];
                        dai_array[j] = tmp;
                    }
                    if (sho_array[j-1] > sho_array[j]) {
                        //swap(sho_array[j-1],sho_array[j]);
                        tmp = sho_array[j-1];
                        sho_array[j-1] = sho_array[j];
                        sho_array[j] = tmp;
                        
                    }
                }
            }
            bu=1;
            for (i=0; i<keta-1; i++) {
                bu*=10;
            }
            dai_1 = 0;
            sho_1 = 0;
            for (i=0; i<keta; i++) {
                dai_1 +=dai_array[i] * bu;
                sho_1 +=sho_array[i] * bu;
                
                bu = bu/10;
            }
            
            a = dai_1 - sho_1;
            
            array_a[count] = a;
            count++;
            for (i=0; i<6; i++) {
                dai_array[i] = 0;
                sho_array[i] = 0;
            }
        }
        
        for (i = 1; i < 21; i++) {
            for (j=0; j < i; j++) {
                if (array_a[i] == array_a[j]) {
                    printf("%d %d %d\n",j,array_a[i],i-j);
                    c=1;
                    break;
                }
            }
            if (c==1) {
                break;
            }
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$224, %rsp
	movl	%edi, -212(%rbp)
	movq	%rsi, -224(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L31:
	movl	$0, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	$1, -176(%rbp)
	leaq	-96(%rbp), %rdx
	movl	$0, %eax
	movl	$10, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$1, -172(%rbp)
	movl	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	leaq	-196(%rbp), %rdx
	leaq	-200(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-200(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-196(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L3:
	movl	-200(%rbp), %eax
	movl	%eax, -96(%rbp)
	jmp	.L5
.L22:
	movl	$1, -176(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L6
.L7:
	movl	-176(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L6:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L7
	movl	$0, -192(%rbp)
	jmp	.L8
.L9:
	movl	-200(%rbp), %eax
	cltd
	idivl	-176(%rbp)
	movl	%eax, %edx
	movl	-192(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-200(%rbp), %eax
	cltd
	idivl	-176(%rbp)
	movl	%eax, %edx
	movl	-192(%rbp), %eax
	cltq
	movl	%edx, -128(%rbp,%rax,4)
	movl	-200(%rbp), %edx
	movl	-192(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L8:
	movl	-196(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jl	.L9
	movl	$0, -192(%rbp)
	jmp	.L10
.L15:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -188(%rbp)
	jmp	.L11
.L14:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-188(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -160(%rbp,%rax,4)
	movl	-188(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -160(%rbp,%rax,4)
.L12:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-188(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -128(%rbp,%rax,4)
	movl	-188(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -128(%rbp,%rax,4)
.L13:
	subl	$1, -188(%rbp)
.L11:
	movl	-188(%rbp), %eax
	cmpl	-192(%rbp), %eax
	jg	.L14
	addl	$1, -192(%rbp)
.L10:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L15
	movl	$1, -176(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L16
.L17:
	movl	-176(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L16:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L17
	movl	$0, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L18
.L19:
	movl	-192(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	addl	%eax, -184(%rbp)
	movl	-192(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	addl	%eax, -180(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L18:
	movl	-196(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jl	.L19
	movl	-184(%rbp), %eax
	subl	-180(%rbp), %eax
	movl	%eax, -200(%rbp)
	movl	-200(%rbp), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	addl	$1, -172(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L20
.L21:
	movl	-192(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	movl	-192(%rbp), %eax
	cltq
	movl	$0, -128(%rbp,%rax,4)
	addl	$1, -192(%rbp)
.L20:
	cmpl	$5, -192(%rbp)
	jle	.L21
.L5:
	cmpl	$21, -172(%rbp)
	jne	.L22
	movl	$1, -192(%rbp)
	jmp	.L23
.L30:
	movl	$0, -188(%rbp)
	jmp	.L24
.L27:
	movl	-192(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L25
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %ecx
	movl	-192(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -168(%rbp)
	jmp	.L26
.L25:
	addl	$1, -188(%rbp)
.L24:
	movl	-188(%rbp), %eax
	cmpl	-192(%rbp), %eax
	jl	.L27
.L26:
	cmpl	$1, -168(%rbp)
	je	.L34
	addl	$1, -192(%rbp)
.L23:
	cmpl	$20, -192(%rbp)
	jle	.L30
	jmp	.L31
.L34:
	nop
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB23:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE23:
	.size	swap, .-swap
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	160(%rsp), %rax
	leaq	96(%rsp), %r12
	movq	%rax, 56(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 64(%rsp)
.L34:
	movq	56(%rsp), %rdi
	xorl	%eax, %eax
	movl	$10, %ecx
	pxor	%xmm0, %xmm0
	movq	64(%rsp), %rsi
	movq	72(%rsp), %rdx
	movq	$0, 112(%rsp)
	rep stosq
	movaps	%xmm0, 96(%rsp)
	movq	$0, 144(%rsp)
	movaps	%xmm0, 128(%rsp)
	movl	$0, (%rdi)
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	movl	92(%rsp), %esi
	movl	%eax, %ebx
	orl	%esi, %ebx
	je	.L4
	leaq	164(%rsp), %rbx
	leal	-1(%rsi), %r9d
	movl	%eax, 160(%rsp)
	movq	.LC0(%rip), %xmm2
	movq	%rbx, 32(%rsp)
	leaq	244(%rsp), %rbx
	movq	%rbx, 40(%rsp)
	movl	%r9d, %ebx
	shrl	%ebx
	movl	%ebx, 52(%rsp)
	movl	%r9d, %ebx
	andl	$-2, %ebx
	movl	%ebx, 48(%rsp)
	leal	-2(%rsi), %ebx
	movslq	%ebx, %rdx
	movl	%ebx, 12(%rsp)
	leal	-3(%rsi), %ebx
	leaq	0(,%rdx,4), %r14
	movslq	%ebx, %rdx
	movl	%ebx, 24(%rsp)
	leaq	0(,%rdx,4), %rbx
	leaq	(%r12,%r14), %r10
	movq	%rbx, 16(%rsp)
	addq	%r12, %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %ecx
	testl	%r9d, %r9d
	jle	.L30
	cmpl	$2, %esi
	je	.L38
	movl	52(%rsp), %ecx
	xorl	%edx, %edx
	movdqa	%xmm2, %xmm0
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm0, %xmm1
	addl	$1, %edx
	pslld	$2, %xmm1
	paddd	%xmm1, %xmm0
	pslld	$1, %xmm0
	cmpl	%edx, %ecx
	jne	.L7
	movd	%xmm0, %edx
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm6, %ecx
	imull	%edx, %ecx
	cmpl	%r9d, 48(%rsp)
	je	.L30
.L6:
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
.L30:
	testl	%esi, %esi
	jle	.L9
	cltd
	movl	%ecx, %edi
	movl	$3435973837, %r8d
	idivl	%ecx
	imulq	%rdi, %r8
	shrq	$35, %r8
	movl	%eax, 96(%rsp)
	movl	%eax, 128(%rsp)
	cmpl	$1, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%r8d
	imulq	$1374389535, %rdi, %r8
	shrq	$37, %r8
	movl	%eax, 100(%rsp)
	movl	%eax, 132(%rsp)
	cmpl	$2, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%r8d
	imulq	$274877907, %rdi, %r8
	shrq	$38, %r8
	movl	%eax, 104(%rsp)
	movl	%eax, 136(%rsp)
	cmpl	$3, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%r8d
	movl	%eax, 108(%rsp)
	movl	%eax, 140(%rsp)
	movl	$3518437209, %eax
	imulq	%rax, %rdi
	shrq	$45, %rdi
	cmpl	$4, %esi
	je	.L10
	movl	%edx, %eax
	shrl	$5, %ecx
	cltd
	imulq	$175921861, %rcx, %rcx
	idivl	%edi
	shrq	$39, %rcx
	movl	%eax, 112(%rsp)
	movl	%eax, 144(%rsp)
	cmpl	$5, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, 116(%rsp)
	movl	%eax, 148(%rsp)
.L10:
	movl	$1, %edx
	testl	%r9d, %r9d
	jle	.L36
.L35:
	leal	-4(%rsi), %edi
	xorl	%eax, %eax
	leaq	128(%rsp), %rdx
	movslq	%edi, %r13
	movl	%edi, 28(%rsp)
	salq	$2, %r13
	leaq	(%r12,%r13), %rbp
	.p2align 4,,10
	.p2align 3
.L24:
	movq	(%r10), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %ecx
	movd	%xmm3, %edi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edi
	jle	.L11
	movq	%xmm1, (%r10)
.L11:
	leaq	(%rdx,%r14), %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %ecx
	movd	%xmm4, %r8d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jge	.L12
	movq	%xmm1, (%rdi)
.L12:
	cmpl	12(%rsp), %eax
	jge	.L13
	movq	(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %ecx
	movd	%xmm5, %edi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edi
	jle	.L14
	movq	%xmm1, (%rbx)
.L14:
	movq	16(%rsp), %rdi
	addq	%rdx, %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %r8d
	movd	%xmm6, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jle	.L15
	movq	%xmm1, (%rdi)
.L15:
	cmpl	24(%rsp), %eax
	jge	.L13
	movq	0(%rbp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %ecx
	movd	%xmm7, %edi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edi
	jle	.L16
	movq	%xmm1, 0(%rbp)
.L16:
	leaq	(%rdx,%r13), %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %r8d
	movd	%xmm7, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jle	.L17
	movq	%xmm1, (%rdi)
.L17:
	cmpl	28(%rsp), %eax
	jge	.L13
	leal	-5(%rsi), %edi
	movslq	%edi, %r8
	leaq	(%r12,%r8,4), %r11
	movq	(%r11), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %r15d
	movd	%xmm5, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r15d
	jge	.L18
	movq	%xmm1, (%r11)
.L18:
	leaq	(%rdx,%r8,4), %r8
	movq	(%r8), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %ecx
	movd	%xmm6, %r11d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r11d
	jge	.L19
	movq	%xmm1, (%r8)
.L19:
	cmpl	%edi, %eax
	jge	.L13
	leal	-6(%rsi), %edi
	movslq	%edi, %r8
	leaq	(%r12,%r8,4), %r11
	movq	(%r11), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %ecx
	movd	%xmm3, %r15d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r15d
	jle	.L20
	movq	%xmm1, (%r11)
.L20:
	leaq	(%rdx,%r8,4), %r8
	movq	(%r8), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %ecx
	movd	%xmm4, %r11d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r11d
	jge	.L21
	movq	%xmm1, (%r8)
.L21:
	cmpl	%edi, %eax
	jge	.L13
	leal	-7(%rsi), %edi
	movslq	%edi, %rdi
	leaq	(%r12,%rdi,4), %r8
	movq	(%r8), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %ecx
	movd	%xmm7, %r11d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r11d
	jle	.L22
	movq	%xmm1, (%r8)
.L22:
	leaq	(%rdx,%rdi,4), %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %ecx
	movd	%xmm5, %r8d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jge	.L13
	movq	%xmm1, (%rdi)
.L13:
	addl	$1, %eax
	cmpl	%r9d, %eax
	jne	.L24
	cmpl	$1, %r9d
	je	.L39
	cmpl	$2, %r9d
	je	.L40
	cmpl	$3, %r9d
	je	.L41
	cmpl	$4, %r9d
	movl	$100000, %edx
	movl	$10000, %eax
	cmove	%eax, %edx
.L25:
	testl	%esi, %esi
	jle	.L43
.L36:
	movl	%edx, %r8d
	movl	$3435973837, %ecx
	movl	96(%rsp), %eax
	movl	128(%rsp), %edi
	imulq	%r8, %rcx
	imull	%edx, %eax
	imull	%edx, %edi
	shrq	$35, %rcx
	cmpl	$1, %esi
	jle	.L27
	movl	100(%rsp), %r11d
	imull	%ecx, %r11d
	imull	132(%rsp), %ecx
	addl	%r11d, %eax
	addl	%ecx, %edi
	imulq	$1374389535, %r8, %rcx
	shrq	$37, %rcx
	cmpl	$2, %esi
	je	.L27
	movl	104(%rsp), %r11d
	imull	%ecx, %r11d
	imull	136(%rsp), %ecx
	addl	%r11d, %eax
	addl	%ecx, %edi
	imulq	$274877907, %r8, %rcx
	shrq	$38, %rcx
	cmpl	$3, %esi
	je	.L27
	movl	108(%rsp), %r11d
	imull	%ecx, %r11d
	imull	140(%rsp), %ecx
	addl	%r11d, %eax
	addl	%ecx, %edi
	movl	$3518437209, %ecx
	imulq	%rcx, %r8
	shrq	$45, %r8
	cmpl	$4, %esi
	je	.L27
	movl	112(%rsp), %ecx
	shrl	$5, %edx
	imulq	$175921861, %rdx, %rdx
	imull	%r8d, %ecx
	imull	144(%rsp), %r8d
	shrq	$39, %rdx
	addl	%ecx, %eax
	addl	%r8d, %edi
	cmpl	$5, %esi
	je	.L27
	movl	116(%rsp), %ecx
	imull	%edx, %ecx
	imull	148(%rsp), %edx
	addl	%ecx, %eax
	addl	%edx, %edi
.L27:
	subl	%edi, %eax
.L26:
	movq	32(%rsp), %rdx
	pxor	%xmm0, %xmm0
	movq	$0, 112(%rsp)
	movq	$0, 144(%rsp)
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movq	%rdx, 32(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	cmpq	%rdx, 40(%rsp)
	jne	.L5
	movl	%eax, 88(%rsp)
	movq	56(%rsp), %rsi
	movl	$1, %edx
.L28:
	movl	(%rsi,%rdx,4), %ecx
	movl	%edx, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L33:
	cmpl	(%rsi,%rax,4), %ecx
	je	.L81
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L33
	addq	$1, %rdx
	cmpq	$21, %rdx
	jne	.L28
	jmp	.L34
.L9:
	testl	%r9d, %r9d
	jg	.L35
.L43:
	xorl	%eax, %eax
	jmp	.L26
.L39:
	movl	$10, %edx
	jmp	.L25
.L38:
	movl	$1, %ecx
	jmp	.L6
.L40:
	movl	$100, %edx
	jmp	.L25
.L41:
	movl	$1000, %edx
	jmp	.L25
.L81:
	subl	%eax, %r8d
	movl	%eax, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L34
.L4:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L82
	addq	$264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L82:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB23:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE23:
	.size	swap, .-swap
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	160(%rsp), %rax
	leaq	96(%rsp), %r12
	movq	%rax, 56(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 64(%rsp)
.L34:
	movq	56(%rsp), %rdi
	xorl	%eax, %eax
	movl	$10, %ecx
	pxor	%xmm0, %xmm0
	movq	64(%rsp), %rsi
	movq	72(%rsp), %rdx
	movq	$0, 112(%rsp)
	rep stosq
	movaps	%xmm0, 96(%rsp)
	movq	$0, 144(%rsp)
	movaps	%xmm0, 128(%rsp)
	movl	$0, (%rdi)
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	movl	92(%rsp), %esi
	movl	%eax, %ebx
	orl	%esi, %ebx
	je	.L4
	leaq	164(%rsp), %rbx
	leal	-1(%rsi), %r9d
	movl	%eax, 160(%rsp)
	movq	.LC0(%rip), %xmm2
	movq	%rbx, 32(%rsp)
	leaq	244(%rsp), %rbx
	movq	%rbx, 40(%rsp)
	movl	%r9d, %ebx
	shrl	%ebx
	movl	%ebx, 52(%rsp)
	movl	%r9d, %ebx
	andl	$-2, %ebx
	movl	%ebx, 48(%rsp)
	leal	-2(%rsi), %ebx
	movslq	%ebx, %rdx
	movl	%ebx, 12(%rsp)
	leal	-3(%rsi), %ebx
	leaq	0(,%rdx,4), %r14
	movslq	%ebx, %rdx
	movl	%ebx, 24(%rsp)
	leaq	0(,%rdx,4), %rbx
	leaq	(%r12,%r14), %r10
	movq	%rbx, 16(%rsp)
	addq	%r12, %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %ecx
	testl	%r9d, %r9d
	jle	.L30
	cmpl	$2, %esi
	je	.L38
	movl	52(%rsp), %ecx
	xorl	%edx, %edx
	movdqa	%xmm2, %xmm0
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm0, %xmm1
	addl	$1, %edx
	pslld	$2, %xmm1
	paddd	%xmm1, %xmm0
	pslld	$1, %xmm0
	cmpl	%edx, %ecx
	jne	.L7
	movd	%xmm0, %edx
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm6, %ecx
	imull	%edx, %ecx
	cmpl	%r9d, 48(%rsp)
	je	.L30
.L6:
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
.L30:
	testl	%esi, %esi
	jle	.L9
	cltd
	movl	%ecx, %edi
	movl	$3435973837, %r8d
	idivl	%ecx
	imulq	%rdi, %r8
	shrq	$35, %r8
	movl	%eax, 96(%rsp)
	movl	%eax, 128(%rsp)
	cmpl	$1, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%r8d
	imulq	$1374389535, %rdi, %r8
	shrq	$37, %r8
	movl	%eax, 100(%rsp)
	movl	%eax, 132(%rsp)
	cmpl	$2, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%r8d
	imulq	$274877907, %rdi, %r8
	shrq	$38, %r8
	movl	%eax, 104(%rsp)
	movl	%eax, 136(%rsp)
	cmpl	$3, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%r8d
	movl	%eax, 108(%rsp)
	movl	%eax, 140(%rsp)
	movl	$3518437209, %eax
	imulq	%rax, %rdi
	shrq	$45, %rdi
	cmpl	$4, %esi
	je	.L10
	movl	%edx, %eax
	shrl	$5, %ecx
	cltd
	imulq	$175921861, %rcx, %rcx
	idivl	%edi
	shrq	$39, %rcx
	movl	%eax, 112(%rsp)
	movl	%eax, 144(%rsp)
	cmpl	$5, %esi
	je	.L10
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, 116(%rsp)
	movl	%eax, 148(%rsp)
.L10:
	movl	$1, %edx
	testl	%r9d, %r9d
	jle	.L36
.L35:
	leal	-4(%rsi), %edi
	xorl	%eax, %eax
	leaq	128(%rsp), %rdx
	movslq	%edi, %r13
	movl	%edi, 28(%rsp)
	salq	$2, %r13
	leaq	(%r12,%r13), %rbp
	.p2align 4,,10
	.p2align 3
.L24:
	movq	(%r10), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %ecx
	movd	%xmm3, %edi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edi
	jle	.L11
	movq	%xmm1, (%r10)
.L11:
	leaq	(%rdx,%r14), %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %ecx
	movd	%xmm4, %r8d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jge	.L12
	movq	%xmm1, (%rdi)
.L12:
	cmpl	12(%rsp), %eax
	jge	.L13
	movq	(%rbx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %ecx
	movd	%xmm5, %edi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edi
	jle	.L14
	movq	%xmm1, (%rbx)
.L14:
	movq	16(%rsp), %rdi
	addq	%rdx, %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %r8d
	movd	%xmm6, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jle	.L15
	movq	%xmm1, (%rdi)
.L15:
	cmpl	24(%rsp), %eax
	jge	.L13
	movq	0(%rbp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %ecx
	movd	%xmm7, %edi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %edi
	jle	.L16
	movq	%xmm1, 0(%rbp)
.L16:
	leaq	(%rdx,%r13), %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %r8d
	movd	%xmm7, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jle	.L17
	movq	%xmm1, (%rdi)
.L17:
	cmpl	28(%rsp), %eax
	jge	.L13
	leal	-5(%rsi), %edi
	movslq	%edi, %r8
	leaq	(%r12,%r8,4), %r11
	movq	(%r11), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %r15d
	movd	%xmm5, %ecx
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r15d
	jge	.L18
	movq	%xmm1, (%r11)
.L18:
	leaq	(%rdx,%r8,4), %r8
	movq	(%r8), %xmm0
	pshufd	$0xe5, %xmm0, %xmm6
	movd	%xmm0, %ecx
	movd	%xmm6, %r11d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r11d
	jge	.L19
	movq	%xmm1, (%r8)
.L19:
	cmpl	%edi, %eax
	jge	.L13
	leal	-6(%rsi), %edi
	movslq	%edi, %r8
	leaq	(%r12,%r8,4), %r11
	movq	(%r11), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %ecx
	movd	%xmm3, %r15d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r15d
	jle	.L20
	movq	%xmm1, (%r11)
.L20:
	leaq	(%rdx,%r8,4), %r8
	movq	(%r8), %xmm0
	pshufd	$0xe5, %xmm0, %xmm4
	movd	%xmm0, %ecx
	movd	%xmm4, %r11d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r11d
	jge	.L21
	movq	%xmm1, (%r8)
.L21:
	cmpl	%edi, %eax
	jge	.L13
	leal	-7(%rsi), %edi
	movslq	%edi, %rdi
	leaq	(%r12,%rdi,4), %r8
	movq	(%r8), %xmm0
	pshufd	$0xe5, %xmm0, %xmm7
	movd	%xmm0, %ecx
	movd	%xmm7, %r11d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r11d
	jle	.L22
	movq	%xmm1, (%r8)
.L22:
	leaq	(%rdx,%rdi,4), %rdi
	movq	(%rdi), %xmm0
	pshufd	$0xe5, %xmm0, %xmm5
	movd	%xmm0, %ecx
	movd	%xmm5, %r8d
	pshufd	$225, %xmm0, %xmm1
	cmpl	%ecx, %r8d
	jge	.L13
	movq	%xmm1, (%rdi)
.L13:
	addl	$1, %eax
	cmpl	%r9d, %eax
	jne	.L24
	cmpl	$1, %r9d
	je	.L39
	cmpl	$2, %r9d
	je	.L40
	cmpl	$3, %r9d
	je	.L41
	cmpl	$4, %r9d
	movl	$100000, %edx
	movl	$10000, %eax
	cmove	%eax, %edx
.L25:
	testl	%esi, %esi
	jle	.L43
.L36:
	movl	%edx, %r8d
	movl	$3435973837, %ecx
	movl	96(%rsp), %eax
	movl	128(%rsp), %edi
	imulq	%r8, %rcx
	imull	%edx, %eax
	imull	%edx, %edi
	shrq	$35, %rcx
	cmpl	$1, %esi
	jle	.L27
	movl	100(%rsp), %r11d
	imull	%ecx, %r11d
	imull	132(%rsp), %ecx
	addl	%r11d, %eax
	addl	%ecx, %edi
	imulq	$1374389535, %r8, %rcx
	shrq	$37, %rcx
	cmpl	$2, %esi
	je	.L27
	movl	104(%rsp), %r11d
	imull	%ecx, %r11d
	imull	136(%rsp), %ecx
	addl	%r11d, %eax
	addl	%ecx, %edi
	imulq	$274877907, %r8, %rcx
	shrq	$38, %rcx
	cmpl	$3, %esi
	je	.L27
	movl	108(%rsp), %r11d
	imull	%ecx, %r11d
	imull	140(%rsp), %ecx
	addl	%r11d, %eax
	addl	%ecx, %edi
	movl	$3518437209, %ecx
	imulq	%rcx, %r8
	shrq	$45, %r8
	cmpl	$4, %esi
	je	.L27
	movl	112(%rsp), %ecx
	shrl	$5, %edx
	imulq	$175921861, %rdx, %rdx
	imull	%r8d, %ecx
	imull	144(%rsp), %r8d
	shrq	$39, %rdx
	addl	%ecx, %eax
	addl	%r8d, %edi
	cmpl	$5, %esi
	je	.L27
	movl	116(%rsp), %ecx
	imull	%edx, %ecx
	imull	148(%rsp), %edx
	addl	%ecx, %eax
	addl	%edx, %edi
.L27:
	subl	%edi, %eax
.L26:
	movq	32(%rsp), %rdx
	pxor	%xmm0, %xmm0
	movq	$0, 112(%rsp)
	movq	$0, 144(%rsp)
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movq	%rdx, 32(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	cmpq	%rdx, 40(%rsp)
	jne	.L5
	movl	%eax, 88(%rsp)
	movq	56(%rsp), %rsi
	movl	$1, %edx
.L28:
	movl	(%rsi,%rdx,4), %ecx
	movl	%edx, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L33:
	cmpl	(%rsi,%rax,4), %ecx
	je	.L81
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L33
	addq	$1, %rdx
	cmpq	$21, %rdx
	jne	.L28
	jmp	.L34
.L9:
	testl	%r9d, %r9d
	jg	.L35
.L43:
	xorl	%eax, %eax
	jmp	.L26
.L39:
	movl	$10, %edx
	jmp	.L25
.L38:
	movl	$1, %ecx
	jmp	.L6
.L40:
	movl	$100, %edx
	jmp	.L25
.L41:
	movl	$1000, %edx
	jmp	.L25
.L81:
	subl	%eax, %r8d
	movl	%eax, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L34
.L4:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L82
	addq	$264, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L82:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.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:

//
//  main.c
//  Recurring Decimals
//
//  Created by x15071xx on 2016/06/09.
//  Copyright ?? 2016??´ AIT. All rights reserved.
//

#include <stdio.h>


void swap(int x,int y){
    int tmp;
    tmp = x;
    x = y;
    y= tmp;
}

int main(int argc, const char * argv[]) {
    
    
    while (1) {
        
        int i,j;
        int dai_1=0,sho_1=0;
        int a,keta,bu=1;
        int array_a[21]={0},count=1,tmp,c=0;
        int dai_array[6]={0},sho_array[6]={0};
        scanf("%d %d",&a,&keta);
        
        if (a==0&&keta==0) {
            break;
        }
        
        array_a[0] = a;
        
        while (count != 21) {
            
            bu=1;
            for (i=0; i<keta-1; i++) {
                bu*=10;
            }
            
            for (i=0; i<keta; i++) {
                dai_array[i] = a/bu;
                sho_array[i] = a/bu;
                a = a - bu*dai_array[i];
                bu = bu /10;
            }
            
            for (i=0; i<keta-1; i++) {
                for (j=keta-1; j>i; j--) {
                    if (dai_array[j-1] < dai_array[j]) {
                        //swap(dai_array[j-1],dai_array[j]);
                        tmp = dai_array[j-1];
                        dai_array[j-1] = dai_array[j];
                        dai_array[j] = tmp;
                    }
                    if (sho_array[j-1] > sho_array[j]) {
                        //swap(sho_array[j-1],sho_array[j]);
                        tmp = sho_array[j-1];
                        sho_array[j-1] = sho_array[j];
                        sho_array[j] = tmp;
                        
                    }
                }
            }
            bu=1;
            for (i=0; i<keta-1; i++) {
                bu*=10;
            }
            dai_1 = 0;
            sho_1 = 0;
            for (i=0; i<keta; i++) {
                dai_1 +=dai_array[i] * bu;
                sho_1 +=sho_array[i] * bu;
                
                bu = bu/10;
            }
            
            a = dai_1 - sho_1;
            
            array_a[count] = a;
            count++;
            for (i=0; i<6; i++) {
                dai_array[i] = 0;
                sho_array[i] = 0;
            }
        }
        
        for (i = 1; i < 21; i++) {
            for (j=0; j < i; j++) {
                if (array_a[i] == array_a[j]) {
                    printf("%d %d %d\n",j,array_a[i],i-j);
                    c=1;
                    break;
                }
            }
            if (c==1) {
                break;
            }
        }
    }
    return 0;
}
2012 4
83268 3
1112 4
0 1
99 2
0 0
 2012 4
83268 6
1112 4
0 1
99 1
0 0
 2012 4
83268 3
1112 4
0 1
17 2
0 0
 2012 4
83268 6
1112 3
0 1
99 1
0 0
 2012 4
83268 6
1112 4
0 0
99 1
0 0
 2012 4
83268 3
1112 6
0 1
17 2
0 0
 2012 4
83268 3
1112 3
0 1
99 1
0 0
 338 4
83268 3
1112 6
0 1
17 2
0 0
 3214 4
83268 6
1112 4
1 0
99 1
0 0
 338 4
83268 5
125 6
0 1
17 2
0 0

3 6174 1
5 6174 1
0 0 1
1 0 1
 3 6174 1
1 862632 7
5 6174 1
0 0 1
1 0 1
 3 6174 1
5 6174 1
0 0 1
2 9 5
 3 6174 1
1 862632 7
6 495 1
0 0 1
1 0 1
 3 6174 1
1 862632 7
5 6174 1
 3 6174 1
9 851742 7
0 0 1
2 9 5
 3 6174 1
6 495 1
0 0 1
1 0 1
 6 6174 1
9 851742 7
0 0 1
2 9 5
 3 6174 1
1 862632 7
5 6174 1
1 0 1
1 0 1
 6 6174 1
5 74943 4
4 420876 7
0 0 1
2 9 5

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

```c
//
//  main.c
//  Recurring Decimals
//
//  Created by x15071xx on 2016/06/09.
//  Copyright ?? 2016??´ AIT. All rights reserved.
//

#include <stdio.h>


void swap(int x,int y){
    int tmp;
    tmp = x;
    x = y;
    y= tmp;
}

int main(int argc, const char * argv[]) {
    
    
    while (1) {
        
        int i,j;
        int dai_1=0,sho_1=0;
        int a,keta,bu=1;
        int array_a[21]={0},count=1,tmp,c=0;
        int dai_array[6]={0},sho_array[6]={0};
        scanf("%d %d",&a,&keta);
        
        if (a==0&&keta==0) {
            break;
        }
        
        array_a[0] = a;
        
        while (count != 21) {
            
            bu=1;
            for (i=0; i<keta-1; i++) {
                bu*=10;
            }
            
            for (i=0; i<keta; i++) {
                dai_array[i] = a/bu;
                sho_array[i] = a/bu;
                a = a - bu*dai_array[i];
                bu = bu /10;
            }
            
            for (i=0; i<keta-1; i++) {
                for (j=keta-1; j>i; j--) {
                    if (dai_array[j-1] < dai_array[j]) {
                        //swap(dai_array[j-1],dai_array[j]);
                        tmp = dai_array[j-1];
                        dai_array[j-1] = dai_array[j];
                        dai_array[j] = tmp;
                    }
                    if (sho_array[j-1] > sho_array[j]) {
                        //swap(sho_array[j-1],sho_array[j]);
                        tmp = sho_array[j-1];
                        sho_array[j-1] = sho_array[j];
                        sho_array[j] = tmp;
                        
                    }
                }
            }
            bu=1;
            for (i=0; i<keta-1; i++) {
                bu*=10;
            }
            dai_1 = 0;
            sho_1 = 0;
            for (i=0; i<keta; i++) {
                dai_1 +=dai_array[i] * bu;
                sho_1 +=sho_array[i] * bu;
                
                bu = bu/10;
            }
            
            a = dai_1 - sho_1;
            
            array_a[count] = a;
            count++;
            for (i=0; i<6; i++) {
                dai_array[i] = 0;
                sho_array[i] = 0;
            }
        }
        
        for (i = 1; i < 21; i++) {
            for (j=0; j < i; j++) {
                if (array_a[i] == array_a[j]) {
                    printf("%d %d %d\n",j,array_a[i],i-j);
                    c=1;
                    break;
                }
            }
            if (c==1) {
                break;
            }
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$224, %rsp
	movl	%edi, -212(%rbp)
	movq	%rsi, -224(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L31:
	movl	$0, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	$1, -176(%rbp)
	leaq	-96(%rbp), %rdx
	movl	$0, %eax
	movl	$10, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$1, -172(%rbp)
	movl	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	leaq	-196(%rbp), %rdx
	leaq	-200(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-200(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-196(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L3:
	movl	-200(%rbp), %eax
	movl	%eax, -96(%rbp)
	jmp	.L5
.L22:
	movl	$1, -176(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L6
.L7:
	movl	-176(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L6:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L7
	movl	$0, -192(%rbp)
	jmp	.L8
.L9:
	movl	-200(%rbp), %eax
	cltd
	idivl	-176(%rbp)
	movl	%eax, %edx
	movl	-192(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-200(%rbp), %eax
	cltd
	idivl	-176(%rbp)
	movl	%eax, %edx
	movl	-192(%rbp), %eax
	cltq
	movl	%edx, -128(%rbp,%rax,4)
	movl	-200(%rbp), %edx
	movl	-192(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L8:
	movl	-196(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jl	.L9
	movl	$0, -192(%rbp)
	jmp	.L10
.L15:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -188(%rbp)
	jmp	.L11
.L14:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-188(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -160(%rbp,%rax,4)
	movl	-188(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -160(%rbp,%rax,4)
.L12:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-188(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -128(%rbp,%rax,4)
	movl	-188(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -128(%rbp,%rax,4)
.L13:
	subl	$1, -188(%rbp)
.L11:
	movl	-188(%rbp), %eax
	cmpl	-192(%rbp), %eax
	jg	.L14
	addl	$1, -192(%rbp)
.L10:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L15
	movl	$1, -176(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L16
.L17:
	movl	-176(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L16:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L17
	movl	$0, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L18
.L19:
	movl	-192(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	addl	%eax, -184(%rbp)
	movl	-192(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	addl	%eax, -180(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L18:
	movl	-196(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jl	.L19
	movl	-184(%rbp), %eax
	subl	-180(%rbp), %eax
	movl	%eax, -200(%rbp)
	movl	-200(%rbp), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	addl	$1, -172(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L20
.L21:
	movl	-192(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	movl	-192(%rbp), %eax
	cltq
	movl	$0, -128(%rbp,%rax,4)
	addl	$1, -192(%rbp)
.L20:
	cmpl	$5, -192(%rbp)
	jle	.L21
.L5:
	cmpl	$21, -172(%rbp)
	jne	.L22
	movl	$1, -192(%rbp)
	jmp	.L23
.L30:
	movl	$0, -188(%rbp)
	jmp	.L24
.L27:
	movl	-192(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L25
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %ecx
	movl	-192(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -168(%rbp)
	jmp	.L26
.L25:
	addl	$1, -188(%rbp)
.L24:
	movl	-188(%rbp), %eax
	cmpl	-192(%rbp), %eax
	jl	.L27
.L26:
	cmpl	$1, -168(%rbp)
	je	.L34
	addl	$1, -192(%rbp)
.L23:
	cmpl	$20, -192(%rbp)
	jle	.L30
	jmp	.L31
.L34:
	nop
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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.
train
	.file	"temp.c"
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swap, .-swap
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$224, %rsp
	movl	%edi, -212(%rbp)
	movq	%rsi, -224(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L31:
	movl	$0, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	$1, -176(%rbp)
	leaq	-96(%rbp), %rdx
	movl	$0, %eax
	movl	$10, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$1, -172(%rbp)
	movl	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	$0, -144(%rbp)
	movq	$0, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	$0, -112(%rbp)
	leaq	-196(%rbp), %rdx
	leaq	-200(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-200(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-196(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L3:
	movl	-200(%rbp), %eax
	movl	%eax, -96(%rbp)
	jmp	.L5
.L22:
	movl	$1, -176(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L6
.L7:
	movl	-176(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L6:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L7
	movl	$0, -192(%rbp)
	jmp	.L8
.L9:
	movl	-200(%rbp), %eax
	cltd
	idivl	-176(%rbp)
	movl	%eax, %edx
	movl	-192(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-200(%rbp), %eax
	cltd
	idivl	-176(%rbp)
	movl	%eax, %edx
	movl	-192(%rbp), %eax
	cltq
	movl	%edx, -128(%rbp,%rax,4)
	movl	-200(%rbp), %edx
	movl	-192(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L8:
	movl	-196(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jl	.L9
	movl	$0, -192(%rbp)
	jmp	.L10
.L15:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -188(%rbp)
	jmp	.L11
.L14:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-188(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -160(%rbp,%rax,4)
	movl	-188(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -160(%rbp,%rax,4)
.L12:
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-188(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-188(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -128(%rbp,%rax,4)
	movl	-188(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -128(%rbp,%rax,4)
.L13:
	subl	$1, -188(%rbp)
.L11:
	movl	-188(%rbp), %eax
	cmpl	-192(%rbp), %eax
	jg	.L14
	addl	$1, -192(%rbp)
.L10:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L15
	movl	$1, -176(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L16
.L17:
	movl	-176(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L16:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -192(%rbp)
	jl	.L17
	movl	$0, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L18
.L19:
	movl	-192(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	addl	%eax, -184(%rbp)
	movl	-192(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	imull	-176(%rbp), %eax
	addl	%eax, -180(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -176(%rbp)
	addl	$1, -192(%rbp)
.L18:
	movl	-196(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jl	.L19
	movl	-184(%rbp), %eax
	subl	-180(%rbp), %eax
	movl	%eax, -200(%rbp)
	movl	-200(%rbp), %edx
	movl	-172(%rbp), %eax
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	addl	$1, -172(%rbp)
	movl	$0, -192(%rbp)
	jmp	.L20
.L21:
	movl	-192(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	movl	-192(%rbp), %eax
	cltq
	movl	$0, -128(%rbp,%rax,4)
	addl	$1, -192(%rbp)
.L20:
	cmpl	$5, -192(%rbp)
	jle	.L21
.L5:
	cmpl	$21, -172(%rbp)
	jne	.L22
	movl	$1, -192(%rbp)
	jmp	.L23
.L30:
	movl	$0, -188(%rbp)
	jmp	.L24
.L27:
	movl	-192(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L25
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %ecx
	movl	-192(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -168(%rbp)
	jmp	.L26
.L25:
	addl	$1, -188(%rbp)
.L24:
	movl	-188(%rbp), %eax
	cmpl	-192(%rbp), %eax
	jl	.L27
.L26:
	cmpl	$1, -168(%rbp)
	je	.L34
	addl	$1, -192(%rbp)
.L23:
	cmpl	$20, -192(%rbp)
	jle	.L30
	jmp	.L31
.L34:
	nop
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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:
