// File: /workspace/github_c_makefile_star2_O0/martincameron[P]towntalk/towntalk.c
// Function: parse_library_declaration
static struct element* parse_library_declaration( struct element *elem,
	struct function *func, struct variables *vars, struct statement *prev, char *message ) {
	struct function *init;
	struct element *next = elem->next;
	struct string *library = get_decl_indexed( func, next->str.string, next->str.length, LIBRARY );
	if( library ) {
		library->reference_count++;
	} else {
		library = new_string_value( next->str.string );
		if( library ) {
			library->type = LIBRARY;
			add_decl( library, next->line, func->env, message );
		} else {
			strcpy( message, OUT_OF_MEMORY );
		}
	}
	if( message[ 0 ] == 0 && import_library( library, func->file, message ) ) {
		init = new_function( "[Init]", NULL );
		if( init ) {
			init->file = func->file;
			init->file->reference_count++;
			init->library = library;
			library->reference_count++;
			init->env = func->env;
			next = next->next;
			parse_keywords( library_decls, next->child, init, NULL, NULL, message );
			next = next->next;
			unref_string( &init->str );
		} else {
			strcpy( message, OUT_OF_MEMORY );
		}
		unref_string( library );
	}
	return next;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x38(%rbp), %rax
movl 0x10(%rax), %edx
movl $0x7, %ecx
callq 0xb770
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0xc390
movq -0x40(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0xc3e0
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3a30
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0xc3ce
movq -0x40(%rbp), %rax
movb $0x7, 0x14(%rax)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rax
movl 0x28(%rax), %esi
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rdx
movq -0x28(%rbp), %rcx
callq 0x4720
jmp 0xc3de
movq -0x28(%rbp), %rdi
movq 0x14d87(%rip), %rsi     # 0x21160
callq 0x3070
jmp 0xc3e0
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0xc4d9
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x28(%rbp), %rdx
callq 0xc610
cmpl $0x0, %eax
je 0xc4d9
leaq 0xf5c4(%rip), %rdi      # 0x1b9d9
xorl %eax, %eax
movl %eax, %esi
callq 0x94a0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xc4c0
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x40(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %r9
leaq 0x15924(%rip), %rdi     # 0x21dc0
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x9e50
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
callq 0x3c20
jmp 0xc4d0
movq -0x28(%rbp), %rdi
movq 0x14c95(%rip), %rsi     # 0x21160
callq 0x3070
movq -0x40(%rbp), %rdi
callq 0x3c20
movq -0x38(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)