// File: /workspace/github_cpp_makefile_star2_O1/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 0x48(%rsp), %r13
movq %r13, %rdi
callq 0x14dfe
movq (%r13), %rsi
movq (%rsi), %rax
leaq 0x58(%rsp), %rdi
callq *0x48(%rax)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xeec1
callq 0xdcba
movq 0x90(%r14), %rsi
leaq 0x18(%rsp), %rdi
callq 0x14dfe
movq 0x18(%rsp), %rsi
movq (%rsi), %rax
leaq 0x48(%rsp), %rdi
callq *0x48(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xeef1
callq 0xdcba
movq (%r12), %rdi
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0xc8(%rsp)
movq %rax, 0xd0(%rsp)
testq %rax, %rax
je 0xef29
movq 0x8a08d(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xef25
incl 0x8(%rax)
jmp 0xef29
lock
incl 0x8(%rax)
leaq 0xc8(%rsp), %rsi
callq 0x548ce
movl %eax, %ebp
movb $0x1, %r13b
testb %al, %al
je 0xef8a
movq (%r15), %rdi
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movq %rax, 0xc0(%rsp)
testq %rax, %rax
je 0xef76
movq 0x8a040(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xef72
incl 0x8(%rax)
jmp 0xef76
lock
incl 0x8(%rax)
leaq 0xb8(%rsp), %rsi
callq 0x548ce
movl %eax, %r13d
xorb $0x1, %r13b
testb %bpl, %bpl
je 0xefa1
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xefa1
callq 0xdcba
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xefb3
callq 0xdcba
testb %r13b, %r13b
je 0xefc4
movq $0x0, (%rbx)
jmp 0xf42c
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0xf013
movq 0x58(%rsp), %rsi
movq (%r12), %rax
movq %rax, 0xa8(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0xf06f
movq 0x89f9f(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xf06b
incl 0x8(%rax)
jmp 0xf06f
movq 0x88(%r14), %rsi
movq (%rsi), %rax
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq *0x20(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movq %rax, 0x18(%rsp)
testq %rsi, %rsi
je 0xf04e
leaq 0x18(%rsp), %rdi
callq 0x168f8
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xf104
leaq 0x8(%rsp), %rdi
callq 0x168f8
jmp 0xf104
lock
incl 0x8(%rax)
movq (%rsi), %rax
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq *(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x1503e
movq 0x8(%rsp), %rax
movq $0x0, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movq %rax, 0x18(%rsp)
testq %rsi, %rsi
je 0xf0bd
leaq 0x18(%rsp), %rdi
callq 0x168f8
movq 0x8(%rsp), %r12
testq %r12, %r12
je 0xf0d7
movq %r12, %rdi
callq 0x16f7a
movq %r12, %rdi
callq 0xa2b0
movq $0x0, 0x8(%rsp)
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xf0f2
callq 0xdcba
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0xf104
callq 0xdcba
movq 0x48(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0xf145
movq 0x48(%rsp), %rsi
movq (%r15), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0xa0(%rsp)
testq %rax, %rax
je 0xf1a1
movq 0x89e6d(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xf19d
incl 0x8(%rax)
jmp 0xf1a1
movq 0x90(%r14), %rsi
movq (%rsi), %rax
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq *0x20(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rsi
movq %rax, 0x10(%rsp)
testq %rsi, %rsi
je 0xf180
leaq 0x10(%rsp), %rdi
callq 0x168f8
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xf236
leaq 0x8(%rsp), %rdi
callq 0x168f8
jmp 0xf236
lock
incl 0x8(%rax)
movq (%rsi), %rax
leaq 0xd8(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq *(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x1503e
movq 0x8(%rsp), %rax
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rsi
movq %rax, 0x10(%rsp)
testq %rsi, %rsi
je 0xf1ef
leaq 0x10(%rsp), %rdi
callq 0x168f8
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0xf209
movq %r15, %rdi
callq 0x16f7a
movq %r15, %rdi
callq 0xa2b0
movq $0x0, 0x8(%rsp)
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xf224
callq 0xdcba
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xf236
callq 0xdcba
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x38(%rsp)
movq %rax, 0x10(%rsp)
movq 0x98(%r14), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
xorl %edx, %edx
callq *0x20(%rax)
movq 0xa0(%r14), %rsi
movq (%rsi), %rax
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq *0x20(%rax)
leaq 0x40(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x30(%rsp), %rcx
leaq 0x28(%rsp), %r8
movq %rbx, %rdi
callq 0x150c4
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0xf2ae
leaq 0x28(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x28(%rsp)
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0xf2cb
leaq 0x30(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x30(%rsp)
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0xf2e8
leaq 0x38(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x38(%rsp)
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0xf305
leaq 0x40(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x40(%rsp)
leaq 0x8(%r14), %rsi
movq (%rbx), %rdi
addq $0x8, %rdi
callq 0xa1d0
movq (%rbx), %rdi
movq 0x70(%r14), %rax
movq %rax, 0x88(%rsp)
movq 0x78(%r14), %rax
movq %rax, 0x90(%rsp)
testq %rax, %rax
je 0xf353
movq 0x89c63(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0xf34f
incl 0x8(%rax)
jmp 0xf353
lock
incl 0x8(%rax)
movb 0x68(%r14), %al
leaq 0x8a0a2(%rip), %rcx     # 0x99400
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
movq %rsi, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
testq %rdx, %rdx
je 0xf38c
movq 0x89c2a(%rip), %rsi     # 0x98fa8
cmpb $0x0, (%rsi)
je 0xf388
incl 0x8(%rdx)
jmp 0xf38c
lock
incl 0x8(%rdx)
movq (%rcx), %rdx
movq 0x8(%rcx), %rcx
movq %rdx, 0x68(%rsp)
movq %rcx, 0x70(%rsp)
testq %rcx, %rcx
je 0xf3b7
movq 0x89bff(%rip), %rdx     # 0x98fa8
cmpb $0x0, (%rdx)
je 0xf3b3
incl 0x8(%rcx)
jmp 0xf3b7
lock
incl 0x8(%rcx)
movzbl %al, %edx
leaq 0x88(%rsp), %rsi
leaq 0x78(%rsp), %rcx
leaq 0x68(%rsp), %r8
callq 0x1491e
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xf3e0
callq 0xdcba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xf3f2
callq 0xdcba
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xf404
callq 0xdcba
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0xf418
leaq 0x10(%rsp), %rdi
callq 0x168f8
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0xf42c
leaq 0x18(%rsp), %rdi
callq 0x168f8
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xf43b
callq 0xdcba
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xf44a
callq 0xdcba
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xf479
callq 0xdcba
jmp 0xf479
movq %rax, %r14
movq 0xa0(%rsp), %rdi
jmp 0xf4aa
jmp 0xf5b3
movq %rax, %r14
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xf4a2
callq 0xdcba
jmp 0xf4a2
movq %rax, %r14
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0xf5b6
callq 0xdcba
jmp 0xf5b6
jmp 0xf5b3
movq %rax, %r14
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xf4d4
callq 0xdcba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xf4e6
callq 0xdcba
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xf4fd
callq 0xdcba
jmp 0xf4fd
movq %rax, %r14
movq (%rbx), %rsi
testq %rsi, %rsi
je 0xf50d
movq %rbx, %rdi
callq 0x168f8
movq $0x0, (%rbx)
jmp 0xf5b6
movq %rax, %r14
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0xf530
leaq 0x28(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x28(%rsp)
jmp 0xf53e
movq %rax, %r14
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0xf552
leaq 0x30(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x30(%rsp)
jmp 0xf560
movq %rax, %r14
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0xf574
leaq 0x38(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x38(%rsp)
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0xf591
leaq 0x40(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x40(%rsp)
jmp 0xf5b6
movq %rax, %r14
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xf5e3
callq 0xdcba
jmp 0xf5e3
movq %rax, %r14
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0xf5ca
leaq 0x10(%rsp), %rdi
callq 0x168f8
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0xf5f5
leaq 0x18(%rsp), %rdi
callq 0x168f8
jmp 0xf5f5
movq %rax, %r14
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xf5f5
callq 0xdcba
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xf613
callq 0xdcba
jmp 0xf613
movq %rax, %r14
movq 0x20(%rsp), %rdi
jmp 0xf5fa
movq %rax, %r14
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xf622
callq 0xdcba
movq %r14, %rdi
callq 0xa510
movq %rax, %r14
movq 0x50(%rsp), %rdi
jmp 0xf618