// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
movq %rcx, %r14
movq 0x20(%rdi), %rbp
cmpb $0x0, (%r8)
sete %al
testq %rbp, %rbp
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xa5a5
movq %r8, %r13
movq %rdx, %r12
movq %rsi, %rbx
movq %r8, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x8(%rbp), %r15
movzbl (%r15), %eax
cmpl $0x2c, %eax
je 0x9dc6
cmpl $0x3b, %eax
jne 0x9dd8
jmp 0xa5a1
movq 0x20(%rbp), %rax
testq %rax, %rax
cmovneq %rax, %rbp
movq 0x8(%rbp), %r15
movb (%r15), %al
cmpb $0x5b, %al
jne 0x9edb
movq 0x18(%rbp), %rbx
movl $0x1, %edi
movl $0x28, %esi
callq 0x3130
testq %rax, %rax
je 0xa0e5
movq %rax, %r15
movq %rax, 0x20(%r14)
movq $0x0, 0x40(%rsp)
movq %rbx, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movq %r12, %rdx
leaq 0x30(%rsp), %rcx
movq %r13, %r8
callq 0x4f62
movq 0x40(%rsp), %rcx
testq %rcx, %rcx
je 0xa524
movq %rcx, 0x8(%r15)
movq 0x8(%rax), %rcx
cmpb $0x2c, (%rcx)
movq %r14, 0x58(%rsp)
jne 0x9e4b
movq 0x20(%rax), %rax
movq $0x0, 0x40(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r12, %r14
leaq 0x30(%rsp), %r12
movq %r12, %rcx
movq %r13, %r8
callq 0x4f62
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0xa27b
movq 0x8(%r15), %rcx
movq %rax, 0x10(%rcx)
movq $0x0, 0x40(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0x4f62
movq %rax, %rbp
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x9ecc
movq 0x8(%r15), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x8(%r15)
leaq -0x5655(%rip), %rax     # 0x4873
movq %rax, 0x10(%r15)
movq 0x20(%rsp), %r12
movq 0x10(%rsp), %rbx
jmp 0xa27e
movq 0x20(%rbp), %r12
testq %r12, %r12
je 0x9fc9
movq 0x8(%r12), %rax
cmpb $0x28, (%rax)
jne 0x9fc9
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa2ae
movq %rax, %r13
movq %rax, 0x20(%r14)
movq %rbx, %rdi
movq %r15, %rsi
movl $0x3, %edx
leaq 0x87da(%rip), %r12      # 0x12701
movq %r12, %rcx
callq 0x603f
movq %rax, %r15
movq 0x8(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8312
testq %r15, %r15
movq 0x20(%rsp), %r12
je 0xa288
cmpb $0x0, (%rax)
je 0xa288
movq %r15, 0x28(%r13)
movq 0x20(%r15), %rdi
incq %rax
movq %rax, %rsi
callq 0x8363
testl %eax, %eax
js 0xa456
movl %eax, (%r13)
movq 0x20(%rbp), %rbp
movq $0x0, 0x40(%rsp)
movq 0x18(%rbp), %rdi
movq 0x18(%rsp), %rbx
movq %rbx, (%rsp)
movq 0x10(%rsp), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
leaq 0x30(%rsp), %r15
movq %r15, %r8
leaq 0x64(%rsp), %r9
callq 0x8142
movq 0x40(%rsp), %rax
movq %rax, 0x8(%r13)
cmpb $0x0, (%rbx)
je 0xa4b3
movq 0x18(%rsp), %r13
jmp 0xa2a4
movq 0x48(%rbx), %rdi
movq %r15, %rsi
leaq 0x872b(%rip), %rdx      # 0x12702
callq 0x5d92
testq %rax, %rax
je 0xa0f9
movq %rax, 0x28(%rsp)
movq 0x10(%rax), %r13
movq %r15, %rdi
movl $0x2e, %esi
callq 0x30d0
movq %rax, %rbx
testq %r13, %r13
je 0xa24b
testq %rbx, %rbx
je 0xa24b
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa360
movq %rax, %r15
movq %rax, 0x20(%r14)
movq $0x0, 0x40(%rsp)
movq 0x20(%r12), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x4f62
movq %rax, %r12
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0xa40c
movq %rax, 0x50(%rsp)
movq %rax, 0x8(%r15)
movq %r13, 0x28(%r15)
movq 0x20(%r13), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x8363
testl %eax, %eax
js 0xa413
movl %eax, (%r15)
movl $0x1, %edi
movl $0x20, %esi
callq 0x3130
testq %rax, %rax
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %rbx
je 0xa4a2
movq 0x50(%rsp), %rcx
movq %rax, 0x10(%rcx)
movl 0x28(%r12), %ecx
movl %ecx, (%rax)
movq 0x28(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x4(%rax)
leaq -0x5ef5(%rip), %rcx     # 0x41dc
movq %rcx, 0x18(%rax)
leaq 0x1005(%rip), %rax      # 0xb0e1
movq %rax, 0x10(%r15)
jmp 0xa449
movq 0xf084(%rip), %rsi      # 0x19170
movq %r13, %rdi
callq 0x3070
jmp 0xa2a4
movq %rbx, %rdi
movq %r15, %rsi
movl $0x4, %edx
leaq 0x85f6(%rip), %r15      # 0x12701
movq %r15, %rcx
callq 0x603f
testq %rax, %rax
je 0xa2c7
movq %rax, %r13
movq 0x28(%rax), %rbx
movq 0x8(%rbp), %rdi
movq %r15, %rsi
callq 0x8312
movq %rax, %r15
movb (%rax), %al
cmpb $0x21, %al
movq 0x20(%rsp), %r12
jne 0xa157
leaq 0x1(%r15), %rcx
cmpb $0x0, 0x1(%r15)
movl $0x21, %eax
movl $0x0, %edx
cmovel %edx, %eax
cmoveq %rcx, %r15
testq %rbx, %rbx
je 0xa371
testb %al, %al
je 0xa397
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa46d
movq %rax, %r12
movq %rax, 0x20(%r14)
movq $0x0, 0x40(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x4f62
movq %rax, %rdx
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0xa512
movq %rdx, 0x28(%rsp)
movq %rax, 0x50(%rsp)
movq %rax, 0x8(%r12)
movq %rbx, 0x28(%r12)
movq 0x20(%rbx), %rdi
incq %r15
movq %r15, %rsi
callq 0x8363
testl %eax, %eax
js 0xa53a
movl %eax, (%r12)
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
movq 0x10(%rsp), %rbx
je 0xa581
movq 0x50(%rsp), %rcx
movq %rax, 0x10(%rcx)
movq 0x28(%rsp), %rdx
movl 0x28(%rdx), %ecx
movl %ecx, (%rax)
leaq -0x5f9a(%rip), %rcx     # 0x428e
movq %rcx, 0x18(%rax)
movq %r13, 0x20(%rax)
leaq 0xeaa(%rip), %rax       # 0xb0e1
movq %rax, 0x10(%r12)
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %r12
jmp 0xa521
testq %rbx, %rbx
je 0xa2e9
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdx
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x8b38(%rip), %rsi      # 0x12da7
xorl %eax, %eax
callq 0x3200
jmp 0xa441
movq %r14, %r12
movq 0x58(%rsp), %r14
jmp 0xa524
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x8adb(%rip), %rsi      # 0x12d75
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3200
movq 0x10(%rsp), %rbx
jmp 0xa524
movq 0xeebb(%rip), %rsi      # 0x19170
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x3070
jmp 0xa44c
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x8a47(%rip), %rsi      # 0x12d24
xorl %eax, %eax
callq 0x3200
jmp 0xa44c
movl $0x1, %edi
movl $0x28, %esi
callq 0x3130
testq %rax, %rax
movq 0x18(%rsp), %r13
leaq 0x30(%rsp), %rcx
je 0xa432
movq %rax, %rbx
movq %rax, 0x20(%r14)
movq $0x0, 0x40(%rsp)
movq 0x20(%r12), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r13, %r8
callq 0x4f62
movq %rax, %r12
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0xa444
movq %rax, 0x8(%rbx)
movq 0x28(%rsp), %rax
movl (%rax), %eax
movl %eax, (%rbx)
leaq -0x60aa(%rip), %rax     # 0x42ad
movq %rax, 0x10(%rbx)
jmp 0xa444
movq 0xee09(%rip), %rsi      # 0x19170
movq 0x18(%rsp), %r13
jmp 0xa439
testb %al, %al
je 0xa397
movq 0x8(%r13), %rdx
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x8a1c(%rip), %rsi      # 0x12da7
xorl %eax, %eax
callq 0x3200
jmp 0xa49d
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa489
movq %rax, %rbx
movq %rax, 0x20(%r14)
movq $0x0, 0x40(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
leaq 0x30(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x4f62
movq %rax, %rdx
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0xa402
movq %rax, 0x8(%rbx)
addq $0x18, %r13
movq %r13, 0x28(%rbx)
leaq 0xdbc(%rip), %rax       # 0xb1ba
movq %rax, 0x10(%rbx)
movq 0x18(%rsp), %r13
jmp 0xa51c
movq 0x18(%rsp), %r13
jmp 0xa444
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x82db(%rip), %rsi      # 0x12704
xorl %eax, %eax
callq 0x3200
jmp 0xa444
movq 0xed37(%rip), %rsi      # 0x19170
movq %r13, %rdi
callq 0x3070
movq %rbp, %r12
movq 0x10(%rsp), %rbx
movq %r12, %rbp
movq 0x20(%rsp), %r12
jmp 0xa524
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x829c(%rip), %rsi      # 0x12704
jmp 0xa29a
movq 0xecfc(%rip), %rsi      # 0x19170
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x3070
movq %rbp, %rdx
jmp 0xa517
movq 0xece0(%rip), %rsi      # 0x19170
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x3070
movq %rbp, %rdx
jmp 0xa51c
movq 0xecc7(%rip), %rsi      # 0x19170
movq %r13, %rdi
callq 0x3070
jmp 0xa449
cmpl $0x1, 0x64(%rsp)
jne 0xa563
movq $0x0, 0x40(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq 0x18(%rsp), %r8
callq 0x4f62
movq %rax, %rbp
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0xa50b
movq 0x8(%r13), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x8(%r13)
leaq 0xbda(%rip), %rax       # 0xb0e1
movq %rax, 0x10(%r13)
movq 0x18(%rsp), %r13
jmp 0xa524
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %r12
movq 0x10(%rsp), %rbx
movq %rdx, %rbp
cmpb $0x0, (%r13)
jne 0xa5a5
movq 0x20(%r14), %r14
testq %rbp, %rbp
jne 0x9daf
jmp 0xa5a5
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x81b4(%rip), %rsi      # 0x12704
xorl %eax, %eax
callq 0x3200
movq 0x20(%rsp), %r12
movq 0x10(%rsp), %rbx
jmp 0xa59a
movl 0x28(%rbp), %edx
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x87d7(%rip), %rsi      # 0x12d4c
xorl %eax, %eax
callq 0x3200
jmp 0xa2a4
movq 0xebe8(%rip), %rsi      # 0x19170
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x3070
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %rdx
jmp 0xa521
movq 0x20(%rbp), %rbp
movq %rbp, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq