// File: /workspace/github_c_makefile_star2_O2/pwelke[P]GraphMiningTools/lwm_initAndCollect.c
// Function: getFrequentVerticesAndEdges
static void getFrequentVerticesAndEdges(struct Graph** db, int nGraphs, size_t threshold, struct Vertex** frequentVertices, struct Vertex** frequentEdges, FILE* logStream, struct GraphPool* gp) {
	*frequentVertices = getVertex(gp->vertexPool);
	*frequentEdges = getVertex(gp->vertexPool);

	/* get frequent vertices */
	int tmpResultSetSize = getFrequentVertices(db, nGraphs, *frequentVertices, gp);
	filterSearchTree(*frequentVertices, threshold, *frequentVertices, gp);
	fprintf(logStream, "Number of frequent vertices: %i\n", (*frequentVertices)->d); fflush(logStream);

	/* get frequent edges: first edge id is given by number of frequent vertices */
	offsetSearchTreeIds(*frequentEdges, (*frequentVertices)->lowPoint);
	getFrequentEdges(db, nGraphs, tmpResultSetSize, *frequentEdges, gp);
	filterSearchTree(*frequentEdges, threshold, *frequentEdges, gp);
	fprintf(logStream, "Number of frequent edges: %i\n", (*frequentEdges)->d); fflush(logStream);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, 0x20(%rsp)
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r13
movl %esi, %r14d
movq %rdi, %r15
movq 0xa0(%rsp), %rbp
movq 0x10(%rbp), %rdi
callq 0x114a5
movq %rax, (%rbx)
movq 0x10(%rbp), %rdi
callq 0x114a5
movq %rax, (%r12)
movq (%rbx), %rdx
movq %r15, 0x50(%rsp)
movq %r15, %rdi
movq %r14, 0x10(%rsp)
movl %r14d, %esi
movq %rbp, %rcx
callq 0xe658
movl %eax, %r14d
movq (%rbx), %rdi
movq %r13, 0x38(%rsp)
movl %r13d, %esi
movq %rdi, %rdx
movq %rbp, %rcx
callq 0x189d5
movq (%rbx), %rax
movl 0x28(%rax), %edx
leaq 0xed91(%rip), %rsi      # 0x1d90e
xorl %r15d, %r15d
movq 0x20(%rsp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x1150
movq %r13, %rdi
callq 0x1190
movq (%r12), %rdi
movq (%rbx), %rax
movl 0x20(%rax), %esi
callq 0x18943
movq %r12, 0x40(%rsp)
movq (%r12), %rax
movq %rax, 0x48(%rsp)
testl %r14d, %r14d
je 0xebc6
movl %r14d, %edi
callq 0x18655
movq %rax, %r12
jmp 0xebc9
xorl %r12d, %r12d
movq 0x10(%rsp), %rax
testl %eax, %eax
cmovlel %r15d, %eax
movq %rax, 0x10(%rsp)
cmpq 0x10(%rsp), %r15
je 0xed8a
movq 0x50(%rsp), %rax
movq (%rax,%r15,8), %rbx
movq 0xa0(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x114a5
movq %rbx, %rcx
movq %rax, 0x30(%rsp)
movl 0x4(%rbx), %ebx
andl $0x0, 0x1c(%rsp)
cmpl %r14d, %ebx
movq %r15, 0x58(%rsp)
jle 0xec38
movq %r12, %rdi
movq %rcx, %r14
callq 0x1030
movl %ebx, 0xc(%rsp)
movl %ebx, %edi
callq 0x18655
movq %r14, %rcx
movq %rax, 0x28(%rsp)
jmp 0xec42
movq %r12, 0x28(%rsp)
movl %r14d, 0xc(%rsp)
xorl %r13d, %r13d
movq %rcx, 0x60(%rsp)
movslq (%rcx), %rax
cmpq %rax, %r13
jge 0xed33
movq 0x10(%rcx), %rax
movq (%rax,%r13,8), %r12
movq 0x8(%r12), %r12
testq %r12, %r12
je 0xed26
movq 0x18(%r12), %rax
movslq 0x18(%rax), %rcx
cmpq %rcx, %r13
jge 0xec5e
movq 0x10(%r12), %rcx
movq (%rcx), %rdi
movq (%rax), %rsi
callq 0x1130
movl %eax, %r14d
movq 0xa0(%rsp), %rbp
movq 0x18(%rbp), %rdi
callq 0x11307
movq %rax, %r15
movl %r14d, %eax
shrl $0x1f, %eax
notl %r14d
shrl $0x1f, %r14d
movq 0x10(%r12,%rax,8), %rax
movq (%rax), %rax
movq %rax, (%r15)
movq 0x18(%rbp), %rdi
callq 0x4f9a
movq %rax, 0x8(%r15)
movq 0x18(%rbp), %rdi
callq 0x11307
movq %rax, %rbx
movq (%r12), %rax
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movq 0x18(%rbp), %rdi
callq 0x4fac
movq %rax, %r15
movq %rbx, 0x8(%rax)
movq 0x18(%rbp), %rdi
callq 0x11307
movq 0x10(%r12,%r14,8), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x18320
movsbl %al, %eax
addl %eax, 0x28(%rbx)
incl 0x18(%rbx)
jmp 0xec5e
incq %r13
movq 0x60(%rsp), %rcx
jmp 0xec4a
movq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x188f3
movq 0x48(%rsp), %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
movq 0x28(%rsp), %r12
movq %r12, %rcx
leaq 0x1c(%rsp), %r8
movq %rdi, %r9
movq 0xa0(%rsp), %rbx
pushq %rbx
pushq $0x0
callq 0x1877e
popq %rax
popq %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18dcd
movq 0x58(%rsp), %r15
incq %r15
movl 0xc(%rsp), %r14d
jmp 0xebd9
movq %r12, %rdi
callq 0x1030
movq 0x40(%rsp), %rbx
movq (%rbx), %rdi
movq 0x38(%rsp), %rsi
movq %rdi, %rdx
movq 0xa0(%rsp), %rcx
callq 0x189d5
movq (%rbx), %rax
movl 0x28(%rax), %edx
leaq 0xeb73(%rip), %rsi      # 0x1d92f
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1150
movq %rbx, %rdi
callq 0x1190
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq