// File: /workspace/github_c_makefile_star2_O1/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 0x32847(%rip), %rdi     # 0x4120f
callq 0xe0a0
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1234e
movq %rax, %rdi
movq %r15, %rsi
callq 0x2318a
movq (%r14), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xedf3
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
leaq 0x32775(%rip), %r13     # 0x41177
movq 0x20(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0xede4
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 0xea36
testq %rdi, %rdi
je 0xedc8
callq 0x1268e
movq %rax, %rbx
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0x2318a
movq %rbx, 0x10(%rsp)
testq %rbx, %rbx
je 0xedc8
movq 0x10(%rsp), %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0xea9a
xorl %r15d, %r15d
movq 0x18(%rbx,%r15,8), %r14
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xea7c
testq %r14, %r14
je 0xea8c
movq %r14, %rdi
callq 0xf2e8
movq %r14, %rdi
callq 0x14063
incq %r15
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jl 0xea68
movq 0x10(%rbx), %rbx
cmpq 0x10(%rsp), %rbx
jne 0xea5e
cmpq $0x0, 0x10(%rsp)
je 0xedc8
movq 0x10(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0xedb9
xorl %esi, %esi
movq %rdx, 0x48(%rsp)
movq 0x18(%rdx,%rsi,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xeae0
testq %rcx, %rcx
je 0xeda7
movq 0xc0(%rcx), %r14
testq %r14, %r14
je 0xeda7
movq %rcx, 0x50(%rsp)
movq %rsi, 0x58(%rsp)
movq (%r14), %rax
movq 0x18(%rax), %rdi
callq 0x2ea31
movq %rax, %r12
movq 0x28(%r14), %rax
movq 0x8(%rax), %rax
movl (%rax), %edi
shrl $0x6, %edi
andl $0x3fff, %edi           # imm = 0x3FFF
callq 0x2e990
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, (%rsp)
leaq 0x324d0(%rip), %rdi     # 0x41004
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 0xed7b
movq 0x28(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0xed6c
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 0xeb90
testq %r14, %r14
je 0xed50
movq (%r14), %r8
movq %r8, %rcx
shrq $0x20, %rcx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shrl $0x16, %r8d
leaq 0x32557(%rip), %rdi     # 0x41102
movq %r14, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0xe0f0
movq 0x28(%r14), %rax
testq %rax, %rax
je 0xeca6
movl $0x0, 0x1c(%rsp)
leaq 0x32527(%rip), %r12     # 0x410fa
movq %rax, %r15
movq %rax, %r13
movzwl (%r15), %eax
testb %al, %al
jle 0xec85
xorl %ebx, %ebx
movq 0x18(%r15,%rbx,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xebfb
testq %rcx, %rcx
je 0xec72
cmpq $0x0, 0x8(%rcx)
je 0xec72
movl (%rcx), %eax
andl $0x7f, %eax
cmpl $0x2, %eax
je 0xec6a
cmpl $0x43, %eax
je 0xec36
cmpl $0x44, %eax
jne 0xec72
movq 0x30(%rcx), %rax
cmpl $0x5, 0x4(%rax)
jne 0xec72
movq 0x18(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x2ea31
leaq 0x324fe(%rip), %rdi     # 0x41132
jmp 0xec54
movq 0x30(%rcx), %rax
cmpl $0x5, 0x4(%rax)
jne 0xec72
movq 0x18(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x2ea31
leaq 0x324ed(%rip), %rdi     # 0x41141
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe0f0
leaq 0x324d7(%rip), %r12     # 0x4113f
jmp 0xec72
movl $0x1, 0x1c(%rsp)
incq %rbx
movl (%r15), %eax
movsbq %al, %rcx
cmpq %rcx, %rbx
jl 0xebe7
movq 0x10(%r15), %r15
movq %r13, %rax
cmpq %r13, %r15
jne 0xebd6
cmpl $0x0, 0x1c(%rsp)
sete %bl
leaq 0x324d3(%rip), %r13     # 0x41177
jmp 0xecaf
movb $0x1, %bl
leaq 0x3244b(%rip), %r12     # 0x410fa
cmpb $0x0, 0x1(%r12)
jne 0xecc5
leaq 0x3248f(%rip), %rdi     # 0x4114d
xorl %eax, %eax
callq 0xe0f0
testb %bl, %bl
jne 0xecd7
leaq 0x32480(%rip), %rdi     # 0x41150
xorl %eax, %eax
callq 0xe0f0
leaq 0x32548(%rip), %rdi     # 0x41226
callq 0xe0a0
movq 0x20(%r14), %rbx
testq %rbx, %rbx
je 0xed50
movq %rbx, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0xed47
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rdx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xed0e
testq %rdx, %rdx
je 0xed38
movl 0x4(%r14), %eax
andl %ebp, %eax
movl 0x4(%rdx), %esi
andl %ebp, %esi
movq %r13, %rcx
cmpl %esi, %eax
ja 0xed27
leaq 0x32459(%rip), %rcx     # 0x41180
leaq 0x3242a(%rip), %rdi     # 0x41158
movq %r14, %rsi
xorl %eax, %eax
callq 0xe0f0
incq %r12
movl (%r15), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jl 0xecfa
movq 0x10(%r15), %r15
cmpq %rbx, %r15
jne 0xecef
movq 0x68(%rsp), %rsi
incq %rsi
movq 0x60(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0xeb73
movq 0x10(%rdx), %rdx
cmpq 0x28(%rsp), %rdx
jne 0xeb61
leaq 0x324a2(%rip), %rdi     # 0x41224
callq 0xe0a0
movq 0x50(%rsp), %rax
movq 0xc0(%rax), %rdi
movl $0x1, %esi
callq 0xee67
movq 0x48(%rsp), %rdx
movq 0x58(%rsp), %rsi
incq %rsi
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0xeac8
movq 0x10(%rdx), %rdx
cmpq 0x10(%rsp), %rdx
jne 0xeab6
movq 0x40(%rsp), %rsi
incq %rsi
movq 0x38(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0xea19
movq 0x10(%rdx), %rdx
cmpq 0x20(%rsp), %rdx
jne 0xea07
movq 0x30(%rsp), %rbx
testq %rbx, %rbx
je 0xee4a
movq %rbx, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0xee41
xorl %r15d, %r15d
movq 0x18(%r14,%r15,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xee1f
testq %rcx, %rcx
je 0xee32
movq 0xc0(%rcx), %rdi
testq %rdi, %rdi
je 0xee32
xorl %esi, %esi
callq 0xee67
incq %r15
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jl 0xee0b
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xee00
leaq 0x323d3(%rip), %rdi     # 0x41224
callq 0xe0a0
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq