// File: t0mm4rx[P]piscine_cpp/day04/ex00/main.cpp
// Function: main
int main(void)
{
	Sorcerer john("John", "Master");
	std::cout << john << std::endl;
	Victim micheal("Micheal");
	Victim tmp = micheal;
	Peon rose("Rose");
	Peon roseCopy = rose;
	Victim michealCopy(micheal);
	john.polymorph(micheal);
	john.polymorph(rose);
	john.polymorph(roseCopy);
	std::cout << micheal << std::endl;
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movl $0x0, -0x4(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x21d0
movq -0x1c8(%rbp), %rdx
leaq 0x12c5(%rip), %rsi      # 0x4145
leaq -0x68(%rbp), %rdi
callq 0x3240
jmp 0x2e8b
leaq -0xa1(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x21d0
movq -0x1d0(%rbp), %rdx
leaq 0x129e(%rip), %rsi      # 0x414a
leaq -0xa0(%rbp), %rdi
callq 0x3240
jmp 0x2eba
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x26a0
jmp 0x2ed0
leaq -0xa0(%rbp), %rdi
callq 0x2090
leaq -0xa1(%rbp), %rdi
callq 0x2140
leaq -0x68(%rbp), %rdi
callq 0x2090
leaq -0x69(%rbp), %rdi
callq 0x2140
movq 0x30d7(%rip), %rdi      # 0x5fd8
leaq -0x48(%rbp), %rsi
callq 0x29d0
movq %rax, -0x1d8(%rbp)
jmp 0x2f13
movq -0x1d8(%rbp), %rdi
movq 0x30a7(%rip), %rsi      # 0x5fc8
callq 0x2120
jmp 0x2f28
leaq -0xf1(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x21d0
movq -0x1e0(%rbp), %rdx
leaq 0x1208(%rip), %rsi      # 0x4151
leaq -0xf0(%rbp), %rdi
callq 0x3240
jmp 0x2f57
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x2ac0
jmp 0x2f6c
leaq -0xf0(%rbp), %rdi
callq 0x2090
leaq -0xf1(%rbp), %rdi
callq 0x2140
leaq -0x120(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x2b70
jmp 0x2f99
leaq -0x169(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x21d0
movq -0x1e8(%rbp), %rdx
leaq 0x119f(%rip), %rsi      # 0x4159
leaq -0x168(%rbp), %rdi
callq 0x3240
jmp 0x2fc8
leaq -0x148(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x2400
jmp 0x2fdd
leaq -0x168(%rbp), %rdi
callq 0x2090
leaq -0x169(%rbp), %rdi
callq 0x2140
leaq -0x198(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x24d0
jmp 0x300a
leaq -0x1c0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x2b70
jmp 0x301f
leaq -0x48(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x29b0
jmp 0x3031
leaq -0x48(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x29b0
jmp 0x3043
leaq -0x48(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x29b0
jmp 0x3055
movq 0x2f7c(%rip), %rdi      # 0x5fd8
leaq -0xd0(%rbp), %rsi
callq 0x2dc0
movq %rax, -0x1f0(%rbp)
jmp 0x3071
movq -0x1f0(%rbp), %rdi
movq 0x2f49(%rip), %rsi      # 0x5fc8
callq 0x2120
jmp 0x3086
movl $0x0, -0x4(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x2c70
leaq -0x198(%rbp), %rdi
callq 0x25b0
leaq -0x148(%rbp), %rdi
callq 0x25b0
leaq -0x120(%rbp), %rdi
callq 0x2c70
leaq -0xd0(%rbp), %rdi
callq 0x2c70
leaq -0x48(%rbp), %rdi
callq 0x28b0
movl -0x4(%rbp), %eax
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3127
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3112
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x2090
leaq -0xa1(%rbp), %rdi
callq 0x2140
leaq -0x68(%rbp), %rdi
callq 0x2090
leaq -0x69(%rbp), %rdi
callq 0x2140
jmp 0x322f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3226
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x316c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x2090
leaq -0xf1(%rbp), %rdi
callq 0x2140
jmp 0x3226
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x321a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x31b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x2090
leaq -0x169(%rbp), %rdi
callq 0x2140
jmp 0x320e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x3202
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x31f6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x2c70
leaq -0x198(%rbp), %rdi
callq 0x25b0
leaq -0x148(%rbp), %rdi
callq 0x25b0
leaq -0x120(%rbp), %rdi
callq 0x2c70
leaq -0xd0(%rbp), %rdi
callq 0x2c70
leaq -0x48(%rbp), %rdi
callq 0x28b0
movq -0x78(%rbp), %rdi
callq 0x21c0
nopl (%rax,%rax)