// File: FreeSlave[P]vhlt/hlbsp/merge.cpp
// Function: TryMerge(face_s*, face_s*)
static face_t*  TryMerge(face_t* f1, face_t* f2)
{
    vec_t*          p1;
    vec_t*          p2;
    vec_t*          p3;
    vec_t*          p4;
    vec_t*          back;
    face_t*         newf;
    int             i;
    int             j;
    int             k;
    int             l;
    vec3_t          normal;
    vec3_t          delta;
    vec3_t          planenormal;
    vec_t           dot;
    dplane_t*       plane;
    bool            keep1;
    bool            keep2;

    if (f1->numpoints == -1 || f2->numpoints == -1)
    {
        return NULL;
    }    
    if (f1->texturenum != f2->texturenum)
    {
        return NULL;
    }
    if (f1->contents != f2->contents)
    {
        return NULL;
    }
#ifdef HLBSP_TryMerge_PLANENUM_FIX
	if (f1->planenum != f2->planenum)
	{
		return NULL;
	}
	if (f1->facestyle != f2->facestyle)
	{
		return NULL;
	}
#endif
#ifdef ZHLT_DETAILBRUSH
	if (f1->detaillevel != f2->detaillevel)
	{
		return NULL;
	}
#endif

    //
    // find a common edge
    //      
    p1 = p2 = NULL;                                        // shut up the compiler
    j = 0;

    for (i = 0; i < f1->numpoints; i++)
    {
        p1 = f1->pts[i];
        p2 = f1->pts[(i + 1) % f1->numpoints];
        for (j = 0; j < f2->numpoints; j++)
        {
            p3 = f2->pts[j];
            p4 = f2->pts[(j + 1) % f2->numpoints];
            for (k = 0; k < 3; k++)
            {
#ifdef HLBSP_TryMerge_PRECISION_FIX
                if (fabs(p1[k] - p4[k]) > ON_EPSILON)
                {
                    break;
                }
                if (fabs(p2[k] - p3[k]) > ON_EPSILON)
                {
                    break;
                }
#else
                if (fabs(p1[k] - p4[k]) > EQUAL_EPSILON)
                {
                    break;
                }
                if (fabs(p2[k] - p3[k]) > EQUAL_EPSILON)
                {
                    break;
                }
#endif
            }
            if (k == 3)
            {
                break;
            }
        }
        if (j < f2->numpoints)
        {
            break;
        }
    }

    if (i == f1->numpoints)
    {
        return NULL;                                       // no matching edges
    }

    //
    // check slope of connected lines
    // if the slopes are colinear, the point can be removed
    //
    plane = &g_dplanes[f1->planenum];
    VectorCopy(plane->normal, planenormal);

    back = f1->pts[(i + f1->numpoints - 1) % f1->numpoints];
    VectorSubtract(p1, back, delta);
    CrossProduct(planenormal, delta, normal);
    VectorNormalize(normal);

    back = f2->pts[(j + 2) % f2->numpoints];
    VectorSubtract(back, p1, delta);
    dot = DotProduct(delta, normal);
    if (dot > CONTINUOUS_EPSILON)
    {
        return NULL;                                       // not a convex polygon
    }
    keep1 = dot < -CONTINUOUS_EPSILON;

    back = f1->pts[(i + 2) % f1->numpoints];
    VectorSubtract(back, p2, delta);
    CrossProduct(planenormal, delta, normal);
    VectorNormalize(normal);

    back = f2->pts[(j + f2->numpoints - 1) % f2->numpoints];
    VectorSubtract(back, p2, delta);
    dot = DotProduct(delta, normal);
    if (dot > CONTINUOUS_EPSILON)
    {
        return NULL;                                       // not a convex polygon
    }
    keep2 = dot < -CONTINUOUS_EPSILON;

    //
    // build the new polygon
    //
    if (f1->numpoints + f2->numpoints > MAXEDGES)
    {
        //              Error ("TryMerge: too many edges!");
        return NULL;
    }

    newf = NewFaceFromFace(f1);

    // copy first polygon
    for (k = (i + 1) % f1->numpoints; k != i; k = (k + 1) % f1->numpoints)
    {
        if (k == (i + 1) % f1->numpoints && !keep2)
        {
            continue;
        }

        VectorCopy(f1->pts[k], newf->pts[newf->numpoints]);
        newf->numpoints++;
    }

    // copy second polygon
    for (l = (j + 1) % f2->numpoints; l != j; l = (l + 1) % f2->numpoints)
    {
        if (l == (j + 1) % f2->numpoints && !keep1)
        {
            continue;
        }
        VectorCopy(f2->pts[l], newf->pts[newf->numpoints]);
        newf->numpoints++;
    }

    return newf;
}

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movq %rdi, 0xf8(%rsp)
movq %rsi, 0xf0(%rsp)
movq 0xf8(%rsp), %rax
cmpl $-0x1, 0x2c(%rax)
je 0x20a23
movq 0xf0(%rsp), %rax
cmpl $-0x1, 0x2c(%rax)
jne 0x20a34
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rax
movl 0xc(%rax), %eax
movq 0xf0(%rsp), %rcx
cmpl 0xc(%rcx), %eax
je 0x20a5d
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rax
movl 0x10(%rax), %eax
movq 0xf0(%rsp), %rcx
cmpl 0x10(%rcx), %eax
je 0x20a86
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rax
movl 0x8(%rax), %eax
movq 0xf0(%rsp), %rcx
cmpl 0x8(%rcx), %eax
je 0x20aaf
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rax
movl 0x30(%rax), %eax
movq 0xf0(%rsp), %rcx
cmpl 0x30(%rcx), %eax
je 0x20ad8
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rax
movl 0x14(%rax), %eax
movq 0xf0(%rsp), %rcx
cmpl 0x14(%rcx), %eax
je 0x20b01
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq $0x0, 0xe0(%rsp)
movq $0x0, 0xe8(%rsp)
movl $0x0, 0xb8(%rsp)
movl $0x0, 0xbc(%rsp)
movl 0xbc(%rsp), %eax
movq 0xf8(%rsp), %rcx
cmpl 0x2c(%rcx), %eax
jge 0x20d39
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movslq 0xbc(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xe8(%rsp)
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x30(%rsp)
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movq 0xf8(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movq 0x30(%rsp), %rax
movslq %edx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xe0(%rsp)
movl $0x0, 0xb8(%rsp)
movl 0xb8(%rsp), %eax
movq 0xf0(%rsp), %rcx
cmpl 0x2c(%rcx), %eax
jge 0x20d0b
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movslq 0xb8(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xd8(%rsp)
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x28(%rsp)
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movq 0xf0(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movq 0x28(%rsp), %rax
movslq %edx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xd0(%rsp)
movl $0x0, 0xb4(%rsp)
cmpl $0x3, 0xb4(%rsp)
jge 0x20ce7
movq 0xe8(%rsp), %rax
movslq 0xb4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0xd0(%rsp), %rax
movslq 0xb4(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
movaps 0x187fa(%rip), %xmm1    # 0x39470
pand %xmm1, %xmm0
movsd 0x1897e(%rip), %xmm1    # 0x39600
ucomisd %xmm1, %xmm0
jbe 0x20c8a
jmp 0x20ce7
movq 0xe0(%rsp), %rax
movslq 0xb4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0xd8(%rsp), %rax
movslq 0xb4(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
movaps 0x187b5(%rip), %xmm1    # 0x39470
pand %xmm1, %xmm0
movsd 0x18939(%rip), %xmm1    # 0x39600
ucomisd %xmm1, %xmm0
jbe 0x20ccf
jmp 0x20ce7
jmp 0x20cd1
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x20c37
cmpl $0x3, 0xb4(%rsp)
jne 0x20cf3
jmp 0x20d0b
jmp 0x20cf5
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb8(%rsp)
jmp 0x20bb3
movl 0xb8(%rsp), %eax
movq 0xf0(%rsp), %rcx
cmpl 0x2c(%rcx), %eax
jge 0x20d21
jmp 0x20d39
jmp 0x20d23
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xbc(%rsp)
jmp 0x20b2f
movl 0xbc(%rsp), %eax
movq 0xf8(%rsp), %rcx
cmpl 0x2c(%rcx), %eax
jne 0x20d5e
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rax
movslq 0x8(%rax), %rcx
leaq 0x20cecbf(%rip), %rax   # 0x20efa30
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x40(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x58(%rsp)
movq 0x40(%rsp), %rax
movsd 0x10(%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x18(%rsp)
movl 0xbc(%rsp), %eax
movq 0xf8(%rsp), %rcx
addl 0x2c(%rcx), %eax
subl $0x1, %eax
movq 0xf8(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movq 0x18(%rsp), %rax
movslq %edx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xc8(%rsp)
movq 0xe8(%rsp), %rax
movsd (%rax), %xmm0
movq 0xc8(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0xe8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xc8(%rsp), %rax
subsd 0x8(%rax), %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0xe8(%rsp), %rax
movsd 0x10(%rax), %xmm0
movq 0xc8(%rsp), %rax
subsd 0x10(%rax), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x58(%rsp), %xmm0
movsd 0x80(%rsp), %xmm2
movsd 0x60(%rsp), %xmm1
mulsd 0x78(%rsp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x90(%rsp)
movsd 0x60(%rsp), %xmm0
movsd 0x70(%rsp), %xmm2
movsd 0x50(%rsp), %xmm1
mulsd 0x80(%rsp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x50(%rsp), %xmm0
movsd 0x78(%rsp), %xmm2
movsd 0x58(%rsp), %xmm1
mulsd 0x70(%rsp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x11bc0
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x20(%rsp)
movl 0xb8(%rsp), %eax
addl $0x2, %eax
movq 0xf0(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movq 0x20(%rsp), %rax
movslq %edx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movsd (%rax), %xmm0
movq 0xe8(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0xc8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xe8(%rsp), %rax
subsd 0x8(%rax), %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0xc8(%rsp), %rax
movsd 0x10(%rax), %xmm0
movq 0xe8(%rsp), %rax
subsd 0x10(%rax), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x70(%rsp), %xmm1
movsd 0x90(%rsp), %xmm2
movsd 0x78(%rsp), %xmm0
mulsd 0x98(%rsp), %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movsd 0x80(%rsp), %xmm0
movsd 0xa0(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x48(%rsp), %xmm0
movsd 0x185e4(%rip), %xmm1    # 0x39600
ucomisd %xmm1, %xmm0
jbe 0x21033
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movsd 0x185dd(%rip), %xmm0    # 0x39618
ucomisd 0x48(%rsp), %xmm0
seta %al
andb $0x1, %al
movb %al, 0x3f(%rsp)
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x8(%rsp)
movl 0xbc(%rsp), %eax
addl $0x2, %eax
movq 0xf8(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movq 0x8(%rsp), %rax
movslq %edx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movsd (%rax), %xmm0
movq 0xe0(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0xc8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xe0(%rsp), %rax
subsd 0x8(%rax), %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0xc8(%rsp), %rax
movsd 0x10(%rax), %xmm0
movq 0xe0(%rsp), %rax
subsd 0x10(%rax), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x58(%rsp), %xmm0
movsd 0x80(%rsp), %xmm2
movsd 0x60(%rsp), %xmm1
mulsd 0x78(%rsp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x90(%rsp)
movsd 0x60(%rsp), %xmm0
movsd 0x70(%rsp), %xmm2
movsd 0x50(%rsp), %xmm1
mulsd 0x80(%rsp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x50(%rsp), %xmm0
movsd 0x78(%rsp), %xmm2
movsd 0x58(%rsp), %xmm1
mulsd 0x70(%rsp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x11bc0
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x10(%rsp)
movl 0xb8(%rsp), %eax
movq 0xf0(%rsp), %rcx
addl 0x2c(%rcx), %eax
subl $0x1, %eax
movq 0xf0(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movq 0x10(%rsp), %rax
movslq %edx, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movsd (%rax), %xmm0
movq 0xe0(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0xc8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xe0(%rsp), %rax
subsd 0x8(%rax), %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0xc8(%rsp), %rax
movsd 0x10(%rax), %xmm0
movq 0xe0(%rsp), %rax
subsd 0x10(%rax), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x70(%rsp), %xmm1
movsd 0x90(%rsp), %xmm2
movsd 0x78(%rsp), %xmm0
mulsd 0x98(%rsp), %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movsd 0x80(%rsp), %xmm0
movsd 0xa0(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x48(%rsp), %xmm0
movsd 0x18346(%rip), %xmm1    # 0x39600
ucomisd %xmm1, %xmm0
jbe 0x212d1
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movsd 0x1833f(%rip), %xmm0    # 0x39618
ucomisd 0x48(%rsp), %xmm0
seta %al
andb $0x1, %al
movb %al, 0x3e(%rsp)
movq 0xf8(%rsp), %rax
movl 0x2c(%rax), %eax
movq 0xf0(%rsp), %rcx
addl 0x2c(%rcx), %eax
cmpl $0x30, %eax
jle 0x21314
movq $0x0, 0x100(%rsp)
jmp 0x215fd
movq 0xf8(%rsp), %rdi
callq 0x23d70
movq %rax, 0xc0(%rsp)
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movq 0xf8(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movl %edx, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
cmpl 0xbc(%rsp), %eax
je 0x2148c
movl 0xb4(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movq 0xf8(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movl 0x4(%rsp), %eax
cmpl %edx, %eax
jne 0x2138f
testb $0x1, 0x3e(%rsp)
jne 0x2138f
jmp 0x2146a
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movslq 0xb4(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0
movq 0xc0(%rsp), %rax
addq $0x38, %rax
movq 0xc0(%rsp), %rcx
movslq 0x2c(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movslq 0xb4(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm0
movq 0xc0(%rsp), %rax
addq $0x38, %rax
movq 0xc0(%rsp), %rcx
movslq 0x2c(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movq 0xf8(%rsp), %rax
addq $0x38, %rax
movslq 0xb4(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm0
movq 0xc0(%rsp), %rax
addq $0x38, %rax
movq 0xc0(%rsp), %rcx
movslq 0x2c(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x10(%rax)
movq 0xc0(%rsp), %rax
movl 0x2c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2c(%rax)
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movq 0xf8(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movl %edx, 0xb4(%rsp)
jmp 0x21346
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movq 0xf0(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movl %edx, 0xb0(%rsp)
movl 0xb0(%rsp), %eax
cmpl 0xb8(%rsp), %eax
je 0x215ed
movl 0xb0(%rsp), %eax
movl %eax, (%rsp)
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movq 0xf0(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movl (%rsp), %eax
cmpl %edx, %eax
jne 0x214f0
testb $0x1, 0x3f(%rsp)
jne 0x214f0
jmp 0x215cb
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movslq 0xb0(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0
movq 0xc0(%rsp), %rax
addq $0x38, %rax
movq 0xc0(%rsp), %rcx
movslq 0x2c(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movslq 0xb0(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm0
movq 0xc0(%rsp), %rax
addq $0x38, %rax
movq 0xc0(%rsp), %rcx
movslq 0x2c(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movq 0xf0(%rsp), %rax
addq $0x38, %rax
movslq 0xb0(%rsp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm0
movq 0xc0(%rsp), %rax
addq $0x38, %rax
movq 0xc0(%rsp), %rcx
movslq 0x2c(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x10(%rax)
movq 0xc0(%rsp), %rax
movl 0x2c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2c(%rax)
movl 0xb0(%rsp), %eax
addl $0x1, %eax
movq 0xf0(%rsp), %rcx
cltd
idivl 0x2c(%rcx)
movl %edx, 0xb0(%rsp)
jmp 0x214a9
movq 0xc0(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
retq
nopl (%rax)