// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r12
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, %r15
movq 0x8(%rdi), %rdi
movq 0x20(%r15), %r13
leaq 0xbfbd(%rip), %rsi      # 0x12297
callq 0x84da
movq %rax, %rbp
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0x63a8
movq %rax, 0x10(%r14)
movl 0x28(%r15), %ecx
movl %ecx, (%rax)
movb 0x14(%r12), %dl
cmpb $0x5, %dl
jne 0x6342
movq 0x38(%r12), %rsi
testq %rsi, %rsi
je 0x6329
leaq -0x2855(%rip), %rcx     # 0x3aca
cmpq %rcx, 0x18(%rsi)
je 0x63f3
cmpb $0x5, %dl
jne 0x6342
cmpq $0x0, 0x38(%r12)
jne 0x6342
cmpq $0x0, 0x20(%r12)
je 0x6418
movq %r12, 0x20(%rax)
leaq -0x208e(%rip), %rcx     # 0x42bf
movq %rcx, 0x18(%rax)
movzbl (%rbp), %ecx
cmpl $0x3a, %ecx
je 0x637f
cmpl $0x2e, %ecx
je 0x63c9
cmpl $0x21, %ecx
jne 0x63b7
movzbl 0x1(%rbp), %edx
testl %edx, %edx
je 0x6371
cmpl $0x3a, %edx
jne 0x63c9
cmpl $0x21, %ecx
je 0x6404
cmpl $0x3a, %ecx
jne 0x63b7
movq 0x28(%r12), %rdi
incq %rbp
movq %rax, %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq 0x8(%rsp), %r8
movq 0x10(%rsp), %r9
pushq %rbx
pushq %r14
callq 0x8773
addq $0x28, %rsp
jmp 0x63be
movq 0x12dc1(%rip), %rsi     # 0x19170
movq %rbx, %rdi
callq 0x3070
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%r12), %rdi
incq %rbp
movq %rax, %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x86a9
movl 0x4(%rsi), %edx
movl %edx, 0x4(%rax)
movl 0x28(%rsi), %edx
movl %edx, 0x28(%rax)
jmp 0x634d
cmpb $0x3a, 0x1(%rbp)
jne 0x63b7
movq 0x28(%r12), %rdi
addq $0x2, %rbp
jmp 0x6387
movl 0x18(%r12), %ecx
movl %ecx, 0x28(%rax)
leaq -0x295d(%rip), %rcx     # 0x3aca
jmp 0x634d