// File: /workspace/github_cpp_makefile_star2_O3/Serfati[P]Heroes-of-Might-and-Magic-3/Hero.cpp
// Function: Hero::save()
void Hero::save() {
    ofstream out;
    out.open("Heros/" + getName() + "/Details.txt");
    out << "live|B:W:A:V:Z|type|gold|DG|SA;" << endl;
    out << isAlive << " " << saveArmy() << " " << getType() << " " << gold << " " << gotDG << " " << usedSA;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x260, %rsp            # imm = 0x260
movq %rdi, %rbx
leaq -0x280(%rbp), %rdi
callq 0x33f0
leaq -0x70(%rbp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x6930
leaq 0x23b5(%rip), %rcx      # 0xb779
leaq -0x80(%rbp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x32b0
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x93fc
movq %rdx, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0x9404
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x60(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2232(%rip), %rsi      # 0xb658
callq 0x3470
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x944f
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x9456
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x40(%rbp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x280(%rbp), %rdi
movl $0x10, %edx
callq 0x3120
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x9497
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x94ac
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3290
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x94c1
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3290
leaq 0x219d(%rip), %rsi      # 0xb665
leaq -0x280(%rbp), %r14
movl $0x1f, %edx
movq %r14, %rdi
callq 0x32d0
movq -0x280(%rbp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3260
movsbl %al, %esi
leaq -0x280(%rbp), %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31b0
movzbl 0x3a(%rbx), %esi
leaq -0x280(%rbp), %rdi
callq 0x33d0
movq %rax, %r14
leaq 0x22e0(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movq 0x40(%rbx), %rsi
leaq -0x40(%rbp), %rdi
callq 0x75de
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x22ac(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x3410
movq %rax, %r14
leaq 0x228a(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movsd 0x30(%rbx), %xmm0
movq %r14, %rdi
callq 0x3390
movq %rax, %r14
leaq 0x2266(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movzbl 0x38(%rbx), %esi
movq %r14, %rdi
callq 0x33d0
movq %rax, %r14
leaq 0x2243(%rip), %rsi      # 0xb805
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movzbl 0x39(%rbx), %esi
movq %r14, %rdi
callq 0x33d0
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x95f0
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq 0x69c1(%rip), %rax      # 0xffb8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x278(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x280(%rbp,%rcx)
callq 0x3210
leaq -0x188(%rbp), %rdi
callq 0x30d0
addq $0x260, %rsp            # imm = 0x260
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9680
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x9655
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x9655
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x966f
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x966f
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x969d
movq -0x70(%rbp), %rsi
jmp 0x9695
jmp 0x9680
movq %rax, %rbx
jmp 0x969d
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x969d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
leaq -0x280(%rbp), %rdi
callq 0x3330
movq %rbx, %rdi
callq 0x3420
nop