// File: Laakeri[P]Triangulator/src/treewidth.cpp
// Function: TreeWidth::SolveAtom::nbClique(Graph&)
pair<int, int> nbClique(Graph& G) {
	for (int x = 0; x < G.n; x++) {
		assert(G.g[x].size() > 2);
		pair<int, int> fo = {-1, -1};
		bool fail = false;
		for (int i = 0; i < (int)G.g[x].size(); i++) {
			for (int ii = i+1; ii < (int)G.g[x].size(); ii++) {
				if (!G.hasEdge(G.g[x][i], G.g[x][ii])) {
					if (fo.F != -1) {
						fail = true;
						break;
					}
					else {
						fo = {G.g[x][i], G.g[x][ii]};
					}
				}
			}
			if (fail) break;
		}
		if (!fail) {
			assert(fo.F != -1);
			return fo;
		}
	}
	return {-1, -1};
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x50(%rcx), %eax
jge 0x56539
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
callq 0x59a0
cmpq $0x2, %rax
jbe 0x56364
jmp 0x56383
leaq 0x4178(%rip), %rdi      # 0x5a4e3
leaq 0x4f8e(%rip), %rsi      # 0x5b300
movl $0x4a, %edx
leaq 0x5035(%rip), %rcx      # 0x5b3b3
callq 0x31a0
movl $0xffffffff, -0x18(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF
leaq -0x8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x1c(%rbp), %rdx
callq 0x5380
movb $0x0, -0x1d(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
callq 0x59a0
movq %rax, %rcx
movl -0x3c(%rbp), %eax
cmpl %ecx, %eax
jge 0x564fa
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
callq 0x59a0
movq %rax, %rcx
movl -0x40(%rbp), %eax
cmpl %ecx, %eax
jge 0x564e2
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
movslq -0x24(%rbp), %rsi
callq 0x178f0
movl (%rax), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
movslq -0x28(%rbp), %rsi
callq 0x178f0
movq -0x50(%rbp), %rdi
movl -0x44(%rbp), %esi
movl (%rax), %edx
callq 0x16400
testb $0x1, %al
jne 0x564d2
cmpl $-0x1, -0x8(%rbp)
je 0x56475
movb $0x1, -0x1d(%rbp)
jmp 0x564e2
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
movslq -0x24(%rbp), %rsi
callq 0x178f0
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movslq -0x14(%rbp), %rsi
callq 0x178a0
movq %rax, %rdi
movslq -0x28(%rbp), %rsi
callq 0x178f0
movq -0x58(%rbp), %rsi
movq %rax, %rdx
leaq -0x30(%rbp), %rdi
callq 0xdfc0
leaq -0x8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x13e20
jmp 0x564d2
jmp 0x564d4
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x563e3
testb $0x1, -0x1d(%rbp)
je 0x564ea
jmp 0x564fa
jmp 0x564ec
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x563ad
testb $0x1, -0x1d(%rbp)
jne 0x56529
cmpl $-0x1, -0x8(%rbp)
je 0x56508
jmp 0x56527
leaq 0x4026(%rip), %rdi      # 0x5a535
leaq 0x4dea(%rip), %rsi      # 0x5b300
movl $0x5c, %edx
leaq 0x4e91(%rip), %rcx      # 0x5b3b3
callq 0x31a0
jmp 0x56558
jmp 0x5652b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x56333
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x38(%rbp) # imm = 0xFFFFFFFF
leaq -0x8(%rbp), %rdi
leaq -0x34(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x5380
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)