// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/graph.c
// Function: main
int main(int argc, char **argv)
{
	struct string_list *filelist = NULL;
	char *file;
	struct symbol *sym;

	struct symbol_list *fsyms, *all_syms=NULL;

	printf("digraph call_graph {\n");
	fsyms = sparse_initialize(argc, argv, &filelist);
	concat_symbol_list(fsyms, &all_syms);

	/* Linearize all symbols, graph internal basic block
	 * structures and intra-file calls */
	FOR_EACH_PTR(filelist, file) {

		fsyms = sparse(file);
		concat_symbol_list(fsyms, &all_syms);

		FOR_EACH_PTR(fsyms, sym) {
			expand_symbol(sym);
			linearize_symbol(sym);
		} END_FOR_EACH_PTR(sym);

		FOR_EACH_PTR(fsyms, sym) {
			if (sym->ep) {
				graph_ep(sym->ep);
				graph_calls(sym->ep, 1);
			}
		} END_FOR_EACH_PTR(sym);

	} END_FOR_EACH_PTR(file);

	/* Graph inter-file calls */
	FOR_EACH_PTR(all_syms, sym) {
		if (sym->ep)
			graph_calls(sym->ep, 0);
	} END_FOR_EACH_PTR(sym);

	printf("}\n");
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x70(%rsp), %r14
andq $0x0, (%r14)
leaq 0x28(%rsp), %r15
andq $0x0, (%r15)
leaq 0x2adc7(%rip), %rdi     # 0x3920f
callq 0xe0a0
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x11ad4
movq %rax, %rdi
movq %r15, %rsi
callq 0x2038b
movq (%r14), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0xe823
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x18(%rsp), %rdx
xorl %esi, %esi
movq %rdx, 0x30(%rsp)
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jge 0xe814
movq %rsi, 0x38(%rsp)
movq 0x18(%rdx,%rsi,8), %rdi
cmpw $0x100, %ax             # imm = 0x100
jb 0xe4b0
testq %rdi, %rdi
je 0xe802
callq 0x11df8
movq %rax, %rbx
movq %rax, %rdi
leaq 0x28(%rsp), %rsi
callq 0x2038b
movq %rbx, 0x10(%rsp)
testq %rbx, %rbx
je 0xe802
movq 0x10(%rsp), %r14
xorl %r15d, %r15d
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jge 0xe50c
movq 0x18(%r14,%r15,8), %rbx
cmpw $0x100, %ax             # imm = 0x100
jb 0xe4f7
testq %rbx, %rbx
je 0xe507
movq %rbx, %rdi
callq 0xecf3
movq %rbx, %rdi
callq 0x1351f
incq %r15
jmp 0xe4db
movq 0x10(%r14), %r14
cmpq 0x10(%rsp), %r14
jne 0xe4d8
movq 0x10(%rsp), %rdx
xorl %esi, %esi
movq %rdx, 0x40(%rsp)
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jge 0xe7f3
movq 0x18(%rdx,%rsi,8), %rcx
cmpw $0x100, %ax             # imm = 0x100
jb 0xe546
testq %rcx, %rcx
je 0xe7eb
movq 0xc0(%rcx), %rbx
testq %rbx, %rbx
je 0xe7eb
movq %rcx, 0x48(%rsp)
movq %rsi, 0x50(%rsp)
movq (%rbx), %rax
movq 0x18(%rax), %rdi
callq 0x298ed
movq %rax, %r12
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rax
movl (%rax), %edi
shrl $0x6, %edi
andl $0x3fff, %edi           # imm = 0x3FFF
callq 0x29858
movq 0x28(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, (%rsp)
leaq 0x2aa6a(%rip), %rdi     # 0x39004
movq %rbx, %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %rax, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0xe0f0
movq 0x18(%rbx), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xe7c1
movq 0x20(%rsp), %rdx
xorl %esi, %esi
movq %rdx, 0x58(%rsp)
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jge 0xe7b2
movq %rsi, 0x60(%rsp)
movq 0x18(%rdx,%rsi,8), %r12
cmpw $0x100, %ax             # imm = 0x100
jb 0xe5f6
testq %r12, %r12
je 0xe7a0
movq (%r12), %r8
movq %r8, %rcx
shrq $0x20, %rcx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shrl $0x16, %r8d
leaq 0x2aaf0(%rip), %rdi     # 0x39102
movq %r12, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0xe0f0
movq 0x28(%r12), %rax
testq %rax, %rax
je 0xe6f5
xorl %ebp, %ebp
leaq 0x2aac5(%rip), %rbx     # 0x390fa
movq %rax, %r15
movq %rax, 0x68(%rsp)
xorl %r14d, %r14d
movl (%r15), %ecx
movsbq %cl, %rax
cmpq %rax, %r14
jge 0xe6db
movq 0x18(%r15,%r14,8), %rax
cmpw $0x100, %cx             # imm = 0x100
jb 0xe661
testq %rax, %rax
je 0xe6d3
cmpq $0x0, 0x8(%rax)
je 0xe6d3
movl (%rax), %ecx
andl $0x7f, %ecx
cmpl $0x2, %ecx
je 0xe6d0
cmpl $0x43, %ecx
je 0xe69c
cmpl $0x44, %ecx
jne 0xe6d3
movq 0x30(%rax), %rax
cmpl $0x5, 0x4(%rax)
jne 0xe6d3
movq 0x18(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x298ed
leaq 0x2aa98(%rip), %rdi     # 0x39132
jmp 0xe6ba
movq 0x30(%rax), %rax
cmpl $0x5, 0x4(%rax)
jne 0xe6d3
movq 0x18(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x298ed
leaq 0x2aa87(%rip), %rdi     # 0x39141
movq %rbx, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe0f0
leaq 0x2aa71(%rip), %rbx     # 0x3913f
jmp 0xe6d3
pushq $0x1
popq %rbp
incq %r14
jmp 0xe640
movq 0x10(%r15), %r15
movq 0x68(%rsp), %rax
cmpq %rax, %r15
jne 0xe63d
testl %ebp, %ebp
sete %bpl
jmp 0xe6ff
movb $0x1, %bpl
leaq 0x2a9fb(%rip), %rbx     # 0x390fa
cmpb $0x0, 0x1(%rbx)
jne 0xe713
leaq 0x2aa41(%rip), %rdi     # 0x3914d
xorl %eax, %eax
callq 0xe0f0
testb %bpl, %bpl
jne 0xe726
leaq 0x2aa31(%rip), %rdi     # 0x39150
xorl %eax, %eax
callq 0xe0f0
leaq 0x2aaf9(%rip), %rdi     # 0x39226
callq 0xe0a0
movq 0x20(%r12), %rbx
testq %rbx, %rbx
leaq 0x2aa36(%rip), %rbp     # 0x39177
je 0xe7a0
movq %rbx, %r14
xorl %r15d, %r15d
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jge 0xe797
movq 0x18(%r14,%r15,8), %rdx
cmpw $0x100, %ax             # imm = 0x100
jb 0xe765
testq %rdx, %rdx
je 0xe792
movl 0x4(%r12), %eax
andl %r13d, %eax
movl 0x4(%rdx), %esi
andl %r13d, %esi
movq %rbp, %rcx
cmpl %esi, %eax
ja 0xe781
leaq 0x2a9ff(%rip), %rcx     # 0x39180
leaq 0x2a9d0(%rip), %rdi     # 0x39158
movq %r12, %rsi
xorl %eax, %eax
callq 0xe0f0
incq %r15
jmp 0xe749
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xe746
movq 0x60(%rsp), %rsi
incq %rsi
movq 0x58(%rsp), %rdx
jmp 0xe5ce
movq 0x10(%rdx), %rdx
cmpq 0x20(%rsp), %rdx
jne 0xe5c7
leaq 0x2aa5c(%rip), %rdi     # 0x39224
callq 0xe0a0
movq 0x48(%rsp), %rax
movq 0xc0(%rax), %rdi
pushq $0x1
popq %rsi
callq 0xe88d
movq 0x40(%rsp), %rdx
movq 0x50(%rsp), %rsi
incq %rsi
jmp 0xe523
movq 0x10(%rdx), %rdx
cmpq 0x10(%rsp), %rdx
jne 0xe51c
movq 0x38(%rsp), %rsi
incq %rsi
movq 0x30(%rsp), %rdx
jmp 0xe488
movq 0x10(%rdx), %rdx
cmpq 0x18(%rsp), %rdx
jne 0xe481
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0xe870
movq %rbx, %r14
xorl %r15d, %r15d
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jge 0xe867
movq 0x18(%r14,%r15,8), %rcx
cmpw $0x100, %ax             # imm = 0x100
jb 0xe84f
testq %rcx, %rcx
je 0xe862
movq 0xc0(%rcx), %rdi
testq %rdi, %rdi
je 0xe862
xorl %esi, %esi
callq 0xe88d
incq %r15
jmp 0xe833
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xe830
leaq 0x2a9ad(%rip), %rdi     # 0x39224
callq 0xe0a0
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq