// File: /workspace/github_c_makefile_star2_O0/cbouilla[P]AES-attacks-finder/Search.c
// Function: GuessMinimumLight_tmp
int * GuessMinimumLight_tmp(int *X, int N, SysEqLin E, int *taille)
{
	if (N>0)
	{
		int i;
		for (i = 0; i < N; i++)
		{
			int l=E->lignevar[X[i]]*E->gen;
			int dim=Dimension(E->mat+l,E->gen,E->b,1);
			if (dim==1)
			{
				N--;
				X[i]=X[N];
				SysEqLin F = ExtraireEX2(X,N,E);
				int * result = GuessMinimumLight_tmp(X,N,F,taille);
				freeSysEq(F);
				return result;
			}
			if (dim==0)
			{
				int tmp = X[i];
				X[i]=X[--N];
				int * result_tmp = GuessMinimumLight_tmp(X,N,E,taille);
				int * result = UnionListesTriees(result_tmp,*taille,&tmp,1,taille);
				free(result_tmp);
				return result;
			}
		}
		SysEqLin F = ExtraireEX2(X,--N,E);
		int * result = GuessMinimumLight_tmp(X,N,F,taille);
		freeSysEq(F);
		return result;
	}
	else
	{
		*taille=0;
		return NULL;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x23aec
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x23aa7
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl (%rax,%rcx,4), %eax
movq -0x20(%rbp), %rcx
imull 0x10(%rcx), %eax
movl %eax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movslq -0x30(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rax
movl 0x10(%rax), %esi
movq -0x20(%rbp), %rax
movl 0xc(%rax), %edx
movl $0x1, %ecx
callq 0x3b00
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jne 0x23a1a
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0x115e0
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x40(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x23930
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x12220
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x23afe
cmpl $0x0, -0x34(%rbp)
jne 0x23a97
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $-0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x23930
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
movq -0x28(%rbp), %r8
leaq -0x4c(%rbp), %rdx
movl $0x1, %ecx
callq 0x24e0
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
callq 0x2030
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x23afe
jmp 0x23a99
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x23958
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
addl $-0x1, %esi
movl %esi, -0x14(%rbp)
movq -0x20(%rbp), %rdx
callq 0x115e0
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x68(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x23930
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rdi
callq 0x12220
movq -0x70(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x23afe
movq -0x28(%rbp), %rax
movl $0x0, (%rax)
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)