// File: /workspace/github_c_makefile_star2_O0/SimpleDoger[P]Darknet_CPU_Only/yolo_layer.c
// Function: forward_yolo_layer
void forward_yolo_layer(const layer l, network net)
{
    int i,j,b,t,n;
    memcpy(l.output, net.input, l.outputs*l.batch*sizeof(float));

    for (b = 0; b < l.batch; ++b){
        for(n = 0; n < l.n; ++n){
            int index = entry_index(l, b, n*l.w*l.h, 0);
            activate_array(l.output + index, 2*l.w*l.h, LOGISTIC);
            index = entry_index(l, b, n*l.w*l.h, 4);
            activate_array(l.output + index, (1+l.classes)*l.w*l.h, LOGISTIC);
        }
    }

    memset(l.delta, 0, l.outputs * l.batch * sizeof(float));
    if(!net.train) return;
    float avg_iou = 0;
    float recall = 0;
    float recall75 = 0;
    float avg_cat = 0;
    float avg_obj = 0;
    float avg_anyobj = 0;
    int count = 0;
    int class_count = 0;
    *(l.cost) = 0;
    for (b = 0; b < l.batch; ++b) {
        for (j = 0; j < l.h; ++j) {
            for (i = 0; i < l.w; ++i) {
                for (n = 0; n < l.n; ++n) {
                    int box_index = entry_index(l, b, n*l.w*l.h + j*l.w + i, 0);
                    box pred = get_yolo_box(l.output, l.biases, l.mask[n], box_index, i, j, l.w, l.h, net.w, net.h, l.w*l.h);
                    float best_iou = 0;
                    int best_t = 0;
                    for(t = 0; t < l.max_boxes; ++t){
                        box truth = float_to_box(net.truth + t*(4 + 1) + b*l.truths, 1);
                        if(!truth.x) break;
                        float iou = box_iou(pred, truth);
                        if (iou > best_iou) {
                            best_iou = iou;
                            best_t = t;
                        }
                    }
                    int obj_index = entry_index(l, b, n*l.w*l.h + j*l.w + i, 4);
                    avg_anyobj += l.output[obj_index];
                    l.delta[obj_index] = 0 - l.output[obj_index];
                    if (best_iou > l.ignore_thresh) {
                        l.delta[obj_index] = 0;
                    }
                    if (best_iou > l.truth_thresh) {
                        l.delta[obj_index] = 1 - l.output[obj_index];

                        int class = net.truth[best_t*(4 + 1) + b*l.truths + 4];
                        if (l.map) class = l.map[class];
                        int class_index = entry_index(l, b, n*l.w*l.h + j*l.w + i, 4 + 1);
                        delta_yolo_class(l.output, l.delta, class_index, class, l.classes, l.w*l.h, 0);
                        box truth = float_to_box(net.truth + best_t*(4 + 1) + b*l.truths, 1);
                        delta_yolo_box(truth, l.output, l.biases, l.mask[n], box_index, i, j, l.w, l.h, net.w, net.h, l.delta, (2-truth.w*truth.h), l.w*l.h);
                    }
                }
            }
        }
        for(t = 0; t < l.max_boxes; ++t){
            box truth = float_to_box(net.truth + t*(4 + 1) + b*l.truths, 1);

            if(!truth.x) break;
            float best_iou = 0;
            int best_n = 0;
            i = (truth.x * l.w);
            j = (truth.y * l.h);
            box truth_shift = truth;
            truth_shift.x = truth_shift.y = 0;
            for(n = 0; n < l.total; ++n){
                box pred = {0};
                pred.w = l.biases[2*n]/net.w;
                pred.h = l.biases[2*n+1]/net.h;
                float iou = box_iou(pred, truth_shift);
                if (iou > best_iou){
                    best_iou = iou;
                    best_n = n;
                }
            }

            int mask_n = int_index(l.mask, best_n, l.n);
            if(mask_n >= 0){
                int box_index = entry_index(l, b, mask_n*l.w*l.h + j*l.w + i, 0);
                float iou = delta_yolo_box(truth, l.output, l.biases, best_n, box_index, i, j, l.w, l.h, net.w, net.h, l.delta, (2-truth.w*truth.h), l.w*l.h);

                int obj_index = entry_index(l, b, mask_n*l.w*l.h + j*l.w + i, 4);
                avg_obj += l.output[obj_index];
                l.delta[obj_index] = 1 - l.output[obj_index];

                int class = net.truth[t*(4 + 1) + b*l.truths + 4];
                if (l.map) class = l.map[class];
                int class_index = entry_index(l, b, mask_n*l.w*l.h + j*l.w + i, 4 + 1);
                delta_yolo_class(l.output, l.delta, class_index, class, l.classes, l.w*l.h, &avg_cat);

                ++count;
                ++class_count;
                if(iou > .5) recall += 1;
                if(iou > .75) recall75 += 1;
                avg_iou += iou;
            }
        }
    }
    *(l.cost) = pow(mag_array(l.delta, l.outputs * l.batch), 2);
    printf("Region %d Avg IOU: %f, Class: %f, Obj: %f, No Obj: %f, .5R: %f, .75R: %f,  count: %d\n", net.index, avg_iou/count, avg_cat/class_count, avg_obj/count, avg_anyobj/(l.w*l.h*l.n*l.batch), recall/count, recall75/count, count);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x5d0, %rsp            # imm = 0x5D0
leaq 0x4b0(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x108(%rbp)
movq 0x268(%rcx), %rdi
movq 0xd8(%rax), %rsi
movl 0x58(%rcx), %eax
imull 0x48(%rcx), %eax
movslq %eax, %rdx
shlq $0x2, %rdx
callq 0x3280
movl $0x0, -0x2c(%rbp)
movq -0x108(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x48(%rcx), %eax
jge 0x51d98
movl $0x0, -0x34(%rbp)
movq -0x108(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x84(%rcx), %eax
jge 0x51d88
movq -0x108(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, -0x11c(%rbp)
movl -0x34(%rbp), %eax
imull 0x70(%rsi), %eax
imull 0x6c(%rsi), %eax
movl %eax, -0x120(%rbp)
xorl %eax, %eax
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x120(%rbp), %esi
movl -0x11c(%rbp), %edi
xorl %edx, %edx
callq 0x52fa0
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, -0x38(%rbp)
movq 0x268(%rax), %rdi
movslq -0x38(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rdi
movl 0x70(%rax), %esi
shll %esi
imull 0x6c(%rax), %esi
xorl %edx, %edx
callq 0x2dfa0
movq -0x108(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x34(%rbp), %eax
imull 0x70(%rsi), %eax
imull 0x6c(%rsi), %eax
movl %eax, -0x118(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x118(%rbp), %esi
movl -0x114(%rbp), %edi
movl $0x4, %edx
callq 0x52fa0
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, -0x38(%rbp)
movq 0x268(%rax), %rdi
movslq -0x38(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rdi
movl 0xfc(%rax), %esi
addl $0x1, %esi
imull 0x70(%rax), %esi
imull 0x6c(%rax), %esi
xorl %edx, %edx
callq 0x2dfa0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x51c7d
jmp 0x51d8a
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x51c63
movq -0x108(%rbp), %rcx
movq 0x260(%rcx), %rdi
movl 0x58(%rcx), %eax
imull 0x48(%rcx), %eax
movslq %eax, %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x3190
movq -0x110(%rbp), %rax
cmpl $0x0, 0xf8(%rax)
jne 0x51dd0
jmp 0x52992
movq -0x108(%rbp), %rax
xorps %xmm0, %xmm0
movss %xmm0, -0x3c(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x44(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x48(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x4c(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
movq 0x1d8(%rax), %rax
xorps %xmm0, %xmm0
movss %xmm0, (%rax)
movl $0x0, -0x2c(%rbp)
movq -0x108(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x48(%rcx), %eax
jge 0x528b6
movl $0x0, -0x28(%rbp)
movq -0x108(%rbp), %rcx
movl -0x28(%rbp), %eax
cmpl 0x6c(%rcx), %eax
jge 0x52361
movl $0x0, -0x24(%rbp)
movq -0x108(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x70(%rcx), %eax
jge 0x52351
movl $0x0, -0x34(%rbp)
movq -0x108(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x84(%rcx), %eax
jge 0x52341
movq -0x108(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, -0x124(%rbp)
movl -0x34(%rbp), %eax
movl 0x6c(%rsi), %ecx
movl 0x70(%rsi), %edx
imull %edx, %eax
imull %ecx, %eax
movl -0x28(%rbp), %ecx
imull %edx, %ecx
addl %ecx, %eax
movl -0x24(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x128(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x128(%rbp), %esi
movl -0x124(%rbp), %edi
xorl %edx, %edx
callq 0x52fa0
movq -0x108(%rbp), %r10
movl %eax, %ecx
movq -0x110(%rbp), %rax
movl %ecx, -0x5c(%rbp)
movq 0x268(%r10), %rdi
movq 0x230(%r10), %rsi
movq 0x128(%r10), %rcx
movslq -0x34(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movl -0x5c(%rbp), %ecx
movl -0x24(%rbp), %r8d
movl -0x28(%rbp), %r9d
movl 0x6c(%r10), %r11d
movl 0x70(%r10), %r10d
movl 0x90(%rax), %r14d
movl 0x94(%rax), %ebx
movl %r10d, %r15d
imull %r11d, %r15d
movq %rsp, %rax
movl %r15d, 0x20(%rax)
movl %r14d, 0x18(%rax)
movl %ebx, 0x10(%rax)
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
callq 0x52ac0
movlpd %xmm0, -0x6c(%rbp)
movlpd %xmm1, -0x64(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x70(%rbp)
movl $0x0, -0x74(%rbp)
movl $0x0, -0x30(%rbp)
movq -0x108(%rbp), %rcx
movl -0x30(%rbp), %eax
cmpl 0x88(%rcx), %eax
jge 0x52038
movq -0x108(%rbp), %rdx
movq -0x110(%rbp), %rax
movq 0xe0(%rax), %rax
movl -0x30(%rbp), %esi
movl %esi, %ecx
leal (%rcx,%rcx,4), %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rax
movl -0x2c(%rbp), %ecx
movl 0x68(%rdx), %edx
imull %edx, %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rdi
movl $0x1, %esi
callq 0x44f70
movlpd %xmm0, -0x84(%rbp)
movlpd %xmm1, -0x7c(%rbp)
movss -0x84(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x51fe3
jp 0x51fe3
jmp 0x52038
movsd -0x6c(%rbp), %xmm0
movsd -0x64(%rbp), %xmm1
movsd -0x84(%rbp), %xmm2
movsd -0x7c(%rbp), %xmm3
callq 0x44cd0
movss %xmm0, -0x88(%rbp)
movss -0x88(%rbp), %xmm0
ucomiss -0x70(%rbp), %xmm0
jbe 0x52028
movss -0x88(%rbp), %xmm0
movss %xmm0, -0x70(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x74(%rbp)
jmp 0x5202a
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x51f6e
movq -0x108(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, -0x12c(%rbp)
movl -0x34(%rbp), %eax
imull 0x70(%rsi), %eax
imull 0x6c(%rsi), %eax
movl -0x28(%rbp), %ecx
imull 0x70(%rsi), %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x130(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x130(%rbp), %esi
movl -0x12c(%rbp), %edi
movl $0x4, %edx
callq 0x52fa0
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, -0x8c(%rbp)
movq 0x268(%rax), %rcx
movslq -0x8c(%rbp), %rdx
movss (%rcx,%rdx,4), %xmm0
addss -0x50(%rbp), %xmm0
movss %xmm0, -0x50(%rbp)
movq 0x268(%rax), %rcx
movslq -0x8c(%rbp), %rdx
xorps %xmm0, %xmm0
subss (%rcx,%rdx,4), %xmm0
movq 0x260(%rax), %rcx
movslq -0x8c(%rbp), %rdx
movss %xmm0, (%rcx,%rdx,4)
movss -0x70(%rbp), %xmm0
ucomiss 0x15c(%rax), %xmm0
jbe 0x52106
movq -0x108(%rbp), %rax
movq 0x260(%rax), %rax
movslq -0x8c(%rbp), %rcx
xorps %xmm0, %xmm0
movss %xmm0, (%rax,%rcx,4)
movq -0x108(%rbp), %rax
movss -0x70(%rbp), %xmm0
ucomiss 0x160(%rax), %xmm0
jbe 0x52331
movq -0x108(%rbp), %rax
movq -0x110(%rbp), %rcx
movq 0x268(%rax), %rdx
movslq -0x8c(%rbp), %rsi
movss 0x1eec9(%rip), %xmm0    # 0x7100c
subss (%rdx,%rsi,4), %xmm0
movq 0x260(%rax), %rdx
movslq -0x8c(%rbp), %rsi
movss %xmm0, (%rdx,%rsi,4)
movq 0xe0(%rcx), %rcx
imull $0x5, -0x74(%rbp), %edx
movl -0x2c(%rbp), %esi
imull 0x68(%rax), %esi
addl %esi, %edx
addl $0x4, %edx
movslq %edx, %rdx
cvttss2si (%rcx,%rdx,4), %ecx
movl %ecx, -0x90(%rbp)
cmpq $0x0, 0x1b8(%rax)
je 0x521a8
movq -0x108(%rbp), %rax
movq 0x1b8(%rax), %rax
movslq -0x90(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x90(%rbp)
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rbx
movl -0x2c(%rbp), %eax
movl %eax, -0x134(%rbp)
movl -0x34(%rbp), %eax
movl 0x6c(%rsi), %ecx
movl 0x70(%rsi), %edx
imull %edx, %eax
imull %ecx, %eax
movl -0x28(%rbp), %ecx
imull %edx, %ecx
addl %ecx, %eax
movl -0x24(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x138(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x138(%rbp), %esi
movl -0x134(%rbp), %edi
movl $0x5, %edx
callq 0x52fa0
movq -0x108(%rbp), %r9
movl %eax, -0x94(%rbp)
movq 0x268(%r9), %rdi
movq 0x260(%r9), %rsi
movl -0x94(%rbp), %edx
movl -0x90(%rbp), %ecx
movl 0xfc(%r9), %r8d
movl 0x6c(%r9), %eax
movl 0x70(%r9), %r9d
imull %eax, %r9d
movq %rsp, %rax
movq $0x0, (%rax)
callq 0x52e60
movq -0x108(%rbp), %rdx
movq 0xe0(%rbx), %rax
movl -0x74(%rbp), %esi
movl %esi, %ecx
leal (%rcx,%rcx,4), %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rax
movl -0x2c(%rbp), %ecx
movl 0x68(%rdx), %edx
imull %edx, %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rdi
movl $0x1, %esi
callq 0x44f70
movq -0x108(%rbp), %rax
movlpd %xmm0, -0xa4(%rbp)
movlpd %xmm1, -0x9c(%rbp)
movq 0x268(%rax), %rdi
movq 0x230(%rax), %rsi
movq 0x128(%rax), %rcx
movslq -0x34(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movl -0x5c(%rbp), %ecx
movl -0x24(%rbp), %r8d
movl -0x28(%rbp), %r9d
movl 0x6c(%rax), %r11d
movl 0x70(%rax), %r10d
movl 0x90(%rbx), %r14d
movl 0x94(%rbx), %ebx
movq 0x260(%rax), %r15
movss -0x9c(%rbp), %xmm0
movss -0x98(%rbp), %xmm1
mulss %xmm1, %xmm0
movss 0x1ef18(%rip), %xmm2    # 0x71210
subss %xmm0, %xmm2
movl %r10d, %r12d
imull %r11d, %r12d
movsd -0xa4(%rbp), %xmm0
movsd -0x9c(%rbp), %xmm1
movq %rsp, %rax
movl %r12d, 0x28(%rax)
movq %r15, 0x20(%rax)
movl %r14d, 0x18(%rax)
movl %ebx, 0x10(%rax)
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
callq 0x52bf0
jmp 0x52333
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x51e78
jmp 0x52343
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x51e5e
jmp 0x52353
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x51e44
movl $0x0, -0x30(%rbp)
movq -0x108(%rbp), %rcx
movl -0x30(%rbp), %eax
cmpl 0x88(%rcx), %eax
jge 0x528a6
movq -0x108(%rbp), %rdx
movq -0x110(%rbp), %rax
movq 0xe0(%rax), %rax
movl -0x30(%rbp), %esi
movl %esi, %ecx
leal (%rcx,%rcx,4), %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rax
movl -0x2c(%rbp), %ecx
movl 0x68(%rdx), %edx
imull %edx, %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rdi
movl $0x1, %esi
callq 0x44f70
movlpd %xmm0, -0xb4(%rbp)
movlpd %xmm1, -0xac(%rbp)
movss -0xb4(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x523e3
jp 0x523e3
jmp 0x528a6
movq -0x108(%rbp), %rax
xorps %xmm0, %xmm0
movss %xmm0, -0xb8(%rbp)
movl $0x0, -0xbc(%rbp)
movss -0xb4(%rbp), %xmm0
cvtsi2ssl 0x70(%rax), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movl %ecx, -0x24(%rbp)
movss -0xb0(%rbp), %xmm0
cvtsi2ssl 0x6c(%rax), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x28(%rbp)
movq -0xb4(%rbp), %rax
movq %rax, -0xcc(%rbp)
movq -0xac(%rbp), %rax
movq %rax, -0xc4(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xc8(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xcc(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x108(%rbp), %rcx
movl -0x34(%rbp), %eax
cmpl 0x130(%rcx), %eax
jge 0x5254e
movq -0x110(%rbp), %rax
movq -0x108(%rbp), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, -0xe0(%rbp)
movq 0x230(%rcx), %rdx
movl -0x34(%rbp), %esi
addl %esi, %esi
movslq %esi, %rsi
movss (%rdx,%rsi,4), %xmm0
cvtsi2ssl 0x94(%rax), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xd8(%rbp)
movq 0x230(%rcx), %rcx
movl -0x34(%rbp), %edx
addl %edx, %edx
movslq %edx, %rdx
movss 0x4(%rcx,%rdx,4), %xmm0
cvtsi2ssl 0x90(%rax), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xd4(%rbp)
movsd -0xe0(%rbp), %xmm0
movsd -0xd8(%rbp), %xmm1
movsd -0xcc(%rbp), %xmm2
movsd -0xc4(%rbp), %xmm3
callq 0x44cd0
movss %xmm0, -0xe4(%rbp)
movss -0xe4(%rbp), %xmm0
ucomiss -0xb8(%rbp), %xmm0
jbe 0x5253e
movss -0xe4(%rbp), %xmm0
movss %xmm0, -0xb8(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0xbc(%rbp)
jmp 0x52540
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x52468
movq -0x108(%rbp), %rax
movq 0x128(%rax), %rdi
movl -0xbc(%rbp), %esi
movl 0x84(%rax), %edx
callq 0x5cb0
movl %eax, -0xe8(%rbp)
cmpl $0x0, -0xe8(%rbp)
jl 0x52896
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rbx
movl -0x2c(%rbp), %eax
movl %eax, -0x144(%rbp)
movl -0xe8(%rbp), %eax
movl 0x6c(%rsi), %ecx
movl 0x70(%rsi), %edx
imull %edx, %eax
imull %ecx, %eax
movl -0x28(%rbp), %ecx
imull %edx, %ecx
addl %ecx, %eax
movl -0x24(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x148(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x148(%rbp), %esi
movl -0x144(%rbp), %edi
xorl %edx, %edx
callq 0x52fa0
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, -0xec(%rbp)
movq 0x268(%rax), %rdi
movq 0x230(%rax), %rsi
movl -0xbc(%rbp), %edx
movl -0xec(%rbp), %ecx
movl -0x24(%rbp), %r8d
movl -0x28(%rbp), %r9d
movl 0x6c(%rax), %r11d
movl 0x70(%rax), %r10d
movl 0x90(%rbx), %r14d
movl 0x94(%rbx), %ebx
movq 0x260(%rax), %r15
movss -0xac(%rbp), %xmm0
movss -0xa8(%rbp), %xmm1
mulss %xmm1, %xmm0
movss 0x1ebcd(%rip), %xmm2    # 0x71210
subss %xmm0, %xmm2
movl %r10d, %r12d
imull %r11d, %r12d
movsd -0xb4(%rbp), %xmm0
movsd -0xac(%rbp), %xmm1
movq %rsp, %rax
movl %r12d, 0x28(%rax)
movq %r15, 0x20(%rax)
movl %r14d, 0x18(%rax)
movl %ebx, 0x10(%rax)
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
callq 0x52bf0
movq -0x108(%rbp), %rsi
movss %xmm0, -0xf0(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x13c(%rbp)
movl -0xe8(%rbp), %eax
imull 0x70(%rsi), %eax
imull 0x6c(%rsi), %eax
movl -0x28(%rbp), %ecx
imull 0x70(%rsi), %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x140(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x140(%rbp), %esi
movl -0x13c(%rbp), %edi
movl $0x4, %edx
callq 0x52fa0
movq -0x110(%rbp), %rcx
movl %eax, %edx
movq -0x108(%rbp), %rax
movl %edx, -0xf4(%rbp)
movq 0x268(%rax), %rdx
movslq -0xf4(%rbp), %rsi
movss (%rdx,%rsi,4), %xmm0
addss -0x4c(%rbp), %xmm0
movss %xmm0, -0x4c(%rbp)
movq 0x268(%rax), %rdx
movslq -0xf4(%rbp), %rsi
movss 0x1e8ee(%rip), %xmm0    # 0x7100c
subss (%rdx,%rsi,4), %xmm0
movq 0x260(%rax), %rdx
movslq -0xf4(%rbp), %rsi
movss %xmm0, (%rdx,%rsi,4)
movq 0xe0(%rcx), %rcx
imull $0x5, -0x30(%rbp), %edx
movl -0x2c(%rbp), %esi
imull 0x68(%rax), %esi
addl %esi, %edx
addl $0x4, %edx
movslq %edx, %rdx
cvttss2si (%rcx,%rdx,4), %ecx
movl %ecx, -0xf8(%rbp)
cmpq $0x0, 0x1b8(%rax)
je 0x52783
movq -0x108(%rbp), %rax
movq 0x1b8(%rax), %rax
movslq -0xf8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xf8(%rbp)
movq -0x108(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, -0x14c(%rbp)
movl -0xe8(%rbp), %eax
imull 0x70(%rsi), %eax
imull 0x6c(%rsi), %eax
movl -0x28(%rbp), %ecx
imull 0x70(%rsi), %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x150(%rbp)
movq %rsp, %rdi
movl $0x94, %ecx
rep  movsq (%rsi), %es:(%rdi)
movl -0x150(%rbp), %esi
movl -0x14c(%rbp), %edi
movl $0x5, %edx
callq 0x52fa0
movl %eax, %ecx
movq -0x108(%rbp), %rax
movl %ecx, -0xfc(%rbp)
movq 0x268(%rax), %rdi
movq 0x260(%rax), %rsi
movl -0xfc(%rbp), %edx
movl -0xf8(%rbp), %ecx
movl 0xfc(%rax), %r8d
movl 0x70(%rax), %r9d
imull 0x6c(%rax), %r9d
leaq -0x48(%rbp), %rax
movq %rax, (%rsp)
callq 0x52e60
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movss -0xf0(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x20608(%rip), %xmm1    # 0x72e48
ucomisd %xmm1, %xmm0
jbe 0x52858
movss 0x1e7be(%rip), %xmm0    # 0x7100c
addss -0x40(%rbp), %xmm0
movss %xmm0, -0x40(%rbp)
movss -0xf0(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x22e5c(%rip), %xmm1    # 0x756c8
ucomisd %xmm1, %xmm0
jbe 0x52884
movss 0x1e792(%rip), %xmm0    # 0x7100c
addss -0x44(%rbp), %xmm0
movss %xmm0, -0x44(%rbp)
movss -0xf0(%rbp), %xmm0
addss -0x3c(%rbp), %xmm0
movss %xmm0, -0x3c(%rbp)
jmp 0x52898
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x52368
jmp 0x528a8
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x51e2a
movq -0x108(%rbp), %rax
movq 0x260(%rax), %rdi
movl 0x58(%rax), %esi
imull 0x48(%rax), %esi
callq 0x59b0
cvtss2sd %xmm0, %xmm0
movsd 0x1e77c(%rip), %xmm1    # 0x71058
callq 0x30e0
movq -0x110(%rbp), %rax
movq -0x108(%rbp), %rcx
cvtsd2ss %xmm0, %xmm0
movq 0x1d8(%rcx), %rdx
movss %xmm0, (%rdx)
movl 0xfc(%rax), %esi
movss -0x3c(%rbp), %xmm0
cvtsi2ssl -0x54(%rbp), %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movss -0x48(%rbp), %xmm1
cvtsi2ssl -0x58(%rbp), %xmm2
divss %xmm2, %xmm1
cvtss2sd %xmm1, %xmm1
movss -0x4c(%rbp), %xmm2
cvtsi2ssl -0x54(%rbp), %xmm3
divss %xmm3, %xmm2
cvtss2sd %xmm2, %xmm2
movss -0x50(%rbp), %xmm3
movl 0x70(%rcx), %eax
imull 0x6c(%rcx), %eax
imull 0x84(%rcx), %eax
imull 0x48(%rcx), %eax
cvtsi2ss %eax, %xmm4
divss %xmm4, %xmm3
cvtss2sd %xmm3, %xmm3
movss -0x40(%rbp), %xmm4
cvtsi2ssl -0x54(%rbp), %xmm5
divss %xmm5, %xmm4
cvtss2sd %xmm4, %xmm4
movss -0x44(%rbp), %xmm5
cvtsi2ssl -0x54(%rbp), %xmm6
divss %xmm6, %xmm5
cvtss2sd %xmm5, %xmm5
movl -0x54(%rbp), %edx
leaq 0x22d4b(%rip), %rdi     # 0x756d6
movb $0x6, %al
callq 0x3130
addq $0x5d0, %rsp            # imm = 0x5D0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)