// File: /workspace/github_c_makefile_star2_O3/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
xorl %eax, %eax
leaq 0x70(%rsp), %r14
movq %rax, (%r14)
leaq 0x30(%rsp), %r15
movq %rax, (%r15)
leaq 0x31837(%rip), %rdi     # 0x4020f
callq 0xe0a0
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1239e
movq %rax, %rdi
movq %r15, %rsi
callq 0x230e8
movq (%r14), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xee06
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
leaq 0x31765(%rip), %r13     # 0x40177
movq 0x20(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0xedf7
xorl %esi, %esi
movq %rdx, 0x38(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x18(%rdx,%rsi,8), %rdi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xea46
testq %rdi, %rdi
je 0xeddb
callq 0x126d6
movq %rax, %rbx
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0x230e8
movq %rbx, 0x18(%rsp)
testq %rbx, %rbx
je 0xeddb
movq 0x18(%rsp), %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0xeaaf
xorl %r15d, %r15d
movq 0x18(%rbx,%r15,8), %r14
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0xea8d
testq %r14, %r14
je 0xeaa0
movq %r14, %rdi
callq 0xf308
movq %r14, %rdi
callq 0x1408a
movzwl (%rbx), %eax
incq %r15
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r15
jl 0xea78
movq 0x10(%rbx), %rbx
cmpq 0x18(%rsp), %rbx
jne 0xea6e
movq 0x18(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0xedcc
xorl %esi, %esi
movq %rdx, 0x48(%rsp)
movq 0x18(%rdx,%rsi,8), %rdi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0xeaea
testq %rdi, %rdi
je 0xedb9
movq 0xc0(%rdi), %r14
testq %r14, %r14
je 0xedb9
movq %rdi, 0x50(%rsp)
movq %rsi, 0x58(%rsp)
movq (%r14), %rax
movq 0x18(%rax), %rdi
callq 0x2e409
movq %rax, %r12
movq 0x28(%r14), %rax
movq 0x8(%rax), %rax
movl (%rax), %edi
shrl $0x6, %edi
andl $0x3fff, %edi           # imm = 0x3FFF
callq 0x2e368
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, (%rsp)
leaq 0x314c6(%rip), %rdi     # 0x40004
movq %r14, %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %rax, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0xe0f0
movq 0x18(%r14), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0xed8a
movq 0x28(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0xed7b
xorl %esi, %esi
movq %rdx, 0x60(%rsp)
movq %rsi, 0x68(%rsp)
movq 0x18(%rdx,%rsi,8), %r14
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xeb9a
testq %r14, %r14
je 0xed5f
movq (%r14), %r8
movq %r8, %rcx
shrq $0x20, %rcx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shrl $0x16, %r8d
leaq 0x3154d(%rip), %rdi     # 0x40102
movq %r14, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0xe0f0
movq 0x28(%r14), %rax
testq %rax, %rax
je 0xecb0
movl $0x0, 0x14(%rsp)
leaq 0x3151d(%rip), %r12     # 0x400fa
movq %rax, %r15
movq %rax, %r13
movzwl (%r15), %eax
testb %al, %al
jle 0xec8f
xorl %ebx, %ebx
movq 0x18(%r15,%rbx,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xec05
testq %rcx, %rcx
je 0xec7c
cmpq $0x0, 0x8(%rcx)
je 0xec7c
movl (%rcx), %eax
andl $0x7f, %eax
cmpl $0x2, %eax
je 0xec74
cmpl $0x43, %eax
je 0xec40
cmpl $0x44, %eax
jne 0xec7c
movq 0x30(%rcx), %rax
cmpl $0x5, 0x4(%rax)
jne 0xec7c
movq 0x18(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x2e409
leaq 0x314f4(%rip), %rdi     # 0x40132
jmp 0xec5e
movq 0x30(%rcx), %rax
cmpl $0x5, 0x4(%rax)
jne 0xec7c
movq 0x18(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x2e409
leaq 0x314e3(%rip), %rdi     # 0x40141
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe0f0
leaq 0x314cd(%rip), %r12     # 0x4013f
jmp 0xec7c
movl $0x1, 0x14(%rsp)
incq %rbx
movl (%r15), %eax
movsbq %al, %rcx
cmpq %rcx, %rbx
jl 0xebf1
movq 0x10(%r15), %r15
movq %r13, %rax
cmpq %r13, %r15
jne 0xebe0
cmpl $0x0, 0x14(%rsp)
sete %bl
leaq 0x314c9(%rip), %r13     # 0x40177
jmp 0xecb9
movb $0x1, %bl
leaq 0x31441(%rip), %r12     # 0x400fa
cmpb $0x0, 0x1(%r12)
jne 0xeccf
leaq 0x31485(%rip), %rdi     # 0x4014d
xorl %eax, %eax
callq 0xe0f0
testb %bl, %bl
jne 0xece1
leaq 0x31476(%rip), %rdi     # 0x40150
xorl %eax, %eax
callq 0xe0f0
leaq 0x3153e(%rip), %rdi     # 0x40226
callq 0xe0a0
movq 0x20(%r14), %rbx
testq %rbx, %rbx
je 0xed5f
movq %rbx, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0xed56
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rdx
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0xed19
testq %rdx, %rdx
je 0xed47
movl 0x4(%r14), %eax
andl %ebp, %eax
movl 0x4(%rdx), %esi
andl %ebp, %esi
movq %r13, %rcx
cmpl %esi, %eax
ja 0xed32
leaq 0x3144e(%rip), %rcx     # 0x40180
leaq 0x3141f(%rip), %rdi     # 0x40158
movq %r14, %rsi
xorl %eax, %eax
callq 0xe0f0
movzwl (%r15), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0xed04
movq 0x10(%r15), %r15
cmpq %rbx, %r15
jne 0xecf9
movq 0x68(%rsp), %rsi
incq %rsi
movq 0x60(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0xeb7d
movq 0x10(%rdx), %rdx
cmpq 0x28(%rsp), %rdx
jne 0xeb6b
leaq 0x31493(%rip), %rdi     # 0x40224
callq 0xe0a0
movq 0x50(%rsp), %rax
movq 0xc0(%rax), %rdi
movl $0x1, %esi
callq 0xee7f
movq 0x48(%rsp), %rdx
movzwl (%rdx), %eax
movq 0x58(%rsp), %rsi
incq %rsi
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %rsi
jl 0xead1
movq 0x10(%rdx), %rdx
cmpq 0x18(%rsp), %rdx
jne 0xeabf
movq 0x40(%rsp), %rsi
incq %rsi
movq 0x38(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0xea29
movq 0x10(%rdx), %rdx
cmpq 0x20(%rsp), %rdx
jne 0xea17
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0xee62
movq %rbx, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0xee59
xorl %r15d, %r15d
movq 0x18(%r14,%r15,8), %rcx
movzwl %ax, %edx
cmpl $0x100, %edx            # imm = 0x100
jb 0xee33
testq %rcx, %rcx
je 0xee4a
movq 0xc0(%rcx), %rdi
testq %rdi, %rdi
je 0xee4a
xorl %esi, %esi
callq 0xee7f
movzwl (%r14), %eax
incq %r15
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r15
jl 0xee1e
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xee13
leaq 0x313bb(%rip), %rdi     # 0x40224
callq 0xe0a0
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq