// File: sus304[P]ForRocket/src/environment/coordinate.cpp
// Function: forrocket::Coordinate::setWind2Body(double, double)
void forrocket::Coordinate::setWind2Body(const double alpha, const double beta) {
    // Input: radian
    dcm.wind2body << std::cos(alpha) * std::cos(beta), std::cos(alpha) * std::sin(beta), -std::sin(alpha),
                    -std::sin(beta)                  , std::cos(beta)                  ,              0.0,
                    std::sin(alpha) * std::cos(beta) , std::sin(alpha) * std::sin(beta), std::cos(alpha);
    dcm.body2wind = dcm.wind2body.transpose();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
addq $0x118, %rax            # imm = 0x118
movq %rax, -0xc0(%rbp)
movsd -0x10(%rbp), %xmm0
callq 0x67f0
movsd %xmm0, -0xb8(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x67f0
movq -0xc0(%rbp), %rsi
movaps %xmm0, %xmm1
movsd -0xb8(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
leaq -0x40(%rbp), %rdx
callq 0x2f2e0
movsd -0x10(%rbp), %xmm0
callq 0x67f0
movsd %xmm0, -0xa8(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x6120
movq -0xb0(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0xa8(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x2f320
movq %rax, -0xa0(%rbp)
jmp 0x2c955
movsd -0x10(%rbp), %xmm0
callq 0x6120
movq -0xa0(%rbp), %rdi
movaps 0x68d03(%rip), %xmm1    # 0x95670
pxor %xmm1, %xmm0
movlpd %xmm0, -0x60(%rbp)
leaq -0x60(%rbp), %rsi
callq 0x2f320
movq %rax, -0xd0(%rbp)
jmp 0x2c988
movsd -0x18(%rbp), %xmm0
callq 0x6120
movq -0xd0(%rbp), %rdi
movaps 0x68cd0(%rip), %xmm1    # 0x95670
pxor %xmm1, %xmm0
movlpd %xmm0, -0x68(%rbp)
leaq -0x68(%rbp), %rsi
callq 0x2f320
movq %rax, -0xd8(%rbp)
jmp 0x2c9bb
movsd -0x18(%rbp), %xmm0
callq 0x67f0
movq -0xd8(%rbp), %rdi
movsd %xmm0, -0x70(%rbp)
leaq -0x70(%rbp), %rsi
callq 0x2f320
movq %rax, -0xe0(%rbp)
jmp 0x2c9e3
movq -0xe0(%rbp), %rdi
movq $0x0, -0x78(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x2f320
movq %rax, -0xe8(%rbp)
jmp 0x2ca04
movsd -0x10(%rbp), %xmm0
callq 0x6120
movsd %xmm0, -0xf8(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x67f0
movq -0xe8(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0xf8(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x80(%rbp)
leaq -0x80(%rbp), %rsi
callq 0x2f320
movq %rax, -0xf0(%rbp)
jmp 0x2ca4d
movsd -0x10(%rbp), %xmm0
callq 0x6120
movsd %xmm0, -0x108(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x6120
movq -0xf0(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0x108(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x88(%rbp)
leaq -0x88(%rbp), %rsi
callq 0x2f320
movq %rax, -0x100(%rbp)
jmp 0x2ca9c
movsd -0x10(%rbp), %xmm0
callq 0x67f0
movq -0x100(%rbp), %rdi
movsd %xmm0, -0x90(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x2f320
jmp 0x2cac3
leaq -0x38(%rbp), %rdi
callq 0x2f490
movq -0xc8(%rbp), %rdi
addq $0x40, %rdi
addq $0xd8, %rdi
callq 0x2f4c0
movq -0xc8(%rbp), %rdi
movq %rax, -0x98(%rbp)
addq $0x40, %rdi
addq $0x1f8, %rdi            # imm = 0x1F8
leaq -0x98(%rbp), %rsi
callq 0x2f4f0
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2f490
movq -0x50(%rbp), %rdi
callq 0x6760
nop