// File: /workspace/github_c_makefile_star2_O0/martincameron[P]towntalk/towntalk.c
// Function: parse_global_expression
static struct element* parse_global_expression( struct element *elem, struct function *func,
	struct variables *vars, struct global_variable *global, struct expression *prev, char *message ) {
	struct element *next = elem->next;
	char *field = field_end( elem->str.string, "!.:" );
	struct expression *expr = calloc( 1, sizeof( struct value_expression ) );
	if( expr ) {
		prev->next = expr;
		expr->line = elem->line;
		if( global->str.type == CONST && global->initializer && global->initializer->evaluate == evaluate_number_literal_expression ) {
			expr->index = global->initializer->index;
			( ( struct value_expression * ) expr )->num = ( ( struct value_expression * ) global->initializer )->num;
			expr->evaluate = evaluate_number_literal_expression;
		} else if( global->str.type == CONST && !( global->initializer || global->value.string_value ) ) {
			( ( struct value_expression * ) expr )->num = global->value.number_value;
			expr->evaluate = evaluate_number_literal_expression;
		} else {
			( ( struct value_expression * ) expr )->str = &global->str;
			expr->evaluate = evaluate_global;
		}
		if( field[ 0 ] == '.' || ( field[ 0 ] == '!' && field[ 1 ] && field[ 1 ] != ':' ) ) {
			next = parse_member_expression( global->type, expr, &field[ 1 ], elem, func, vars, prev, message );
		} else if( field[ 0 ] == ':' ) {
			next = parse_member_call_expression( global->type, expr, &field[ 1 ], elem, func, vars, prev, message );
		} else if( field[ 0 ] == '!' && field[ 1 ] == ':' ) {
			next = parse_member_call_expression( global->type, expr, &field[ 2 ], elem, func, vars, prev, message );
		}
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return next;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x13958(%rip), %rsi     # 0x1b763
callq 0xaf10
movq %rax, -0x40(%rbp)
movl $0x1, %edi
movl $0x30, %esi
callq 0x3120
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x801e
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
movq -0x48(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movsbl 0x14(%rax), %eax
cmpl $0x5, %eax
jne 0x7ead
movq -0x20(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x7ead
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
leaq -0x40f2(%rip), %rcx     # 0x3d80
cmpq %rcx, 0x18(%rax)
jne 0x7ead
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movl 0x4(%rax), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rax
movl 0x28(%rax), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x48(%rbp), %rax
leaq -0x4127(%rip), %rcx     # 0x3d80
movq %rcx, 0x18(%rax)
jmp 0x7f0c
movq -0x20(%rbp), %rax
movsbl 0x14(%rax), %eax
cmpl $0x5, %eax
jne 0x7eef
movq -0x20(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x7eef
movq -0x20(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x7eef
movq -0x20(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x48(%rbp), %rax
leaq -0x4169(%rip), %rcx     # 0x3d80
movq %rcx, 0x18(%rax)
jmp 0x7f0a
movq -0x20(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x48(%rbp), %rax
leaq -0x31d6(%rip), %rcx     # 0x4d30
movq %rcx, 0x18(%rax)
jmp 0x7f0c
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0x7f3e
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x21, %eax
jne 0x7f7d
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
je 0x7f7d
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x3a, %eax
je 0x7f7d
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq $0x1, %rdx
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %r8
movq -0x18(%rbp), %r9
movq -0x28(%rbp), %r10
movq -0x30(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xb260
movq %rax, -0x38(%rbp)
jmp 0x801c
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x7fc5
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq $0x1, %rdx
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %r8
movq -0x18(%rbp), %r9
movq -0x28(%rbp), %r10
movq -0x30(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xb380
movq %rax, -0x38(%rbp)
jmp 0x801a
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x21, %eax
jne 0x8018
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x3a, %eax
jne 0x8018
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq $0x2, %rdx
movq -0x8(%rbp), %rcx
movq -0x10(%rbp), %r8
movq -0x18(%rbp), %r9
movq -0x28(%rbp), %r10
movq -0x30(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xb380
movq %rax, -0x38(%rbp)
jmp 0x801a
jmp 0x801c
jmp 0x802e
movq -0x30(%rbp), %rdi
movq 0x19137(%rip), %rsi     # 0x21160
callq 0x3070
movq -0x38(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)