// File: /workspace/github_cpp_makefile_star2_O1/pranavmodx[P]modlang/src/parser.cpp
// Function: Parser::parseAssignStatement()
AssignStatement *Parser::parseAssignStatement()
{
	AssignStatement *stmt = new AssignStatement();

	if (peekToken.type != ASSIGN)
		return nullptr;

	stmt->token = Token(ASSIGN, "ASSIGN");

	stmt->name.token = curToken;
	stmt->name.value = curToken.literal;

	if (!expectPeek(ASSIGN))
		return nullptr;

	nextToken();

	stmt->value = parseExpression(LOWEST);

	if (peekToken.type == SEMICOLON)
		nextToken();

	return stmt;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
movl $0xb8, %edi
callq 0x51b0
movq %rax, %r14
xorl %r15d, %r15d
movl $0xb8, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x5110
leaq 0x1e2eb(%rip), %rax     # 0x341a8
addq $0x10, %rax
movq %rax, (%r14)
leaq 0x18(%r14), %rax
movq %rax, 0x8(%r14)
movq %r15, 0x10(%r14)
movb %r15b, 0x18(%r14)
leaq 0x38(%r14), %rax
movq %rax, 0x28(%r14)
movq %r15, 0x30(%r14)
movb %r15b, 0x38(%r14)
leaq 0x1e9ad(%rip), %rax     # 0x34898
movq %rax, 0x48(%r14)
leaq 0x60(%r14), %rax
movq %rax, 0x50(%r14)
movq %r15, 0x58(%r14)
movb %r15b, 0x60(%r14)
leaq 0x80(%r14), %rax
movq %rax, 0x70(%r14)
movq %r15, 0x78(%r14)
movb %r15b, 0x80(%r14)
leaq 0xa0(%r14), %rax
movq %rax, 0x90(%r14)
movq %r15, 0x98(%r14)
movb %r15b, 0xa0(%r14)
movq 0x78(%rbx), %rdx
movq 0x20a1c(%rip), %r12     # 0x36958
cmpq %r12, %rdx
jne 0x160c9
testq %rdx, %rdx
je 0x15f62
movq 0x209ff(%rip), %rsi     # 0x36950
movq 0x70(%rbx), %rdi
callq 0x51d0
testl %eax, %eax
jne 0x160c6
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x209de(%rip), %rsi     # 0x36950
addq %rsi, %r12
leaq 0x20(%rsp), %rdi
movq %r12, %rdx
callq 0xbde8
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x13565(%rip), %rsi     # 0x294f8
leaq 0x13564(%rip), %rdx     # 0x294fe
movq %rsp, %rdi
callq 0xbe78
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
callq 0xe6f4
leaq 0x8(%r14), %rdi
leaq 0x40(%rsp), %rsi
callq 0x5230
leaq 0x28(%r14), %rdi
leaq 0x60(%rsp), %r15
movq %r15, %rsi
callq 0x5230
movq (%r15), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x15fed
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16008
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x51c0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1601e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x50(%r14), %r12
leaq 0x90(%r14), %r15
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x16040
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x30(%rbx), %rsi
movq %r12, %rdi
callq 0x5100
leaq 0x70(%r14), %rdi
leaq 0x50(%rbx), %r12
movq %r12, %rsi
callq 0x5100
movq %r15, %rdi
movq %r12, %rsi
callq 0x5100
leaq 0x208e2(%rip), %rsi     # 0x36950
movq %rbx, %rdi
callq 0x1629e
testb %al, %al
je 0x160c6
movq %rbx, %rdi
callq 0x13d4c
movq %rbx, %rdi
xorl %esi, %esi
callq 0x162f0
movq %rax, 0xb0(%r14)
movq 0x78(%rbx), %rdx
cmpq 0x20a7a(%rip), %rdx     # 0x36b18
jne 0x160c1
testq %rdx, %rdx
je 0x160b9
movq 0x20a64(%rip), %rsi     # 0x36b10
movq 0x70(%rbx), %rdi
callq 0x51d0
testl %eax, %eax
jne 0x160c1
movq %rbx, %rdi
callq 0x13d4c
movq %r14, %r15
jmp 0x160c9
xorl %r15d, %r15d
movq %r15, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x160fb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x160fb
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x16112
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rdi
callq 0x5330