// File: /workspace/github_c_makefile_star2_O1/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 %rcx, %r14
movq %rsi, 0x10(%rsp)
movq 0x20(%rdi), %rbp
cmpb $0x0, (%r8)
sete %al
testq %rbp, %rbp
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xa73e
movq %rdx, %r13
leaq 0x20(%rsp), %r12
movq %r8, 0x8(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x8(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x2c, %eax
je 0x9f7e
cmpl $0x3b, %eax
jne 0x9f89
jmp 0xa73a
movq 0x20(%rbp), %rax
testq %rax, %rax
cmovneq %rax, %rbp
movq 0x8(%rbp), %rbx
cmpb $0x5b, (%rbx)
jne 0xa087
movq 0x18(%rbp), %rbx
movl $0x1, %edi
movl $0x28, %esi
callq 0x3130
testq %rax, %rax
je 0xa2fa
movq %rax, %r15
movq %rax, 0x20(%r14)
movq $0x0, 0x30(%rsp)
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x4f9b
movq 0x30(%rsp), %rcx
testq %rcx, %rcx
je 0xa726
movq %rcx, 0x8(%r15)
movq 0x8(%rax), %rcx
cmpb $0x2c, (%rcx)
jne 0x9ffc
movq 0x20(%rax), %rax
movq 0x10(%rsp), %rsi
movq $0x0, 0x30(%rsp)
movq %rax, %rdi
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x4f9b
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xa726
movq 0x8(%r15), %rcx
movq %rax, 0x10(%rcx)
movq $0x0, 0x30(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
callq 0x4f9b
movq %rax, %rbp
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xa726
movq 0x8(%r15), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x8(%r15)
leaq -0x57de(%rip), %rax     # 0x48a0
movq %rax, 0x10(%r15)
jmp 0xa726
movq 0x20(%rbp), %r15
testq %r15, %r15
movq 0x10(%rsp), %r12
je 0xa1cd
movq 0x8(%r15), %rax
cmpb $0x28, (%rax)
jne 0xa1cd
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa49c
movq %rax, %r13
movq %rax, 0x20(%r14)
movq 0x8(%rbp), %rsi
movq 0x10(%rsp), %rdi
movl $0x3, %edx
leaq 0x8622(%rip), %r12      # 0x126fc
movq %r12, %rcx
callq 0x6103
movq %rax, %r15
movq 0x8(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x84da
testq %r15, %r15
leaq 0x20(%rsp), %r12
je 0xa47b
cmpb $0x0, (%rax)
je 0xa47b
movq %r15, 0x28(%r13)
movq 0x20(%r15), %rdi
incq %rax
movq %rax, %rsi
callq 0x852b
testl %eax, %eax
js 0xa669
movl %eax, (%r13)
movq 0x20(%rbp), %rbp
movq $0x0, 0x30(%rsp)
movq 0x18(%rbp), %rdi
movq 0x8(%rsp), %rbx
movq %rbx, (%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
xorl %ecx, %ecx
movq %r12, %r8
leaq 0x54(%rsp), %r9
callq 0x8314
movq 0x30(%rsp), %rax
movq %rax, 0x8(%r13)
cmpb $0x0, (%rbx)
jne 0xa721
cmpl $0x1, 0x54(%rsp)
jne 0xa6ea
movq $0x0, 0x30(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rcx
movq %rbx, %r8
callq 0x4f9b
movq %rax, %rbp
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xa721
movq 0x8(%r13), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x8(%r13)
leaq 0x10da(%rip), %rax      # 0xb29e
movq %rax, 0x10(%r13)
jmp 0xa721
movq 0x48(%r12), %rdi
movq %rbx, %rsi
leaq 0x8521(%rip), %rdx      # 0x126fd
callq 0x5cf3
testq %rax, %rax
je 0xa313
movq %rax, %r13
movq 0x10(%rax), %r12
movq 0x8(%rbp), %rdi
movl $0x2e, %esi
callq 0x30d0
movq %rax, %rbx
testq %r12, %r12
je 0xa450
testq %rbx, %rbx
je 0xa450
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa58d
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%r14)
movq $0x0, 0x30(%rsp)
movq 0x20(%r15), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4f9b
movq %rax, %r15
movq 0x30(%rsp), %rcx
testq %rcx, %rcx
je 0xa5b1
movq 0x40(%rsp), %rax
movq %rcx, 0x48(%rsp)
movq %rcx, 0x8(%rax)
movq %r12, 0x28(%rax)
movq 0x20(%r12), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x852b
testl %eax, %eax
js 0xa62d
movq 0x40(%rsp), %rcx
movl %eax, (%rcx)
movl $0x1, %edi
movl $0x20, %esi
callq 0x3130
movq %rax, 0x30(%rsp)
testq %rax, %rax
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %r12
je 0xa69e
movq 0x48(%rsp), %rcx
movq %rax, 0x10(%rcx)
movl 0x28(%r15), %ecx
movl %ecx, (%rax)
movl (%r13), %ecx
movl %ecx, 0x4(%rax)
leaq -0x60d4(%rip), %rcx     # 0x420d
movq %rcx, 0x18(%rax)
leaq 0xfb2(%rip), %rax       # 0xb29e
movq 0x40(%rsp), %rcx
movq %rax, 0x10(%rcx)
jmp 0xa5a9
movq 0xee6f(%rip), %rsi      # 0x19170
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3070
jmp 0xa726
movq %r12, %rdi
movq %rbx, %rsi
movl $0x4, %edx
leaq 0x83d7(%rip), %r15      # 0x126fc
movq %r15, %rcx
callq 0x6103
testq %rax, %rax
je 0xa4e9
movq %rax, %r13
movq 0x28(%rax), %rbx
movq 0x8(%rbp), %rdi
movq %r15, %rsi
callq 0x84da
movq %rax, %r15
cmpb $0x21, (%rax)
leaq 0x20(%rsp), %r12
jne 0xa363
leaq 0x1(%r15), %rax
cmpb $0x0, 0x1(%r15)
cmoveq %rax, %r15
testq %rbx, %rbx
je 0xa4ba
cmpb $0x0, (%r15)
je 0xa4ba
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa67d
movq %rax, %r12
movq %rax, 0x20(%r14)
movq $0x0, 0x30(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4f9b
movq %rax, %rdx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xa446
movq %rdx, 0x40(%rsp)
movq %rax, 0x48(%rsp)
movq %rax, 0x8(%r12)
movq %rbx, 0x28(%r12)
movq 0x20(%rbx), %rdi
incq %r15
movq %r15, %rsi
callq 0x852b
testl %eax, %eax
js 0xa6cb
movl %eax, (%r12)
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0xa700
movq 0x48(%rsp), %rcx
movq %rax, 0x10(%rcx)
movq 0x40(%rsp), %rdx
movl 0x28(%rdx), %ecx
movl %ecx, (%rax)
leaq -0x6173(%rip), %rcx     # 0x42bf
movq %rcx, 0x18(%rax)
movq %r13, 0x20(%rax)
leaq 0xe5d(%rip), %rax       # 0xb29e
movq %rax, 0x10(%r12)
movq 0x8(%rsp), %rbx
jmp 0xa694
testq %rbx, %rbx
je 0xa515
movq 0x8(%r13), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x893c(%rip), %rsi      # 0x12dab
xorl %eax, %eax
callq 0x3200
jmp 0xa5a1
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rdi
leaq 0x88ef(%rip), %rsi      # 0x12d79
movq %rbx, %rdx
movq %rdi, %rbx
xorl %eax, %eax
callq 0x3200
jmp 0xa721
movq 0xeccd(%rip), %rsi      # 0x19170
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3070
leaq 0x20(%rsp), %r12
jmp 0xa721
cmpb $0x0, (%r15)
je 0xa5b8
movq 0x8(%r13), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x88d1(%rip), %rsi      # 0x12dab
xorl %eax, %eax
callq 0x3200
movq %rbp, %rdx
jmp 0xa71e
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8829(%rip), %rsi      # 0x12d28
xorl %eax, %eax
callq 0x3200
movq 0x18(%rsp), %r13
leaq 0x20(%rsp), %r12
jmp 0xa726
movl $0x1, %edi
movl $0x28, %esi
callq 0x3130
testq %rax, %rax
movq 0x8(%rsp), %r8
leaq 0x20(%rsp), %r12
je 0xa64f
movq %rax, %rbx
movq %rax, 0x20(%r14)
movq $0x0, 0x30(%rsp)
movq 0x20(%r15), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rbp
movq %r12, %rcx
movq %r8, %r12
callq 0x4f9b
movq %rax, %r15
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xa585
movq %rax, 0x8(%rbx)
movl (%r13), %eax
movl %eax, (%rbx)
leaq -0x62a3(%rip), %rax     # 0x42de
movq %rax, 0x10(%rbx)
movq %r12, %rbx
movq %rbp, %r12
jmp 0xa5a9
movq 0xebdc(%rip), %rsi      # 0x19170
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3070
movq %rbp, %r15
leaq 0x20(%rsp), %r12
movq %r15, %rbp
jmp 0xa721
movq 0x8(%rsp), %rbx
jmp 0xa5a4
movl $0x1, %edi
movl $0x30, %esi
callq 0x3130
testq %rax, %rax
je 0xa6b2
movq %rax, %rbx
movq %rax, 0x20(%r14)
movq $0x0, 0x30(%rsp)
movq 0x20(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rcx
movq 0x8(%rsp), %r8
callq 0x4f9b
movq %rax, %rdx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xa623
movq %rax, 0x8(%rbx)
addq $0x18, %r13
movq %r13, 0x28(%rbx)
leaq 0xd4f(%rip), %rax       # 0xb36e
movq %rax, 0x10(%rbx)
movq 0x8(%rsp), %rbx
jmp 0xa71e
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x80bc(%rip), %rsi      # 0x126ff
xorl %eax, %eax
callq 0x3200
jmp 0xa5a4
movq 0xeb1a(%rip), %rsi      # 0x19170
movq %r8, %rdi
movq %r8, %rbx
callq 0x3070
movq %rbp, %r15
jmp 0xa5a9
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rdi
leaq 0x8087(%rip), %rsi      # 0x126ff
jmp 0xa48a
movq 0xeaec(%rip), %rsi      # 0x19170
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3070
movq %rbp, %rdx
leaq 0x20(%rsp), %r12
jmp 0xa71e
movq 0xeacb(%rip), %rsi      # 0x19170
movq %rbx, %rdi
callq 0x3070
jmp 0xa5a9
movq 0xeab7(%rip), %rsi      # 0x19170
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3070
jmp 0xa4e1
movq 0x8(%rbp), %rdx
movl 0x28(%rbp), %ecx
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x801e(%rip), %rsi      # 0x126ff
xorl %eax, %eax
callq 0x3200
jmp 0xa714
movl 0x28(%rbp), %edx
movq %rbx, %rdi
leaq 0x8659(%rip), %rsi      # 0x12d50
xorl %eax, %eax
callq 0x3200
jmp 0xa721
movq 0xea69(%rip), %rsi      # 0x19170
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x3070
leaq 0x20(%rsp), %r12
movq 0x40(%rsp), %rdx
movq %rdx, %rbp
movq 0x18(%rsp), %r13
cmpb $0x0, (%rbx)
jne 0xa73e
movq 0x20(%r14), %r14
testq %rbp, %rbp
jne 0x9f68
jmp 0xa73e
movq 0x20(%rbp), %rbp
movq %rbp, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq