// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x5a294(%rip), %r14     # 0x6fe68
testq %r14, %r14
je 0x15c29
movq 0x5a298(%rip), %r13     # 0x6fe78
movq 0x5a2b1(%rip), %rbp     # 0x6fe98
cmpq %r13, %r14
je 0x15c20
movq 0x8(%r14), %r12
cmpq %rbp, %r12
je 0x15c20
movq (%r14), %rdi
movq %r15, %rsi
callq 0x3180
testl %eax, %eax
jne 0x15c20
movq (%r12), %rax
movq 0x8(%rax), %rdi
leaq 0x1a19e(%rip), %rsi     # 0x2fdb1
callq 0x3180
testl %eax, %eax
je 0x15ce9
movq 0x48(%r14), %r14
testq %r14, %r14
jne 0x15be7
movq 0x5a238(%rip), %r12     # 0x6fe68
testq %r12, %r12
je 0x15ce6
leaq 0x8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rbx), %rax
movq %rax, 0x8(%rsp)
xorl %r14d, %r14d
leaq 0x22603(%rip), %r13     # 0x38258
cmpq 0x5a21c(%rip), %r12     # 0x6fe78
je 0x15cd6
movq 0x8(%r12), %rax
cmpq 0x5a22e(%rip), %rax     # 0x6fe98
je 0x15cd6
cmpl $0x0, (%r13)
je 0x15cd6
cmpq %rbx, (%rax)
je 0x15cbf
movq (%r12), %rdi
movq %r15, %rsi
callq 0x3180
testl %eax, %eax
jne 0x15cd6
cmpl $0x0, 0x5a259(%rip)     # 0x6fee8
je 0x15cbf
movq 0x38(%r12), %rbp
movq %rbp, %rdi
leaq 0x1a114(%rip), %rsi     # 0x2fdb4
callq 0x3180
testl %eax, %eax
je 0x15cbf
leaq 0x225d0(%rip), %rax     # 0x38280
movq (%rax), %rsi
movq %rbp, %rdi
callq 0x3180
testl %eax, %eax
jne 0x15cd6
leaq 0x8(%r12), %rsi
movq %r12, %rdi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq 0x40b2
movq 0x48(%r12), %r12
testq %r12, %r12
jne 0x15c55
jmp 0x15ce9
xorl %r14d, %r14d
testq %r14, %r14
jne 0x15d46
movq 0x5a1c3(%rip), %r14     # 0x6feb8
testq %r14, %r14
je 0x15d22
movq 0x48(%r14), %rax
movq %rax, 0x5a1b3(%rip)     # 0x6feb8
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%r14)
movups %xmm0, 0x30(%r14)
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
jmp 0x15d2f
movl $0x50, %edi
callq 0x61a1
movq %rax, %r14
movq 0x5a132(%rip), %rax     # 0x6fe68
testq %rax, %rax
je 0x15d3f
movq %rax, 0x48(%r14)
movq %r14, 0x5a122(%rip)     # 0x6fe68
cmpl $0x0, 0x5a19b(%rip)     # 0x6fee8
je 0x15d7a
leaq 0x2252a(%rip), %r12     # 0x38280
movq (%r12), %rdi
callq 0x30d0
leaq 0x1(%rax), %rdi
callq 0x61a1
movq %rax, 0x38(%r14)
movq (%r12), %rsi
movq %rax, %rdi
callq 0x3090
jmp 0x15d85
leaq 0x1a033(%rip), %rax     # 0x2fdb4
movq %rax, 0x38(%r14)
movq %r15, %rdi
callq 0x30d0
leaq 0x1(%rax), %rdi
callq 0x61a1
movq %rax, (%r14)
movq %rax, %rdi
movq %r15, %rsi
callq 0x3090
movq 0x5a115(%rip), %rax     # 0x6fec0
testq %rax, %rax
je 0x15ddb
movq 0x68(%rax), %rcx
movq %rcx, 0x5a105(%rip)     # 0x6fec0
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 0x15de5
movl $0x70, %edi
callq 0x61a1
movq 0x10(%r14), %rcx
movq %rcx, 0x68(%rax)
movq %rax, 0x10(%r14)
movq %rax, 0x8(%r14)
movq %rbx, (%rax)
movq %r14, 0x5a049(%rip)     # 0x6fe48
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq