// File: /workspace/github_cpp_makefile_star2_O1/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 0x693a
leaq 0x2397(%rip), %rcx      # 0xb799
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 0x943a
movq %rdx, -0x60(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x50(%rbp)
jmp 0x9442
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 0x2214(%rip), %rsi      # 0xb678
callq 0x3470
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x948d
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x9494
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 0x94d5
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x94ea
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3290
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x94ff
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3290
leaq 0x217f(%rip), %rsi      # 0xb685
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 0x22c2(%rip), %rsi      # 0xb825
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movq 0x40(%rbx), %rsi
leaq -0x40(%rbp), %rdi
callq 0x761c
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %r14, %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x228e(%rip), %rsi      # 0xb825
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x3410
movq %rax, %r14
leaq 0x226c(%rip), %rsi      # 0xb825
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movsd 0x30(%rbx), %xmm0
movq %r14, %rdi
callq 0x3390
movq %rax, %r14
leaq 0x2248(%rip), %rsi      # 0xb825
movl $0x1, %edx
movq %rax, %rdi
callq 0x32d0
movzbl 0x38(%rbx), %esi
movq %r14, %rdi
callq 0x33d0
movq %rax, %r14
leaq 0x2225(%rip), %rsi      # 0xb825
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 0x962e
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
movq 0x6983(%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 0x96be
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x9693
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x9693
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x96ad
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3290
jmp 0x96ad
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x96db
movq -0x70(%rbp), %rsi
jmp 0x96d3
jmp 0x96be
movq %rax, %rbx
jmp 0x96db
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x96db
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3290
leaq -0x280(%rbp), %rdi
callq 0x3330
movq %rbx, %rdi
callq 0x3420
nop