// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/StackFrame.cpp
// Function: StackFrame::setInput(std::shared_ptr<TypeBase>, std::shared_ptr<TypeBase>)
void StackFrame::setInput(Type left, Type right)
{
	if (inputSet)
	{
		error.log("StackFrame::setInput called multiple times", INTERNAL_ERROR);
	}
	else
	{
		if (left->isCreatable())
		{
			leftInputOffset=frameSize;
			leftInputIndex=members.size();
			addMember(left);
		}
		else if (left!=Void)
		{
			throw PhplusError("stack frame left input set to "+left->getString()+", which is neither creatable nore a normal void", INTERNAL_ERROR);
		}
		
		if (right->isCreatable())
		{
			rightInputOffset=frameSize;
			rightInputIndex=members.size();
			addMember(right);
		}
		else if (right!=Void)
		{
			throw PhplusError("stack frame right input set to "+right->getString()+", which is neither creatable nore a normal void", INTERNAL_ERROR);
		}
		
		inputSet=true;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
cmpb $0x1, 0x20(%rdi)
jne 0x3c840
leaq 0x1bad0(%rip), %rsi     # 0x582c2
leaq 0x90(%rsp), %rdi
movq %rsp, %rdx
callq 0xa150
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x3dae7(%rip), %rdi     # 0x7a2fb
leaq 0x90(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x19a6e
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xa558
jmp 0x3c904
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq (%rsi), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
je 0x3c893
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
movq %rcx, 0x30(%rbx)
subq (%rbx), %rax
shrq $0x4, %rax
movl %eax, 0x24(%rbx)
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x12c0a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c6cc
leaq 0x68(%rsp), %rdi
callq 0xc984
jmp 0x3c8a3
movq (%r12), %rax
leaq 0x3db42(%rip), %rcx     # 0x7a3e0
cmpq (%rcx), %rax
jne 0x3c914
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
je 0x3c8ed
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
movq %rcx, 0x38(%rbx)
subq (%rbx), %rax
shrq $0x4, %rax
movl %eax, 0x28(%rbx)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x12c0a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c6cc
leaq 0x38(%rsp), %rdi
callq 0xc984
jmp 0x3c900
movq (%r15), %rax
leaq 0x3dae9(%rip), %rcx     # 0x7a3e0
cmpq (%rcx), %rax
jne 0x3c997
movb $0x1, 0x20(%rbx)
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r14
movq (%r12), %rsi
movq (%rsi), %rax
leaq 0x40(%rsp), %rdi
callq *0x8(%rax)
leaq 0x1b9b8(%rip), %rsi     # 0x582ed
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
callq 0x11ff8
leaq 0x1b9c3(%rip), %rdx     # 0x5830c
leaq 0xd0(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
leaq 0xd0(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r14, %rdi
callq 0x19f06
xorl %ebp, %ebp
leaq 0x3ac12(%rip), %rsi     # 0x77598
leaq -0x2b2fb(%rip), %rdx    # 0x11692
movq %r14, %rdi
callq 0xa4e0
jmp 0x3ca14
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r14
movq (%r15), %rsi
movq (%rsi), %rax
leaq 0x40(%rsp), %rdi
callq *0x8(%rax)
leaq 0x1b985(%rip), %rsi     # 0x5833c
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
callq 0x11ff8
leaq 0x1b941(%rip), %rdx     # 0x5830c
leaq 0xb0(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
leaq 0xb0(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r14, %rdi
callq 0x19f06
xorl %ebp, %ebp
leaq 0x3ab93(%rip), %rsi     # 0x77598
leaq -0x2b37a(%rip), %rdx    # 0x11692
movq %r14, %rdi
callq 0xa4e0
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xc984
leaq 0xb0(%rsp), %rdi
jmp 0x3ca45
jmp 0x3ca4c
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0xc984
leaq 0xd0(%rsp), %rdi
callq 0xa558
jmp 0x3ca52
movq %rax, %rbx
movb $0x1, %bpl
movq %rsp, %rdi
callq 0xa558
jmp 0x3ca64
jmp 0x3ca5e
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x40(%rsp), %rdi
callq 0xa558
testb %bpl, %bpl
jne 0x3ca7a
jmp 0x3cabc
jmp 0x3ca77
movq %rax, %rbx
movq %r14, %rdi
callq 0xa230
jmp 0x3cabc
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x3ca96
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xc984
jmp 0x3cabc
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xa558
jmp 0x3cabc
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa500