// File: /workspace/github_c_makefile_star2_O3/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 0xc089(%rip), %rsi      # 0x1229f
callq 0x8312
movq %rax, %rbp
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0x6269
movq %rax, 0x10(%r14)
movl 0x28(%r15), %ecx
movl %ecx, (%rax)
cmpb $0x5, 0x14(%r12)
jne 0x6286
movq 0x38(%r12), %rdx
testq %rdx, %rdx
je 0x627a
leaq -0x27bb(%rip), %rcx     # 0x3a9a
cmpq %rcx, 0x18(%rdx)
jne 0x6286
movl 0x4(%rdx), %esi
movl %esi, 0x4(%rax)
movl 0x28(%rdx), %edx
movl %edx, 0x28(%rax)
jmp 0x6291
movq 0x12f00(%rip), %rsi     # 0x19170
movq %rbx, %rdi
callq 0x3070
jmp 0x62c0
cmpq $0x0, 0x20(%r12)
je 0x6325
movq %r12, 0x20(%rax)
leaq -0x2003(%rip), %rcx     # 0x428e
movq %rcx, 0x18(%rax)
movzbl (%rbp), %ecx
cmpl $0x3a, %ecx
je 0x62f3
cmpl $0x2e, %ecx
je 0x62c9
cmpl $0x21, %ecx
jne 0x62c0
movzbl 0x1(%rbp), %ecx
testl %ecx, %ecx
je 0x62c0
cmpl $0x3a, %ecx
jne 0x62c9
movq 0x28(%r12), %rdi
addq $0x2, %rbp
jmp 0x62fb
movq %r13, %rax
addq $0x18, %rsp
jmp 0x631a
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 0x84df
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 0x85a9
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x18(%r12), %ecx
movl %ecx, 0x28(%rax)
leaq -0x289a(%rip), %rcx     # 0x3a9a
jmp 0x6291