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>
#define MIN(a, b) ((a) < (b) ? (a) : (b))

int a[30];

void f(int d, int b, int n)
{
    int i;
    if(!n)for(i = 0; i != d; i++) printf("%d%c", a[i], i + 1 == d ? '\n' : ' ');
    for(i = MIN(b, n); i; i--) a[d] = i, f(d + 1, i, n - i);
}

int main(void)
{
    int n;
    while(1){
        scanf("%d", &n);
        if(!n) return 0;
        f(0, n, n);
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120
a:
	.zero	120
	.section	.rodata
.LC0:
	.string	"%d%c"
	.text
	.globl	f
	.type	f, @function
f:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	cmpl	$0, -28(%rbp)
	jne	.L2
	movl	$0, -4(%rbp)
	jmp	.L3
.L6:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jne	.L4
	movl	$10, %ecx
	jmp	.L5
.L4:
	movl	$32, %ecx
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L6
.L2:
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	f
	subl	$1, -4(%rbp)
.L7:
	cmpl	$0, -4(%rbp)
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"%d"
	.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	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	jmp	.L14
.L10:
	movl	-12(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	movl	$0, %edi
	call	f
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
.L13:
	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%c"
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edi, %r15d
	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
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	testl	%edx, %edx
	jne	.L2
	testl	%edi, %edi
	je	.L2
	movl	a(%rip), %edx
	leaq	.LC0(%rip), %r14
	cmpl	$1, %edi
	je	.L3
	leaq	4+a(%rip), %r12
	leal	-2(%rdi), %eax
	leaq	4(%r12), %rcx
	leaq	(%rcx,%rax,4), %r13
.L65:
	movl	$32, %ecx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %r12
	movl	-4(%r12), %edx
	cmpq	%r13, %r12
	jne	.L65
.L3:
	movl	$10, %ecx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L2:
	cmpl	%ebp, %ebx
	movl	%ebp, %eax
	cmovle	%ebx, %eax
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	je	.L1
	leal	7(%r15), %edx
	leal	1(%r15), %ecx
	subl	%eax, %ebx
	movl	%r15d, %eax
	movl	%edx, 128(%rsp)
	leal	8(%r15), %edx
	leal	2(%r15), %edi
	movl	%edx, 12(%rsp)
	movl	%ecx, %edx
	leal	3(%r15), %esi
	leal	4(%r15), %r8d
	movl	%ebx, 100(%rsp)
	movq	%rax, %rbx
	leal	5(%r15), %r9d
	leal	6(%r15), %r11d
	movq	%rax, 144(%rsp)
	leaq	8+a(%rip), %rax
	leaq	a(%rip), %r14
	movl	%ecx, 112(%rsp)
	leaq	(%rax,%rdx,4), %rcx
	movl	%edi, %edx
	leaq	(%rax,%rbx,4), %rbx
	movq	%rcx, 176(%rsp)
	leaq	(%rax,%rdx,4), %rcx
	movl	%esi, %edx
	leaq	.LC0(%rip), %r13
	movl	%edi, 224(%rsp)
	leaq	(%rax,%rdx,4), %rdi
	movl	%r8d, %edx
	movq	%rcx, 168(%rsp)
	leaq	(%rax,%rdx,4), %rcx
	movl	%r9d, %edx
	movq	%rdi, 136(%rsp)
	leaq	(%rax,%rdx,4), %rdi
	movl	%r11d, %edx
	leaq	(%rax,%rdx,4), %rax
	movl	%esi, 132(%rsp)
	movq	%rax, 120(%rsp)
	movslq	%r15d, %rax
	movl	%r8d, 116(%rsp)
	movl	%r9d, 16(%rsp)
	movl	%r11d, 20(%rsp)
	movq	%rbx, 184(%rsp)
	movq	%rcx, 160(%rsp)
	movq	%rdi, 80(%rsp)
	movq	%rax, 208(%rsp)
	movl	%r15d, 32(%rsp)
.L13:
	movq	208(%rsp), %rax
	movl	64(%rsp), %ecx
	movl	100(%rsp), %r9d
	movl	%ecx, (%r14,%rax,4)
	testl	%r9d, %r9d
	jne	.L9
	movl	112(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L9
	xorl	%ebx, %ebx
	jmp	.L12
.L152:
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	1(%rbx), %rax
	cmpq	%rbx, 144(%rsp)
	je	.L9
	movq	%rax, %rbx
.L12:
	movl	(%r14,%rbx,4), %edx
	movl	$32, %ecx
	cmpl	%ebx, 32(%rsp)
	jne	.L152
	movl	$10, %ecx
	jmp	.L152
.L9:
	movl	100(%rsp), %ecx
	movl	64(%rsp), %eax
	movslq	112(%rsp), %rdi
	cmpl	%eax, %ecx
	cmovle	%ecx, %eax
	movq	%rdi, 216(%rsp)
	subl	%eax, %ecx
	movl	%eax, 68(%rsp)
	movl	%ecx, 96(%rsp)
	testl	%eax, %eax
	je	.L8
.L19:
	movq	216(%rsp), %rax
	movl	68(%rsp), %esi
	movl	96(%rsp), %edi
	movl	%esi, (%r14,%rax,4)
	testl	%edi, %edi
	jne	.L15
	movl	224(%rsp), %eax
	testl	%eax, %eax
	je	.L15
	movl	(%r14), %edx
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L16
.L64:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	184(%rsp), %rbx
	jne	.L64
.L16:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movl	96(%rsp), %edi
	movl	68(%rsp), %eax
	movslq	224(%rsp), %rcx
	cmpl	%eax, %edi
	cmovle	%edi, %eax
	movq	%rcx, 200(%rsp)
	subl	%eax, %edi
	movl	%eax, 72(%rsp)
	movl	%edi, 92(%rsp)
	testl	%eax, %eax
	je	.L25
.L24:
	movl	72(%rsp), %esi
	movq	200(%rsp), %rax
	movl	%esi, (%r14,%rax,4)
	movl	92(%rsp), %esi
	testl	%esi, %esi
	jne	.L20
	movl	132(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	movl	(%r14), %edx
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L21
.L63:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	176(%rsp), %rbx
	jne	.L63
.L21:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L20:
	movl	92(%rsp), %esi
	movl	72(%rsp), %eax
	movslq	132(%rsp), %rcx
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	movq	%rcx, 192(%rsp)
	subl	%eax, %esi
	movl	%eax, 76(%rsp)
	movl	%esi, 88(%rsp)
	testl	%eax, %eax
	je	.L31
.L30:
	movq	192(%rsp), %rax
	movl	76(%rsp), %esi
	movl	88(%rsp), %ecx
	movl	%esi, (%r14,%rax,4)
	testl	%ecx, %ecx
	jne	.L26
	movl	116(%rsp), %eax
	testl	%eax, %eax
	je	.L26
	movl	(%r14), %edx
	movq	168(%rsp), %rbp
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L27
.L62:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	%rbp, %rbx
	jne	.L62
.L27:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L26:
	movl	88(%rsp), %eax
	movl	76(%rsp), %r15d
	cmpl	%r15d, %eax
	cmovle	%eax, %r15d
	subl	%r15d, %eax
	movl	%eax, %ebp
	movslq	116(%rsp), %rax
	movq	%rax, 48(%rsp)
	testl	%r15d, %r15d
	je	.L37
.L36:
	movq	48(%rsp), %rax
	movl	%r15d, (%r14,%rax,4)
	testl	%ebp, %ebp
	jne	.L32
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L32
	movl	(%r14), %edx
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L33
	.p2align 4,,10
	.p2align 3
.L61:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	136(%rsp), %rbx
	jne	.L61
.L33:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L32:
	cmpl	%r15d, %ebp
	movl	%r15d, %ebx
	movl	%ebp, %eax
	cmovle	%ebp, %ebx
	subl	%ebx, %eax
	movl	%eax, 8(%rsp)
	movslq	16(%rsp), %rax
	movq	%rax, 24(%rsp)
	testl	%ebx, %ebx
	je	.L43
	movl	%r15d, 36(%rsp)
	movl	%ebp, 40(%rsp)
.L42:
	movq	24(%rsp), %rax
	movl	8(%rsp), %edx
	movl	%ebx, (%r14,%rax,4)
	testl	%edx, %edx
	jne	.L38
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L38
	movl	(%r14), %edx
	leaq	4+a(%rip), %r12
	cmpl	$1, %eax
	je	.L39
	.p2align 4,,10
	.p2align 3
.L60:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %r12
	movl	-4(%r12), %edx
	cmpq	160(%rsp), %r12
	jne	.L60
.L39:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	movl	8(%rsp), %eax
	cmpl	%ebx, %eax
	movl	%eax, %r15d
	cmovg	%ebx, %r15d
	subl	%r15d, %eax
	movl	%eax, 44(%rsp)
	movslq	20(%rsp), %rax
	movq	%rax, 152(%rsp)
	testl	%r15d, %r15d
	je	.L49
.L48:
	movq	152(%rsp), %rax
	movl	%r15d, (%r14,%rax,4)
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jne	.L44
	movl	128(%rsp), %eax
	testl	%eax, %eax
	je	.L44
	movl	(%r14), %edx
	leaq	4+a(%rip), %r12
	cmpl	$1, %eax
	je	.L45
	.p2align 4,,10
	.p2align 3
.L59:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %r12
	movl	-4(%r12), %edx
	cmpq	%r12, 80(%rsp)
	jne	.L59
.L45:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L44:
	movl	44(%rsp), %eax
	cmpl	%r15d, %eax
	movl	%eax, %ebp
	cmovg	%r15d, %ebp
	subl	%ebp, %eax
	movl	%eax, %r12d
	movslq	128(%rsp), %rax
	movq	%rax, 56(%rsp)
	testl	%ebp, %ebp
	je	.L55
	movl	%r12d, %eax
	movl	%ebp, %r12d
	movl	%eax, %ebp
.L54:
	movq	56(%rsp), %rax
	movl	%r12d, (%r14,%rax,4)
	testl	%ebp, %ebp
	jne	.L50
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L50
	movl	(%r14), %edx
	leaq	4+a(%rip), %r10
	cmpl	$1, %eax
	je	.L51
	.p2align 4,,10
	.p2align 3
.L58:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r10, 104(%rsp)
	call	__printf_chk@PLT
	movq	104(%rsp), %r10
	addq	$4, %r10
	movl	-4(%r10), %edx
	cmpq	120(%rsp), %r10
	jne	.L58
.L51:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L50:
	cmpl	%r12d, %ebp
	movl	%r12d, %eax
	movl	32(%rsp), %esi
	movslq	12(%rsp), %rcx
	cmovle	%ebp, %eax
	leal	9(%rsi), %edi
	testl	%eax, %eax
	je	.L57
.L56:
	movl	%eax, (%r14,%rcx,4)
	movl	%ebp, %edx
	movl	%eax, %esi
	subl	%eax, %edx
	movq	%rcx, 232(%rsp)
	movl	%eax, 228(%rsp)
	movl	%edi, 104(%rsp)
	call	f
	movl	228(%rsp), %eax
	movl	104(%rsp), %edi
	movq	232(%rsp), %rcx
	subl	$1, %eax
	jne	.L56
.L57:
	addl	$1, %ebp
	subl	$1, %r12d
	jne	.L54
.L55:
	addl	$1, 44(%rsp)
	subl	$1, %r15d
	jne	.L48
.L49:
	addl	$1, 8(%rsp)
	subl	$1, %ebx
	jne	.L42
	movl	36(%rsp), %r15d
	movl	40(%rsp), %ebp
.L43:
	addl	$1, %ebp
	subl	$1, %r15d
	jne	.L36
.L37:
	addl	$1, 88(%rsp)
	subl	$1, 76(%rsp)
	jne	.L30
.L31:
	addl	$1, 92(%rsp)
	subl	$1, 72(%rsp)
	jne	.L24
.L25:
	addl	$1, 96(%rsp)
	subl	$1, 68(%rsp)
	jne	.L19
.L8:
	addl	$1, 100(%rsp)
	subl	$1, 64(%rsp)
	jne	.L13
.L1:
	addq	$248, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	f, .-f
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 56(%rsp)
.L181:
	movq	56(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	84(%rsp), %eax
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	je	.L234
	movq	$0, 8(%rsp)
	movl	64(%rsp), %eax
	movq	%rax, 48(%rsp)
.L180:
	movq	8(%rsp), %rax
	movl	64(%rsp), %ebx
	leaq	a(%rip), %rsi
	subl	%eax, %ebx
	movl	%eax, %ebp
	movl	%ebx, (%rsi)
	testq	%rax, %rax
	jne	.L156
	movl	$10, %ecx
	movl	%ebx, %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
.L156:
	cmpl	%ebx, %ebp
	cmovle	%ebp, %ebx
	testl	%ebx, %ebx
	je	.L157
	subl	%ebx, %ebp
	movl	%ebx, 44(%rsp)
	movl	%ebp, 40(%rsp)
.L179:
	movl	44(%rsp), %eax
	movl	40(%rsp), %esi
	movl	%eax, 4+a(%rip)
	testl	%esi, %esi
	jne	.L158
	leaq	a(%rip), %rax
	movl	$32, %ecx
	movl	$1, %edi
	movl	(%rax), %edx
	leaq	.LC0(%rip), %rbp
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	movl	4+a(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$10, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
.L158:
	movl	40(%rsp), %edi
	movl	44(%rsp), %eax
	cmpl	%eax, %edi
	cmovle	%edi, %eax
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L159
	subl	%eax, %edi
	movl	%edi, 36(%rsp)
.L178:
	movl	20(%rsp), %eax
	movl	36(%rsp), %ecx
	movl	%eax, 8+a(%rip)
	testl	%ecx, %ecx
	jne	.L194
	leaq	a(%rip), %rax
	movl	$32, %ecx
	movl	$1, %edi
	movl	(%rax), %edx
	leaq	.LC0(%rip), %rbp
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	movl	4+a(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$32, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8+a(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$10, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
.L194:
	movl	20(%rsp), %edx
	movl	36(%rsp), %eax
	cmpl	%eax, %edx
	movl	%eax, %ecx
	cmovle	%edx, %ecx
	movl	%ecx, 28(%rsp)
	testl	%ecx, %ecx
	je	.L161
	subl	%ecx, %eax
	movl	%eax, 24(%rsp)
.L177:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, 12+a(%rip)
	testl	%edx, %edx
	jne	.L193
	leaq	a(%rip), %rbx
	leaq	.LC0(%rip), %rbp
	leaq	12(%rbx), %r12
.L192:
	movl	(%rbx), %edx
	movl	$32, %ecx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L192
	movl	12+a(%rip), %edx
	movl	$10, %ecx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L193:
	movl	24(%rsp), %eax
	movl	28(%rsp), %r15d
	cmpl	%r15d, %eax
	cmovle	%eax, %r15d
	testl	%r15d, %r15d
	je	.L163
	subl	%r15d, %eax
	movl	%eax, 32(%rsp)
.L176:
	movl	32(%rsp), %eax
	movl	%r15d, 16+a(%rip)
	testl	%eax, %eax
	jne	.L191
	leaq	a(%rip), %rbx
	leaq	.LC0(%rip), %rbp
	leaq	16(%rbx), %r12
.L190:
	movl	(%rbx), %edx
	movl	$32, %ecx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L190
	movl	16+a(%rip), %edx
	movl	$10, %ecx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L191:
	movl	32(%rsp), %eax
	cmpl	%r15d, %eax
	movl	%eax, %ebx
	cmovg	%r15d, %ebx
	testl	%ebx, %ebx
	je	.L165
	movl	%r15d, 68(%rsp)
	subl	%ebx, %eax
	movl	%eax, %r14d
.L175:
	movl	%ebx, 20+a(%rip)
	testl	%r14d, %r14d
	jne	.L189
	leaq	a(%rip), %rbp
	leaq	.LC0(%rip), %r12
.L188:
	movl	0(%rbp), %edx
	movl	$32, %ecx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	leaq	20+a(%rip), %rax
	cmpq	%rax, %rbp
	jne	.L188
	movl	20+a(%rip), %edx
	movl	$10, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L189:
	cmpl	%ebx, %r14d
	movl	%ebx, %ebp
	cmovle	%r14d, %ebp
	testl	%ebp, %ebp
	je	.L167
	movl	%ebx, 72(%rsp)
	movl	%r14d, %r12d
	leaq	.LC0(%rip), %r13
	subl	%ebp, %r12d
.L174:
	movl	%ebp, 24+a(%rip)
	testl	%r12d, %r12d
	jne	.L185
	leaq	a(%rip), %r15
.L187:
	movl	(%r15), %edx
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	leaq	24+a(%rip), %rax
	cmpq	%rax, %r15
	jne	.L187
	movl	24+a(%rip), %edx
	movl	$10, %ecx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L185:
	cmpl	%ebp, %r12d
	movl	%ebp, %r15d
	cmovle	%r12d, %r15d
	testl	%r15d, %r15d
	je	.L169
	movl	%r12d, %ebx
	movl	%ebp, 76(%rsp)
	subl	%r15d, %ebx
	movl	%ebx, %ebp
.L173:
	movl	%r15d, 28+a(%rip)
	testl	%ebp, %ebp
	jne	.L182
	leaq	a(%rip), %rbx
.L184:
	movl	(%rbx), %edx
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	leaq	28+a(%rip), %rax
	cmpq	%rax, %rbx
	jne	.L184
	movl	28+a(%rip), %edx
	movl	$10, %ecx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L182:
	cmpl	%r15d, %ebp
	movl	%r15d, %ebx
	cmovle	%ebp, %ebx
	testl	%ebx, %ebx
	je	.L171
.L172:
	movl	%ebp, %edx
	movl	%ebx, %esi
	movl	$9, %edi
	movl	%ebx, 32+a(%rip)
	subl	%ebx, %edx
	call	f
	subl	$1, %ebx
	jne	.L172
.L171:
	addl	$1, %ebp
	subl	$1, %r15d
	jne	.L173
	movl	76(%rsp), %ebp
.L169:
	addl	$1, %r12d
	subl	$1, %ebp
	jne	.L174
	movl	72(%rsp), %ebx
.L167:
	addl	$1, %r14d
	subl	$1, %ebx
	jne	.L175
	movl	68(%rsp), %r15d
.L165:
	addl	$1, 32(%rsp)
	subl	$1, %r15d
	jne	.L176
.L163:
	addl	$1, 24(%rsp)
	subl	$1, 28(%rsp)
	jne	.L177
.L161:
	addl	$1, 36(%rsp)
	subl	$1, 20(%rsp)
	jne	.L178
.L159:
	addl	$1, 40(%rsp)
	subl	$1, 44(%rsp)
	jne	.L179
.L157:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rax
	cmpq	48(%rsp), %rax
	jne	.L180
	jmp	.L181
.L234:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L235
	addq	$104, %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
.L235:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120
a:
	.zero	120
	.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%c"
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edi, %r15d
	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
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edx, %ebx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	testl	%edx, %edx
	jne	.L2
	testl	%edi, %edi
	je	.L2
	movl	a(%rip), %edx
	leaq	.LC0(%rip), %r14
	cmpl	$1, %edi
	je	.L3
	leaq	4+a(%rip), %r12
	leal	-2(%rdi), %eax
	leaq	4(%r12), %rcx
	leaq	(%rcx,%rax,4), %r13
.L65:
	movl	$32, %ecx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %r12
	movl	-4(%r12), %edx
	cmpq	%r13, %r12
	jne	.L65
.L3:
	movl	$10, %ecx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L2:
	cmpl	%ebp, %ebx
	movl	%ebp, %eax
	cmovle	%ebx, %eax
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	je	.L1
	leal	7(%r15), %edx
	leal	1(%r15), %ecx
	subl	%eax, %ebx
	movl	%r15d, %eax
	movl	%edx, 128(%rsp)
	leal	8(%r15), %edx
	leal	2(%r15), %edi
	movl	%edx, 12(%rsp)
	movl	%ecx, %edx
	leal	3(%r15), %esi
	leal	4(%r15), %r8d
	movl	%ebx, 100(%rsp)
	movq	%rax, %rbx
	leal	5(%r15), %r9d
	leal	6(%r15), %r11d
	movq	%rax, 144(%rsp)
	leaq	8+a(%rip), %rax
	leaq	a(%rip), %r14
	movl	%ecx, 112(%rsp)
	leaq	(%rax,%rdx,4), %rcx
	movl	%edi, %edx
	leaq	(%rax,%rbx,4), %rbx
	movq	%rcx, 176(%rsp)
	leaq	(%rax,%rdx,4), %rcx
	movl	%esi, %edx
	leaq	.LC0(%rip), %r13
	movl	%edi, 224(%rsp)
	leaq	(%rax,%rdx,4), %rdi
	movl	%r8d, %edx
	movq	%rcx, 168(%rsp)
	leaq	(%rax,%rdx,4), %rcx
	movl	%r9d, %edx
	movq	%rdi, 136(%rsp)
	leaq	(%rax,%rdx,4), %rdi
	movl	%r11d, %edx
	leaq	(%rax,%rdx,4), %rax
	movl	%esi, 132(%rsp)
	movq	%rax, 120(%rsp)
	movslq	%r15d, %rax
	movl	%r8d, 116(%rsp)
	movl	%r9d, 16(%rsp)
	movl	%r11d, 20(%rsp)
	movq	%rbx, 184(%rsp)
	movq	%rcx, 160(%rsp)
	movq	%rdi, 80(%rsp)
	movq	%rax, 208(%rsp)
	movl	%r15d, 32(%rsp)
.L13:
	movq	208(%rsp), %rax
	movl	64(%rsp), %ecx
	movl	100(%rsp), %r9d
	movl	%ecx, (%r14,%rax,4)
	testl	%r9d, %r9d
	jne	.L9
	movl	112(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L9
	xorl	%ebx, %ebx
	jmp	.L12
.L152:
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	1(%rbx), %rax
	cmpq	%rbx, 144(%rsp)
	je	.L9
	movq	%rax, %rbx
.L12:
	movl	(%r14,%rbx,4), %edx
	movl	$32, %ecx
	cmpl	%ebx, 32(%rsp)
	jne	.L152
	movl	$10, %ecx
	jmp	.L152
.L9:
	movl	100(%rsp), %ecx
	movl	64(%rsp), %eax
	movslq	112(%rsp), %rdi
	cmpl	%eax, %ecx
	cmovle	%ecx, %eax
	movq	%rdi, 216(%rsp)
	subl	%eax, %ecx
	movl	%eax, 68(%rsp)
	movl	%ecx, 96(%rsp)
	testl	%eax, %eax
	je	.L8
.L19:
	movq	216(%rsp), %rax
	movl	68(%rsp), %esi
	movl	96(%rsp), %edi
	movl	%esi, (%r14,%rax,4)
	testl	%edi, %edi
	jne	.L15
	movl	224(%rsp), %eax
	testl	%eax, %eax
	je	.L15
	movl	(%r14), %edx
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L16
.L64:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	184(%rsp), %rbx
	jne	.L64
.L16:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movl	96(%rsp), %edi
	movl	68(%rsp), %eax
	movslq	224(%rsp), %rcx
	cmpl	%eax, %edi
	cmovle	%edi, %eax
	movq	%rcx, 200(%rsp)
	subl	%eax, %edi
	movl	%eax, 72(%rsp)
	movl	%edi, 92(%rsp)
	testl	%eax, %eax
	je	.L25
.L24:
	movl	72(%rsp), %esi
	movq	200(%rsp), %rax
	movl	%esi, (%r14,%rax,4)
	movl	92(%rsp), %esi
	testl	%esi, %esi
	jne	.L20
	movl	132(%rsp), %eax
	testl	%eax, %eax
	je	.L20
	movl	(%r14), %edx
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L21
.L63:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	176(%rsp), %rbx
	jne	.L63
.L21:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L20:
	movl	92(%rsp), %esi
	movl	72(%rsp), %eax
	movslq	132(%rsp), %rcx
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	movq	%rcx, 192(%rsp)
	subl	%eax, %esi
	movl	%eax, 76(%rsp)
	movl	%esi, 88(%rsp)
	testl	%eax, %eax
	je	.L31
.L30:
	movq	192(%rsp), %rax
	movl	76(%rsp), %esi
	movl	88(%rsp), %ecx
	movl	%esi, (%r14,%rax,4)
	testl	%ecx, %ecx
	jne	.L26
	movl	116(%rsp), %eax
	testl	%eax, %eax
	je	.L26
	movl	(%r14), %edx
	movq	168(%rsp), %rbp
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L27
.L62:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	%rbp, %rbx
	jne	.L62
.L27:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L26:
	movl	88(%rsp), %eax
	movl	76(%rsp), %r15d
	cmpl	%r15d, %eax
	cmovle	%eax, %r15d
	subl	%r15d, %eax
	movl	%eax, %ebp
	movslq	116(%rsp), %rax
	movq	%rax, 48(%rsp)
	testl	%r15d, %r15d
	je	.L37
.L36:
	movq	48(%rsp), %rax
	movl	%r15d, (%r14,%rax,4)
	testl	%ebp, %ebp
	jne	.L32
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L32
	movl	(%r14), %edx
	leaq	4+a(%rip), %rbx
	cmpl	$1, %eax
	je	.L33
	.p2align 4,,10
	.p2align 3
.L61:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %rbx
	movl	-4(%rbx), %edx
	cmpq	136(%rsp), %rbx
	jne	.L61
.L33:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L32:
	cmpl	%r15d, %ebp
	movl	%r15d, %ebx
	movl	%ebp, %eax
	cmovle	%ebp, %ebx
	subl	%ebx, %eax
	movl	%eax, 8(%rsp)
	movslq	16(%rsp), %rax
	movq	%rax, 24(%rsp)
	testl	%ebx, %ebx
	je	.L43
	movl	%r15d, 36(%rsp)
	movl	%ebp, 40(%rsp)
.L42:
	movq	24(%rsp), %rax
	movl	8(%rsp), %edx
	movl	%ebx, (%r14,%rax,4)
	testl	%edx, %edx
	jne	.L38
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L38
	movl	(%r14), %edx
	leaq	4+a(%rip), %r12
	cmpl	$1, %eax
	je	.L39
	.p2align 4,,10
	.p2align 3
.L60:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %r12
	movl	-4(%r12), %edx
	cmpq	160(%rsp), %r12
	jne	.L60
.L39:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	movl	8(%rsp), %eax
	cmpl	%ebx, %eax
	movl	%eax, %r15d
	cmovg	%ebx, %r15d
	subl	%r15d, %eax
	movl	%eax, 44(%rsp)
	movslq	20(%rsp), %rax
	movq	%rax, 152(%rsp)
	testl	%r15d, %r15d
	je	.L49
.L48:
	movq	152(%rsp), %rax
	movl	%r15d, (%r14,%rax,4)
	movl	44(%rsp), %eax
	testl	%eax, %eax
	jne	.L44
	movl	128(%rsp), %eax
	testl	%eax, %eax
	je	.L44
	movl	(%r14), %edx
	leaq	4+a(%rip), %r12
	cmpl	$1, %eax
	je	.L45
	.p2align 4,,10
	.p2align 3
.L59:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$4, %r12
	movl	-4(%r12), %edx
	cmpq	%r12, 80(%rsp)
	jne	.L59
.L45:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L44:
	movl	44(%rsp), %eax
	cmpl	%r15d, %eax
	movl	%eax, %ebp
	cmovg	%r15d, %ebp
	subl	%ebp, %eax
	movl	%eax, %r12d
	movslq	128(%rsp), %rax
	movq	%rax, 56(%rsp)
	testl	%ebp, %ebp
	je	.L55
	movl	%r12d, %eax
	movl	%ebp, %r12d
	movl	%eax, %ebp
.L54:
	movq	56(%rsp), %rax
	movl	%r12d, (%r14,%rax,4)
	testl	%ebp, %ebp
	jne	.L50
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L50
	movl	(%r14), %edx
	leaq	4+a(%rip), %r10
	cmpl	$1, %eax
	je	.L51
	.p2align 4,,10
	.p2align 3
.L58:
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r10, 104(%rsp)
	call	__printf_chk@PLT
	movq	104(%rsp), %r10
	addq	$4, %r10
	movl	-4(%r10), %edx
	cmpq	120(%rsp), %r10
	jne	.L58
.L51:
	movl	$10, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L50:
	cmpl	%r12d, %ebp
	movl	%r12d, %eax
	movl	32(%rsp), %esi
	movslq	12(%rsp), %rcx
	cmovle	%ebp, %eax
	leal	9(%rsi), %edi
	testl	%eax, %eax
	je	.L57
.L56:
	movl	%eax, (%r14,%rcx,4)
	movl	%ebp, %edx
	movl	%eax, %esi
	subl	%eax, %edx
	movq	%rcx, 232(%rsp)
	movl	%eax, 228(%rsp)
	movl	%edi, 104(%rsp)
	call	f
	movl	228(%rsp), %eax
	movl	104(%rsp), %edi
	movq	232(%rsp), %rcx
	subl	$1, %eax
	jne	.L56
.L57:
	addl	$1, %ebp
	subl	$1, %r12d
	jne	.L54
.L55:
	addl	$1, 44(%rsp)
	subl	$1, %r15d
	jne	.L48
.L49:
	addl	$1, 8(%rsp)
	subl	$1, %ebx
	jne	.L42
	movl	36(%rsp), %r15d
	movl	40(%rsp), %ebp
.L43:
	addl	$1, %ebp
	subl	$1, %r15d
	jne	.L36
.L37:
	addl	$1, 88(%rsp)
	subl	$1, 76(%rsp)
	jne	.L30
.L31:
	addl	$1, 92(%rsp)
	subl	$1, 72(%rsp)
	jne	.L24
.L25:
	addl	$1, 96(%rsp)
	subl	$1, 68(%rsp)
	jne	.L19
.L8:
	addl	$1, 100(%rsp)
	subl	$1, 64(%rsp)
	jne	.L13
.L1:
	addq	$248, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	f, .-f
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
	.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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 56(%rsp)
.L181:
	movq	56(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	84(%rsp), %eax
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	je	.L234
	movq	$0, 8(%rsp)
	movl	64(%rsp), %eax
	movq	%rax, 48(%rsp)
.L180:
	movq	8(%rsp), %rax
	movl	64(%rsp), %ebx
	leaq	a(%rip), %rsi
	subl	%eax, %ebx
	movl	%eax, %ebp
	movl	%ebx, (%rsi)
	testq	%rax, %rax
	jne	.L156
	movl	$10, %ecx
	movl	%ebx, %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
.L156:
	cmpl	%ebx, %ebp
	cmovle	%ebp, %ebx
	testl	%ebx, %ebx
	je	.L157
	subl	%ebx, %ebp
	movl	%ebx, 44(%rsp)
	movl	%ebp, 40(%rsp)
.L179:
	movl	44(%rsp), %eax
	movl	40(%rsp), %esi
	movl	%eax, 4+a(%rip)
	testl	%esi, %esi
	jne	.L158
	leaq	a(%rip), %rax
	movl	$32, %ecx
	movl	$1, %edi
	movl	(%rax), %edx
	leaq	.LC0(%rip), %rbp
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	movl	4+a(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$10, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
.L158:
	movl	40(%rsp), %edi
	movl	44(%rsp), %eax
	cmpl	%eax, %edi
	cmovle	%edi, %eax
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L159
	subl	%eax, %edi
	movl	%edi, 36(%rsp)
.L178:
	movl	20(%rsp), %eax
	movl	36(%rsp), %ecx
	movl	%eax, 8+a(%rip)
	testl	%ecx, %ecx
	jne	.L194
	leaq	a(%rip), %rax
	movl	$32, %ecx
	movl	$1, %edi
	movl	(%rax), %edx
	leaq	.LC0(%rip), %rbp
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	movl	4+a(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$32, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	8+a(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$10, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
.L194:
	movl	20(%rsp), %edx
	movl	36(%rsp), %eax
	cmpl	%eax, %edx
	movl	%eax, %ecx
	cmovle	%edx, %ecx
	movl	%ecx, 28(%rsp)
	testl	%ecx, %ecx
	je	.L161
	subl	%ecx, %eax
	movl	%eax, 24(%rsp)
.L177:
	movl	28(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, 12+a(%rip)
	testl	%edx, %edx
	jne	.L193
	leaq	a(%rip), %rbx
	leaq	.LC0(%rip), %rbp
	leaq	12(%rbx), %r12
.L192:
	movl	(%rbx), %edx
	movl	$32, %ecx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L192
	movl	12+a(%rip), %edx
	movl	$10, %ecx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L193:
	movl	24(%rsp), %eax
	movl	28(%rsp), %r15d
	cmpl	%r15d, %eax
	cmovle	%eax, %r15d
	testl	%r15d, %r15d
	je	.L163
	subl	%r15d, %eax
	movl	%eax, 32(%rsp)
.L176:
	movl	32(%rsp), %eax
	movl	%r15d, 16+a(%rip)
	testl	%eax, %eax
	jne	.L191
	leaq	a(%rip), %rbx
	leaq	.LC0(%rip), %rbp
	leaq	16(%rbx), %r12
.L190:
	movl	(%rbx), %edx
	movl	$32, %ecx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L190
	movl	16+a(%rip), %edx
	movl	$10, %ecx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L191:
	movl	32(%rsp), %eax
	cmpl	%r15d, %eax
	movl	%eax, %ebx
	cmovg	%r15d, %ebx
	testl	%ebx, %ebx
	je	.L165
	movl	%r15d, 68(%rsp)
	subl	%ebx, %eax
	movl	%eax, %r14d
.L175:
	movl	%ebx, 20+a(%rip)
	testl	%r14d, %r14d
	jne	.L189
	leaq	a(%rip), %rbp
	leaq	.LC0(%rip), %r12
.L188:
	movl	0(%rbp), %edx
	movl	$32, %ecx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__printf_chk@PLT
	leaq	20+a(%rip), %rax
	cmpq	%rax, %rbp
	jne	.L188
	movl	20+a(%rip), %edx
	movl	$10, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L189:
	cmpl	%ebx, %r14d
	movl	%ebx, %ebp
	cmovle	%r14d, %ebp
	testl	%ebp, %ebp
	je	.L167
	movl	%ebx, 72(%rsp)
	movl	%r14d, %r12d
	leaq	.LC0(%rip), %r13
	subl	%ebp, %r12d
.L174:
	movl	%ebp, 24+a(%rip)
	testl	%r12d, %r12d
	jne	.L185
	leaq	a(%rip), %r15
.L187:
	movl	(%r15), %edx
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__printf_chk@PLT
	leaq	24+a(%rip), %rax
	cmpq	%rax, %r15
	jne	.L187
	movl	24+a(%rip), %edx
	movl	$10, %ecx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L185:
	cmpl	%ebp, %r12d
	movl	%ebp, %r15d
	cmovle	%r12d, %r15d
	testl	%r15d, %r15d
	je	.L169
	movl	%r12d, %ebx
	movl	%ebp, 76(%rsp)
	subl	%r15d, %ebx
	movl	%ebx, %ebp
.L173:
	movl	%r15d, 28+a(%rip)
	testl	%ebp, %ebp
	jne	.L182
	leaq	a(%rip), %rbx
.L184:
	movl	(%rbx), %edx
	movl	$32, %ecx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	leaq	28+a(%rip), %rax
	cmpq	%rax, %rbx
	jne	.L184
	movl	28+a(%rip), %edx
	movl	$10, %ecx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
.L182:
	cmpl	%r15d, %ebp
	movl	%r15d, %ebx
	cmovle	%ebp, %ebx
	testl	%ebx, %ebx
	je	.L171
.L172:
	movl	%ebp, %edx
	movl	%ebx, %esi
	movl	$9, %edi
	movl	%ebx, 32+a(%rip)
	subl	%ebx, %edx
	call	f
	subl	$1, %ebx
	jne	.L172
.L171:
	addl	$1, %ebp
	subl	$1, %r15d
	jne	.L173
	movl	76(%rsp), %ebp
.L169:
	addl	$1, %r12d
	subl	$1, %ebp
	jne	.L174
	movl	72(%rsp), %ebx
.L167:
	addl	$1, %r14d
	subl	$1, %ebx
	jne	.L175
	movl	68(%rsp), %r15d
.L165:
	addl	$1, 32(%rsp)
	subl	$1, %r15d
	jne	.L176
.L163:
	addl	$1, 24(%rsp)
	subl	$1, 28(%rsp)
	jne	.L177
.L161:
	addl	$1, 36(%rsp)
	subl	$1, 20(%rsp)
	jne	.L178
.L159:
	addl	$1, 40(%rsp)
	subl	$1, 44(%rsp)
	jne	.L179
.L157:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rax
	cmpq	48(%rsp), %rax
	jne	.L180
	jmp	.L181
.L234:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L235
	addq	$104, %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
.L235:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120
a:
	.zero	120
	.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>
#define MIN(a, b) ((a) < (b) ? (a) : (b))

int a[30];

void f(int d, int b, int n)
{
    int i;
    if(!n)for(i = 0; i != d; i++) printf("%d%c", a[i], i + 1 == d ? '\n' : ' ');
    for(i = MIN(b, n); i; i--) a[d] = i, f(d + 1, i, n - i);
}

int main(void)
{
    int n;
    while(1){
        scanf("%d", &n);
        if(!n) return 0;
        f(0, n, n);
    }
}
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>
#define MIN(a, b) ((a) < (b) ? (a) : (b))

int a[30];

void f(int d, int b, int n)
{
    int i;
    if(!n)for(i = 0; i != d; i++) printf("%d%c", a[i], i + 1 == d ? '\n' : ' ');
    for(i = MIN(b, n); i; i--) a[d] = i, f(d + 1, i, n - i);
}

int main(void)
{
    int n;
    while(1){
        scanf("%d", &n);
        if(!n) return 0;
        f(0, n, n);
    }
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120
a:
	.zero	120
	.section	.rodata
.LC0:
	.string	"%d%c"
	.text
	.globl	f
	.type	f, @function
f:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	cmpl	$0, -28(%rbp)
	jne	.L2
	movl	$0, -4(%rbp)
	jmp	.L3
.L6:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jne	.L4
	movl	$10, %ecx
	jmp	.L5
.L4:
	movl	$32, %ecx
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L6
.L2:
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	f
	subl	$1, -4(%rbp)
.L7:
	cmpl	$0, -4(%rbp)
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"%d"
	.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	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	jmp	.L14
.L10:
	movl	-12(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	movl	$0, %edi
	call	f
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
.L13:
	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	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120
a:
	.zero	120
	.section	.rodata
.LC0:
	.string	"%d%c"
	.text
	.globl	f
	.type	f, @function
f:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	cmpl	$0, -28(%rbp)
	jne	.L2
	movl	$0, -4(%rbp)
	jmp	.L3
.L6:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -20(%rbp)
	jne	.L4
	movl	$10, %ecx
	jmp	.L5
.L4:
	movl	$32, %ecx
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%ecx, %edx
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L3:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L6
.L2:
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	f
	subl	$1, -4(%rbp)
.L7:
	cmpl	$0, -4(%rbp)
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"%d"
	.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	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	jmp	.L14
.L10:
	movl	-12(%rbp), %edx
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	movl	$0, %edi
	call	f
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
.L13:
	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:
