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

```c
#include <stdio.h>


void comb(int *out, int max, int n, int depth)
{
	int i;
	

	if (n <= 0){
		printf("%d", out[0]);
		for (i = 1; i < depth; i++){
			printf(" %d", out[i]);
		}
		printf("\n");
		return;
	}

	for (i = max; i > 0; i--){
		if (n >= i){
			out[depth] = i;
			comb(out, i, n - i, depth + 1);
		}
	}
	
	return;
}

int main(void)
{
	int n;
	int out[31];

	while (1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		comb(out, n, n, 0);
		
	}

	return (0);
}

		
		
		
		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	comb
	.type	comb, @function
comb:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	cmpl	$0, -32(%rbp)
	jg	.L2
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -4(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L4
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L1
.L2:
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L8:
	movl	-32(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L7
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-36(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-4(%rbp), %esi
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	comb
.L7:
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jg	.L8
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	comb, .-comb
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L16
	movl	-148(%rbp), %edx
	movl	-148(%rbp), %esi
	leaq	-144(%rbp), %rax
	movl	$0, %ecx
	movq	%rax, %rdi
	call	comb
	jmp	.L12
.L16:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB23:
	.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
	movl	%ecx, %ebx
	subq	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%rdi, 24(%rsp)
	testl	%edx, %edx
	jle	.L2
	movl	%esi, %r15d
	testl	%esi, %esi
	jle	.L1
	movslq	%ebx, %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 32(%rsp)
	leal	1(%rbx), %eax
	movl	%eax, 128(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 48(%rsp)
	leal	2(%rbx), %eax
	movl	%eax, 140(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 64(%rsp)
	leal	3(%rbx), %eax
	movl	%eax, 132(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 72(%rsp)
	leal	4(%rbx), %eax
	movl	%eax, 136(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 80(%rsp)
	leal	5(%rbx), %eax
	movl	%eax, 144(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 88(%rsp)
	leal	6(%rbx), %eax
	movl	%eax, 148(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 96(%rsp)
	leal	7(%rbx), %eax
	movl	%eax, 152(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 104(%rsp)
	leal	8(%rbx), %eax
	movl	%eax, 156(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 112(%rsp)
	cmpl	%esi, %edx
	jge	.L8
	subl	%edx, %esi
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L9
	movd	%r15d, %xmm4
	movl	%esi, %ecx
	pcmpeqd	%xmm2, %xmm2
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC3(%rip), %xmm3
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %ecx
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %ecx
	jne	.L11
	movl	%esi, %ecx
	pshufd	$255, %xmm0, %xmm0
	movl	%r15d, %edi
	andl	$-4, %ecx
	movd	%xmm0, %eax
	subl	%ecx, %edi
	cmpl	%esi, %ecx
	je	.L13
	leal	-1(%rdi), %eax
	cmpl	%eax, %edx
	jge	.L13
.L76:
	leal	-1(%rax), %r15d
	subl	$2, %eax
	cmpl	%r15d, %edx
	cmovl	%eax, %r15d
.L8:
	subl	%r15d, %edx
	movq	24(%rsp), %rax
	movl	%r15d, 12(%rsp)
	movl	%edx, (%rsp)
	subl	%r15d, %edx
	movl	%edx, 8(%rsp)
	movl	148(%rsp), %edx
	addq	$8, %rax
	leaq	(%rax,%rdx,4), %rdi
	movl	144(%rsp), %edx
	movq	%rdi, 208(%rsp)
	leaq	(%rax,%rdx,4), %rdi
	movl	136(%rsp), %edx
	movq	%rdi, 200(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	132(%rsp), %edx
	movq	%rsi, 216(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	140(%rsp), %edx
	movq	%rsi, 184(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	128(%rsp), %edx
	movq	%rsi, 192(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	%ebx, %edx
	leaq	(%rax,%rdx,4), %rdi
	leal	-1(%rbx), %edx
	movq	%rsi, 168(%rsp)
	leaq	(%rax,%rdx,4), %rax
	movq	%rdi, 160(%rsp)
	movq	%rax, 176(%rsp)
	leal	9(%rbx), %eax
	movl	%eax, 124(%rsp)
.L74:
	movq	32(%rsp), %rax
	movl	12(%rsp), %r14d
	movl	8(%rsp), %r13d
	movl	%r14d, (%rax)
	movl	(%rsp), %eax
	movl	%r13d, %r15d
	movl	%r14d, %r13d
	testl	%eax, %eax
	jle	.L129
.L15:
	cmpl	(%rsp), %r13d
	jle	.L130
.L21:
	addl	$1, %r15d
	subl	$1, %r13d
	jne	.L15
	addl	$1, (%rsp)
	addl	$2, 8(%rsp)
	subl	$1, 12(%rsp)
	jne	.L74
.L1:
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L130:
	.cfi_restore_state
	movq	48(%rsp), %rax
	movl	(%rsp), %r12d
	movl	%r13d, (%rax)
	leal	(%r13,%r13), %eax
	subl	%eax, %r12d
	testl	%r15d, %r15d
	jle	.L131
	movl	%r15d, 4(%rsp)
	movl	%r13d, 40(%rsp)
	movl	%r12d, %r13d
.L72:
	movl	4(%rsp), %eax
	movl	%eax, %r15d
	subl	%r13d, %r15d
	cmpl	%eax, %r15d
	jle	.L132
.L27:
	addl	$1, %r13d
	cmpl	4(%rsp), %r13d
	jne	.L72
	movl	40(%rsp), %r13d
	movl	4(%rsp), %r15d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L132:
	movq	64(%rsp), %rax
	movl	%r15d, (%rax)
	testl	%r13d, %r13d
	jle	.L133
	movl	%r13d, 16(%rsp)
.L28:
	cmpl	16(%rsp), %r15d
	jle	.L134
.L33:
	subl	$1, %r15d
	jne	.L28
	movl	16(%rsp), %r13d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L134:
	movq	72(%rsp), %rax
	movl	%r15d, (%rax)
	movl	16(%rsp), %eax
	subl	%r15d, %eax
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	jle	.L135
	movl	16(%rsp), %r12d
	movl	%r15d, 44(%rsp)
	leal	(%r15,%r15), %eax
	movl	%r15d, %ebx
	subl	%eax, %r12d
.L69:
	cmpl	20(%rsp), %ebx
	jle	.L136
.L39:
	addl	$1, %r12d
	subl	$1, %ebx
	jne	.L69
	movl	44(%rsp), %r15d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L136:
	movq	80(%rsp), %rax
	movl	%ebx, (%rax)
	testl	%r12d, %r12d
	jle	.L137
	movl	20(%rsp), %r15d
	leal	(%rbx,%rbx), %eax
	movl	%ebx, 56(%rsp)
	movl	%ebx, %ebp
	subl	%eax, %r15d
	movl	%r15d, %r14d
.L67:
	cmpl	%r12d, %ebp
	jle	.L138
.L45:
	addl	$1, %r14d
	subl	$1, %ebp
	jne	.L67
	movl	56(%rsp), %ebx
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L138:
	movq	88(%rsp), %rax
	movl	%r12d, %r15d
	movl	%ebp, (%rax)
	leal	(%rbp,%rbp), %eax
	subl	%eax, %r15d
	testl	%r14d, %r14d
	jle	.L139
	movl	%r12d, 120(%rsp)
	movl	%ebp, 60(%rsp)
	movl	%r14d, %ebp
.L65:
	movl	%ebp, %ebx
	subl	%r15d, %ebx
	cmpl	%ebp, %ebx
	jle	.L140
.L51:
	addl	$1, %r15d
	cmpl	%ebp, %r15d
	jne	.L65
	movl	%ebp, %r14d
	movl	120(%rsp), %r12d
	movl	60(%rsp), %ebp
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L140:
	movq	96(%rsp), %rax
	leaq	.LC1(%rip), %r13
	movl	%ebx, (%rax)
	testl	%r15d, %r15d
	jle	.L141
	cmpl	%r15d, %ebx
	jle	.L142
	.p2align 4,,10
	.p2align 3
.L57:
	subl	$1, %ebx
	je	.L51
	cmpl	%r15d, %ebx
	jg	.L57
.L142:
	movq	104(%rsp), %rax
	movl	%r15d, %r14d
	movl	%ebx, %r12d
	subl	%ebx, %r14d
	movl	%ebx, (%rax)
	testl	%r14d, %r14d
	jle	.L143
	cmpl	%r12d, %r14d
	jge	.L144
	.p2align 4,,10
	.p2align 3
.L62:
	subl	$1, %r12d
	je	.L57
	cmpl	%r12d, %r14d
	jl	.L62
.L144:
	movq	112(%rsp), %rax
	movl	%r14d, %edx
	movl	124(%rsp), %ecx
	movl	%r12d, %esi
	movq	24(%rsp), %rdi
	subl	%r12d, %edx
	movl	%r12d, (%rax)
	call	comb
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jle	.L1
	movl	%eax, %r15d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	(%rdi), %edx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	$1, %ebx
	jle	.L7
	movq	24(%rsp), %rsi
	leal	-2(%rbx), %eax
	leaq	.LC1(%rip), %rbx
	leaq	4(%rsi), %rbp
	leaq	8(%rsi,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movl	0(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%r12, %rbp
	jne	.L6
.L7:
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$10, %edi
	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
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L129:
	.cfi_restore_state
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%rbx), %edx
	leaq	4(%rbx), %rbp
	leaq	.LC1(%rip), %rbx
	call	__printf_chk@PLT
	cmpl	$1, 128(%rsp)
	movq	176(%rsp), %r12
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movl	0(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%r12, %rbp
	jne	.L18
.L19:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, (%rsp)
	addl	$2, 8(%rsp)
	subl	$1, 12(%rsp)
	jne	.L74
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L131:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%rbx), %edx
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpl	$1, 140(%rsp)
	movq	160(%rsp), %r12
	jle	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L24
.L25:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L133:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%rbx), %edx
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpl	$1, 132(%rsp)
	movq	168(%rsp), %r12
	jle	.L31
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L30
.L31:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L135:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%rbx), %edx
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpl	$1, 136(%rsp)
	movq	192(%rsp), %r12
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L36:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L36
.L37:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L137:
	movq	24(%rsp), %r14
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%r14), %edx
	leaq	4(%r14), %r13
	call	__printf_chk@PLT
	cmpl	$1, 144(%rsp)
	movq	184(%rsp), %r14
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L42:
	movl	0(%r13), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__printf_chk@PLT
	cmpq	%r13, %r14
	jne	.L42
.L43:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L139:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %r13
	movl	(%rbx), %edx
	leaq	4(%rbx), %r15
	call	__printf_chk@PLT
	cmpl	$1, 148(%rsp)
	movq	216(%rsp), %rbx
	jle	.L49
	.p2align 4,,10
	.p2align 3
.L48:
	movl	(%r15), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L48
.L49:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L141:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%rbx), %edx
	leaq	4(%rbx), %r13
	leaq	.LC1(%rip), %rbx
	call	__printf_chk@PLT
	cmpl	$1, 152(%rsp)
	movq	200(%rsp), %r12
	jle	.L55
	.p2align 4,,10
	.p2align 3
.L54:
	movl	0(%r13), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__printf_chk@PLT
	cmpq	%r12, %r13
	jne	.L54
.L55:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L143:
	movq	24(%rsp), %r14
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%r14), %edx
	leaq	4(%r14), %r12
	call	__printf_chk@PLT
	cmpl	$1, 156(%rsp)
	movq	208(%rsp), %r14
	jle	.L61
	.p2align 4,,10
	.p2align 3
.L60:
	movl	(%r12), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r12
	call	__printf_chk@PLT
	cmpq	%r14, %r12
	jne	.L60
.L61:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L57
.L9:
	leal	-1(%r15), %eax
	movl	%eax, %r15d
	cmpl	%eax, %edx
	jl	.L76
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	comb, .-comb
	.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
	leaq	.LC0(%rip), %r13
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r14
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L146:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L147
	movl	$0, %ebx
	jle	.L163
	movl	%ebp, %r12d
	subl	%ebx, %r12d
	cmpl	%r12d, %ebp
	jge	.L164
	.p2align 4,,10
	.p2align 3
.L152:
	addl	$1, %ebx
	cmpl	%ebp, %ebx
	je	.L146
	movl	%ebp, %r12d
	subl	%ebx, %r12d
	cmpl	%r12d, %ebp
	jl	.L152
.L164:
	movl	%r12d, 16(%rsp)
	testl	%ebx, %ebx
	je	.L165
	cmpl	%ebx, %r12d
	jle	.L166
	.p2align 4,,10
	.p2align 3
.L153:
	subl	$1, %r12d
	je	.L152
	cmpl	%ebx, %r12d
	jg	.L153
.L166:
	movl	%ebx, %edx
	movl	$2, %ecx
	movl	%r12d, %esi
	movq	%r15, %rdi
	subl	%r12d, %edx
	movl	%r12d, 20(%rsp)
	call	comb
	jmp	.L153
	.p2align 4,,10
	.p2align 3
.L163:
	movl	16(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L146
	.p2align 4,,10
	.p2align 3
.L165:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L152
	.p2align 4,,10
	.p2align 3
.L147:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L167
	addq	$168, %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
.L167:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC3:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB23:
	.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
	movl	%ecx, %ebx
	subq	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%rdi, 24(%rsp)
	testl	%edx, %edx
	jle	.L2
	movl	%esi, %r15d
	testl	%esi, %esi
	jle	.L1
	movslq	%ebx, %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 32(%rsp)
	leal	1(%rbx), %eax
	movl	%eax, 128(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 48(%rsp)
	leal	2(%rbx), %eax
	movl	%eax, 140(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 64(%rsp)
	leal	3(%rbx), %eax
	movl	%eax, 132(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 72(%rsp)
	leal	4(%rbx), %eax
	movl	%eax, 136(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 80(%rsp)
	leal	5(%rbx), %eax
	movl	%eax, 144(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 88(%rsp)
	leal	6(%rbx), %eax
	movl	%eax, 148(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 96(%rsp)
	leal	7(%rbx), %eax
	movl	%eax, 152(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 104(%rsp)
	leal	8(%rbx), %eax
	movl	%eax, 156(%rsp)
	cltq
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, 112(%rsp)
	cmpl	%esi, %edx
	jge	.L8
	subl	%edx, %esi
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L9
	movd	%r15d, %xmm4
	movl	%esi, %ecx
	pcmpeqd	%xmm2, %xmm2
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC3(%rip), %xmm3
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %ecx
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %eax
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%eax, %ecx
	jne	.L11
	movl	%esi, %ecx
	pshufd	$255, %xmm0, %xmm0
	movl	%r15d, %edi
	andl	$-4, %ecx
	movd	%xmm0, %eax
	subl	%ecx, %edi
	cmpl	%esi, %ecx
	je	.L13
	leal	-1(%rdi), %eax
	cmpl	%eax, %edx
	jge	.L13
.L76:
	leal	-1(%rax), %r15d
	subl	$2, %eax
	cmpl	%r15d, %edx
	cmovl	%eax, %r15d
.L8:
	subl	%r15d, %edx
	movq	24(%rsp), %rax
	movl	%r15d, 12(%rsp)
	movl	%edx, (%rsp)
	subl	%r15d, %edx
	movl	%edx, 8(%rsp)
	movl	148(%rsp), %edx
	addq	$8, %rax
	leaq	(%rax,%rdx,4), %rdi
	movl	144(%rsp), %edx
	movq	%rdi, 208(%rsp)
	leaq	(%rax,%rdx,4), %rdi
	movl	136(%rsp), %edx
	movq	%rdi, 200(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	132(%rsp), %edx
	movq	%rsi, 216(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	140(%rsp), %edx
	movq	%rsi, 184(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	128(%rsp), %edx
	movq	%rsi, 192(%rsp)
	leaq	(%rax,%rdx,4), %rsi
	movl	%ebx, %edx
	leaq	(%rax,%rdx,4), %rdi
	leal	-1(%rbx), %edx
	movq	%rsi, 168(%rsp)
	leaq	(%rax,%rdx,4), %rax
	movq	%rdi, 160(%rsp)
	movq	%rax, 176(%rsp)
	leal	9(%rbx), %eax
	movl	%eax, 124(%rsp)
.L74:
	movq	32(%rsp), %rax
	movl	12(%rsp), %r14d
	movl	8(%rsp), %r13d
	movl	%r14d, (%rax)
	movl	(%rsp), %eax
	movl	%r13d, %r15d
	movl	%r14d, %r13d
	testl	%eax, %eax
	jle	.L129
.L15:
	cmpl	(%rsp), %r13d
	jle	.L130
.L21:
	addl	$1, %r15d
	subl	$1, %r13d
	jne	.L15
	addl	$1, (%rsp)
	addl	$2, 8(%rsp)
	subl	$1, 12(%rsp)
	jne	.L74
.L1:
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L130:
	.cfi_restore_state
	movq	48(%rsp), %rax
	movl	(%rsp), %r12d
	movl	%r13d, (%rax)
	leal	(%r13,%r13), %eax
	subl	%eax, %r12d
	testl	%r15d, %r15d
	jle	.L131
	movl	%r15d, 4(%rsp)
	movl	%r13d, 40(%rsp)
	movl	%r12d, %r13d
.L72:
	movl	4(%rsp), %eax
	movl	%eax, %r15d
	subl	%r13d, %r15d
	cmpl	%eax, %r15d
	jle	.L132
.L27:
	addl	$1, %r13d
	cmpl	4(%rsp), %r13d
	jne	.L72
	movl	40(%rsp), %r13d
	movl	4(%rsp), %r15d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L132:
	movq	64(%rsp), %rax
	movl	%r15d, (%rax)
	testl	%r13d, %r13d
	jle	.L133
	movl	%r13d, 16(%rsp)
.L28:
	cmpl	16(%rsp), %r15d
	jle	.L134
.L33:
	subl	$1, %r15d
	jne	.L28
	movl	16(%rsp), %r13d
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L134:
	movq	72(%rsp), %rax
	movl	%r15d, (%rax)
	movl	16(%rsp), %eax
	subl	%r15d, %eax
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	jle	.L135
	movl	16(%rsp), %r12d
	movl	%r15d, 44(%rsp)
	leal	(%r15,%r15), %eax
	movl	%r15d, %ebx
	subl	%eax, %r12d
.L69:
	cmpl	20(%rsp), %ebx
	jle	.L136
.L39:
	addl	$1, %r12d
	subl	$1, %ebx
	jne	.L69
	movl	44(%rsp), %r15d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L136:
	movq	80(%rsp), %rax
	movl	%ebx, (%rax)
	testl	%r12d, %r12d
	jle	.L137
	movl	20(%rsp), %r15d
	leal	(%rbx,%rbx), %eax
	movl	%ebx, 56(%rsp)
	movl	%ebx, %ebp
	subl	%eax, %r15d
	movl	%r15d, %r14d
.L67:
	cmpl	%r12d, %ebp
	jle	.L138
.L45:
	addl	$1, %r14d
	subl	$1, %ebp
	jne	.L67
	movl	56(%rsp), %ebx
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L138:
	movq	88(%rsp), %rax
	movl	%r12d, %r15d
	movl	%ebp, (%rax)
	leal	(%rbp,%rbp), %eax
	subl	%eax, %r15d
	testl	%r14d, %r14d
	jle	.L139
	movl	%r12d, 120(%rsp)
	movl	%ebp, 60(%rsp)
	movl	%r14d, %ebp
.L65:
	movl	%ebp, %ebx
	subl	%r15d, %ebx
	cmpl	%ebp, %ebx
	jle	.L140
.L51:
	addl	$1, %r15d
	cmpl	%ebp, %r15d
	jne	.L65
	movl	%ebp, %r14d
	movl	120(%rsp), %r12d
	movl	60(%rsp), %ebp
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L140:
	movq	96(%rsp), %rax
	leaq	.LC1(%rip), %r13
	movl	%ebx, (%rax)
	testl	%r15d, %r15d
	jle	.L141
	cmpl	%r15d, %ebx
	jle	.L142
	.p2align 4,,10
	.p2align 3
.L57:
	subl	$1, %ebx
	je	.L51
	cmpl	%r15d, %ebx
	jg	.L57
.L142:
	movq	104(%rsp), %rax
	movl	%r15d, %r14d
	movl	%ebx, %r12d
	subl	%ebx, %r14d
	movl	%ebx, (%rax)
	testl	%r14d, %r14d
	jle	.L143
	cmpl	%r12d, %r14d
	jge	.L144
	.p2align 4,,10
	.p2align 3
.L62:
	subl	$1, %r12d
	je	.L57
	cmpl	%r12d, %r14d
	jl	.L62
.L144:
	movq	112(%rsp), %rax
	movl	%r14d, %edx
	movl	124(%rsp), %ecx
	movl	%r12d, %esi
	movq	24(%rsp), %rdi
	subl	%r12d, %edx
	movl	%r12d, (%rax)
	call	comb
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jle	.L1
	movl	%eax, %r15d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	(%rdi), %edx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	$1, %ebx
	jle	.L7
	movq	24(%rsp), %rsi
	leal	-2(%rbx), %eax
	leaq	.LC1(%rip), %rbx
	leaq	4(%rsi), %rbp
	leaq	8(%rsi,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movl	0(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%r12, %rbp
	jne	.L6
.L7:
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$10, %edi
	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
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L129:
	.cfi_restore_state
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%rbx), %edx
	leaq	4(%rbx), %rbp
	leaq	.LC1(%rip), %rbx
	call	__printf_chk@PLT
	cmpl	$1, 128(%rsp)
	movq	176(%rsp), %r12
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	movl	0(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	cmpq	%r12, %rbp
	jne	.L18
.L19:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, (%rsp)
	addl	$2, 8(%rsp)
	subl	$1, 12(%rsp)
	jne	.L74
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L131:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%rbx), %edx
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpl	$1, 140(%rsp)
	movq	160(%rsp), %r12
	jle	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L24
.L25:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L133:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%rbx), %edx
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpl	$1, 132(%rsp)
	movq	168(%rsp), %r12
	jle	.L31
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L30
.L31:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L135:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%rbx), %edx
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpl	$1, 136(%rsp)
	movq	192(%rsp), %r12
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L36:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L36
.L37:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L137:
	movq	24(%rsp), %r14
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %rbp
	movl	(%r14), %edx
	leaq	4(%r14), %r13
	call	__printf_chk@PLT
	cmpl	$1, 144(%rsp)
	movq	184(%rsp), %r14
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L42:
	movl	0(%r13), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__printf_chk@PLT
	cmpq	%r13, %r14
	jne	.L42
.L43:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L139:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	leaq	.LC1(%rip), %r13
	movl	(%rbx), %edx
	leaq	4(%rbx), %r15
	call	__printf_chk@PLT
	cmpl	$1, 148(%rsp)
	movq	216(%rsp), %rbx
	jle	.L49
	.p2align 4,,10
	.p2align 3
.L48:
	movl	(%r15), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	cmpq	%rbx, %r15
	jne	.L48
.L49:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L141:
	movq	24(%rsp), %rbx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%rbx), %edx
	leaq	4(%rbx), %r13
	leaq	.LC1(%rip), %rbx
	call	__printf_chk@PLT
	cmpl	$1, 152(%rsp)
	movq	200(%rsp), %r12
	jle	.L55
	.p2align 4,,10
	.p2align 3
.L54:
	movl	0(%r13), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r13
	call	__printf_chk@PLT
	cmpq	%r12, %r13
	jne	.L54
.L55:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L143:
	movq	24(%rsp), %r14
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%r14), %edx
	leaq	4(%r14), %r12
	call	__printf_chk@PLT
	cmpl	$1, 156(%rsp)
	movq	208(%rsp), %r14
	jle	.L61
	.p2align 4,,10
	.p2align 3
.L60:
	movl	(%r12), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r12
	call	__printf_chk@PLT
	cmpq	%r14, %r12
	jne	.L60
.L61:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L57
.L9:
	leal	-1(%r15), %eax
	movl	%eax, %r15d
	cmpl	%eax, %edx
	jl	.L76
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	comb, .-comb
	.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
	leaq	.LC0(%rip), %r13
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r14
	leaq	16(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L146:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L147
	movl	$0, %ebx
	jle	.L163
	movl	%ebp, %r12d
	subl	%ebx, %r12d
	cmpl	%r12d, %ebp
	jge	.L164
	.p2align 4,,10
	.p2align 3
.L152:
	addl	$1, %ebx
	cmpl	%ebp, %ebx
	je	.L146
	movl	%ebp, %r12d
	subl	%ebx, %r12d
	cmpl	%r12d, %ebp
	jl	.L152
.L164:
	movl	%r12d, 16(%rsp)
	testl	%ebx, %ebx
	je	.L165
	cmpl	%ebx, %r12d
	jle	.L166
	.p2align 4,,10
	.p2align 3
.L153:
	subl	$1, %r12d
	je	.L152
	cmpl	%ebx, %r12d
	jg	.L153
.L166:
	movl	%ebx, %edx
	movl	$2, %ecx
	movl	%r12d, %esi
	movq	%r15, %rdi
	subl	%r12d, %edx
	movl	%r12d, 20(%rsp)
	call	comb
	jmp	.L153
	.p2align 4,,10
	.p2align 3
.L163:
	movl	16(%rsp), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L146
	.p2align 4,,10
	.p2align 3
.L165:
	movl	%r12d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L152
	.p2align 4,,10
	.p2align 3
.L147:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L167
	addq	$168, %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
.L167:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-1
	.long	-2
	.long	-3
	.align 16
.LC3:
	.long	-4
	.long	-4
	.long	-4
	.long	-4
	.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:

#include <stdio.h>


void comb(int *out, int max, int n, int depth)
{
	int i;
	

	if (n <= 0){
		printf("%d", out[0]);
		for (i = 1; i < depth; i++){
			printf(" %d", out[i]);
		}
		printf("\n");
		return;
	}

	for (i = max; i > 0; i--){
		if (n >= i){
			out[depth] = i;
			comb(out, i, n - i, depth + 1);
		}
	}
	
	return;
}

int main(void)
{
	int n;
	int out[31];

	while (1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		comb(out, n, n, 0);
		
	}

	return (0);
}

		
		
		
		
5
8
0
 5
6
0
 5
7
0
 5
4
0
 5
3
0
 5
0
0
 5
9
0
 5
14
0
 5
1
0
 5
2
0

5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
8
7 1
6 2
6 1 1
5 3
5 2 1
5 1 1 1
4 4
4 3 1
4 2 2
4 2 1 1
4 1 1 1 1
3 3 2
3 3 1 1
3 2 2 1
3 2 1 1 1
3 1 1 1 1 1
2 2 2 2
2 2 2 1 1
2 2 1 1 1 1
2 1 1 1 1 1 1
1 1 1 1 1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
6
5 1
4 2
4 1 1
3 3
3 2 1
3 1 1 1
2 2 2
2 2 1 1
2 1 1 1 1
1 1 1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
7
6 1
5 2
5 1 1
4 3
4 2 1
4 1 1 1
3 3 1
3 2 2
3 2 1 1
3 1 1 1 1
2 2 2 1
2 2 1 1 1
2 1 1 1 1 1
1 1 1 1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
4
3 1
2 2
2 1 1
1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
3
2 1
1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
9
8 1
7 2
7 1 1
6 3
6 2 1
6 1 1 1
5 4
5 3 1
5 2 2
5 2 1 1
5 1 1 1 1
4 4 1
4 3 2
4 3 1 1
4 2 2 1
4 2 1 1 1
4 1 1 1 1 1
3 3 3
3 3 2 1
3 3 1 1 1
3 2 2 2
3 2 2 1 1
3 2 1 1 1 1
3 1 1 1 1 1 1
2 2 2 2 1
2 2 2 1 1 1
2 2 1 1 1 1 1
2 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
14
13 1
12 2
12 1 1
11 3
11 2 1
11 1 1 1
10 4
10 3 1
10 2 2
10 2 1 1
10 1 1 1 1
9 5
9 4 1
9 3 2
9 3 1 1
9 2 2 1
9 2 1 1 1
9 1 1 1 1 1
8 6
8 5 1
8 4 2
8 4 1 1
8 3 3
8 3 2 1
8 3 1 1 1
8 2 2 2
8 2 2 1 1
8 2 1 1 1 1
8 1 1 1 1 1 1
7 7
7 6 1
7 5 2
7 5 1 1
7 4 3
7 4 2 1
7 4 1 1 1
7 3 3 1
7 3 2 2
7 3 2 1 1
7 3 1 1 1 1
7 2 2 2 1
7 2 2 1 1 1
7 2 1 1 1 1 1
7 1 1 1 1 1 1 1
6 6 2
6 6 1 1
6 5 3
6 5 2 1
6 5 1 1 1
6 4 4
6 4 3 1
6 4 2 2
6 4 2 1 1
6 4 1 1 1 1
6 3 3 2
6 3 3 1 1
6 3 2 2 1
6 3 2 1 1 1
6 3 1 1 1 1 1
6 2 2 2 2
6 2 2 2 1 1
6 2 2 1 1 1 1
6 2 1 1 1 1 1 1
6 1 1 1 1 1 1 1 1
5 5 4
5 5 3 1
5 5 2 2
5 5 2 1 1
5 5 1 1 1 1
5 4 4 1
5 4 3 2
5 4 3 1 1
5 4 2 2 1
5 4 2 1 1 1
5 4 1 1 1 1 1
5 3 3 3
5 3 3 2 1
5 3 3 1 1 1
5 3 2 2 2
5 3 2 2 1 1
5 3 2 1 1 1 1
5 3 1 1 1 1 1 1
5 2 2 2 2 1
5 2 2 2 1 1 1
5 2 2 1 1 1 1 1
5 2 1 1 1 1 1 1 1
5 1 1 1 1 1 1 1 1 1
4 4 4 2
4 4 4 1 1
4 4 3 3
4 4 3 2 1
4 4 3 1 1 1
4 4 2 2 2
4 4 2 2 1 1
4 4 2 1 1 1 1
4 4 1 1 1 1 1 1
4 3 3 3 1
4 3 3 2 2
4 3 3 2 1 1
4 3 3 1 1 1 1
4 3 2 2 2 1
4 3 2 2 1 1 1
4 3 2 1 1 1 1 1
4 3 1 1 1 1 1 1 1
4 2 2 2 2 2
4 2 2 2 2 1 1
4 2 2 2 1 1 1 1
4 2 2 1 1 1 1 1 1
4 2 1 1 1 1 1 1 1 1
4 1 1 1 1 1 1 1 1 1 1
3 3 3 3 2
3 3 3 3 1 1
3 3 3 2 2 1
3 3 3 2 1 1 1
3 3 3 1 1 1 1 1
3 3 2 2 2 2
3 3 2 2 2 1 1
3 3 2 2 1 1 1 1
3 3 2 1 1 1 1 1 1
3 3 1 1 1 1 1 1 1 1
3 2 2 2 2 2 1
3 2 2 2 2 1 1 1
3 2 2 2 1 1 1 1 1
3 2 2 1 1 1 1 1 1 1
3 2 1 1 1 1 1 1 1 1 1
3 1 1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2
2 2 2 2 2 2 1 1
2 2 2 2 2 1 1 1 1
2 2 2 2 1 1 1 1 1 1
2 2 2 1 1 1 1 1 1 1 1
2 2 1 1 1 1 1 1 1 1 1 1
2 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
1
 5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
2
1 1

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

```c
#include <stdio.h>


void comb(int *out, int max, int n, int depth)
{
	int i;
	

	if (n <= 0){
		printf("%d", out[0]);
		for (i = 1; i < depth; i++){
			printf(" %d", out[i]);
		}
		printf("\n");
		return;
	}

	for (i = max; i > 0; i--){
		if (n >= i){
			out[depth] = i;
			comb(out, i, n - i, depth + 1);
		}
	}
	
	return;
}

int main(void)
{
	int n;
	int out[31];

	while (1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		comb(out, n, n, 0);
		
	}

	return (0);
}

		
		
		
		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	comb
	.type	comb, @function
comb:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	cmpl	$0, -32(%rbp)
	jg	.L2
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -4(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L4
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L1
.L2:
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L8:
	movl	-32(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L7
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-36(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-4(%rbp), %esi
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	comb
.L7:
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jg	.L8
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	comb, .-comb
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L16
	movl	-148(%rbp), %edx
	movl	-148(%rbp), %esi
	leaq	-144(%rbp), %rax
	movl	$0, %ecx
	movq	%rax, %rdi
	call	comb
	jmp	.L12
.L16:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	comb
	.type	comb, @function
comb:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	cmpl	$0, -32(%rbp)
	jg	.L2
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -4(%rbp)
	jmp	.L3
.L4:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L4
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L1
.L2:
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L8:
	movl	-32(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L7
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	movl	-36(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-4(%rbp), %esi
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	comb
.L7:
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jg	.L8
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	comb, .-comb
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L16
	movl	-148(%rbp), %edx
	movl	-148(%rbp), %esi
	leaq	-144(%rbp), %rax
	movl	$0, %ecx
	movq	%rax, %rdi
	call	comb
	jmp	.L12
.L16:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
