// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/evaluate.c
// Function: evaluate_assignment
static struct symbol *evaluate_assignment(struct expression *expr)
{
	struct expression *left = expr->left;
	struct symbol *ltype;

	if (!lvalue_expression(left)) {
		expression_error(expr, "not an lvalue");
		return NULL;
	}

	ltype = left->ctype;

	if (expr->op != '=') {
		if (!evaluate_assign_op(expr))
			return NULL;
	} else {
		if (!compatible_assignment_types(expr, ltype, &expr->right, "assignment"))
			return NULL;
	}

	evaluate_assign_to(left, ltype);

	expr->ctype = ltype;
	return ltype;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x20(%rdi), %r15
cmpb $0x9, (%r15)
jne 0x3474a
cmpl $0x2a, 0x4(%r15)
jne 0x3474a
movq 0x10(%r15), %rbx
leaq 0x28(%r14), %r12
cmpl $0x3d, 0x4(%r14)
jne 0x3476f
leaq 0x16b40(%rip), %rcx     # 0x4b26f
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x377d9
testl %eax, %eax
jne 0x34b97
jmp 0x34b0a
leaq 0x17338(%rip), %rsi     # 0x4ba89
xorl %ebx, %ebx
movq %r14, %rdi
xorl %eax, %eax
callq 0x11abc
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r12), %rax
cmpb $0x3, (%rbx)
movq %rbx, %rbp
jne 0x3477f
movq 0x60(%rbx), %rbp
movq 0x10(%rax), %r10
cmpb $0xa, (%rbp)
jne 0x347a3
movq %r10, %r13
movq %rbp, %rdi
callq 0x2b5f4
movq %rax, %rbp
cmpb $0x3, (%rax)
jne 0x347a0
movq 0x60(%rbp), %rbp
movq %r13, %r10
cmpb $0x9, (%rbp)
jne 0x347ad
movq 0x60(%rbp), %rbp
movzbl (%rbp), %eax
cmpq $0x2, %rax
movq %r12, 0x10(%rsp)
jne 0x347d2
movq 0x60(%rbp), %rcx
cmpq 0x2c7b9(%rip), %rcx     # 0x60f80
je 0x347df
cmpq 0x2c770(%rip), %rcx     # 0x60f40
je 0x347e7
leaq 0x16467(%rip), %rcx     # 0x4ac40
movl (%rcx,%rax,4), %r13d
jmp 0x347ed
movl $0x1, %r13d
jmp 0x347ed
movl $0x9, %r13d
cmpb $0x3, (%r10)
movq %r10, %r9
jne 0x347fa
movq 0x60(%r10), %r9
cmpb $0xa, (%r9)
jne 0x3481a
movq %r10, %r12
movq %r9, %rdi
callq 0x2b5f4
movq %rax, %r9
cmpb $0x3, (%rax)
jne 0x34817
movq 0x60(%r9), %r9
movq %r12, %r10
cmpb $0x9, (%r9)
jne 0x34824
movq 0x60(%r9), %r9
movzbl (%r9), %eax
cmpq $0x2, %rax
jne 0x34844
movq 0x60(%r9), %rdx
cmpq 0x2c747(%rip), %rdx     # 0x60f80
je 0x34851
cmpq 0x2c6fe(%rip), %rdx     # 0x60f40
je 0x34859
leaq 0x163f5(%rip), %rdx     # 0x4ac40
movl (%rdx,%rax,4), %r8d
jmp 0x3485f
movl $0x1, %r8d
jmp 0x3485f
movl $0x9, %r8d
movl 0x4(%r14), %edi
movl %r13d, %eax
andl %r8d, %eax
testb $0x1, %al
je 0x348d8
testb $0x8, %r13b
je 0x34890
leal -0x100(%rdi), %eax
cmpl $0x6, %eax
ja 0x34995
movl $0x65, %edx
btl %eax, %edx
jae 0x34995
testb $0x4, %r13b
jne 0x3494d
leal -0x115(%rdi), %eax
cmpl $0x1, %eax
ja 0x349a1
movl 0x50(%rbp), %eax
cmpb $0xb, (%rbp)
jne 0x348b6
movq 0x60(%rbp), %rbp
leaq 0x30e4b(%rip), %r12     # 0x65708
cmpl (%r12), %eax
jge 0x34a26
leaq 0x37e6a(%rip), %rax     # 0x6c738
movq %rax, 0x8(%rsp)
jmp 0x34a35
cmpl $0x10, %r13d
jne 0x34995
movl %r8d, %eax
andl $0x9, %eax
cmpl $0x1, %eax
jne 0x34995
andl $-0x3, %edi
cmpl $0x100, %edi            # imm = 0x100
jne 0x349ff
testb $0x4, %r8b
je 0x3493d
movq 0x10(%rsp), %rax
movq (%rax), %r12
testb $0x40, %r8b
je 0x34918
movq 0x60(%r9), %r9
movq %r9, %rdi
movq %r9, %r13
callq 0x2386c
movq 0x8(%r12), %rdi
leaq 0x165f4(%rip), %rsi     # 0x4af23
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq 0x60(%r13), %r9
movq %r14, %rdi
movq %r9, %rsi
callq 0x37e59
jmp 0x34b97
movq %r9, 0x8(%rsp)
movl %r8d, %r12d
movq %rdi, %r13
callq 0x3760d
testl %eax, %eax
je 0x349cf
testb $0x40, %r12b
movq 0x10(%rsp), %r12
movq 0x8(%rsp), %r9
je 0x3497e
movq %rbx, %rsi
cmpq %rbp, 0x60(%r9)
je 0x34b8a
movq (%r12), %rax
cmpb $0x1, (%rax)
jne 0x34a0b
cmpq $0x0, 0x20(%rax)
sete %al
jmp 0x34a0d
leaq 0x168cb(%rip), %rsi     # 0x4b267
jmp 0x34751
testb $0x4, %r8b
jne 0x34a9a
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r10, (%rsp)
movl %r13d, %ecx
movq %rbx, %r9
callq 0x37305
movq %rax, %rsi
movq 0x10(%rsp), %r12
jmp 0x34b8a
movl %r13d, %edi
callq 0x2e42a
movq %rax, %r15
movq %rbp, %rdi
callq 0x2386c
movq 0x8(%r14), %rdi
leaq 0x1688d(%rip), %rsi     # 0x4b27a
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x118b4
jmp 0x34afa
leaq 0x168d8(%rip), %rsi     # 0x4b2de
jmp 0x34751
xorl %eax, %eax
movq %r13, %rdi
cmpq %r9, %rbp
je 0x34b97
testb %al, %al
je 0x34aa3
jmp 0x34b97
testb $0x2, 0x57(%rbp)
jne 0x34b30
movq %rbp, 0x8(%rsp)
testb $0x4, %r8b
je 0x34a71
movq 0x10(%rsp), %rax
movq (%rax), %rbp
testb $0x40, %r8b
je 0x34a4d
movq 0x60(%r9), %r9
movq %r9, %rdi
movq %r9, %r13
callq 0x2386c
movq 0x8(%rbp), %rdi
leaq 0x164c0(%rip), %rsi     # 0x4af23
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq 0x60(%r13), %r9
movl 0x50(%r9), %eax
cmpb $0xb, (%r9)
jne 0x34a7f
movq 0x60(%r9), %r9
cmpl (%r12), %eax
jge 0x34b11
leaq 0x37ca8(%rip), %r9      # 0x6c738
movq 0x10(%rsp), %r12
jmp 0x34b51
cmpq %r9, %rbp
je 0x34b97
movq %r9, %r15
callq 0x2e42a
movq 0x8(%r14), %rdi
leaq 0x167de(%rip), %rsi     # 0x4b294
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq %rbp, %rdi
callq 0x2386c
movq 0x8(%r14), %rdi
leaq 0x167d8(%rip), %rsi     # 0x4b2ab
movq %rax, %rdx
xorl %eax, %eax
callq 0x11744
movq %r15, %rdi
callq 0x2386c
movq 0x8(%r14), %rdi
leaq 0x167d4(%rip), %rsi     # 0x4b2c4
movq %rax, %rdx
xorl %eax, %eax
callq 0x11744
movq 0x28(%r14), %rdi
movq %rbx, %rsi
callq 0x334cd
movq %rax, 0x28(%r14)
xorl %ebx, %ebx
jmp 0x3475d
testb $0x2, 0x57(%r9)
movq 0x10(%rsp), %r12
je 0x34b51
movq 0x68(%r9), %rax
btl $0xe, %eax
jb 0x34b4a
leaq 0x37c0a(%rip), %r9      # 0x6c738
jmp 0x34b51
movq 0x68(%rbp), %rax
btl $0xe, %eax
jae 0x348c7
leaq 0x37db3(%rip), %rax     # 0x6c8f8
jmp 0x348ce
leaq 0x37da7(%rip), %r9      # 0x6c8f8
movq (%r12), %rdi
movq %r9, %rsi
movq %r9, %r13
callq 0x334cd
movq %rax, (%r12)
movq 0x8(%rsp), %rsi
movl 0x50(%rsi), %ecx
cmpl 0x50(%r13), %ecx
jle 0x34b8a
leaq 0x37d7f(%rip), %rsi     # 0x6c8f8
movq %rax, %rdi
callq 0x334cd
movq 0x8(%rsp), %rsi
movq %rax, (%r12)
movq (%r12), %rdi
callq 0x334cd
movq %rax, (%r12)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x381e1
movq %rbx, 0x10(%r14)
jmp 0x3475d