// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xc0, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x38(%rbp)
leaq 0x50ba4(%rip), %rdi     # 0x62004
movb $0x0, %al
callq 0x110f0
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq -0x18(%rbp), %rdx
callq 0x17d50
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x117e0
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x114ac
jmp 0x116d3
jmp 0x114ae
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movq -0x48(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x116bb
movq -0x48(%rbp), %rax
movslq -0x54(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x48(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x11500
cmpq $0x0, -0x20(%rbp)
jne 0x11500
jmp 0x116ad
movq -0x20(%rbp), %rdi
callq 0x181c0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x117e0
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x1153b
jmp 0x115b9
jmp 0x1153d
movl $0x0, -0x74(%rbp)
movl -0x74(%rbp), %eax
movq -0x68(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x115a5
movq -0x68(%rbp), %rax
movslq -0x74(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x68(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x11588
cmpq $0x0, -0x28(%rbp)
jne 0x11588
jmp 0x1159a
movq -0x28(%rbp), %rdi
callq 0x12490
movq -0x28(%rbp), %rdi
callq 0x1b4c0
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x11544
jmp 0x115a7
movq -0x68(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
cmpq -0x60(%rbp), %rax
jne 0x1153d
jmp 0x115bb
movq -0x30(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x80(%rbp)
jne 0x115e5
jmp 0x116ab
jmp 0x115e7
movl $0x0, -0x94(%rbp)
movl -0x94(%rbp), %eax
movq -0x88(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x1168d
movq -0x88(%rbp), %rax
movslq -0x94(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x88(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x11644
cmpq $0x0, -0x28(%rbp)
jne 0x11644
jmp 0x11679
movq -0x28(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x11677
movq -0x28(%rbp), %rax
movq 0xc0(%rax), %rdi
callq 0x11810
movq -0x28(%rbp), %rax
movq 0xc0(%rax), %rdi
movl $0x1, %esi
callq 0x11ca0
jmp 0x11679
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x115f1
jmp 0x1168f
movq -0x88(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
cmpq -0x80(%rbp), %rax
jne 0x115e7
jmp 0x116ad
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x114b5
jmp 0x116bd
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq -0x40(%rbp), %rax
jne 0x114ae
jmp 0x116d5
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xa0(%rbp)
jne 0x1170b
jmp 0x117c1
jmp 0x1170d
movl $0x0, -0xb4(%rbp)
movl -0xb4(%rbp), %eax
movq -0xa8(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x117a0
movq -0xa8(%rbp), %rax
movslq -0xb4(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0xa8(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x1176a
cmpq $0x0, -0x28(%rbp)
jne 0x1176a
jmp 0x1178c
movq -0x28(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x1178a
movq -0x28(%rbp), %rax
movq 0xc0(%rax), %rdi
xorl %esi, %esi
callq 0x11ca0
jmp 0x1178c
movl -0xb4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb4(%rbp)
jmp 0x11717
jmp 0x117a2
movq -0xa8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xa8(%rbp)
cmpq -0xa0(%rbp), %rax
jne 0x1170d
leaq 0x50852(%rip), %rdi     # 0x6201a
movb $0x0, %al
callq 0x110f0
xorl %eax, %eax
addq $0xc0, %rsp
popq %rbp
retq
nopw (%rax,%rax)