// File: /workspace/github_c_makefile_star2_O3/martincameron[P]towntalk/towntalk.c
// Function: parse_include
static struct element* parse_include( struct element *elem,
	struct function *func, struct variables *vars, struct statement *prev, char *message ) {
	struct element *next = elem->next;
	struct string_list *include;
	int path_len = str_idx( func->file->string, "/:\\", -1 ) + 1;
	int name_len = unquote_string( next->str.string, NULL, '"' );
	struct string *path = ( struct string * ) new_source( path_len + name_len );
	if( path ) {
		memcpy( path->string, func->file->string, sizeof( char ) * path_len );
		unquote_string( next->str.string, &path->string[ path_len ], '"' );
		if( strchr( "/\\", path->string[ path_len ] ) || strchr( &path->string[ path_len ], ':' ) ) {
			/* Absolute path. */
			unquote_string( next->str.string, path->string, '"' );
		}
		if( get_string_list_index( func->env->include_paths, next->str.string ) < 0 ) {
			include = new_string_list( &next->str, func->env->include_paths );
			if( include ) {
				func->env->include_paths = include;
				if( include_tt_file( path, func->env, message ) ) {
					next = next->next->next;
				}
				func->env->include_paths = include->next;
				unref_string( include->str );
				free( include );
			} else {
				strcpy( message, OUT_OF_MEMORY );
			}
		} else {
			sprintf( message, "File %.64s already included on line %d.\n", next->str.string, elem->line );
		}
		unref_string( path );
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return next;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rdi, 0x20(%rsp)
movq 0x20(%rdi), %r14
movq %rsi, 0x18(%rsp)
movq 0x28(%rsi), %rax
movq 0x8(%rax), %r15
leaq 0x9beb(%rip), %rsi      # 0x12b16
movq %r15, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x9332
movslq %eax, %r12
incq %r12
movq %r14, 0x8(%rsp)
movq 0x8(%r14), %rbp
movq %rbp, %rdi
xorl %esi, %esi
movl $0x22, %edx
callq 0x7f56
movl %eax, %r13d
addl %r12d, %r13d
movslq %r13d, %rdi
addq $0x21, %rdi
callq 0x31b0
testq %rax, %rax
je 0x9046
movq %rax, %r14
movq %rbx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
leaq 0x20(%rax), %rdi
movq %rdi, 0x8(%rax)
movq $0x1, (%rax)
movl %r13d, 0x10(%rax)
movb $0x8, 0x14(%rax)
movq %r15, %rsi
movq %r12, %rdx
callq 0x3180
leaq (%r14,%r12), %rsi
addq $0x20, %rsi
movq %rbp, %rdi
movl $0x22, %edx
callq 0x7f56
movq 0x8(%r14), %r15
movzbl (%r15,%r12), %eax
testl %eax, %eax
je 0x8fe7
cmpl $0x2f, %eax
je 0x8fe7
cmpl $0x5c, %eax
je 0x8fe7
addq %r15, %r12
movq %r12, %rdi
movl $0x3a, %esi
callq 0x30d0
testq %rax, %rax
je 0x90ff
movq %rbp, %rdi
movq %r15, %rsi
movl $0x22, %edx
callq 0x7f56
movq 0x8(%rsp), %r15
movq 0x8(%r15), %rbp
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %rax
movq 0x40(%rax), %r12
movq 0x390(%r12), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x8363
testl %eax, %eax
js 0x905f
movq 0x20(%rsp), %rax
movl 0x28(%rax), %ecx
leaq 0x9ae6(%rip), %rsi      # 0x12b1a
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3200
jmp 0x90e5
movq 0x10123(%rip), %rsi     # 0x19170
movq %rbx, %rdi
callq 0x3070
movq 0x8(%rsp), %r15
jmp 0x90ed
movl $0x10, %edi
callq 0x31b0
testq %rax, %rax
je 0x90cf
movq %rax, %r15
movq 0x8(%rsp), %rbx
movq %rbx, (%rax)
incq (%rbx)
movq %r13, 0x8(%rax)
movq %rax, 0x390(%r12)
movq %r14, %rdi
movq %r12, %rsi
movq 0x10(%rsp), %rdx
callq 0x797b
testl %eax, %eax
je 0x90a9
movq 0x20(%rbx), %rax
movq 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rax
movq 0x18(%rsp), %rcx
movq 0x40(%rcx), %rcx
movq %rax, 0x390(%rcx)
movq (%r15), %rdi
callq 0x394d
movq %r15, %rdi
callq 0x3030
jmp 0x90e0
movq 0x1009a(%rip), %rsi     # 0x19170
movq 0x10(%rsp), %rdi
callq 0x3070
movq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0x394d
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r15
jmp 0x9005