// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/AstNode.cpp
// Function: AstFuncBody::makeCopyWithSpecificTypes(std::shared_ptr<TypeBase>, std::shared_ptr<TypeBase>)
AstNode AstFuncBody::makeCopyWithSpecificTypes(Type leftInType, Type rightInType)
{
	Type leftWhatevType=leftTypeNode->getReturnType()->getSubType();
	Type rightWhatevType=rightTypeNode->getReturnType()->getSubType();
	
	if (!leftInType->matches(leftWhatevType) || !rightInType->matches(rightWhatevType))
	{
		return nullptr;
	}
	
	AstNode actualLeftTypeNode;
	AstNode actualRightTypeNode;
	
	if (leftWhatevType->isWhatev())
	{
		actualLeftTypeNode=AstTypeType::make(leftWhatevType->actuallyIs(leftInType));
	}
	else
	{
		actualLeftTypeNode=leftTypeNode->makeCopy(false);
	}
	
	if (rightWhatevType->isWhatev())
	{
		actualRightTypeNode=AstTypeType::make(rightWhatevType->actuallyIs(rightInType));
	}
	else
	{
		actualRightTypeNode=rightTypeNode->makeCopy(false);
	}
	
	AstNode out=make(move(actualLeftTypeNode), move(actualRightTypeNode), returnTypeNode->makeCopy(false), bodyNode->makeCopy(false));
	out->nameHint=nameHint;
	out->setInput(ns, dynamic, Void, Void);
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq 0x88(%rsi), %rsi
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x11a44
movq (%r13), %rsi
movq (%rsi), %rax
leaq 0x58(%rsp), %rdi
callq *0x48(%rax)
leaq 0x28(%rsp), %rdi
callq 0xc984
movq 0x90(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x11a44
movq 0x10(%rsp), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
callq *0x48(%rax)
leaq 0x18(%rsp), %rdi
callq 0xc984
movq (%r12), %r13
leaq 0x88(%rsp), %rbp
leaq 0x58(%rsp), %rsi
movq %rbp, %rdi
callq 0x12c0a
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3de4c
testb %al, %al
je 0xda3e
movq (%r15), %r13
leaq 0xe8(%rsp), %rbp
leaq 0x20(%rsp), %rsi
movq %rbp, %rdi
callq 0x12c0a
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3de4c
movl %eax, %ebp
leaq 0xf0(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xc984
testb %bpl, %bpl
je 0xda4b
andq $0x0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq 0x58(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0xda54
movq 0x58(%rsp), %r13
leaq 0xd8(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x12c0a
movq (%r13), %rax
leaq 0x78(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *(%rax)
movq %rsp, %rdi
leaq 0x78(%rsp), %rsi
callq 0x11bec
movq %rsp, %r12
movq (%r12), %rsi
andq $0x0, (%r12)
leaq 0x10(%rsp), %rdi
callq 0x12dbe
movq %r12, %rdi
callq 0x11c3e
leaq 0x80(%rsp), %rdi
callq 0xc984
leaq 0xe0(%rsp), %rdi
callq 0xc984
jmp 0xda84
leaq 0x90(%rsp), %rdi
callq 0xc984
andq $0x0, (%rbx)
jmp 0xdc69
movq 0x88(%r14), %rsi
movq (%rsi), %rax
movq %rsp, %rdi
xorl %edx, %edx
callq *0x20(%rax)
movq %rsp, %r12
movq (%r12), %rsi
andq $0x0, (%r12)
leaq 0x10(%rsp), %rdi
callq 0x12dbe
movq %r12, %rdi
callq 0x11c58
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0xdafe
movq 0x20(%rsp), %r12
leaq 0xc8(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x12c0a
movq (%r12), %rax
leaq 0x68(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *(%rax)
movq %rsp, %rdi
leaq 0x68(%rsp), %rsi
callq 0x11bec
movq %rsp, %r15
movq (%r15), %rsi
andq $0x0, (%r15)
leaq 0x8(%rsp), %rdi
callq 0x12dbe
movq %r15, %rdi
callq 0x11c3e
leaq 0x70(%rsp), %rdi
callq 0xc984
leaq 0xd0(%rsp), %rdi
callq 0xc984
jmp 0xdb2c
movq 0x90(%r14), %rsi
movq (%rsi), %rax
movq %rsp, %rdi
xorl %edx, %edx
callq *0x20(%rax)
movq %rsp, %r15
movq (%r15), %rsi
andq $0x0, (%r15)
leaq 0x8(%rsp), %rdi
callq 0x12dbe
movq %r15, %rdi
callq 0x11c58
movq 0x10(%rsp), %rax
andq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rcx
andq $0x0, 0x8(%rsp)
movq %rax, 0x48(%rsp)
movq %rcx, 0x40(%rsp)
movq 0x98(%r14), %rsi
movq (%rsi), %rax
leaq 0x38(%rsp), %rdi
xorl %edx, %edx
callq *0x20(%rax)
movq 0xa0(%r14), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
xorl %edx, %edx
callq *0x20(%rax)
leaq 0x48(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x38(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %rbx, %rdi
callq 0x11c72
leaq 0x30(%rsp), %rdi
callq 0x11c58
leaq 0x38(%rsp), %rdi
callq 0x11c58
leaq 0x40(%rsp), %rdi
callq 0x11c58
leaq 0x48(%rsp), %rdi
callq 0x11c58
leaq 0x8(%r14), %rsi
movq (%rbx), %rdi
addq $0x8, %rdi
movq %rbx, 0x50(%rsp)
callq 0xa1d0
movq (%rbx), %r15
leaq 0x70(%r14), %rsi
leaq 0xb8(%rsp), %r12
movq %r12, %rdi
callq 0x12bf6
movzbl 0x68(%r14), %ebp
leaq 0x6c7f0(%rip), %r14     # 0x7a3e0
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x12c0a
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12c0a
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r13, %rcx
movq %rbx, %r8
callq 0x116a8
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0xb0(%rsp), %rdi
callq 0xc984
leaq 0xc0(%rsp), %rdi
callq 0xc984
leaq 0x8(%rsp), %rdi
callq 0x11c58
leaq 0x10(%rsp), %rdi
callq 0x11c58
movq 0x50(%rsp), %rbx
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x60(%rsp), %rdi
callq 0xc984
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0xc984
jmp 0xdca9
jmp 0xdd46
movq %rax, %r14
leaq 0xd0(%rsp), %rdi
jmp 0xdcd2
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0xc984
jmp 0xdcca
jmp 0xdd46
movq %rax, %r14
leaq 0xe0(%rsp), %rdi
callq 0xc984
jmp 0xdd49
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0xb0(%rsp), %rdi
callq 0xc984
leaq 0xc0(%rsp), %rdi
callq 0xc984
jmp 0xdd08
movq %rax, %r14
movq 0x50(%rsp), %rdi
jmp 0xdd3f
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x11c58
jmp 0xdd21
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x11c58
jmp 0xdd30
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x11c58
leaq 0x48(%rsp), %rdi
callq 0x11c58
jmp 0xdd49
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x11c58
leaq 0x10(%rsp), %rdi
callq 0x11c58
jmp 0xdd81
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
callq 0xc984
jmp 0xdd74
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0x28(%rsp), %rdi
jmp 0xdd90
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0xc984
leaq 0x60(%rsp), %rdi
callq 0xc984
movq %r14, %rdi
callq 0xa500
movq %rax, %r14
jmp 0xdd95
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0xdd9a