// File: /workspace/github_cpp_makefile_star2_O2/therealgymmy[P]HelicopterGame/src/misc.cpp
// Function: Score::draw(XInfo*)
void Score::draw (XInfo *xinfo) {
    XFillRectangle(xinfo->display_,
                   xinfo->buffer_,
                   xinfo->white_,
                   x_ / attr::DrawableBase::ScaleX,
                   y_ / 5 / attr::DrawableBase::ScaleY,
                   500 / attr::DrawableBase::ScaleX,
                   100 / attr::DrawableBase::ScaleY);

    XDrawRectangle(xinfo->display_,
                   xinfo->buffer_,
                   xinfo->black_,
                   x_ / attr::DrawableBase::ScaleX,
                   y_ / 5 / attr::DrawableBase::ScaleY,
                   500 / attr::DrawableBase::ScaleX,
                   100 / attr::DrawableBase::ScaleY);

    std::stringstream ss;
    ss << "Score: " << score_ / 10;

    XDrawString(xinfo->display_,
                xinfo->buffer_,
                xinfo->black_,
                (x_ + 50) / attr::DrawableBase::ScaleX,
                y_ / attr::DrawableBase::ScaleY,
                ss.str().c_str(), ss.str().length());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %rbx
movq (%rsi), %r11
movq 0xa0(%rsi), %rsi
movq 0xb0(%rbx), %r10
cvtsi2sdl 0x3e65(%rip), %xmm0 # 0x9220
leaq 0x3e36(%rip), %r12      # 0x91f8
movsd (%r12), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movl 0x3e4e(%rip), %eax      # 0x9224
pushq $0x5
popq %rbp
cltd
idivl %ebp
cvtsi2sd %eax, %xmm0
movq %rdi, %r14
leaq 0x3e16(%rip), %r13      # 0x9200
movsd (%r13), %xmm2
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %r8d
movsd 0xc47(%rip), %xmm0      # 0x6048
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9
movsd 0xc1e(%rip), %xmm0      # 0x6030
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, (%rsp)
movq %r11, %rdi
movq %r10, %rdx
callq 0x2398
movq (%rbx), %rdi
movq 0xa0(%rbx), %rsi
cvtsi2sdl 0x3de5(%rip), %xmm0 # 0x9220
movsd (%r12), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movq 0xa8(%rbx), %r10
movl 0x3dce(%rip), %eax      # 0x9224
cltd
idivl %ebp
cvtsi2sd %eax, %xmm0
movsd (%r13), %xmm2
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %r8d
movsd 0xbd4(%rip), %xmm0      # 0x6048
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9
movsd 0xbab(%rip), %xmm0      # 0x6030
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, (%rsp)
movq %r10, %rdx
callq 0x23a0
leaq 0x60(%rsp), %rdi
callq 0x2110
leaq 0x70(%rsp), %rdi
leaq 0xea9(%rip), %rsi       # 0x6358
callq 0x21d0
movq %rax, %rdi
movl (%r14), %eax
pushq $0xa
popq %rcx
cltd
idivl %ecx
movl %eax, %esi
callq 0x2320
movq (%rbx), %r14
movq 0xa0(%rbx), %r15
movl 0x3d49(%rip), %eax      # 0x9220
addl $0x32, %eax
cvtsi2sd %eax, %xmm0
divsd (%r12), %xmm0
movsd %xmm0, 0x18(%rsp)
cvtsi2sdl 0x3d32(%rip), %xmm0 # 0x9224
movq 0xa8(%rbx), %rbx
divsd (%r13), %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x78(%rsp), %r13
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x22e0
movq 0x40(%rsp), %r12
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x22e0
cvttsd2si 0x18(%rsp), %ecx
cvttsd2si 0x10(%rsp), %r8d
movl 0x28(%rsp), %eax
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %r9
callq 0x21e0
leaq 0x20(%rsp), %rdi
callq 0x20b0
leaq 0x40(%rsp), %rdi
callq 0x20b0
leaq 0x60(%rsp), %rdi
callq 0x2130
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x20b0
jmp 0x5590
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x20b0
jmp 0x55a1
jmp 0x559e
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2130
movq %rbx, %rdi
callq 0x2330
nop