// File: /workspace/github_c_makefile_star2_O3/pwelke[P]GraphMiningTools/localEasySubtreeIsomorphism.c
// Function: computeCharacteristics
void computeCharacteristics(struct SubtreeIsoDataStore* current, struct SubtreeIsoDataStore* wCharacteristics, struct CachedGraph* cachedB, struct Vertex* u, struct Vertex* w, struct Vertex* wBelow, struct GraphPool* gp) {

	// compute maximum matching
	struct Graph* B = makeBipartiteInstanceFromVerticesForLocalEasyCached(*current, wCharacteristics, cachedB, u, w, wBelow, gp);
	int sizeofMatching = bipartiteMatchingEvenMoreDirty(B);
	int nNeighbors = B->number;

	// is there a subgraph iso here?
	if (sizeofMatching == nNeighbors) {
//		addCharacteristic(current, u, u, w); // in early termination we do not need to keep the books correct here
		current->foundIso = 1;

		returnCachedGraph(cachedB);
		return; // early termination when subtree iso is found
	}

	// compute partial subgraph isomorphisms
	if (sizeofMatching == nNeighbors - 1) {
		addNoncriticalVertexCharacteristics(current, B, u, w);
	}

	returnCachedGraph(cachedB);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r9, %rbp
movq %r8, %r15
movq %rdx, %rbx
movq %rsi, 0x78(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%rdi), %rax
movq %rax, 0xa0(%rsp)
movups (%rdi), %xmm0
movq %rdi, 0x30(%rsp)
movups 0x10(%rdi), %xmm1
movaps %xmm1, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movq %rcx, 0x28(%rsp)
movq %rcx, %rdi
callq 0x7c4e
movl %eax, %r12d
movq %r15, %rdi
callq 0x7c4e
movl %eax, %r13d
xorl %r14d, %r14d
movl $0x0, %eax
testq %rbp, %rbp
je 0xf7cb
movq %rbp, %rdi
callq 0x7c4e
leal (%r12,%r13), %edi
movq %rax, 0x38(%rsp)
addl %eax, %edi
movq %rbx, 0x58(%rsp)
movq %rbx, %rsi
callq 0x3c97
movq %rax, %rbx
movl %r12d, 0x8(%rax)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xf81f
movq 0x10(%rbx), %rcx
xorl %r14d, %r14d
movq 0x18(%rax), %rdx
movl 0x18(%rdx), %edx
movq (%rcx,%r14,8), %rsi
movl %edx, 0x20(%rsi)
movq (%rax), %rdx
movq %rdx, (%rsi)
incq %r14
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0xf7ff
movq 0x8(%r15), %rax
testq %rax, %rax
je 0xf85d
movl 0x1c(%r15), %ecx
movq 0x18(%rax), %rdx
cmpl %ecx, 0x1c(%rdx)
jge 0xf851
movl 0x18(%rdx), %edx
movq 0x10(%rbx), %rsi
movslq %r14d, %r14
movq (%rsi,%r14,8), %rsi
movl %edx, 0x20(%rsi)
movq (%rax), %rdx
movq %rdx, (%rsi)
incl %r14d
jmp 0xf854
decl %r13d
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0xf82c
movq %r15, 0x50(%rsp)
testq %rbp, %rbp
je 0xf89b
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0xf89b
movslq %r14d, %rcx
shlq $0x3, %rcx
addq 0x10(%rbx), %rcx
movq 0x18(%rax), %rdx
movl 0x18(%rdx), %edx
movq (%rcx), %rsi
movl %edx, 0x20(%rsi)
movq (%rax), %rdx
movq %rdx, (%rsi)
movq 0x8(%rax), %rax
addq $0x8, %rcx
testq %rax, %rax
jne 0xf87b
testl %r12d, %r12d
jle 0xfa3d
leal (%r12,%r13), %r14d
movq 0x38(%rsp), %rax
addl %r14d, %eax
movl %r12d, %r15d
movslq %r14d, %rcx
movq %rcx, 0x60(%rsp)
movslq %eax, %rbp
xorl %r12d, %r12d
movq %r13, 0x70(%rsp)
movq %r15, 0x68(%rsp)
movq 0x10(%rbx), %rax
movq (%rax,%r12,8), %rax
movslq 0x20(%rax), %rax
movq %rax, 0x48(%rsp)
testl %r13d, %r13d
jle 0xf986
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rcx
movslq 0x20(%rcx), %r13
movq (%rax,%r12,8), %rax
movq (%rax), %rdi
movq (%rcx), %rsi
callq 0x1bb34
testl %eax, %eax
jne 0xf97a
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x48(%rsp), %rdx
movq (%rcx,%rdx,8), %rsi
movq 0x10(%rax), %rax
movq (%rax,%r13,8), %rdx
movq 0xa0(%rsp), %rax
movq %rax, 0x20(%rsp)
movaps 0x80(%rsp), %xmm0
movaps 0x90(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x16201
testl %eax, %eax
je 0xf97a
movq 0x10(%rbx), %rax
movq (%rax,%r12,8), %rdi
movq (%rax,%r15,8), %rsi
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdx
callq 0x3468
incl 0x4(%rbx)
incq %r15
cmpl %r15d, %r14d
jg 0xf8e5
cmpl $0x0, 0x38(%rsp)
jle 0xfa27
movq 0x60(%rsp), %r15
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rcx
movslq 0x20(%rcx), %r13
movq (%rax,%r12,8), %rax
movq (%rax), %rdi
movq (%rcx), %rsi
callq 0x1bb34
testl %eax, %eax
jne 0xfa1b
movq 0x78(%rsp), %rdi
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
movq 0x10(%rcx), %rcx
movq 0x48(%rsp), %rdx
movq (%rcx,%rdx,8), %rsi
movq 0x10(%rax), %rax
movq (%rax,%r13,8), %rdx
movq 0x20(%rdi), %rax
movq %rax, 0x20(%rsp)
movups (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x16201
testl %eax, %eax
je 0xfa1b
movq 0x10(%rbx), %rax
movq (%rax,%r12,8), %rdi
movq (%rax,%r15,8), %rsi
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdx
callq 0x3468
incl 0x4(%rbx)
incq %r15
cmpq %rbp, %r15
jl 0xf996
incq %r12
movq 0x68(%rsp), %r15
cmpq %r15, %r12
movq 0x70(%rsp), %r13
jne 0xf8cb
movq %rbx, %rdi
callq 0x3762
movl 0x8(%rbx), %ecx
cmpl %ecx, %eax
jne 0xfa5a
movq 0x30(%rsp), %rax
movl $0x1, 0x20(%rax)
jmp 0xfa77
decl %ecx
cmpl %ecx, %eax
jne 0xfa77
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
movq 0x28(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq 0xa976
movq 0x58(%rsp), %rdi
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3cf6