// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/Type.cpp
// Function: TupleType::actuallyIs(std::shared_ptr<TypeBase>)
Type actuallyIs(Type target)
	{
		if (target->getType()!=TUPLE)
		{
			if ((*subTypes).size()==1)
			{
				return (*subTypes)[0].type->actuallyIs(target);
			}
			else
			{
				throw PhplusError("actuallyIs called on tuple with target that is not tuple", INTERNAL_ERROR);
			}
		}
		
		TupleTypeMaker maker;
		
		auto targetTypes=target->getAllSubTypes();
		
		for (int i=0; i<(int)subTypes->size(); i++)
		{
			maker.add((*subTypes)[i].name, (*subTypes)[i].type->actuallyIs((*targetTypes)[i].type));
		}
		
		return maker.get(true);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq (%rdx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
cmpl $0x7, %eax
jne 0x57a40
movq %rsp, %rdi
callq 0x559bc
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, %r15
movq %r12, 0x28(%rsp)
movq 0x48(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB
testl %ecx, %ecx
jle 0x57a10
xorl %ebx, %ebx
leaq 0x30(%rsp), %r12
leaq 0x50(%rsp), %r13
xorl %ebp, %ebp
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xde0c
movq 0x48(%r14), %rax
movq (%rax), %rax
movq 0x20(%rax,%rbx), %rsi
movq (%r15), %rax
movq 0x20(%rax,%rbx), %rcx
movq %rcx, 0x8(%rsp)
movq 0x28(%rax,%rbx), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x57998
movq 0x4261e(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x57994
incl 0x8(%rax)
jmp 0x57998
lock
incl 0x8(%rax)
movq (%rsi), %rax
movq %r13, %rdi
leaq 0x8(%rsp), %rdx
callq *(%rax)
movq %rsp, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x55a08
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x579c2
callq 0xdce4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x579d1
callq 0xdce4
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x579e5
callq 0xa2b0
incq %rbp
movq 0x48(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB
movslq %ecx, %rcx
addq $0x30, %rbx
cmpq %rcx, %rbp
jl 0x5793d
movq %rsp, %rsi
movq 0x28(%rsp), %r12
movq %r12, %rdi
movl $0x1, %edx
callq 0x55f2c
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x57a9f
movq %rbx, %rdi
callq 0x16c9e
movq %rbx, %rdi
callq 0xa2b0
jmp 0x57a9f
movq 0x48(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
cmpq $0x30, %rcx
jne 0x57ab4
movq 0x20(%rax), %rsi
movq (%rbx), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x57a83
movq 0x42533(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x57a7f
incl 0x8(%rax)
jmp 0x57a83
lock
incl 0x8(%rax)
movq (%rsi), %rax
leaq 0x18(%rsp), %rdx
movq %r12, %rdi
callq *(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x57a9f
callq 0xdce4
movq %r12, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x23dff(%rip), %rsi     # 0x7b8d3
leaq 0x23e30(%rip), %rdx     # 0x7b90b
leaq 0x78(%rsp), %rdi
callq 0xdfa8
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
movq %r14, %rdi
movl $0x3, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x3fb2a(%rip), %rsi     # 0x97638
leaq -0x42fef(%rip), %rdx    # 0x14b26
movq %r14, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x57b2f
callq 0xdce4
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x57b3e
callq 0xa2b0
testb %bpl, %bpl
jne 0x57b48
jmp 0x57baf
movq %rax, %rbx
movq %r14, %rdi
callq 0xa240
jmp 0x57baf
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x57baf
callq 0xdce4
jmp 0x57baf
jmp 0x57b68
movq %rax, %rbx
jmp 0x57ba7
movq %rax, %rbx
jmp 0x57b84
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x57b84
callq 0xdce4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x57b93
callq 0xdce4
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x57ba7
callq 0xa2b0
movq %rsp, %rdi
callq 0x16c70
movq %rbx, %rdi
callq 0xa510
nop