// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r14
movl $0xb8, %edi
callq 0x51b0
movq %rax, %rbx
leaq 0x10(%rax), %rdi
xorl %r15d, %r15d
movl $0xa8, %edx
xorl %esi, %esi
callq 0x5110
leaq 0x1e33f(%rip), %rax     # 0x341a8
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
movb %r15b, 0x18(%rbx)
leaq 0x38(%rbx), %rax
movq %rax, 0x28(%rbx)
movb %r15b, 0x38(%rbx)
leaq 0x1ea09(%rip), %rax     # 0x34898
movq %rax, 0x48(%rbx)
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
movb %r15b, 0x60(%rbx)
leaq 0x80(%rbx), %rax
movq %rax, 0x70(%rbx)
movb %r15b, 0x80(%rbx)
leaq 0xa0(%rbx), %rax
movq %rax, 0x90(%rbx)
movb %r15b, 0xa0(%rbx)
movq 0x78(%r14), %r15
cmpq 0x20a87(%rip), %r15     # 0x36958
jne 0x16062
movq 0x20a72(%rip), %r12     # 0x36950
testq %r15, %r15
je 0x15efa
movq 0x70(%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x51d0
testl %eax, %eax
jne 0x16062
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
addq %r12, %r15
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xbdc6
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x135e2(%rip), %rsi     # 0x29508
leaq 0x135e1(%rip), %rdx     # 0x2950e
leaq 0x8(%rsp), %rdi
callq 0xbe5c
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0xe700
leaq 0x8(%rbx), %rdi
leaq 0x28(%rbx), %r15
leaq 0x48(%rsp), %rsi
callq 0x5230
leaq 0x68(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x5230
movq (%r12), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x15f88
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15fa3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x15fba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x50(%rbx), %r13
leaq 0x70(%rbx), %r12
leaq 0x90(%rbx), %r15
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15fe0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x30(%r14), %rsi
movq %r13, %rdi
callq 0x5100
leaq 0x50(%r14), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x5100
movq %r15, %rdi
movq %r13, %rsi
callq 0x5100
leaq 0x20943(%rip), %rsi     # 0x36950
movq %r14, %rdi
callq 0x16224
testb %al, %al
je 0x16062
movq %r14, %rdi
callq 0x13d2e
movq %r14, %rdi
xorl %esi, %esi
callq 0x1626e
movq %rax, 0xb0(%rbx)
movq 0x78(%r14), %rdx
cmpq 0x20adb(%rip), %rdx     # 0x36b18
jne 0x16064
testq %rdx, %rdx
je 0x16058
movq 0x20ac5(%rip), %rsi     # 0x36b10
movq 0x70(%r14), %rdi
callq 0x51d0
testl %eax, %eax
jne 0x16064
movq %r14, %rdi
callq 0x13d2e
jmp 0x16064
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x16098
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x16098
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x160af
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rdi
callq 0x5330
nop