// File: /workspace/github_cpp_makefile_star2_O2/therealgymmy[P]HelicopterGame/src/x_handler.cpp
// Function: XHandler::drawCredits()
void XHandler::drawCredits () {
    // border
    Display *display = xinfo_.display_;
    Pixmap   buffer  = xinfo_.buffer_;
    GC       black   = xinfo_.black_;
    GC       white   = xinfo_.white_;

    XFillRectangle(display, buffer, black,
             0,
             0,
             PLANE_W / attr::DrawableBase::ScaleX,
             PLANE_H / attr::DrawableBase::ScaleY);

    XFillRectangle(display, buffer, white,
             100 / attr::DrawableBase::ScaleX,
             100 / attr::DrawableBase::ScaleY,
             (PLANE_W - 200) / attr::DrawableBase::ScaleX,
             (PLANE_H - 200) / attr::DrawableBase::ScaleY);

    // output text
#define DrawString(x, y, str) \
    XDrawString(display, buffer, black, \
                x / attr::DrawableBase::ScaleX, \
                y / attr::DrawableBase::ScaleY, \
                str.c_str(), str.length())

    std::string name = "Hong Lu 234";
    std::string s1 = "Key Maps:";
    std::string s2 = "    Game Control";
    std::string s3 = "        Accelerate: a";
    std::string s4 = "        Slow down:  z";
    std::string s5 = "    Helicopter Control";
    std::string s6 = "        Up:    Up Key";
    std::string s7 = "        Down:  Down Key";
    std::string s8 = "        Left:  Left Key";
    std::string s9 = "        Right: Right Key";

    DrawString(500, 400, name);
    DrawString(500, 500, s1);
    DrawString(500, 600, s2);
    DrawString(500, 700, s3);
    DrawString(500, 800, s4);
    DrawString(500, 900, s5);
    DrawString(500, 1000, s6);
    DrawString(500, 1100, s7);
    DrawString(500, 1200, s8);
    DrawString(500, 1300, s9);

#undef DrawString
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq 0x8(%rdi), %rbx
movq 0xa8(%rdi), %r14
movq 0xb0(%rdi), %r15
movq 0xb8(%rdi), %r12
leaq 0x5e83(%rip), %r13      # 0x91f8
movsd 0x2ca3(%rip), %xmm0     # 0x6020
divsd (%r13), %xmm0
cvttsd2si %xmm0, %r9
leaq 0x5e71(%rip), %rbp      # 0x9200
movsd 0x2c91(%rip), %xmm0     # 0x6028
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %rax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2398
movsd (%r13), %xmm0
movsd 0x2c6b(%rip), %xmm1     # 0x6030
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
cvttsd2si %xmm2, %ecx
movsd (%rbp), %xmm2
divsd %xmm2, %xmm1
cvttsd2si %xmm1, %r8d
movsd 0x2c51(%rip), %xmm1     # 0x6038
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %r9
movsd 0x2c48(%rip), %xmm0     # 0x6040
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2398
leaq 0x2cc6(%rip), %rsi      # 0x60df
leaq 0x138(%rsp), %rdi
leaq 0x118(%rsp), %rdx
callq 0x3a9c
leaq 0x2cb6(%rip), %rsi      # 0x60eb
leaq 0x118(%rsp), %rdi
leaq 0xf8(%rsp), %rdx
callq 0x3a9c
leaq 0x2ca4(%rip), %rsi      # 0x60f5
leaq 0xf8(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0x3a9c
leaq 0x2c99(%rip), %rsi      # 0x6106
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0x3a9c
leaq 0x2c93(%rip), %rsi      # 0x611c
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x3a9c
leaq 0x2c8d(%rip), %rsi      # 0x6132
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x3a9c
leaq 0x2c8b(%rip), %rsi      # 0x6149
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x3a9c
leaq 0x2c8b(%rip), %rsi      # 0x615f
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x3a9c
leaq 0x2c8d(%rip), %rsi      # 0x6177
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x3a9c
leaq 0x2c8f(%rip), %rsi      # 0x618f
leaq 0x18(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x3a9c
movsd 0x2b31(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x2b27(%rip), %xmm0     # 0x6050
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x138(%rsp), %r9
movl 0x140(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x2aed(%rip), %xmm1     # 0x6048
movapd %xmm1, %xmm0
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movapd %xmm1, %xmm0
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x118(%rsp), %r9
movl 0x120(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x2aa9(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x2aa7(%rip), %xmm0     # 0x6058
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0xf8(%rsp), %r9
movl 0x100(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x2a65(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x2a6b(%rip), %xmm0     # 0x6060
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0xd8(%rsp), %r9
movl 0xe0(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x2a21(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x2a2f(%rip), %xmm0     # 0x6068
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0xb8(%rsp), %r9
movl 0xc0(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x29dd(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x29f3(%rip), %xmm0     # 0x6070
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x98(%rsp), %r9
movl 0xa0(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x2999(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x29b7(%rip), %xmm0     # 0x6078
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x78(%rsp), %r9
movl 0x80(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x2958(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x297e(%rip), %xmm0     # 0x6080
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x58(%rsp), %r9
movl 0x60(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x291a(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x2948(%rip), %xmm0     # 0x6088
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x38(%rsp), %r9
movl 0x40(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
movsd 0x28dc(%rip), %xmm0     # 0x6048
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movsd 0x2912(%rip), %xmm0     # 0x6090
divsd (%rbp), %xmm0
cvttsd2si %xmm0, %r8d
movq 0x18(%rsp), %r9
movl 0x20(%rsp), %eax
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21e0
leaq 0x18(%rsp), %rdi
callq 0x20b0
leaq 0x38(%rsp), %rdi
callq 0x20b0
leaq 0x58(%rsp), %rdi
callq 0x20b0
leaq 0x78(%rsp), %rdi
callq 0x20b0
leaq 0x98(%rsp), %rdi
callq 0x20b0
leaq 0xb8(%rsp), %rdi
callq 0x20b0
leaq 0xd8(%rsp), %rdi
callq 0x20b0
leaq 0xf8(%rsp), %rdi
callq 0x20b0
leaq 0x118(%rsp), %rdi
callq 0x20b0
leaq 0x138(%rsp), %rdi
callq 0x20b0
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3864
movq %rax, %rbx
jmp 0x386e
movq %rax, %rbx
jmp 0x3878
movq %rax, %rbx
jmp 0x3882
movq %rax, %rbx
jmp 0x388f
movq %rax, %rbx
jmp 0x389c
movq %rax, %rbx
jmp 0x38a9
movq %rax, %rbx
jmp 0x38b6
movq %rax, %rbx
jmp 0x38c3
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20b0
leaq 0x38(%rsp), %rdi
callq 0x20b0
leaq 0x58(%rsp), %rdi
callq 0x20b0
leaq 0x78(%rsp), %rdi
callq 0x20b0
leaq 0x98(%rsp), %rdi
callq 0x20b0
leaq 0xb8(%rsp), %rdi
callq 0x20b0
leaq 0xd8(%rsp), %rdi
callq 0x20b0
leaq 0xf8(%rsp), %rdi
callq 0x20b0
leaq 0x118(%rsp), %rdi
callq 0x20b0
leaq 0x138(%rsp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2330