// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: parse_assignment_statement
static struct element* parse_assignment_statement( struct element *elem,
	struct function *func, struct variables *vars, struct statement *prev, char *message ) {
	struct local_variable *local;
	struct global_variable *global;
	elem = elem->next;
	while( message[ 0 ] == 0 && elem ) {
		if( elem->str.string[ 0 ] == ';' ) {
			elem = elem->next;
			break;
		} else if( elem->str.string[ 0 ] == ',' && elem->next ) {
			elem = elem->next;
		}
		if( elem->str.string[ 0 ] == '[' ) {
			elem = parse_array_assignment( elem, func, vars, prev, message );
		} else if( elem->next && elem->next->str.string[ 0 ] == '(' ) {
			elem = parse_struct_assignment( elem, func, vars, prev, message );
		} else {
			local = get_local_variable( func->variable_decls, elem->str.string, "." );
			if( local ) {
				elem = parse_local_assignment( elem, func, vars, local, prev, message );
			} else {
				global = ( struct global_variable * ) find_decl( func, elem->str.string, GLOBAL, "!." );
				if( global ) {
					elem = parse_global_assignment( elem, func, vars, global, prev, message );
				} else {
					sprintf( message, "Undeclared variable '%.64s' on line %d.", elem->str.string, elem->line );
				}
			}
		}
		prev = prev->next;
	}
	return elem;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %rbx
movq 0x20(%rdi), %rbp
leaq 0x8145(%rip), %r12      # 0x11741
movq %r8, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x20(%rsp)
cmpb $0x0, (%r15)
jne 0x9e2a
testq %rbp, %rbp
je 0x9e2a
movq 0x8(%rbp), %r15
movzbl (%r15), %eax
cmpl $0x2c, %eax
je 0x9635
cmpl $0x3b, %eax
jne 0x9647
jmp 0x9e26
movq 0x20(%rbp), %rax
testq %rax, %rax
cmovneq %rax, %rbp
movq 0x8(%rbp), %r15
movb (%r15), %al
cmpb $0x5b, %al
jne 0x974b
movq 0x18(%rbp), %rbx
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x3130
testq %rax, %rax
je 0x9947
movq %rax, %r15
movq %rax, 0x20(%r14)
andq $0x0, 0x38(%rsp)
movq %rbx, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x28(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4d6c
movq 0x38(%rsp), %rcx
testq %rcx, %rcx
je 0x9a97
movq %rcx, 0x8(%r15)
movq 0x8(%rax), %rcx
cmpb $0x2c, (%rcx)
movq %r14, 0x18(%rsp)
jne 0x96b5
movq 0x20(%rax), %rax
andq $0x0, 0x38(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x28(%rsp), %r12
movq %r12, %rcx
movq %rbx, %r14
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x4d6c
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9acc
movq 0x8(%r15), %rcx
movq %rax, 0x10(%rcx)
andq $0x0, 0x38(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
callq 0x4d6c
movq %rax, %rbp
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9735
movq 0x8(%r15), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x8(%r15)
leaq -0x50b4(%rip), %rax     # 0x467d
movq %rax, 0x10(%r15)
leaq 0x8005(%rip), %r12      # 0x11741
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rbx
jmp 0x9ad9
movq %r14, 0x18(%rsp)
movq 0x20(%rbp), %r14
testq %r14, %r14
je 0x9832
movq 0x8(%r14), %rax
cmpb $0x28, (%rax)
jne 0x9832
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x3130
testq %rax, %rax
je 0x9b09
movq %rax, %r13
movq 0x18(%rsp), %r14
movq %rax, 0x20(%r14)
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x3
popq %rdx
movq %r12, %rcx
callq 0x5f5b
movq %rax, %r15
movq 0x8(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7cc2
testq %r15, %r15
je 0x9ae3
cmpb $0x0, (%rax)
je 0x9ae3
movq %r15, 0x28(%r13)
movq 0x20(%r15), %rdi
incq %rax
movq %rax, %rsi
callq 0x7d09
testl %eax, %eax
js 0x9cc1
movl %eax, (%r13)
movq 0x20(%rbp), %rbp
andq $0x0, 0x38(%rsp)
movq 0x18(%rbp), %rdi
movq 0x8(%rsp), %rbx
movq %rbx, (%rsp)
movq 0x10(%rsp), %rsi
movq %rsi, %r14
movq 0x20(%rsp), %rdx
xorl %ecx, %ecx
leaq 0x28(%rsp), %r15
movq %r15, %r8
leaq 0x54(%rsp), %r9
callq 0x7b36
movq 0x38(%rsp), %rax
movq %rax, 0x8(%r13)
cmpb $0x0, (%rbx)
je 0x9d34
movq 0x8(%rsp), %r15
jmp 0x9de8
movq 0x48(%rbx), %rdi
movq %r15, %rsi
leaq 0x7f02(%rip), %rdx      # 0x11742
callq 0x5eb5
testq %rax, %rax
je 0x9965
movq %rax, %r13
movq 0x10(%rax), %r12
movq %r15, %rdi
pushq $0x2e
popq %rsi
callq 0x30d0
movq %rax, %rbx
testq %r12, %r12
je 0x9aa1
testq %rbx, %rbx
je 0x9aa1
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x3130
testq %rax, %rax
je 0x9bbc
movq %rax, %r15
movq 0x18(%rsp), %rax
movq %r15, 0x20(%rax)
andq $0x0, 0x38(%rsp)
movq 0x20(%r14), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4d6c
movq %rax, %r14
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9c7c
movq %rax, 0x48(%rsp)
movq %rax, 0x8(%r15)
movq %r12, 0x28(%r15)
movq 0x20(%r12), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x7d09
testl %eax, %eax
js 0x9c86
movl %eax, (%r15)
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0x3130
testq %rax, %rax
movq 0x8(%rsp), %rbp
movq 0x10(%rsp), %rbx
leaq 0x7e31(%rip), %r12      # 0x11741
je 0x9d15
movq 0x48(%rsp), %rcx
movq %rax, 0x10(%rcx)
movl 0x28(%r14), %ecx
movl %ecx, (%rax)
movl (%r13), %ecx
movl %ecx, 0x4(%rax)
leaq -0x58b8(%rip), %rcx     # 0x407b
movq %rcx, 0x18(%rax)
leaq 0xfed(%rip), %rax       # 0xa92b
movq %rax, 0x10(%r15)
jmp 0x9d24
movq 0xe822(%rip), %rsi      # 0x18170
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3070
movq 0x10(%rsp), %rbx
jmp 0x9e1d
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x4
popq %rdx
movq %r12, %rcx
callq 0x5f5b
testq %rax, %rax
movq 0x18(%rsp), %r14
je 0x9b22
movq %rax, %r13
movq 0x28(%rax), %rbx
movq 0x8(%rbp), %rdi
movq %r12, %rsi
callq 0x7cc2
movq %rax, %r15
movb (%rax), %al
cmpb $0x21, %al
jne 0x99b8
leaq 0x1(%r15), %rcx
cmpb $0x0, 0x1(%r15)
pushq $0x21
popq %rax
movl $0x0, %edx
cmovel %edx, %eax
cmoveq %rcx, %r15
testq %rbx, %rbx
je 0x9be4
testb %al, %al
je 0x9c0a
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x3130
testq %rax, %rax
je 0x9cd8
movq %rax, %r12
movq %rax, 0x20(%r14)
andq $0x0, 0x38(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4d6c
movq %rax, %rdx
movq 0x38(%rsp), %r14
testq %r14, %r14
je 0x9d8e
movq %rdx, 0x48(%rsp)
movq %r14, 0x8(%r12)
movq %rbx, 0x28(%r12)
movq 0x20(%rbx), %rdi
incq %r15
movq %r15, %rsi
callq 0x7d09
testl %eax, %eax
js 0x9da6
movl %eax, (%r12)
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x3130
testq %rax, %rax
movq 0x10(%rsp), %rbx
je 0x9df0
movq %rax, 0x10(%r14)
movq 0x48(%rsp), %rdx
movl 0x28(%rdx), %ecx
movl %ecx, (%rax)
leaq -0x594d(%rip), %rcx     # 0x4127
movq %rcx, 0x18(%rax)
movq %r13, 0x20(%rax)
leaq 0xea8(%rip), %rax       # 0xa92b
movq %rax, 0x10(%r12)
movq 0x8(%rsp), %r15
movq 0x18(%rsp), %r14
jmp 0x9d9d
movq 0x8(%rsp), %r15
jmp 0x9e1d
testq %rbx, %rbx
je 0x9b44
movq 0x8(%r13), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x8327(%rip), %rsi      # 0x11de7
xorl %eax, %eax
callq 0x3200
jmp 0x9bd0
leaq 0x7c6e(%rip), %r12      # 0x11741
movq %rbx, %r15
movq %r14, %rbx
movq 0x18(%rsp), %r14
jmp 0x9e1d
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x82c0(%rip), %rsi      # 0x11db5
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3200
movq 0x10(%rsp), %rbx
jmp 0x9e18
movq 0xe660(%rip), %rsi      # 0x18170
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3070
jmp 0x9d2a
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x822c(%rip), %rsi      # 0x11d64
xorl %eax, %eax
callq 0x3200
jmp 0x9e18
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x3130
testq %rax, %rax
movq 0x8(%rsp), %r15
leaq 0x28(%rsp), %rcx
leaq 0x7bde(%rip), %r12      # 0x11741
je 0x9ca8
movq %rax, %rbx
movq 0x18(%rsp), %rax
movq %rbx, 0x20(%rax)
andq $0x0, 0x38(%rsp)
movq 0x20(%r14), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r15, %r8
callq 0x4d6c
movq %rax, %r14
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9cba
movq %rax, 0x8(%rbx)
movl (%r13), %eax
movl %eax, (%rbx)
leaq -0x5a6f(%rip), %rax     # 0x4144
movq %rax, 0x10(%rbx)
jmp 0x9cba
movq 0xe5ad(%rip), %rsi      # 0x18170
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3070
movq %rbp, %r14
movq 0x10(%rsp), %rbx
leaq 0x7b62(%rip), %r12      # 0x11741
jmp 0x9d27
testb %al, %al
je 0x9c0a
movq 0x8(%r13), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x81e9(%rip), %rsi      # 0x11de7
xorl %eax, %eax
callq 0x3200
jmp 0x9d08
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x3130
testq %rax, %rax
je 0x9cf4
movq %rax, %rbx
movq %rax, 0x20(%r14)
andq $0x0, 0x38(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq 0x8(%rsp), %r15
movq %r15, %r8
callq 0x4d6c
movq %rax, %rdx
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9d0b
movq %rax, 0x8(%rbx)
addq $0x18, %r13
movq %r13, 0x28(%rbx)
leaq 0xd85(%rip), %rax       # 0xa9f8
movq %rax, 0x10(%rbx)
jmp 0x9d0b
movq 0x8(%rsp), %r15
jmp 0x9bd3
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x7aa8(%rip), %rsi      # 0x11744
xorl %eax, %eax
callq 0x3200
jmp 0x9bd3
movq 0xe4c1(%rip), %rsi      # 0x18170
movq %r15, %rdi
callq 0x3070
movq %rbp, %r14
movq 0x10(%rsp), %rbx
jmp 0x9d27
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x7a71(%rip), %rsi      # 0x11744
jmp 0x9af5
movq 0xe491(%rip), %rsi      # 0x18170
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3070
movq %rbp, %rdx
jmp 0x9d98
movq 0xe475(%rip), %rsi      # 0x18170
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3070
movq %rbp, %rdx
movq 0x10(%rsp), %rbx
jmp 0x9e15
movq 0xe454(%rip), %rsi      # 0x18170
movq %rbp, %rdi
callq 0x3070
movq %rbp, %r15
movq %r14, %rbp
movq 0x18(%rsp), %r14
jmp 0x9e18
cmpl $0x1, 0x54(%rsp)
jne 0x9dcf
andq $0x0, 0x38(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rbx
movq %r14, %rsi
movq 0x20(%rsp), %rdx
movq %r15, %rcx
movq 0x8(%rsp), %r15
movq %r15, %r8
callq 0x4d6c
movq %rax, %rbp
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9d2a
movq 0x8(%r13), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x8(%r13)
leaq 0xba3(%rip), %rax       # 0xa92b
movq %rax, 0x10(%r13)
jmp 0x9d2a
movq 0x8(%rsp), %r15
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %rbx
leaq 0x799d(%rip), %r12      # 0x11741
jmp 0x9e15
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x7988(%rip), %rsi      # 0x11744
xorl %eax, %eax
callq 0x3200
movq 0x18(%rsp), %r14
movq 0x10(%rsp), %rbx
jmp 0x9e09
movl 0x28(%rbp), %edx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0x7fab(%rip), %rsi      # 0x11d8c
xorl %eax, %eax
callq 0x3200
movq %r14, %rbx
jmp 0x9d2a
movq 0xe379(%rip), %rsi      # 0x18170
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3070
movq 0x18(%rsp), %r14
leaq 0x7931(%rip), %r12      # 0x11741
movq 0x48(%rsp), %rdx
movq %rdx, %rbp
movq 0x20(%rsp), %r13
movq 0x20(%r14), %r14
jmp 0x960b
movq 0x20(%rbp), %rbp
movq %rbp, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq