// File: /workspace/github_cpp_makefile_star2_O3/rurban[P]dgnlib/dgnread.cpp
// Function: DGNReadElement
DGNElemCore *DGNReadElement( DGNHandle hDGN )

{
    DGNInfo     *psDGN = (DGNInfo *) hDGN;
    DGNElemCore *psElement = NULL;
    int         nType, nLevel;
    int         bInsideFilter;

/* -------------------------------------------------------------------- */
/*      Load the element data into the current buffer.  If a spatial    */
/*      filter is in effect, loop until we get something within our     */
/*      spatial constraints.                                            */
/* -------------------------------------------------------------------- */
    do { 
        bInsideFilter = TRUE;

        if( !DGNLoadRawElement( psDGN, &nType, &nLevel ) )
            return NULL;
        
        if( psDGN->has_spatial_filter )
        {
            GUInt32     nXMin, nXMax, nYMin, nYMax;
            
            if( !psDGN->sf_converted_to_uor )
                DGNSpatialFilterToUOR( psDGN );

            if( !DGNGetRawExtents( psDGN, nType, NULL,
                                   &nXMin, &nYMin, NULL,
                                   &nXMax, &nYMax, NULL ) )
            {
                /* If we don't have spatial characterists for the element
                   we will pass it through. */
                bInsideFilter = TRUE;
            }
            else if( nXMin > psDGN->sf_max_x
                     || nYMin > psDGN->sf_max_y
                     || nXMax < psDGN->sf_min_x
                     || nYMax < psDGN->sf_min_y )
                bInsideFilter = FALSE;

            /*
            ** We want to select complex elements based on the extents of
            ** the header, not the individual elements.
            */
            if( nType == DGNT_COMPLEX_CHAIN_HEADER
                || nType == DGNT_COMPLEX_SHAPE_HEADER )
            {
                psDGN->in_complex_group = TRUE;
                psDGN->select_complex_group = bInsideFilter;
            }
            else if( psDGN->abyElem[0] & 0x80 /* complex flag set */ )
            {
                if( psDGN->in_complex_group )
                    bInsideFilter = psDGN->select_complex_group;
            }
            else
                psDGN->in_complex_group = FALSE;
        }
    } while( !bInsideFilter );

/* -------------------------------------------------------------------- */
/*      Convert into an element structure.                              */
/* -------------------------------------------------------------------- */
    psElement = DGNProcessElement( psDGN, nType, nLevel );

    return psElement;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r9
leaq 0x10(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x14(%rsp), %r12
leaq 0x34(%rsp), %r13
leaq 0x30(%rsp), %rbp
leaq 0x28(%rsp), %r14
movq %rdi, 0x8(%rsp)
movq %r9, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r9, %rbx
callq 0x8a63
testl %eax, %eax
je 0x8ef1
cmpl $0x0, 0x20378(%rbx)
movq %rbx, %r9
je 0x8ef9
cmpl $0x0, 0x2037c(%r9)
jne 0x8e26
movq %r9, %rdi
callq 0xe2ad
movq 0x8(%rsp), %r9
movl 0x14(%rsp), %r15d
subq $0x8, %rsp
movq %r9, %rdi
movl %r15d, %esi
xorl %edx, %edx
movq %rbp, %rcx
movq %r14, %r8
movq %r9, %rbx
xorl %r9d, %r9d
pushq $0x0
leaq 0x34(%rsp), %rax
pushq %rax
leaq 0x44(%rsp), %rax
pushq %rax
callq 0x8c8f
addq $0x20, %rsp
movl $0x1, %ecx
testl %eax, %eax
je 0x8e9d
movl 0x30(%rsp), %eax
cmpl 0x20390(%rbx), %eax
movq %rbx, %r9
ja 0x8e99
movl 0x28(%rsp), %eax
cmpl 0x20394(%r9), %eax
ja 0x8e99
movl 0x2c(%rsp), %eax
cmpl 0x20388(%r9), %eax
jb 0x8e99
movl 0x24(%rsp), %eax
cmpl 0x2038c(%r9), %eax
jae 0x8ea0
xorl %ecx, %ecx
jmp 0x8ea0
movq %rbx, %r9
movl %r15d, %eax
andl $-0x3, %eax
cmpl $0xc, %eax
jne 0x8ebf
movl $0x1, 0x20384(%r9)
movl %ecx, 0x20380(%r9)
jmp 0x8ee7
movq 0x18(%rsp), %rax
cmpb $0x0, (%rax)
js 0x8ed6
movl $0x0, 0x20384(%r9)
jmp 0x8ee7
cmpl $0x0, 0x20384(%r9)
je 0x8ee7
movl 0x20380(%r9), %ecx
testl %ecx, %ecx
je 0x8de6
jmp 0x8efe
xorl %r13d, %r13d
jmp 0xaad6
movl 0x14(%rsp), %r15d
movl 0x34(%rsp), %eax
leal -0x1(%r15), %ecx
cmpl $0x24, %ecx
ja 0x91f7
leaq 0x7866(%rip), %rdx      # 0x1077c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movslq 0x20018(%r9), %r15
shlq $0x2, %r15
movzwl 0x34(%r9), %r14d
leal (%r14,%r14,2), %eax
leal 0x58(,%rax,8), %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x2, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movl 0xc(%r9), %eax
movl %r14d, %ecx
imull %r15d, %ecx
addl $0x26, %ecx
cmpl %ecx, %eax
jge 0x8fa9
addl $-0x26, %eax
cltd
idivl %r15d
leaq 0x799b(%rip), %rdx      # 0x1091b
movl $0x2, %edi
movl $0x1, %esi
movl %eax, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x460c
movq 0x8(%rsp), %r9
movl 0xc(%r9), %eax
addl $-0x26, %eax
cltd
idivl %r15d
movl %eax, %r14d
movl %r14d, 0x50(%r13)
testl %r14d, %r14d
jle 0xaa7c
movl 0x20018(%r9), %eax
movsd 0x20020(%r9), %xmm0
movupd 0x20028(%r9), %xmm1
movapd 0x6279(%rip), %xmm3     # 0xf250
xorpd %xmm3, %xmm1
movsd 0x20038(%r9), %xmm2
xorpd %xmm3, %xmm2
movl %r14d, %ecx
movapd %xmm0, %xmm3
unpcklpd %xmm0, %xmm3            # xmm3 = xmm3[0],xmm0[0]
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x40(%r9), %rdx
xorl %esi, %esi
movzwl -0x8(%rdx), %edi
movzbl -0x9(%rdx), %r8d
shll $0x18, %r8d
orl %edi, %r8d
movzbl -0xa(%rdx), %edi
shll $0x10, %edi
orl %r8d, %edi
xorps %xmm4, %xmm4
cvtsi2sd %edi, %xmm4
movsd %xmm4, 0x58(%r13,%rsi)
movzwl -0x4(%rdx), %edi
movzbl -0x5(%rdx), %r8d
shll $0x18, %r8d
orl %edi, %r8d
movzbl -0x6(%rdx), %edi
shll $0x10, %edi
orl %r8d, %edi
xorps %xmm5, %xmm5
cvtsi2sd %edi, %xmm5
movsd %xmm5, 0x60(%r13,%rsi)
cmpl $0x3, %eax
jne 0x9078
movzwl (%rdx), %edi
movzbl -0x1(%rdx), %r8d
shll $0x18, %r8d
orl %edi, %r8d
movzbl -0x2(%rdx), %edi
shll $0x10, %edi
orl %r8d, %edi
xorps %xmm6, %xmm6
cvtsi2sd %edi, %xmm6
jmp 0x907f
movsd 0x68(%r13,%rsi), %xmm6
unpcklpd %xmm5, %xmm4            # xmm4 = xmm4[0],xmm5[0]
mulpd %xmm3, %xmm4
addpd %xmm1, %xmm4
movupd %xmm4, 0x58(%r13,%rsi)
mulsd %xmm0, %xmm6
addsd %xmm2, %xmm6
movsd %xmm6, 0x68(%r13,%rsi)
addq $0x18, %rsi
addq %r15, %rdx
cmpq %rsi, %rcx
jne 0x9001
jmp 0xaa7c
movl $0x60, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x7, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x34(%r9), %eax
movl %eax, 0x50(%r13)
movzwl 0x36(%r9), %eax
movl %eax, 0x54(%r13)
movzbl 0x38(%r9), %eax
movl %eax, 0x58(%r13)
movzbl 0x39(%r9), %eax
incl %eax
movl %eax, 0x5c(%r13)
jmp 0xaa7c
movl $0x60, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x7, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x34(%r9), %eax
movl %eax, 0x50(%r13)
movzwl 0x36(%r9), %eax
movl %eax, 0x54(%r13)
jmp 0xaa7c
movzwl 0x2e(%r9), %r14d
leal -0x4(,%r14,2), %eax
leal -0x1(,%r14,2), %ebx
testl %eax, %eax
cmovnsl %eax, %ebx
sarl $0x2, %ebx
movslq %ebx, %rax
leaq 0x54(,%rax,4), %rdi
movl $0x1, %esi
movq %r9, %r15
callq 0x2d20
movq %rax, %r13
movl $0x11, 0xc(%rax)
movq %r15, %rdi
movq %rax, %rsi
callq 0xab08
cmpl $0x4, %r14d
jb 0x93f1
cmpl $0x2, %ebx
movl $0x1, %eax
cmovgel %ebx, %eax
xorl %ecx, %ecx
movss 0x766d(%rip), %xmm0     # 0x10824
movq 0x8(%rsp), %r9
movzwl 0x36(%r9,%rcx,4), %edx
movzbl 0x35(%r9,%rcx,4), %esi
shll $0x18, %esi
orl %edx, %esi
movzbl 0x34(%r9,%rcx,4), %edx
shll $0x10, %edx
orl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x50(%r13,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x91bc
jmp 0xaa7c
cmpl $0x42, %r15d
jne 0x93cb
cmpl $0x18, %eax
jne 0x93cb
movq %r9, %rdi
callq 0xb45f
jmp 0x9dc1
movl $0x58, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x12, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x34(%r9), %eax
movl %eax, 0x50(%r13)
jmp 0xaa7c
xorl %eax, %eax
cmpl $0x2, 0x20018(%r9)
setne %al
shll $0x4, %eax
movzbl 0x4a(%r9,%rax), %r12d
leaq 0x90(%r12), %rdi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x6, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzbl 0x34(%r9), %eax
movl %eax, 0x50(%r13)
movzbl 0x35(%r9), %eax
movl %eax, 0x54(%r13)
movzwl 0x38(%r9), %eax
movzbl 0x37(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x36(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm1
movsd 0x20020(%r9), %xmm0
mulsd %xmm0, %xmm1
movsd 0x73d0(%rip), %xmm2     # 0x106a8
mulsd %xmm2, %xmm1
movsd 0x5f2c(%rip), %xmm3     # 0xf210
divsd %xmm3, %xmm1
movsd %xmm1, 0x58(%r13)
movzwl 0x3c(%r9), %eax
movzbl 0x3b(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x3a(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm2, %xmm1
divsd %xmm3, %xmm1
movsd %xmm1, 0x60(%r13)
cmpl $0x2, 0x20018(%r9)
jne 0xa0e5
movzwl 0x40(%r9), %eax
movzbl 0x3f(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x3e(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd 0x735a(%rip), %xmm1     # 0x106b0
movsd %xmm1, 0x68(%r13)
movzwl 0x44(%r9), %eax
movzbl 0x43(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x42(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x70(%r13)
movzwl 0x48(%r9), %eax
movzbl 0x47(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x46(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movsd 0x80(%r13), %xmm2
unpcklpd %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
movl $0x3c, %eax
jmp 0xa15a
cmpl $0x1, %eax
jne 0x93cb
movq %r9, %rdi
callq 0xb002
jmp 0x9dc1
movl $0x50, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x1, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
jmp 0xaa7c
movl $0xa0, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x5, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
leaq 0x68(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x34(%rax), %rax
movq %rax, 0x68(%r13)
callq 0x6f74
movq 0x8(%rsp), %rax
movsd 0x20020(%rax), %xmm0
mulsd 0x68(%r13), %xmm0
movsd %xmm0, 0x68(%r13)
leaq 0x70(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x3c(%rax), %rax
movq %rax, 0x70(%r13)
callq 0x6f74
movq 0x8(%rsp), %rdx
movsd 0x20020(%rdx), %xmm0
mulsd 0x70(%r13), %xmm0
movsd %xmm0, 0x70(%r13)
cmpl $0x2, 0x20018(%rdx)
jne 0xa225
movzwl 0x46(%rdx), %eax
movzbl 0x45(%rdx), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x44(%rdx), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x71ff(%rip), %xmm0     # 0x106b0
movsd %xmm0, 0x78(%r13)
leaq 0x50(%r13), %rdi
movq 0x48(%rdx), %rax
movq %rax, 0x50(%r13)
callq 0x6f74
movq %r13, %rdi
addq $0x58, %rdi
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rax
movq %rax, 0x58(%r13)
callq 0x6f74
movq 0x8(%rsp), %r9
jmp 0xa2ea
movl $0x68, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x9, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x5a(%r9), %eax
movl %eax, 0x50(%r13)
movl 0x54(%r9), %ecx
movl %ecx, 0x54(%r13)
movzwl 0x58(%r9), %ecx
movl %ecx, 0x58(%r13)
movzwl 0xa6(%r9), %ecx
movl %ecx, 0x5c(%r13)
cmpl $0x4, %eax
je 0xa9a2
cmpl $0x3, %eax
je 0xa992
cmpl $0x1, %eax
jne 0xaa7c
leaq 0xaa(%r9), %rdi
callq 0x2e41
movq 0x8(%rsp), %r9
movq %rax, 0x60(%r13)
jmp 0xaa7c
movl $0xa0, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x5, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %rsi
movzwl 0x36(%rsi), %eax
movzbl 0x35(%rsi), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x34(%rsi), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm0
divsd 0x70f2(%rip), %xmm0     # 0x106b0
movsd %xmm0, 0x90(%r13)
movsbl 0x39(%rsi), %ecx
testl %ecx, %ecx
js 0xa779
movzwl 0x3a(%rsi), %eax
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x38(%rsi), %eax
shll $0x10, %eax
orl %ecx, %eax
jmp 0xa796
movl $0x88, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0xb, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %rax
movzwl 0x30(%rax), %edi
leaq 0x54(%r13), %rsi
callq 0x7373
movq 0x8(%rsp), %rax
movzwl 0x32(%rax), %edi
leaq 0x57(%r13), %rsi
callq 0x7373
movq 0x8(%rsp), %r9
movzwl 0x36(%r9), %eax
movl %eax, 0x24(%r13)
movzwl 0x38(%r9), %eax
movw %ax, 0x60(%r13)
movzwl 0x3a(%r9), %eax
movw %ax, 0x62(%r13)
movzwl 0x3c(%r9), %eax
movw %ax, 0x64(%r13)
movzwl 0x3e(%r9), %eax
movw %ax, 0x66(%r13)
movzwl 0x40(%r9), %eax
movw %ax, 0x68(%r13)
movzwl 0x42(%r9), %eax
movw %ax, 0x6a(%r13)
movzwl 0x34(%r9), %eax
movl %eax, 0x5c(%r13)
leaq 0x6c(%r13), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, 0x6c(%r13)
movupd %xmm0, 0x78(%r13)
xorl %ebx, %ebx
movzwl 0x44(%r9,%rbx,2), %edi
movq %r14, %rsi
callq 0x7373
movq 0x8(%rsp), %r9
incq %rbx
addq $0x3, %r14
cmpq $0x9, %rbx
jne 0x969d
jmp 0xaa7c
movl $0x88, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x2, %ebx
movl %ebx, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movl %ebx, 0x50(%r13)
movl 0x20018(%r9), %eax
movzwl 0x36(%r9), %ecx
movzbl 0x35(%r9), %edx
shll $0x18, %edx
orl %ecx, %edx
movzbl 0x34(%r9), %ecx
shll $0x10, %ecx
orl %edx, %ecx
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x58(%r13)
movzwl 0x3a(%r9), %ecx
movzbl 0x39(%r9), %edx
shll $0x18, %edx
orl %ecx, %edx
movzbl 0x38(%r9), %ecx
shll $0x10, %ecx
orl %edx, %ecx
cvtsi2sd %ecx, %xmm2
movsd %xmm2, 0x60(%r13)
movzwl 0x3e(%r9), %ecx
movzbl 0x3d(%r9), %edx
shll $0x18, %edx
orl %ecx, %edx
movzbl 0x3c(%r9), %ecx
shll $0x10, %ecx
orl %edx, %ecx
cvtsi2sd %ecx, %xmm1
cmpl %ebx, %eax
jne 0xa347
movsd %xmm1, 0x70(%r13)
movzwl 0x42(%r9), %eax
movzbl 0x41(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x40(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm5
movapd %xmm1, %xmm3
movsd 0x68(%r13), %xmm1
movsd 0x80(%r13), %xmm4
jmp 0xa3b0
movl $0x110, %edi            # imm = 0x110
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x8, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %rax
movzwl 0x34(%rax), %eax
movl %eax, 0x50(%r13)
movq 0x8(%rsp), %rax
movzwl 0x36(%rax), %edi
leaq 0x54(%r13), %rsi
callq 0x7373
movq 0x8(%rsp), %rax
movzwl 0x38(%rax), %edi
leaq 0x57(%r13), %rsi
callq 0x7373
movq 0x8(%rsp), %r9
movzwl 0x3a(%r9), %eax
movw %ax, 0x5c(%r13)
movzwl 0x3c(%r9), %eax
movw %ax, 0x5e(%r13)
movzwl 0x3e(%r9), %eax
movw %ax, 0x60(%r13)
movzwl 0x40(%r9), %eax
movw %ax, 0x62(%r13)
movzwl 0x42(%r9), %eax
movw %ax, 0x64(%r13)
movl 0x20018(%r9), %eax
movzwl 0x46(%r9), %ecx
movzbl 0x45(%r9), %edx
shll $0x18, %edx
orl %ecx, %edx
movzbl 0x44(%r9), %ecx
shll $0x10, %ecx
orl %edx, %ecx
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x68(%r13)
movzwl 0x4a(%r9), %ecx
movzbl 0x49(%r9), %edx
shll $0x18, %edx
orl %ecx, %edx
movzbl 0x48(%r9), %ecx
shll $0x10, %ecx
orl %edx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x70(%r13)
movzwl 0x4e(%r9), %ecx
movzbl 0x4d(%r9), %edx
shll $0x18, %edx
orl %ecx, %edx
movzbl 0x4c(%r9), %ecx
shll $0x10, %ecx
orl %edx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
cmpl $0x2, %eax
jne 0xa417
movsd %xmm0, 0x80(%r13)
movzwl 0x52(%r9), %eax
movzbl 0x51(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x50(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x88(%r13)
movzwl 0x56(%r9), %eax
movzbl 0x55(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x54(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm1
movsd 0x6333(%rip), %xmm0     # 0xfc30
mulsd %xmm0, %xmm1
movsd %xmm1, 0x98(%r13)
movzwl 0x5a(%r9), %eax
movzbl 0x59(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x58(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xa0(%r13)
movzwl 0x5e(%r9), %eax
movzbl 0x5d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x5c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xa8(%r13)
movzwl 0x62(%r9), %eax
movzbl 0x61(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x60(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xb0(%r13)
movzwl 0x66(%r9), %eax
movzbl 0x65(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x64(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xe0(%r13)
movzwl 0x6a(%r9), %eax
movzbl 0x69(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x68(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xe8(%r13)
movzwl 0x56(%r9), %eax
movzbl 0x55(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x54(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movzwl 0x5a(%r9), %eax
movzbl 0x59(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x58(%r9), %ebx
shll $0x10, %ebx
orl %ecx, %ebx
cvtsi2sd %ebx, %xmm2
movzwl 0x5e(%r9), %eax
movzbl 0x5d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x5c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm3
movzwl 0x62(%r9), %eax
movzbl 0x61(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x60(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm4
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm3, %xmm3
addsd %xmm1, %xmm3
mulsd %xmm4, %xmm4
mulsd %xmm2, %xmm2
xorpd %xmm1, %xmm1
ucomisd %xmm3, %xmm1
addsd %xmm4, %xmm2
unpcklpd %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0]
sqrtpd %xmm3, %xmm2
movapd %xmm2, %xmm3
divpd 0x6c7e(%rip), %xmm3     # 0x10710
movupd %xmm3, 0xf8(%r13)
jae 0x9ab7
divsd %xmm2, %xmm0
callq 0x22b0
movq 0x8(%rsp), %r9
movapd %xmm0, %xmm1
mulsd 0x6161(%rip), %xmm1     # 0xfc18
divsd 0x6c01(%rip), %xmm1     # 0x106c0
testl %ebx, %ebx
je 0xa9be
movsd 0x6be9(%rip), %xmm0     # 0x106b8
subsd %xmm1, %xmm0
movsd %xmm0, 0x108(%r13)
jmp 0xa9c7
movl $0x60, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0xf, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x36(%r9), %eax
movzbl 0x35(%r9), %ecx
shll $0x18, %ecx
orq %rax, %rcx
movzbl 0x34(%r9), %eax
shll $0x10, %eax
orq %rcx, %rax
movq %rax, 0x50(%r13)
movb 0x38(%r9), %al
andb $0xf, %al
addb $0x2, %al
movb %al, 0x58(%r13)
movb 0x38(%r9), %al
andb $-0x10, %al
movb %al, 0x59(%r13)
movb 0x39(%r9), %al
movb %al, 0x5a(%r13)
movzwl 0x3a(%r9), %eax
movw %ax, 0x5c(%r13)
movzwl 0x3c(%r9), %eax
movw %ax, 0x5e(%r13)
jmp 0xaa7c
movl $0xa8, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0xc, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %rax
movzwl 0x34(%rax), %eax
movw %ax, 0x50(%r13)
movq 0x8(%rsp), %rax
movzwl 0x38(%rax), %eax
movq 0x8(%rsp), %rcx
movzbl 0x37(%rcx), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movq 0x8(%rsp), %rax
movzbl 0x36(%rax), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x54(%r13)
movq 0x8(%rsp), %rax
movzwl 0x3c(%rax), %eax
movq 0x8(%rsp), %rcx
movzbl 0x3b(%rcx), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movq 0x8(%rsp), %rax
movzbl 0x3a(%rax), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x58(%r13)
movq 0x8(%rsp), %rax
movzwl 0x40(%rax), %eax
movq 0x8(%rsp), %rcx
movzbl 0x3f(%rcx), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movq 0x8(%rsp), %rax
movzbl 0x3e(%rax), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x5c(%r13)
movq 0x8(%rsp), %rax
movzwl 0x44(%rax), %eax
movq 0x8(%rsp), %rcx
movzbl 0x43(%rcx), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movq 0x8(%rsp), %rax
movzbl 0x42(%rax), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x60(%r13)
leaq 0x68(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x46(%rax), %rax
movq %rax, 0x68(%r13)
callq 0x6f74
leaq 0x70(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x4e(%rax), %rax
movq %rax, 0x70(%r13)
callq 0x6f74
leaq 0x78(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x56(%rax), %rax
movq %rax, 0x78(%r13)
callq 0x6f74
leaq 0x80(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x5e(%rax), %rax
movq %rax, 0x80(%r13)
callq 0x6f74
leaq 0x88(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x66(%rax), %rax
movq %rax, 0x88(%r13)
callq 0x6f74
leaq 0x90(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x6e(%rax), %rax
movq %rax, 0x90(%r13)
callq 0x6f74
leaq 0x98(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x76(%rax), %rax
movq %rax, 0x98(%r13)
callq 0x6f74
leaq 0xa0(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x7e(%rax), %rax
movq %rax, 0xa0(%r13)
callq 0x6f74
movq 0x8(%rsp), %r9
movsd 0x20020(%r9), %xmm0
movsd 0x80(%r13), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x80(%r13)
movsd 0xa0(%r13), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xa0(%r13)
movupd 0x20028(%r9), %xmm1
movapd %xmm0, %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
movupd 0x68(%r13), %xmm3
movupd 0x88(%r13), %xmm4
mulpd %xmm2, %xmm3
subpd %xmm1, %xmm3
movupd %xmm3, 0x68(%r13)
movsd 0x20038(%r9), %xmm3
movsd 0x78(%r13), %xmm5
mulsd %xmm0, %xmm5
subsd %xmm3, %xmm5
movsd %xmm5, 0x78(%r13)
mulpd %xmm2, %xmm4
subpd %xmm1, %xmm4
movupd %xmm4, 0x88(%r13)
mulsd 0x98(%r13), %xmm0
subsd %xmm3, %xmm0
movsd %xmm0, 0x98(%r13)
jmp 0xaa7c
movq %r9, %rdi
callq 0xb088
movq 0x8(%rsp), %r9
movq %rax, %r13
jmp 0xaa7c
movl $0xa0, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0xd, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x34(%r9), %eax
movl %eax, 0x50(%r13)
movzwl 0x36(%r9), %eax
movl %eax, 0x54(%r13)
movzwl 0x38(%r9), %eax
movl %eax, 0x58(%r13)
movzbl 0x3a(%r9), %eax
movw %ax, 0x5c(%r13)
movzbl 0x3b(%r9), %eax
movw %ax, 0x5e(%r13)
movzbl 0x3c(%r9), %eax
movw %ax, 0x60(%r13)
movzbl 0x3d(%r9), %eax
movw %ax, 0x62(%r13)
movzwl 0x44(%r9), %eax
movzbl 0x43(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x42(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm1
movsd 0x20020(%r9), %xmm0
mulsd %xmm0, %xmm1
movsd 0x683a(%rip), %xmm2     # 0x106a8
mulsd %xmm2, %xmm1
movsd 0x5396(%rip), %xmm3     # 0xf210
divsd %xmm3, %xmm1
movsd %xmm1, 0x70(%r13)
movzwl 0x48(%r9), %eax
movzbl 0x47(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x46(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm2, %xmm1
divsd %xmm3, %xmm1
movsd %xmm1, 0x78(%r13)
cmpl $0x2, 0x20018(%r9)
jne 0xa6ca
movzwl 0x4c(%r9), %eax
movzbl 0x4b(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x4a(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd 0x67c4(%rip), %xmm1     # 0x106b0
movsd %xmm1, 0x80(%r13)
movzwl 0x50(%r9), %eax
movzbl 0x4f(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x4e(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x88(%r13)
movzwl 0x54(%r9), %eax
movzbl 0x53(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x52(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movsd 0x98(%r13), %xmm2
jmp 0xa73c
movl $0x70, %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0xe, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x36(%r9), %eax
movzbl 0x35(%r9), %ecx
shll $0x18, %ecx
orq %rax, %rcx
movzbl 0x34(%r9), %eax
shll $0x10, %eax
orq %rcx, %rax
movq %rax, 0x50(%r13)
movb 0x39(%r9), %al
movb %al, 0x58(%r13)
movb 0x38(%r9), %al
andb $0xf, %al
addb $0x2, %al
movb %al, 0x59(%r13)
movzbl 0x38(%r9), %eax
andl $-0x10, %eax
movw %ax, 0x5a(%r13)
movzwl 0x3a(%r9), %eax
movw %ax, 0x5c(%r13)
movzwl 0x3c(%r9), %eax
movw %ax, 0x5e(%r13)
movzwl 0x3e(%r9), %eax
movw %ax, 0x60(%r13)
movb 0x40(%r9), %al
andb $0xf, %al
addb $0x2, %al
movb %al, 0x62(%r13)
movzbl 0x40(%r9), %eax
andl $-0x10, %eax
movw %ax, 0x64(%r13)
movzwl 0x42(%r9), %eax
movw %ax, 0x66(%r13)
movzwl 0x44(%r9), %eax
movw %ax, 0x68(%r13)
movzwl 0x46(%r9), %eax
movw %ax, 0x6a(%r13)
movzbl 0x48(%r9), %eax
movzbl 0x49(%r9), %ecx
imull $0x22c, %ecx, %ecx      # imm = 0x22C
addl %eax, %ecx
movw %cx, 0x6c(%r13)
jmp 0xaa7c
movzwl 0x36(%r9), %ebx
leal (%rbx,%rbx,2), %eax
leal 0x58(,%rax,8), %edi
movl $0x1, %esi
callq 0x2d20
movq %rax, %r13
movl $0x10, 0xc(%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xab08
movq 0x8(%rsp), %r9
movzwl 0x34(%r9), %eax
movw %ax, 0x50(%r13)
movw %bx, 0x52(%r13)
movswl %bx, %eax
testl %eax, %eax
jle 0xaa7c
movl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq 0x3e(%r9), %rcx
xorl %edx, %edx
movzwl -0x4(%rcx), %esi
movzbl -0x5(%rcx), %edi
shll $0x18, %edi
orl %esi, %edi
movzbl -0x6(%rcx), %esi
shll $0x10, %esi
orl %edi, %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x58(%r13,%rdx,8)
movzwl (%rcx), %esi
movzbl -0x1(%rcx), %edi
shll $0x18, %edi
orl %esi, %edi
movzbl -0x2(%rcx), %esi
shll $0x10, %esi
orl %edi, %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x60(%r13,%rdx,8)
movq $0x0, 0x68(%r13,%rdx,8)
addq $0x3, %rdx
addq $0x8, %rcx
cmpq %rdx, %rax
jne 0xa083
jmp 0xaa7c
movzwl 0x50(%r9), %eax
movzbl 0x4f(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x4e(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x70(%r13)
movzwl 0x54(%r9), %eax
movzbl 0x53(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x52(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movsd %xmm3, 0x78(%r13)
movzwl 0x58(%r9), %eax
movzbl 0x57(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x56(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
unpcklpd %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
movl $0x4c, %eax
movupd 0x20028(%r9), %xmm3
mulsd %xmm0, %xmm2
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd %xmm1, %xmm0
subpd %xmm3, %xmm0
movupd %xmm0, 0x70(%r13)
subsd 0x20038(%r9), %xmm2
movsd %xmm2, 0x80(%r13)
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax), %rsi
cmpb $-0x1, 0x10(%r9,%rax)
jne 0xa200
cmpb $-0x3, 0x1(%rsi)
jne 0xa200
xorl %eax, %eax
cmpb $0x4, %r12b
jb 0xa1f2
shrb %r12b
movzbl %r12b, %ecx
decl %ecx
xorl %edx, %edx
movzwl 0x2(%rsi,%rdx,2), %edi
movl %eax, %r8d
cmpl $0xff, %edi
ja 0xa1d4
movb %dil, 0x88(%r13,%r8)
movl $0x1, %edi
jmp 0xa1e6
rolw $0x8, %di
movw %di, 0x88(%r13,%r8)
movl $0x2, %edi
addl %edi, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0xa1b5
movl %eax, %eax
movb $0x0, 0x88(%r13,%rax)
jmp 0xaa7c
movq %r13, %rdi
addq $0x88, %rdi
movq %r12, %rdx
callq 0x2230
movq 0x8(%rsp), %r9
movb $0x0, 0x88(%r13,%r12)
jmp 0xaa7c
leaq 0x50(%r13), %rdi
movq 0x54(%rdx), %rax
movq %rax, 0x50(%r13)
callq 0x6f74
leaq 0x58(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x5c(%rax), %rax
movq %rax, 0x58(%r13)
callq 0x6f74
movq %r13, %rdi
addq $0x60, %rdi
movq 0x8(%rsp), %rax
movq 0x64(%rax), %rax
movq %rax, 0x60(%r13)
callq 0x6f74
movq 0x8(%rsp), %r9
movzwl 0x46(%r9), %eax
movzbl 0x45(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x44(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x80(%r13)
movzwl 0x4a(%r9), %eax
movzbl 0x49(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x48(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x84(%r13)
movzwl 0x4e(%r9), %eax
movzbl 0x4d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x4c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x88(%r13)
movzwl 0x52(%r9), %eax
movzbl 0x51(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x50(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x8c(%r13)
movsd 0x20020(%r9), %xmm0
movupd 0x50(%r13), %xmm1
movupd 0x20028(%r9), %xmm2
movapd %xmm0, %xmm3
unpcklpd %xmm0, %xmm3            # xmm3 = xmm3[0],xmm0[0]
mulpd %xmm1, %xmm3
subpd %xmm2, %xmm3
movupd %xmm3, 0x50(%r13)
mulsd 0x60(%r13), %xmm0
subsd 0x20038(%r9), %xmm0
movsd %xmm0, 0x60(%r13)
xorpd %xmm0, %xmm0
movhpd 0x637f(%rip), %xmm0     # xmm0 = xmm0[0],mem[0]
movupd %xmm0, 0x90(%r13)
jmp 0xaa7c
movsd %xmm1, 0x68(%r13)
movzwl 0x42(%r9), %eax
movzbl 0x41(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x40(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm3
movsd %xmm3, 0x70(%r13)
movzwl 0x46(%r9), %eax
movzbl 0x45(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x44(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm5
movsd %xmm5, 0x78(%r13)
movzwl 0x4a(%r9), %eax
movzbl 0x49(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x48(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm4
unpcklpd %xmm5, %xmm3            # xmm3 = xmm3[0],xmm5[0]
movsd 0x20020(%r9), %xmm5
movupd 0x20028(%r9), %xmm6
unpcklpd %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
mulsd %xmm5, %xmm1
mulsd %xmm5, %xmm4
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
mulpd %xmm5, %xmm0
subpd %xmm6, %xmm0
movupd %xmm0, 0x58(%r13)
movsd 0x20038(%r9), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, 0x68(%r13)
mulpd %xmm3, %xmm5
subpd %xmm6, %xmm5
movupd %xmm5, 0x70(%r13)
subsd %xmm0, %xmm4
movsd %xmm4, 0x80(%r13)
jmp 0xaa7c
movsd %xmm0, 0x78(%r13)
movzwl 0x52(%r9), %eax
movzbl 0x51(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x50(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x80(%r13)
movzwl 0x56(%r9), %eax
movzbl 0x55(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x54(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x88(%r13)
movzwl 0x5a(%r9), %eax
movzbl 0x59(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x58(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x90(%r13)
movzwl 0x5e(%r9), %eax
movzbl 0x5d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x5c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm1
movsd 0x5773(%rip), %xmm0     # 0xfc30
mulsd %xmm0, %xmm1
movsd %xmm1, 0x98(%r13)
movzwl 0x62(%r9), %eax
movzbl 0x61(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x60(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xa0(%r13)
movzwl 0x66(%r9), %eax
movzbl 0x65(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x64(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xa8(%r13)
movzwl 0x6a(%r9), %eax
movzbl 0x69(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x68(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xb0(%r13)
movzwl 0x6e(%r9), %eax
movzbl 0x6d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x6c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xb8(%r13)
movzwl 0x72(%r9), %eax
movzbl 0x71(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x70(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xc0(%r13)
movzwl 0x76(%r9), %eax
movzbl 0x75(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x74(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xc8(%r13)
movzwl 0x7a(%r9), %eax
movzbl 0x79(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x78(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xd0(%r13)
movzwl 0x7e(%r9), %eax
movzbl 0x7d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x7c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0xd8(%r13)
movzwl 0x82(%r9), %eax
movzbl 0x81(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x80(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xe0(%r13)
movzwl 0x86(%r9), %eax
movzbl 0x85(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x84(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xe8(%r13)
movzwl 0x8a(%r9), %eax
movzbl 0x89(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x88(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xf0(%r13)
jmp 0xa9c7
movzwl 0x5c(%r9), %eax
movzbl 0x5b(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x5a(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x88(%r13)
movzwl 0x60(%r9), %eax
movzbl 0x5f(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x5e(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movsd %xmm3, 0x90(%r13)
movzwl 0x64(%r9), %eax
movzbl 0x63(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x62(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
unpcklpd %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
movupd 0x20028(%r9), %xmm3
mulsd %xmm0, %xmm2
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd %xmm1, %xmm0
subpd %xmm3, %xmm0
movupd %xmm0, 0x88(%r13)
subsd 0x20038(%r9), %xmm2
movsd %xmm2, 0x98(%r13)
jmp 0xaa7c
andb $0x7f, %cl
movb %cl, 0x39(%rsi)
movzwl 0x3a(%rsi), %edx
negb %cl
movzbl %cl, %eax
shll $0x18, %eax
movzbl 0x38(%rsi), %ecx
shll $0x10, %ecx
orl %edx, %ecx
subl %ecx, %eax
testl %eax, %eax
je 0xa7ab
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x5f07(%rip), %xmm0     # 0x106b0
jmp 0xa7b3
movsd 0x5f05(%rip), %xmm0     # 0x106b8
movsd %xmm0, 0x98(%r13)
leaq 0x68(%r13), %rdi
movq 0x3c(%rsi), %rax
movq %rax, 0x68(%r13)
callq 0x6f74
movq 0x8(%rsp), %rax
movsd 0x20020(%rax), %xmm0
mulsd 0x68(%r13), %xmm0
movsd %xmm0, 0x68(%r13)
leaq 0x70(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x44(%rax), %rax
movq %rax, 0x70(%r13)
callq 0x6f74
movq 0x8(%rsp), %rdx
movsd 0x20020(%rdx), %xmm0
mulsd 0x70(%r13), %xmm0
movsd %xmm0, 0x70(%r13)
cmpl $0x2, 0x20018(%rdx)
jne 0xa87d
movzwl 0x4e(%rdx), %eax
movzbl 0x4d(%rdx), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x4c(%rdx), %eax
shll $0x10, %eax
orl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x5e6d(%rip), %xmm0     # 0x106b0
movsd %xmm0, 0x78(%r13)
leaq 0x50(%r13), %rdi
movq 0x50(%rdx), %rax
movq %rax, 0x50(%r13)
callq 0x6f74
movq %r13, %rdi
addq $0x58, %rdi
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rax
movq %rax, 0x58(%r13)
callq 0x6f74
movq 0x8(%rsp), %r9
jmp 0xa94a
movq $0x0, 0x78(%r13)
leaq 0x50(%r13), %rdi
movq 0x5c(%rdx), %rax
movq %rax, 0x50(%r13)
callq 0x6f74
leaq 0x58(%r13), %rdi
movq 0x8(%rsp), %rax
movq 0x64(%rax), %rax
movq %rax, 0x58(%r13)
callq 0x6f74
movq %r13, %rdi
addq $0x60, %rdi
movq 0x8(%rsp), %rax
movq 0x6c(%rax), %rax
movq %rax, 0x60(%r13)
callq 0x6f74
movq 0x8(%rsp), %r9
movzwl 0x4e(%r9), %eax
movzbl 0x4d(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x4c(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x80(%r13)
movzwl 0x52(%r9), %eax
movzbl 0x51(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x50(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x84(%r13)
movzwl 0x56(%r9), %eax
movzbl 0x55(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x54(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x88(%r13)
movzwl 0x5a(%r9), %eax
movzbl 0x59(%r9), %ecx
shll $0x18, %ecx
orl %eax, %ecx
movzbl 0x58(%r9), %eax
shll $0x10, %eax
orl %ecx, %eax
movl %eax, 0x8c(%r13)
movsd 0x20020(%r9), %xmm0
movupd 0x50(%r13), %xmm1
movupd 0x20028(%r9), %xmm2
movapd %xmm0, %xmm3
unpcklpd %xmm0, %xmm3            # xmm3 = xmm3[0],xmm0[0]
mulpd %xmm1, %xmm3
subpd %xmm2, %xmm3
movupd %xmm3, 0x50(%r13)
mulsd 0x60(%r13), %xmm0
subsd 0x20038(%r9), %xmm0
movsd %xmm0, 0x60(%r13)
jmp 0xaa7c
movl 0xaa(%r9), %eax
movl %eax, 0x60(%r13)
jmp 0xaa7c
movq %r13, %rdi
addq $0x60, %rdi
movq 0xaa(%r9), %rax
movq %rax, 0x60(%r13)
callq 0x6f74
jmp 0x93f1
movsd %xmm1, 0x108(%r13)
movsd 0x20020(%r9), %xmm0
movupd 0x20028(%r9), %xmm4
movapd 0x486f(%rip), %xmm1     # 0xf250
movapd %xmm0, %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
movupd 0x68(%r13), %xmm5
movupd 0xe0(%r13), %xmm3
mulpd %xmm2, %xmm5
subpd %xmm4, %xmm5
mulpd %xmm2, %xmm3
subpd %xmm4, %xmm3
xorpd %xmm1, %xmm4
movupd 0x78(%r13), %xmm6
movupd 0x88(%r13), %xmm7
movupd %xmm5, 0x68(%r13)
movsd 0x20038(%r9), %xmm5
xorpd %xmm5, %xmm1
movapd %xmm1, %xmm8
unpcklpd %xmm4, %xmm8            # xmm8 = xmm8[0],xmm4[0]
mulpd %xmm2, %xmm6
addpd %xmm8, %xmm6
movupd %xmm6, 0x78(%r13)
shufpd $0x1, %xmm1, %xmm4      # xmm4 = xmm4[1],xmm1[0]
mulpd %xmm2, %xmm7
addpd %xmm4, %xmm7
movupd %xmm7, 0x88(%r13)
movupd %xmm3, 0xe0(%r13)
mulsd 0xf0(%r13), %xmm0
subsd %xmm5, %xmm0
movsd %xmm0, 0xf0(%r13)
cmpl $0x1, 0xc(%r13)
je 0xaa8d
testb $0x1, 0x2001c(%r9)
je 0xaab4
movslq 0xc(%r9), %rdi
movl %edi, 0x40(%r13)
callq 0x2d6b
movq %rax, 0x48(%r13)
movslq 0x40(%r13), %rdx
movq %rax, %rdi
movq 0x18(%rsp), %rsi
callq 0x2230
movq 0x8(%rsp), %r9
movl 0x8(%r9), %eax
decl %eax
movl %eax, 0x8(%r13)
movq (%r9), %rdi
movq %r9, %rbx
callq 0x6e13
movl 0xc(%rbx), %ecx
subl %ecx, %eax
movl %eax, (%r13)
movl %ecx, 0x4(%r13)
movq %r13, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq