// File: /workspace/github_c_makefile_star2_O0/cbouilla[P]AES-attacks-finder/Symetric.c
// Function: SearchUneSolver3_SymetricVersion
Solver SearchUneSolver3_SymetricVersion(const int T, Solver *B1, const int N1, SysEqLin E, Symetric_structure S) 
{
	int i=rand()%N1;
	int N=N1-1;
	Solver B=B1[i]; // On prend une solver au hasard
	B1[i]=B1[N];
	B1[N]=B;
	B=copySolver(B);
	while (B->sortie<T && N>0) // Tant que l'on peux guesser des solvers
	{
		while (B->sortie<T && N>0) // Tant que l'on peux guesser des solvers
		{
			i=rand()%N;
			Solver tmp=B1[i];
			N--;
			B1[i]=B1[N];
			B1[N]=tmp;
			tmp=UnionSolver(B,B1[N],E);
			freeSolver(B);
			B=tmp;
		}
		Solver tmp=PropagateSolver2(B,E,B1,N); // On l'augmente gratuitement
		freeSolver(B);
		B=SymetriseSolver(tmp,E,S);
		if (B==NULL) B=tmp;
		else freeSolver(tmp);
	}
	return B;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
callq 0x2280
cltd
idivl -0x14(%rbp)
movl %edx, -0x2c(%rbp)
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rdi
callq 0x9380
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x14(%rax), %ecx
xorl %eax, %eax
cmpl -0x4(%rbp), %ecx
movb %al, -0x49(%rbp)
jge 0x242ff
cmpl $0x0, -0x30(%rbp)
setg %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0x2430b
jmp 0x24409
jmp 0x2430d
movq -0x38(%rbp), %rax
movl 0x14(%rax), %ecx
xorl %eax, %eax
cmpl -0x4(%rbp), %ecx
movb %al, -0x4a(%rbp)
jge 0x24328
cmpl $0x0, -0x30(%rbp)
setg %al
movb %al, -0x4a(%rbp)
movb -0x4a(%rbp), %al
testb $0x1, %al
jne 0x24334
jmp 0x243b4
callq 0x2280
cltd
idivl -0x30(%rbp)
movl %edx, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rdx
movq -0x10(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x20(%rbp), %rdx
callq 0xaa60
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
callq 0x93b0
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2430d
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x30(%rbp), %ecx
callq 0xb580
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0x93b0
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x23e50
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x243fb
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x24404
movq -0x48(%rbp), %rdi
callq 0x93b0
jmp 0x242e4
movq -0x38(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)