// File: /workspace/github_c_makefile_star2_O0/martincameron[P]towntalk/towntalk.c
// Function: parse_capture_expression
static struct element* parse_capture_expression( struct element *elem,
	struct function *func, struct variables *vars, struct local_variable *local, struct expression *prev, char *message ) {
	struct element *next = elem->next;
	struct variable *captured = &vars->locals[ local->index ];
	char *field = &elem->str.string[ strlen( local->name ) ];
	struct expression *expr = calloc( 1, sizeof( struct value_expression ) );
	if( expr ) {
		prev->next = expr;
		expr->line = elem->line;
		expr->index = ( long_int ) captured->number_value;
		( ( struct value_expression * ) expr )->num = captured->number_value;
		if( captured->string_value ) {
			captured->string_value->reference_count++;
			( ( struct value_expression * ) expr )->str = captured->string_value;
			expr->evaluate = evaluate_string_literal_expression;
		} else {
			expr->evaluate = evaluate_number_literal_expression;
		}
		if( field[ 0 ] == '.' ) {
			next = parse_member_expression( local->type, expr, &field[ 1 ], elem, func, vars, prev, message );
		} else if( field[ 0 ] == ':' ) {
			next = parse_member_call_expression( local->type, expr, &field[ 1 ], elem, func, vars, prev, message );
		}
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return next;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %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 -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x30c0
movq %rax, %rcx
movq -0x58(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movl $0x1, %edi
movl $0x30, %esi
callq 0x3120
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x78dd
movq -0x50(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %ecx
movq -0x50(%rbp), %rax
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movl (%rax), %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x40(%rbp), %rax
movl (%rax), %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x40(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x783c
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x50(%rbp), %rax
leaq -0x3a86(%rip), %rcx     # 0x3db0
movq %rcx, 0x18(%rax)
jmp 0x784b
movq -0x50(%rbp), %rax
leaq -0x3ac7(%rip), %rcx     # 0x3d80
movq %rcx, 0x18(%rax)
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0x7893
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%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 0x78db
movq -0x48(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x78d9
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%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 0x78db
jmp 0x78ed
movq -0x30(%rbp), %rdi
movq 0x19878(%rip), %rsi     # 0x21160
callq 0x3070
movq -0x38(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopw (%rax,%rax)