// File: /workspace/github_cpp_makefile_star2_O3/chulchultrain[P]FactoryHead/PokemonEntry/PokemonEntry.cpp
// Function: PokemonEntry::Construct(EntryData&, int)
void PokemonEntry::Construct(EntryData &ed,int IV) {
	vector<int> bs = DexIDToBaseStats[ed.DexID];
	types = DexIDToTypes[ed.DexID];
	ws = CalcWorkingStats(bs,ed.EV,IV,ed.nature);
	moves.resize(4);
	name = DexIDToName[ed.DexID];
	for(unsigned i = 0; i < 4; i++) {
		moves[i] = MoveIDToMoveData[ed.moveID[i]];
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rsi), %r15
leaq 0x1352d(%rip), %rdi     # 0x1f520
movq %r15, %rsi
callq 0x5b94
leaq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x734a
leaq 0x13542(%rip), %rdi     # 0x1f550
movq %r15, %rsi
callq 0x589a
leaq 0x50(%r14), %rdi
movq %rax, %rsi
callq 0x5966
leaq 0x98(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x734a
leaq -0x88(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x88c2
leaq -0x40(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq -0x98(%rbp), %r8
movl %r12d, %ecx
callq 0xe7fc
movq 0x20(%r14), %rdi
movq 0x30(%r14), %rsi
movq -0x40(%rbp), %rax
movq %rax, 0x20(%r14)
movq -0x38(%rbp), %rax
movq %rax, 0x28(%r14)
movq -0x30(%rbp), %rax
movq %rax, 0x30(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
testq %rdi, %rdi
je 0xc0c3
subq %rdi, %rsi
callq 0x21b0
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xc0c3
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
movq -0x98(%rbp), %rdi
cmpq %r13, %rdi
je 0xc0de
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21b0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0xc0f3
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
leaq 0x38(%r14), %rdi
movl $0x4, %esi
movq %rdi, -0x48(%rbp)
callq 0xe122
leaq 0x134a4(%rip), %rdi     # 0x1f5b0
movq %r15, %rsi
callq 0x581a
movq %r14, %rdi
movq %rax, %rsi
callq 0x20f0
movq %rbx, %r12
xorl %r13d, %r13d
xorl %ebx, %ebx
movq 0x40(%r12), %rsi
addq %rbx, %rsi
leaq 0x1338a(%rip), %rdi     # 0x1f4c0
callq 0x5b14
movq %rax, %r15
movq -0x48(%rbp), %rax
movq (%rax), %r14
leaq (%r14,%r13), %rdi
movq %r15, %rsi
callq 0x20f0
leaq (%r14,%r13), %rdi
addq $0x20, %rdi
leaq 0x20(%r15), %rsi
callq 0x20f0
leaq (%r14,%r13), %rdi
addq $0x40, %rdi
leaq 0x40(%r15), %rsi
callq 0x20f0
leaq (%r14,%r13), %rdi
addq $0x60, %rdi
movq %r15, %rsi
addq $0x60, %rsi
callq 0x20f0
movl 0x80(%r15), %eax
movl %eax, 0x80(%r14,%r13)
addq $0x20, %rbx
addq $0x88, %r13
movl $0x80, %eax
cmpq %rax, %rbx
jne 0xc127
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0xc1c4
movq -0x68(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x98(%rbp), %rdi
cmpq %r13, %rdi
je 0xc1f6
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x21b0
jmp 0xc1f6
movq %rax, %rbx
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0xc214
movq -0x50(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
jmp 0xc214
jmp 0xc211
jmp 0xc211
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0xc229
movq -0x68(%rbp), %rsi
subq %rdi, %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22d0
nop