// File: /workspace/github_c_makefile_star2_O3/nimble-code[P]Uno/Src/uno_lts.c
// Function: new_graph
static Graphs *
new_graph(treenode *n, char *str)
{	Graphs *g;

	for (g = graph; g; g = g->nxt)
		if (g != glob_decls
		&&  g->cfg != uno_prop
		&&  strcmp(g->fctnm, str) == 0
		&&  strcmp(g->cfg->n->hdr.fnm, "-1") == 0)
		{	if (debug)
			printf("uno: replacing template for %s\n", g->fctnm);
			break;
		}

	if (!g)
	for (g = graph; g; g = g->nxt)
	{	if (g == glob_decls
		||  g->cfg == uno_prop)
			continue;

		if (usecheck)
		if (g->cfg->n == n			/* unlikely conflict - or */
		||  (strcmp(g->fctnm, str) == 0		/* same name - and */
		&&   (!is_static_fct			/* new decl has global scope - or */
		||    strcmp(g->scope, "global") == 0	/* previous decl had global scope - or */
		||    strcmp(g->scope, cur_path) == 0)))/* prev decl has same file scope - or */
			dup_graph(g, n);		/* no break - look for other trouble */
	}

	if (!g)
	{	if (freegraph)
		{	g = freegraph;
			freegraph = g->nxt;
			memset(g, 0, sizeof(Graphs));
		} else
			g = (Graphs *) emalloc(sizeof(Graphs));
		if (!graph)
			graph = g;
		else
		{	g->nxt = graph;
			graph = g;
	}	}

	if (is_static_fct)
	{	g->scope = (char *) emalloc(strlen(cur_path)+1);
		strcpy(g->scope, cur_path);
	} else
		g->scope = "global";

	g->fctnm = (char *) emalloc(strlen(str)+1);
	strcpy(g->fctnm, str);
	g->cfg = create_state(g);
	g->cfg->n = n;

	curgraph = g;

	if (debug)
	printf("uno: new graph for fct %s, status %d (%s)\n", str, g->status, g->cfg->n->hdr.fnm);

	return g;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, (%rsp)
movq 0x5adbe(%rip), %rbx     # 0x6fe78
testq %rbx, %rbx
je 0x15275
movq 0x5adbe(%rip), %r12     # 0x6fe88
movq 0x5add7(%rip), %r13     # 0x6fea8
movq %rbx, %r15
cmpq %r12, %r15
je 0x1510e
movq 0x8(%r15), %rbp
cmpq %r13, %rbp
je 0x1510e
movq (%r15), %rdi
movq %r14, %rsi
callq 0x3190
testl %eax, %eax
jne 0x1510e
movq (%rbp), %rax
movq 0x8(%rax), %rax
cmpb $0x2d, (%rax)
jne 0x1510e
cmpb $0x31, 0x1(%rax)
jne 0x1510e
cmpb $0x0, 0x2(%rax)
je 0x152cd
movq 0x48(%r15), %r15
testq %r15, %r15
jne 0x150d4
testq %rbx, %rbx
je 0x15275
movq 0x5ad61(%rip), %r13     # 0x6fe88
leaq 0x2313a(%rip), %r15     # 0x38268
cmpq %r13, %rbx
je 0x15268
movq 0x8(%rbx), %rax
cmpq 0x5ad66(%rip), %rax     # 0x6fea8
je 0x15268
cmpl $0x0, (%r15)
je 0x15268
movq (%rsp), %rcx
cmpq %rcx, (%rax)
je 0x151b4
movq (%rbx), %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3190
testl %eax, %eax
jne 0x15268
cmpl $0x0, 0x5ad80(%rip)     # 0x6fef8
je 0x151d2
movq 0x38(%rbx), %r12
movq %r12, %rdi
leaq 0x1ac06(%rip), %rsi     # 0x2fd8e
callq 0x3190
testl %eax, %eax
je 0x151db
leaq 0x230f8(%rip), %rax     # 0x38290
movq (%rax), %rsi
movq %r12, %rdi
callq 0x3190
leaq 0x1ac2b(%rip), %r12     # 0x2fdd5
testl %eax, %eax
jne 0x15268
jmp 0x151e2
cmpl $0x0, 0x5ad3d(%rip)     # 0x6fef8
movq (%rbx), %rbp
leaq 0x1ac10(%rip), %r12     # 0x2fdd5
leaq 0x1b0c6(%rip), %rax     # 0x30292
cmoveq %rax, %r12
jmp 0x151e2
leaq 0x1b0b9(%rip), %r12     # 0x30292
jmp 0x151e2
leaq 0x1abf3(%rip), %r12     # 0x2fdd5
movq 0x38(%rbx), %rdi
leaq 0x1aba1(%rip), %rsi     # 0x2fd8e
callq 0x3190
movl %eax, %r13d
movq 0x22dfc(%rip), %rax     # 0x37ff8
movq (%rax), %rdi
leaq 0x1ab8f(%rip), %rsi     # 0x2fd95
movq %rbp, %rdx
xorl %eax, %eax
callq 0x31a0
testl %r13d, %r13d
movq 0x22dde(%rip), %rax     # 0x37ff8
movq (%rax), %rdi
leaq 0x1abb1(%rip), %rdx     # 0x2fdd5
leaq 0x1b067(%rip), %rax     # 0x30292
cmoveq %rax, %rdx
movq 0x8(%rbx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
movl 0x10(%rax), %r8d
movq (%rsp), %r11
movl 0x10(%r11), %r10d
leaq 0x1ab5f(%rip), %rsi     # 0x2fdac
movq %r12, %r9
xorl %eax, %eax
pushq %r10
pushq 0x8(%r11)
callq 0x31a0
addq $0x10, %rsp
movq 0x5ac20(%rip), %r13     # 0x6fe88
movq 0x48(%rbx), %rbx
testq %rbx, %rbx
jne 0x1512e
movq 0x5ac4c(%rip), %r15     # 0x6fec8
testq %r15, %r15
je 0x152a9
movq 0x48(%r15), %rax
movq %rax, 0x5ac3c(%rip)     # 0x6fec8
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%r15)
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
jmp 0x152b6
movl $0x50, %edi
callq 0x5fdd
movq %rax, %r15
movq 0x5abbb(%rip), %rax     # 0x6fe78
testq %rax, %rax
je 0x152c6
movq %rax, 0x48(%r15)
movq %r15, 0x5abab(%rip)     # 0x6fe78
cmpl $0x0, 0x5ac24(%rip)     # 0x6fef8
je 0x152ff
leaq 0x22fb3(%rip), %rbx     # 0x38290
movq (%rbx), %rdi
callq 0x30d0
leaq 0x1(%rax), %rdi
callq 0x5fdd
movq %rax, 0x38(%r15)
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x3090
jmp 0x1530a
leaq 0x1aa88(%rip), %rax     # 0x2fd8e
movq %rax, 0x38(%r15)
movq %r14, %rdi
callq 0x30d0
leaq 0x1(%rax), %rdi
callq 0x5fdd
movq %rax, (%r15)
movq %rax, %rdi
movq %r14, %rsi
callq 0x3090
movq 0x5aba0(%rip), %rax     # 0x6fed0
testq %rax, %rax
je 0x15360
movq 0x68(%rax), %rcx
movq %rcx, 0x5ab90(%rip)     # 0x6fed0
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
jmp 0x1536a
movl $0x70, %edi
callq 0x5fdd
movq 0x10(%r15), %rcx
movq %rcx, 0x68(%rax)
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
movq (%rsp), %rcx
movq %rcx, (%rax)
movq %r15, 0x5aad0(%rip)     # 0x6fe58
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq