// File: /workspace/github_cpp_makefile_star2_O3/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 0x15058
movq (%r13), %rsi
movq (%rsi), %rax
leaq 0x68(%rsp), %rdi
callq *0x48(%rax)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xef11
callq 0xdce4
movq 0x90(%r14), %rsi
leaq 0x18(%rsp), %rdi
callq 0x15058
movq 0x18(%rsp), %rsi
movq (%rsi), %rax
leaq 0x48(%rsp), %rdi
callq *0x48(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xef41
callq 0xdce4
movq (%r12), %rdi
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %rax
movq %rcx, 0xc8(%rsp)
movq %rax, 0xd0(%rsp)
testq %rax, %rax
je 0xef79
movq 0x8b03d(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xef75
incl 0x8(%rax)
jmp 0xef79
lock
incl 0x8(%rax)
leaq 0xc8(%rsp), %rsi
callq 0x55538
movb $0x1, %bpl
testb %al, %al
je 0xefe9
movq (%r15), %rdi
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movq %rax, 0xc0(%rsp)
testq %rax, %rax
je 0xefc4
movq 0x8aff2(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xefc0
incl 0x8(%rax)
jmp 0xefc4
lock
incl 0x8(%rax)
leaq 0xb8(%rsp), %rsi
callq 0x55538
movl %eax, %ebp
xorb $0x1, %bpl
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xefe9
callq 0xdce4
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xeffb
callq 0xdce4
testb %bpl, %bpl
je 0xf00c
movq $0x0, (%rbx)
jmp 0xf48f
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0xf05b
movq 0x68(%rsp), %rsi
movq (%r12), %rax
movq %rax, 0xa8(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0xb0(%rsp)
testq %rax, %rax
je 0xf0bb
movq 0x8af57(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xf0b7
incl 0x8(%rax)
jmp 0xf0bb
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 0xf150
leaq 0x18(%rsp), %rdi
callq 0x16b80
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xf150
leaq 0x8(%rsp), %rdi
callq 0x16b80
jmp 0xf150
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 0x152b2
movq 0x8(%rsp), %rax
movq $0x0, 0x8(%rsp)
movq 0x18(%rsp), %rsi
movq %rax, 0x18(%rsp)
testq %rsi, %rsi
je 0xf123
leaq 0x18(%rsp), %rdi
callq 0x16b80
movq 0x8(%rsp), %r12
testq %r12, %r12
je 0xf123
movq %r12, %rdi
callq 0x171fc
movq %r12, %rdi
callq 0xa2b0
movq $0x0, 0x8(%rsp)
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xf13e
callq 0xdce4
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0xf150
callq 0xdce4
movq 0x48(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0xf191
movq 0x48(%rsp), %rsi
movq (%r15), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0xa0(%rsp)
testq %rax, %rax
je 0xf1f1
movq 0x8ae21(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xf1ed
incl 0x8(%rax)
jmp 0xf1f1
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 0xf286
leaq 0x10(%rsp), %rdi
callq 0x16b80
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0xf286
leaq 0x8(%rsp), %rdi
callq 0x16b80
jmp 0xf286
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 0x152b2
movq 0x8(%rsp), %rax
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rsi
movq %rax, 0x10(%rsp)
testq %rsi, %rsi
je 0xf259
leaq 0x10(%rsp), %rdi
callq 0x16b80
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0xf259
movq %r15, %rdi
callq 0x171fc
movq %r15, %rdi
callq 0xa2b0
movq $0x0, 0x8(%rsp)
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xf274
callq 0xdce4
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xf286
callq 0xdce4
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 0x15334
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0xf2fe
leaq 0x28(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x28(%rsp)
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0xf31b
leaq 0x30(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x30(%rsp)
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0xf338
leaq 0x38(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x38(%rsp)
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0xf355
leaq 0x40(%rsp), %rdi
callq 0x16b80
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 0xf3a3
movq 0x8ac13(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0xf39f
incl 0x8(%rax)
jmp 0xf3a3
lock
incl 0x8(%rax)
movb 0x68(%r14), %al
leaq 0x8b052(%rip), %rsi     # 0x9a400
movq (%rsi), %r8
movq 0x8(%rsi), %rcx
movq %r8, 0x78(%rsp)
movq %rcx, 0x80(%rsp)
testq %rcx, %rcx
je 0xf3e2
movq 0x8abda(%rip), %rdx     # 0x99fa8
cmpb $0x0, (%rdx)
je 0xf3f2
incl 0x8(%rcx)
movq %r8, 0x58(%rsp)
movq %rcx, 0x60(%rsp)
jmp 0xf40c
movq %r8, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
jmp 0xf41a
lock
incl 0x8(%rcx)
movq (%rsi), %r8
movq 0x8(%rsi), %rcx
movq %r8, 0x58(%rsp)
movq %rcx, 0x60(%rsp)
testq %rcx, %rcx
je 0xf41a
cmpb $0x0, (%rdx)
je 0xf416
incl 0x8(%rcx)
jmp 0xf41a
lock
incl 0x8(%rcx)
movzbl %al, %edx
leaq 0x88(%rsp), %rsi
leaq 0x78(%rsp), %rcx
leaq 0x58(%rsp), %r8
callq 0x14b4c
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xf443
callq 0xdce4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xf455
callq 0xdce4
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xf467
callq 0xdce4
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0xf47b
leaq 0x10(%rsp), %rdi
callq 0x16b80
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0xf48f
leaq 0x18(%rsp), %rdi
callq 0x16b80
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xf49e
callq 0xdce4
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xf4ad
callq 0xdce4
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 0xf4dc
callq 0xdce4
jmp 0xf4dc
movq %rax, %r14
movq 0xa0(%rsp), %rdi
jmp 0xf50d
jmp 0xf616
movq %rax, %r14
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xf505
callq 0xdce4
jmp 0xf505
movq %rax, %r14
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0xf619
callq 0xdce4
jmp 0xf619
jmp 0xf616
movq %rax, %r14
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xf537
callq 0xdce4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xf549
callq 0xdce4
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xf560
callq 0xdce4
jmp 0xf560
movq %rax, %r14
movq (%rbx), %rsi
testq %rsi, %rsi
je 0xf570
movq %rbx, %rdi
callq 0x16b80
movq $0x0, (%rbx)
jmp 0xf619
movq %rax, %r14
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0xf593
leaq 0x28(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x28(%rsp)
jmp 0xf5a1
movq %rax, %r14
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0xf5b5
leaq 0x30(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x30(%rsp)
jmp 0xf5c3
movq %rax, %r14
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0xf5d7
leaq 0x38(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x38(%rsp)
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0xf5f4
leaq 0x40(%rsp), %rdi
callq 0x16b80
movq $0x0, 0x40(%rsp)
jmp 0xf619
movq %rax, %r14
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xf646
callq 0xdce4
jmp 0xf646
movq %rax, %r14
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0xf62d
leaq 0x10(%rsp), %rdi
callq 0x16b80
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0xf658
leaq 0x18(%rsp), %rdi
callq 0x16b80
jmp 0xf658
movq %rax, %r14
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xf658
callq 0xdce4
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xf676
callq 0xdce4
jmp 0xf676
movq %rax, %r14
movq 0x20(%rsp), %rdi
jmp 0xf65d
movq %rax, %r14
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xf685
callq 0xdce4
movq %r14, %rdi
callq 0xa510
movq %rax, %r14
movq 0x50(%rsp), %rdi
jmp 0xf67b
nop