// File: /workspace/github_c_makefile_star2_O2/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 0x5b2a5(%rip), %rbx     # 0x6ee88
leaq 0x5b28e(%rip), %r15     # 0x6ee78
movq 0x5b2b7(%rip), %r12     # 0x6eea8
movq (%r15), %r15
testq %r15, %r15
je 0x13c39
cmpq %rbx, %r15
je 0x13c33
movq 0x8(%r15), %r13
cmpq %r12, %r13
je 0x13c33
movq (%r15), %rdi
movq %r14, %rsi
callq 0x3190
testl %eax, %eax
jne 0x13c33
movq (%r13), %rax
movq 0x8(%rax), %rax
cmpb $0x2d, (%rax)
jne 0x13c33
cmpb $0x31, 0x1(%rax)
jne 0x13c33
cmpb $0x0, 0x2(%rax)
je 0x13de8
addq $0x48, %r15
jmp 0x13bf1
leaq 0x5b238(%rip), %r15     # 0x6ee78
leaq 0x23621(%rip), %rbx     # 0x37268
leaq 0x1a678(%rip), %r13     # 0x2e2c6
movq (%r15), %r15
testq %r15, %r15
je 0x13d92
cmpq 0x5b227(%rip), %r15     # 0x6ee88
je 0x13d89
movq 0x8(%r15), %rax
cmpq 0x5b236(%rip), %rax     # 0x6eea8
je 0x13d89
cmpl $0x0, (%rbx)
je 0x13d89
movq (%rsp), %rcx
cmpq %rcx, (%rax)
je 0x13ce3
movq (%r15), %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3190
testl %eax, %eax
jne 0x13d89
cmpl $0x0, 0x5b251(%rip)     # 0x6eef8
je 0x13cfa
movq 0x38(%r15), %r12
movq %r12, %rdi
leaq 0x1a10b(%rip), %rsi     # 0x2ddc2
callq 0x3190
testl %eax, %eax
je 0x13cff
leaq 0x235c9(%rip), %rax     # 0x37290
movq (%rax), %rsi
movq %r12, %rdi
callq 0x3190
leaq 0x1a130(%rip), %r12     # 0x2de09
testl %eax, %eax
jne 0x13d89
jmp 0x13d06
cmpl $0x0, 0x5b20e(%rip)     # 0x6eef8
movq (%r15), %rbp
leaq 0x1a115(%rip), %r12     # 0x2de09
cmoveq %r13, %r12
jmp 0x13d06
movq %r13, %r12
jmp 0x13d06
leaq 0x1a103(%rip), %r12     # 0x2de09
movq 0x38(%r15), %rdi
leaq 0x1a0b1(%rip), %rsi     # 0x2ddc2
callq 0x3190
movq %r13, %rbx
movl %eax, %r13d
movq 0x232d5(%rip), %rax     # 0x36ff8
movq (%rax), %rdi
leaq 0x1a09c(%rip), %rsi     # 0x2ddc9
movq %rbp, %rdx
xorl %eax, %eax
callq 0x31a0
testl %r13d, %r13d
movq %rbx, %r13
leaq 0x23524(%rip), %rbx     # 0x37268
movq 0x232ad(%rip), %rax     # 0x36ff8
movq (%rax), %rdi
leaq 0x1a0b4(%rip), %rdx     # 0x2de09
cmoveq %r13, %rdx
movq 0x8(%r15), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
movl 0x10(%rax), %r8d
movq (%rsp), %r11
movl 0x10(%r11), %r10d
leaq 0x1a069(%rip), %rsi     # 0x2dde0
movq %r12, %r9
xorl %eax, %eax
pushq %r10
pushq 0x8(%r11)
callq 0x31a0
popq %rcx
popq %rdx
addq $0x48, %r15
jmp 0x13c4e
movq 0x5b12f(%rip), %r15     # 0x6eec8
testq %r15, %r15
je 0x13dc6
movq 0x48(%r15), %rax
movq %rax, 0x5b11f(%rip)     # 0x6eec8
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%r15)
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
jmp 0x13dd1
pushq $0x50
popq %rdi
callq 0x4da5
movq %rax, %r15
movq 0x5b0a0(%rip), %rax     # 0x6ee78
testq %rax, %rax
je 0x13de1
movq %rax, 0x48(%r15)
movq %r15, 0x5b090(%rip)     # 0x6ee78
cmpl $0x0, 0x5b109(%rip)     # 0x6eef8
je 0x13e1a
leaq 0x23498(%rip), %rbx     # 0x37290
movq (%rbx), %rdi
callq 0x30d0
leaq 0x1(%rax), %rdi
callq 0x4da5
movq %rax, 0x38(%r15)
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x3090
jmp 0x13e25
leaq 0x19fa1(%rip), %rax     # 0x2ddc2
movq %rax, 0x38(%r15)
movq %r14, %rdi
callq 0x30d0
leaq 0x1(%rax), %rdi
callq 0x4da5
movq %rax, (%r15)
movq %rax, %rdi
movq %r14, %rsi
callq 0x3090
movq %r15, %rdi
callq 0x14aec
movq %rax, 0x8(%r15)
movq (%rsp), %rcx
movq %rcx, (%rax)
movq %r15, 0x5affa(%rip)     # 0x6ee58
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq