// File: /workspace/github_cpp_makefile_star2_O1/kram[P]kram/./src/parser/parser.cpp
// Function: Parser::oper_list_creation()
Instruction* Parser::oper_list_creation() {
	Instruction* ins = new Instruction(Ins::LIST_CREATE);

	// Get all peices (seperated by commas)
	do {
		ins->right = this->read_until(std::vector<lexer::Token>{
			lexer::Token::OPERATOR("]"),
			lexer::Token::OPERATOR(","),
		}, ins->right);
	} while (this->get_token()->sub == lexer::Type::OPERATOR_COMMA);

	return ins;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %r15
movl $0x80, %edi
callq 0x3260
movq %rax, %r12
movl $0xe, (%rax)
addq $0x18, %rax
movq %rax, 0x8(%r12)
xorl %eax, %eax
movq %rax, 0x10(%r12)
movb $0x0, 0x18(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r12)
movups %xmm0, 0x48(%r12)
movups %xmm0, 0x58(%r12)
movups %xmm0, 0x68(%r12)
movq %rax, 0x78(%r12)
movl $0x2, 0x30(%r12)
leaq 0x40(%rsp), %r13
movq %r12, %rax
addq $0x50, %rax
movq %rax, 0x70(%rsp)
leaq 0xd0(%rsp), %rbx
leaq 0x90(%rsp), %r14
leaq 0xe0(%rsp), %rbp
movq %r13, 0x30(%rsp)
movw $0x5d, 0x40(%rsp)
movq $0x1, 0x38(%rsp)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x6d74
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movw $0x2c, 0x60(%rsp)
movq $0x1, 0x58(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x6d74
movl $0x2, %edx
movq %rbp, %rdi
movq %r14, %rsi
leaq 0xf(%rsp), %rcx
callq 0x11680
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq 0x70(%rsp), %rsi
callq 0x450e
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0xe21a
movq 0x50(%r12), %rdi
movaps 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
movq %rdi, 0x10(%rsp)
movups 0x58(%r12), %xmm1
movups %xmm0, 0x50(%r12)
movq %rax, 0x60(%r12)
movups %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testq %rdi, %rdi
je 0xf8f6
callq 0x3230
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xf905
callq 0x3230
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xf914
callq 0x3230
movq %rbp, %rdi
callq 0x116c2
xorl %r13d, %r13d
movq 0xc0(%rsp,%r13), %rdi
leaq (%rbx,%r13), %rax
cmpq %rdi, %rax
je 0xf935
callq 0x3230
addq $-0x28, %r13
cmpq $-0x50, %r13
jne 0xf91f
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xf953
callq 0x3230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %r13
cmpq %r13, %rdi
je 0xf967
callq 0x3230
movslq 0x18(%r15), %rax
movq (%r15), %rcx
movq (%rcx,%rax,8), %rax
cmpl $0x12, 0x4(%rax)
je 0xf829
movq %r12, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
xorl %ebx, %ebx
jmp 0xfa0a
movq %rax, %r15
xorl %ebx, %ebx
jmp 0xf9e9
movq %rax, %r15
jmp 0xf9c8
movq %rax, %r15
jmp 0xf9bb
movq %rax, %r15
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xf9bb
callq 0x3230
leaq 0xe0(%rsp), %rdi
callq 0x116c2
movq $-0x50, %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0xf9dd
callq 0x3230
addq $-0x28, %rbx
addq $0x28, %r14
jne 0xf9cf
movb $0x1, %bl
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xf9fd
callq 0x3230
leaq 0xb8(%rsp), %r14
leaq 0x40(%rsp), %r13
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0xfa19
callq 0x3230
leaq 0x90(%rsp), %r12
cmpq %r14, %r12
sete %al
orb %al, %bl
jne 0xfa4d
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xfa3d
callq 0x3230
leaq -0x28(%r14), %rax
addq $-0x18, %r14
cmpq %r12, %r14
movq %rax, %r14
jne 0xfa2f
movq %r15, %rdi
callq 0x33c0
nop