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>
#include <string.h>

#define MAX 30

int ans,x,y;
int t[MAX][MAX],size[MAX];
int flg[MAX];

int isDomSet(void){
	int i,j;

	for(i=0;i<x;i++){
		if(!flg[i]){
			for(j=0;j<size[i];j++) if(flg[t[i][j]]) break;
			if(j == size[i]) return 0;
		}
	}

	return 1;
}

void solve(int idx,int cost){
	if(idx == x){
		if(ans > cost && isDomSet()) ans = cost;
		return;
	}

	flg[idx] = 0;
	solve(idx+1,cost);
	flg[idx] = 1;
	solve(idx+1,cost+1);
}

int main(void){
	int i,from,to;

	while(scanf("%d%d",&x,&y) && (x||y)){
		memset(t,0,sizeof(t));
		memset(size,0,sizeof(size));

		for(i=0;i<y;i++){
			scanf("%d%d",&from,&to);
			t[from][size[from]++] = to;
			t[to][size[to]++]= from;
		}

		ans = x;
		solve(0,0);
		printf("%d\n",ans);
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 3600
t:
	.zero	3600
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 120
size:
	.zero	120
	.globl	flg
	.align 32
	.type	flg, @object
	.size	flg, 120
flg:
	.zero	120
	.text
	.globl	isDomSet
	.type	isDomSet, @function
isDomSet:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L2
.L9:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L7:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L10
	addl	$1, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L7
	jmp	.L6
.L10:
	nop
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L3
	movl	$0, %eax
	jmp	.L8
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	x(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L9
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isDomSet, .-isDomSet
	.globl	solve
	.type	solve, @function
solve:
.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	x(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L12
	movl	ans(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L15
	call	isDomSet
	testl	%eax, %eax
	je	.L15
	movl	-8(%rbp), %eax
	movl	%eax, ans(%rip)
	jmp	.L15
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	solve
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	solve
	jmp	.L11
.L15:
	nop
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L17
.L21:
	movl	$3600, %edx
	movl	$0, %esi
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$120, %edx
	movl	$0, %esi
	leaq	size(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L18
.L19:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %esi
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	size(%rip), %rax
	movl	(%rcx,%rax), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	size(%rip), %rdx
	movl	%ecx, (%rdi,%rdx)
	movl	-16(%rbp), %edx
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %esi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	size(%rip), %rax
	movl	(%rcx,%rax), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	size(%rip), %rdx
	movl	%ecx, (%rdi,%rdx)
	movl	-20(%rbp), %edx
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L18:
	movl	y(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L19
	movl	x(%rip), %eax
	movl	%eax, ans(%rip)
	movl	$0, %esi
	movl	$0, %edi
	call	solve
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L17:
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L20
	movl	x(%rip), %eax
	testl	%eax, %eax
	jne	.L21
	movl	y(%rip), %eax
	testl	%eax, %eax
	jne	.L21
.L20:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	isDomSet
	.type	isDomSet, @function
isDomSet:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	x(%rip), %r10
	testl	%r10d, %r10d
	jle	.L7
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	t(%rip), %rcx
	xorl	%esi, %esi
	leaq	flg(%rip), %rdi
	leaq	size(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rsi
	addq	$120, %rcx
	cmpq	%r10, %rsi
	je	.L16
.L6:
	movl	(%rdi,%rsi,4), %r9d
	testl	%r9d, %r9d
	jne	.L3
	movl	(%rbx,%rsi,4), %r11d
	testl	%r11d, %r11d
	jle	.L8
	leal	1(%r11), %r8d
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	-4(%rcx,%rax,4), %rdx
	movl	(%rdi,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L3
	movl	%eax, %edx
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L5
	cmpl	%r11d, %edx
	jne	.L3
.L1:
	movl	%r9d, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movl	%r9d, %eax
	ret
.L8:
	.cfi_restore_state
	xorl	%edx, %edx
	cmpl	%r11d, %edx
	jne	.L3
	jmp	.L1
.L7:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	isDomSet, .-isDomSet
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB36:
	.cfi_startproc
	endbr64
	cmpl	x(%rip), %edi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%edi, %ebx
	je	.L25
	movslq	%edi, %rax
	leaq	flg(%rip), %rdi
	leaq	(%rdi,%rax,4), %rbp
.L26:
	movl	$0, 0(%rbp)
	addl	$1, %ebx
	movl	%r12d, %esi
	addq	$4, %rbp
	movl	%ebx, %edi
	addl	$1, %r12d
	call	solve
	movl	$1, -4(%rbp)
	cmpl	%ebx, x(%rip)
	jne	.L26
.L25:
	cmpl	%r12d, ans(%rip)
	jle	.L17
	testl	%ebx, %ebx
	jle	.L20
	leaq	t(%rip), %rcx
	movslq	%ebx, %rbx
	xorl	%esi, %esi
	leaq	flg(%rip), %rdi
	leaq	size(%rip), %r10
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rsi
	addq	$120, %rcx
	cmpq	%rbx, %rsi
	je	.L20
.L24:
	movl	(%rdi,%rsi,4), %edx
	testl	%edx, %edx
	jne	.L21
	movl	(%r10,%rsi,4), %r9d
	testl	%r9d, %r9d
	jle	.L22
	leal	1(%r9), %r8d
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	-4(%rcx,%rax,4), %rdx
	movl	(%rdi,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L21
	movl	%eax, %edx
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L23
.L22:
	cmpl	%edx, %r9d
	jne	.L21
.L17:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	%r12d, ans(%rip)
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	size(%rip), %r15
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	flg(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L31:
	xorl	%eax, %eax
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L43
	movl	x(%rip), %r8d
	movl	y(%rip), %edx
	movl	%r8d, %eax
	orl	%edx, %eax
	je	.L43
	xorl	%eax, %eax
	movl	$450, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$15, %ecx
	movq	%r15, %rdi
	rep stosq
	testl	%edx, %edx
	jle	.L32
	leaq	16(%rsp), %rax
	xorl	%r13d, %r13d
	leaq	20(%rsp), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L33:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rsi
	movslq	(%r15,%rsi,4), %rdx
	movq	%rsi, %r8
	movq	%rsi, %rdi
	salq	$4, %r8
	leal	1(%rdx), %eax
	subq	%rsi, %r8
	movl	%eax, (%r15,%rsi,4)
	movslq	20(%rsp), %rax
	leaq	(%rdx,%r8,2), %rdx
	movl	%eax, 0(%rbp,%rdx,4)
	movslq	(%r15,%rax,4), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r15,%rax,4)
	movq	%rax, %rsi
	salq	$4, %rsi
	subq	%rax, %rsi
	cmpl	%r13d, y(%rip)
	leaq	(%rdx,%rsi,2), %rax
	movl	%edi, 0(%rbp,%rax,4)
	jg	.L33
	movl	x(%rip), %r8d
.L32:
	movl	%r8d, ans(%rip)
	leaq	flg(%rip), %r14
	xorl	%r11d, %r11d
	testl	%r8d, %r8d
	je	.L34
.L42:
	movl	$0, (%r14)
	movl	%r11d, %r13d
	addl	$1, %r11d
	addq	$4, %r14
	movl	%r13d, %esi
	movl	%r11d, %edi
	call	solve
	movl	$1, -4(%r14)
	cmpl	%r11d, x(%rip)
	jne	.L42
	movl	ans(%rip), %r8d
	cmpl	%r8d, %r11d
	jge	.L34
	addl	$1, %r13d
	leaq	t(%rip), %rcx
	xorl	%esi, %esi
	movslq	%r13d, %r13
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rsi
	addq	$120, %rcx
	cmpq	%r13, %rsi
	je	.L62
.L39:
	movl	(%rbx,%rsi,4), %edx
	testl	%edx, %edx
	jne	.L36
	movl	(%r15,%rsi,4), %r9d
	testl	%r9d, %r9d
	jle	.L37
	leal	1(%r9), %edi
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L38:
	movslq	-4(%rcx,%rax,4), %rdx
	movl	(%rbx,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L36
	movl	%eax, %edx
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L38
.L37:
	cmpl	%r9d, %edx
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L62:
	movl	%r11d, ans(%rip)
	movl	%r11d, %r8d
	jmp	.L34
.L43:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$40, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	flg
	.bss
	.align 32
	.type	flg, @object
	.size	flg, 120
flg:
	.zero	120
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 120
size:
	.zero	120
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 3600
t:
	.zero	3600
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	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
	.p2align 4
	.globl	isDomSet
	.type	isDomSet, @function
isDomSet:
.LFB35:
	.cfi_startproc
	endbr64
	movslq	x(%rip), %r10
	testl	%r10d, %r10d
	jle	.L7
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	t(%rip), %rcx
	xorl	%esi, %esi
	leaq	flg(%rip), %rdi
	leaq	size(%rip), %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rsi
	addq	$120, %rcx
	cmpq	%r10, %rsi
	je	.L16
.L6:
	movl	(%rdi,%rsi,4), %r9d
	testl	%r9d, %r9d
	jne	.L3
	movl	(%rbx,%rsi,4), %r11d
	testl	%r11d, %r11d
	jle	.L8
	leal	1(%r11), %r8d
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	-4(%rcx,%rax,4), %rdx
	movl	(%rdi,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L3
	movl	%eax, %edx
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L5
	cmpl	%r11d, %edx
	jne	.L3
.L1:
	movl	%r9d, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movl	%r9d, %eax
	ret
.L8:
	.cfi_restore_state
	xorl	%edx, %edx
	cmpl	%r11d, %edx
	jne	.L3
	jmp	.L1
.L7:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	isDomSet, .-isDomSet
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB36:
	.cfi_startproc
	endbr64
	cmpl	x(%rip), %edi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%edi, %ebx
	je	.L25
	movslq	%edi, %rax
	leaq	flg(%rip), %rdi
	leaq	(%rdi,%rax,4), %rbp
.L26:
	movl	$0, 0(%rbp)
	addl	$1, %ebx
	movl	%r12d, %esi
	addq	$4, %rbp
	movl	%ebx, %edi
	addl	$1, %r12d
	call	solve
	movl	$1, -4(%rbp)
	cmpl	%ebx, x(%rip)
	jne	.L26
.L25:
	cmpl	%r12d, ans(%rip)
	jle	.L17
	testl	%ebx, %ebx
	jle	.L20
	leaq	t(%rip), %rcx
	movslq	%ebx, %rbx
	xorl	%esi, %esi
	leaq	flg(%rip), %rdi
	leaq	size(%rip), %r10
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rsi
	addq	$120, %rcx
	cmpq	%rbx, %rsi
	je	.L20
.L24:
	movl	(%rdi,%rsi,4), %edx
	testl	%edx, %edx
	jne	.L21
	movl	(%r10,%rsi,4), %r9d
	testl	%r9d, %r9d
	jle	.L22
	leal	1(%r9), %r8d
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	-4(%rcx,%rax,4), %rdx
	movl	(%rdi,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L21
	movl	%eax, %edx
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L23
.L22:
	cmpl	%edx, %r9d
	jne	.L21
.L17:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	%r12d, ans(%rip)
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	size(%rip), %r15
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	flg(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L31:
	xorl	%eax, %eax
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L43
	movl	x(%rip), %r8d
	movl	y(%rip), %edx
	movl	%r8d, %eax
	orl	%edx, %eax
	je	.L43
	xorl	%eax, %eax
	movl	$450, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$15, %ecx
	movq	%r15, %rdi
	rep stosq
	testl	%edx, %edx
	jle	.L32
	leaq	16(%rsp), %rax
	xorl	%r13d, %r13d
	leaq	20(%rsp), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L33:
	movq	8(%rsp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rsi
	movslq	(%r15,%rsi,4), %rdx
	movq	%rsi, %r8
	movq	%rsi, %rdi
	salq	$4, %r8
	leal	1(%rdx), %eax
	subq	%rsi, %r8
	movl	%eax, (%r15,%rsi,4)
	movslq	20(%rsp), %rax
	leaq	(%rdx,%r8,2), %rdx
	movl	%eax, 0(%rbp,%rdx,4)
	movslq	(%r15,%rax,4), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r15,%rax,4)
	movq	%rax, %rsi
	salq	$4, %rsi
	subq	%rax, %rsi
	cmpl	%r13d, y(%rip)
	leaq	(%rdx,%rsi,2), %rax
	movl	%edi, 0(%rbp,%rax,4)
	jg	.L33
	movl	x(%rip), %r8d
.L32:
	movl	%r8d, ans(%rip)
	leaq	flg(%rip), %r14
	xorl	%r11d, %r11d
	testl	%r8d, %r8d
	je	.L34
.L42:
	movl	$0, (%r14)
	movl	%r11d, %r13d
	addl	$1, %r11d
	addq	$4, %r14
	movl	%r13d, %esi
	movl	%r11d, %edi
	call	solve
	movl	$1, -4(%r14)
	cmpl	%r11d, x(%rip)
	jne	.L42
	movl	ans(%rip), %r8d
	cmpl	%r8d, %r11d
	jge	.L34
	addl	$1, %r13d
	leaq	t(%rip), %rcx
	xorl	%esi, %esi
	movslq	%r13d, %r13
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %rsi
	addq	$120, %rcx
	cmpq	%r13, %rsi
	je	.L62
.L39:
	movl	(%rbx,%rsi,4), %edx
	testl	%edx, %edx
	jne	.L36
	movl	(%r15,%rsi,4), %r9d
	testl	%r9d, %r9d
	jle	.L37
	leal	1(%r9), %edi
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L38:
	movslq	-4(%rcx,%rax,4), %rdx
	movl	(%rbx,%rdx,4), %edx
	testl	%edx, %edx
	jne	.L36
	movl	%eax, %edx
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L38
.L37:
	cmpl	%r9d, %edx
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L62:
	movl	%r11d, ans(%rip)
	movl	%r11d, %r8d
	jmp	.L34
.L43:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$40, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	flg
	.bss
	.align 32
	.type	flg, @object
	.size	flg, 120
flg:
	.zero	120
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 120
size:
	.zero	120
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 3600
t:
	.zero	3600
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	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>
#include <string.h>

#define MAX 30

int ans,x,y;
int t[MAX][MAX],size[MAX];
int flg[MAX];

int isDomSet(void){
	int i,j;

	for(i=0;i<x;i++){
		if(!flg[i]){
			for(j=0;j<size[i];j++) if(flg[t[i][j]]) break;
			if(j == size[i]) return 0;
		}
	}

	return 1;
}

void solve(int idx,int cost){
	if(idx == x){
		if(ans > cost && isDomSet()) ans = cost;
		return;
	}

	flg[idx] = 0;
	solve(idx+1,cost);
	flg[idx] = 1;
	solve(idx+1,cost+1);
}

int main(void){
	int i,from,to;

	while(scanf("%d%d",&x,&y) && (x||y)){
		memset(t,0,sizeof(t));
		memset(size,0,sizeof(size));

		for(i=0;i<y;i++){
			scanf("%d%d",&from,&to);
			t[from][size[from]++] = to;
			t[to][size[to]++]= from;
		}

		ans = x;
		solve(0,0);
		printf("%d\n",ans);
	}

	return 0;
}
5 4
0 1
0 4
1 2
1 4
5 4
0 1
0 4
1 2
3 4
0 0
 5 4
0 1
0 4
1 2
1 4
5 4
0 1
0 4
1 0
3 4
0 0
 5 4
0 2
0 4
1 2
1 4
5 4
0 1
0 4
1 0
3 4
0 0
 5 4
0 1
0 4
1 2
1 0
5 4
0 1
0 4
1 2
3 4
0 0
 8 4
0 1
0 4
2 2
1 0
5 4
0 1
0 4
1 2
3 4
0 0
 8 4
0 2
0 4
2 2
1 0
5 4
0 1
0 4
1 2
3 4
0 0
 8 4
0 2
0 4
2 2
1 0
5 4
0 1
0 4
1 2
2 4
0 0
 5 4
0 1
0 4
2 2
1 0
8 4
1 2
0 4
1 2
3 4
0 0
 5 4
0 1
0 4
0 2
1 0
8 4
1 1
0 4
1 2
3 4
0 0
 5 4
0 1
0 4
0 2
1 0
12 4
1 1
0 4
1 2
3 4
0 0

2
2
 2
3
 3
3
 3
2
 6
2
 5
2
 5
3
 3
5
 2
5
 2
9

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>
#include <string.h>

#define MAX 30

int ans,x,y;
int t[MAX][MAX],size[MAX];
int flg[MAX];

int isDomSet(void){
	int i,j;

	for(i=0;i<x;i++){
		if(!flg[i]){
			for(j=0;j<size[i];j++) if(flg[t[i][j]]) break;
			if(j == size[i]) return 0;
		}
	}

	return 1;
}

void solve(int idx,int cost){
	if(idx == x){
		if(ans > cost && isDomSet()) ans = cost;
		return;
	}

	flg[idx] = 0;
	solve(idx+1,cost);
	flg[idx] = 1;
	solve(idx+1,cost+1);
}

int main(void){
	int i,from,to;

	while(scanf("%d%d",&x,&y) && (x||y)){
		memset(t,0,sizeof(t));
		memset(size,0,sizeof(size));

		for(i=0;i<y;i++){
			scanf("%d%d",&from,&to);
			t[from][size[from]++] = to;
			t[to][size[to]++]= from;
		}

		ans = x;
		solve(0,0);
		printf("%d\n",ans);
	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 3600
t:
	.zero	3600
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 120
size:
	.zero	120
	.globl	flg
	.align 32
	.type	flg, @object
	.size	flg, 120
flg:
	.zero	120
	.text
	.globl	isDomSet
	.type	isDomSet, @function
isDomSet:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L2
.L9:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L7:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L10
	addl	$1, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L7
	jmp	.L6
.L10:
	nop
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L3
	movl	$0, %eax
	jmp	.L8
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	x(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L9
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isDomSet, .-isDomSet
	.globl	solve
	.type	solve, @function
solve:
.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	x(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L12
	movl	ans(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L15
	call	isDomSet
	testl	%eax, %eax
	je	.L15
	movl	-8(%rbp), %eax
	movl	%eax, ans(%rip)
	jmp	.L15
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	solve
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	solve
	jmp	.L11
.L15:
	nop
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L17
.L21:
	movl	$3600, %edx
	movl	$0, %esi
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$120, %edx
	movl	$0, %esi
	leaq	size(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L18
.L19:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %esi
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	size(%rip), %rax
	movl	(%rcx,%rax), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	size(%rip), %rdx
	movl	%ecx, (%rdi,%rdx)
	movl	-16(%rbp), %edx
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %esi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	size(%rip), %rax
	movl	(%rcx,%rax), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	size(%rip), %rdx
	movl	%ecx, (%rdi,%rdx)
	movl	-20(%rbp), %edx
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L18:
	movl	y(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L19
	movl	x(%rip), %eax
	movl	%eax, ans(%rip)
	movl	$0, %esi
	movl	$0, %edi
	call	solve
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L17:
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L20
	movl	x(%rip), %eax
	testl	%eax, %eax
	jne	.L21
	movl	y(%rip), %eax
	testl	%eax, %eax
	jne	.L21
.L20:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	ans
	.bss
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 3600
t:
	.zero	3600
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 120
size:
	.zero	120
	.globl	flg
	.align 32
	.type	flg, @object
	.size	flg, 120
flg:
	.zero	120
	.text
	.globl	isDomSet
	.type	isDomSet, @function
isDomSet:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	jmp	.L2
.L9:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, -4(%rbp)
	jmp	.L4
.L7:
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L10
	addl	$1, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L7
	jmp	.L6
.L10:
	nop
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	size(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L3
	movl	$0, %eax
	jmp	.L8
.L3:
	addl	$1, -8(%rbp)
.L2:
	movl	x(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L9
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isDomSet, .-isDomSet
	.globl	solve
	.type	solve, @function
solve:
.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	x(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L12
	movl	ans(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L15
	call	isDomSet
	testl	%eax, %eax
	je	.L15
	movl	-8(%rbp), %eax
	movl	%eax, ans(%rip)
	jmp	.L15
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	solve
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flg(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	solve
	jmp	.L11
.L15:
	nop
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L17
.L21:
	movl	$3600, %edx
	movl	$0, %esi
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$120, %edx
	movl	$0, %esi
	leaq	size(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L18
.L19:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %esi
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	size(%rip), %rax
	movl	(%rcx,%rax), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	size(%rip), %rdx
	movl	%ecx, (%rdi,%rdx)
	movl	-16(%rbp), %edx
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-16(%rbp), %esi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	size(%rip), %rax
	movl	(%rcx,%rax), %eax
	leal	1(%rax), %ecx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rdi
	leaq	size(%rip), %rdx
	movl	%ecx, (%rdi,%rdx)
	movl	-20(%rbp), %edx
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$4, %rax
	subq	%rcx, %rax
	addq	%rax, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L18:
	movl	y(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L19
	movl	x(%rip), %eax
	movl	%eax, ans(%rip)
	movl	$0, %esi
	movl	$0, %edi
	call	solve
	movl	ans(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L17:
	leaq	y(%rip), %rax
	movq	%rax, %rdx
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L20
	movl	x(%rip), %eax
	testl	%eax, %eax
	jne	.L21
	movl	y(%rip), %eax
	testl	%eax, %eax
	jne	.L21
.L20:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
