// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/glove.c
// Function: save_params
int save_params(int nb_iter) {
    /*
     * nb_iter is the number of iteration (= a full pass through the cooccurrence matrix).
     *   nb_iter  > 0 => checkpointing the intermediate parameters, so nb_iter is in the filename of output file.
     *   nb_iter == 0 => checkpointing the initial parameters
     *   else         => saving the final paramters, so nb_iter is ignored.
     */

    long long a, b;
    char format[20];
    char output_file[MAX_STRING_LENGTH+20], output_file_gsq[MAX_STRING_LENGTH+20];
    char *word = malloc(sizeof(char) * MAX_STRING_LENGTH + 1);
    if (NULL == word) {
        return 1;
    }
    FILE *fid, *fout;
    FILE *fgs = NULL;
    
    if (use_binary > 0 || nb_iter == 0) {
        // Save parameters in binary file
        // note: always save initial parameters in binary, as the reading code expects binary
        if (nb_iter < 0)
            sprintf(output_file,"%s.bin",save_W_file);
        else
            sprintf(output_file,"%s.%03d.bin",save_W_file,nb_iter);

        fout = fopen(output_file,"wb");
        if (fout == NULL) {log_file_loading_error("weights file", save_W_file); free(word); return 1;}
        for (a = 0; a < 2 * vocab_size * (vector_size + 1); a++) fwrite(&W[a], sizeof(real), 1,fout);
        fclose(fout);
        if (save_gradsq > 0) {
            if (nb_iter < 0)
                sprintf(output_file_gsq,"%s.bin",save_gradsq_file);
            else
                sprintf(output_file_gsq,"%s.%03d.bin",save_gradsq_file,nb_iter);

            fgs = fopen(output_file_gsq,"wb");
            if (fgs == NULL) {log_file_loading_error("gradsq file", save_gradsq_file); free(word); return 1;}
            for (a = 0; a < 2 * vocab_size * (vector_size + 1); a++) fwrite(&gradsq[a], sizeof(real), 1,fgs);
            fclose(fgs);
        }
    }
    if (use_binary != 1) { // Save parameters in text file
        if (nb_iter < 0)
            sprintf(output_file,"%s.txt",save_W_file);
        else
            sprintf(output_file,"%s.%03d.txt",save_W_file,nb_iter);
        if (save_gradsq > 0) {
            if (nb_iter < 0)
                sprintf(output_file_gsq,"%s.txt",save_gradsq_file);
            else
                sprintf(output_file_gsq,"%s.%03d.txt",save_gradsq_file,nb_iter);

            fgs = fopen(output_file_gsq,"wb");
            if (fgs == NULL) {log_file_loading_error("gradsq file", save_gradsq_file); free(word); return 1;}
        }
        fout = fopen(output_file,"wb");
        if (fout == NULL) {log_file_loading_error("weights file", save_W_file); free(word); return 1;}
        fid = fopen(vocab_file, "r");
        sprintf(format,"%%%ds",MAX_STRING_LENGTH);
        if (fid == NULL) {log_file_loading_error("vocab file", vocab_file); free(word); fclose(fout); return 1;}
        if (write_header) fprintf(fout, "%lld %d\n", vocab_size, vector_size);
        for (a = 0; a < vocab_size; a++) {
            if (fscanf(fid,format,word) == 0) {free(word); fclose(fid); fclose(fout); return 1;}
            // input vocab cannot contain special <unk> keyword
            if (strcmp(word, "<unk>") == 0) {free(word); fclose(fid); fclose(fout);  return 1;}
            fprintf(fout, "%s",word);
            if (model == 0) { // Save all parameters (including bias)
                for (b = 0; b < (vector_size + 1); b++) fprintf(fout," %lf", W[a * (vector_size + 1) + b]);
                for (b = 0; b < (vector_size + 1); b++) fprintf(fout," %lf", W[(vocab_size + a) * (vector_size + 1) + b]);
            }
            if (model == 1) // Save only "word" vectors (without bias)
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", W[a * (vector_size + 1) + b]);
            if (model == 2) // Save "word + context word" vectors (without bias)
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", W[a * (vector_size + 1) + b] + W[(vocab_size + a) * (vector_size + 1) + b]);
            if (model == 3) { // Save "word" and "context" vectors (without bias; row-concatenated)
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", W[a * (vector_size + 1) + b]);
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", W[(vocab_size + a) * (vector_size + 1) + b]);
            }
            fprintf(fout,"\n");
            if (save_gradsq > 0) { // Save gradsq
                fprintf(fgs, "%s",word);
                for (b = 0; b < (vector_size + 1); b++) fprintf(fgs," %lf", gradsq[a * (vector_size + 1) + b]);
                for (b = 0; b < (vector_size + 1); b++) fprintf(fgs," %lf", gradsq[(vocab_size + a) * (vector_size + 1) + b]);
                fprintf(fgs,"\n");
            }
            if (fscanf(fid,format,word) == 0) {
                // Eat irrelevant frequency entry
                fclose(fout);
                fclose(fid);
                free(word); 
                return 1;
                } 
        }

        if (use_unk_vec) {
            real* unk_vec = (real*)calloc((vector_size + 1), sizeof(real));
            real* unk_context = (real*)calloc((vector_size + 1), sizeof(real));
            strcpy(word, "<unk>");

            long long num_rare_words = vocab_size < 100 ? vocab_size : 100;

            for (a = vocab_size - num_rare_words; a < vocab_size; a++) {
                for (b = 0; b < (vector_size + 1); b++) {
                    unk_vec[b] += W[a * (vector_size + 1) + b] / num_rare_words;
                    unk_context[b] += W[(vocab_size + a) * (vector_size + 1) + b] / num_rare_words;
                }
            }

            fprintf(fout, "%s",word);
            if (model == 0) { // Save all parameters (including bias)
                for (b = 0; b < (vector_size + 1); b++) fprintf(fout," %lf", unk_vec[b]);
                for (b = 0; b < (vector_size + 1); b++) fprintf(fout," %lf", unk_context[b]);
            }
            if (model == 1) // Save only "word" vectors (without bias)
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", unk_vec[b]);
            if (model == 2) // Save "word + context word" vectors (without bias)
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", unk_vec[b] + unk_context[b]);
            if (model == 3) { // Save "word" and "context" vectors (without bias; row-concatenated)
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", unk_vec[b]);
                for (b = 0; b < vector_size; b++) fprintf(fout," %lf", unk_context[b]);
            }
            fprintf(fout,"\n");

            free(unk_vec);
            free(unk_context);
        }

        fclose(fid);
        fclose(fout);
        if (save_gradsq > 0) fclose(fgs);
    }
    free(word);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x838, %rsp            # imm = 0x838
movl %edi, %r15d
movl $0x3e9, %edi            # imm = 0x3E9
callq 0x11c0
movl $0x1, %ebp
testq %rax, %rax
je 0x2b6b
movq %rax, %rbx
testl %r15d, %r15d
movq %rax, (%rsp)
je 0x227f
cmpl $0x0, 0x4f47(%rip)      # 0x71bc
jg 0x227f
xorl %r14d, %r14d
jmp 0x241f
testl %r15d, %r15d
js 0x22a6
leaq 0x1ee6(%rip), %rsi      # 0x4171
leaq 0x5b3e(%rip), %rdx      # 0x7dd0
leaq 0x430(%rsp), %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1230
jmp 0x22c3
leaq 0x1ebd(%rip), %rsi      # 0x416a
leaq 0x5b1c(%rip), %rdx      # 0x7dd0
leaq 0x430(%rsp), %rdi
xorl %eax, %eax
callq 0x1230
leaq 0x1eb3(%rip), %rsi      # 0x417d
leaq 0x430(%rsp), %rdi
callq 0x1210
testq %rax, %rax
je 0x2b40
movq %rax, %r14
movslq 0x4e8e(%rip), %rax      # 0x7178
incq %rax
imulq 0x4edb(%rip), %rax      # 0x71d0
addq %rax, %rax
testq %rax, %rax
jle 0x233f
xorl %ebx, %ebx
xorl %r12d, %r12d
movq 0x4ecf(%rip), %rdi      # 0x71d8
addq %rbx, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1250
movslq 0x4e53(%rip), %rax      # 0x7178
incq %rax
imulq 0x4ea0(%rip), %rax      # 0x71d0
incq %r12
addq %rax, %rax
addq $0x8, %rbx
cmpq %rax, %r12
jl 0x2302
movq %r14, %rdi
callq 0x10e0
cmpl $0x0, 0x4e6a(%rip)      # 0x71b8
jle 0x2374
testl %r15d, %r15d
js 0x237c
leaq 0x1e15(%rip), %rsi      # 0x4171
leaq 0x5e5d(%rip), %rdx      # 0x81c0
leaq 0x30(%rsp), %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1230
jmp 0x2396
xorl %r14d, %r14d
jmp 0x241b
leaq 0x1de7(%rip), %rsi      # 0x416a
leaq 0x5e36(%rip), %rdx      # 0x81c0
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0x1230
movq (%rsp), %rbx
leaq 0x1ddc(%rip), %rsi      # 0x417d
leaq 0x30(%rsp), %rdi
callq 0x1210
testq %rax, %rax
je 0x2b50
movq %rax, %r14
movslq 0x4dba(%rip), %rax      # 0x7178
incq %rax
imulq 0x4e07(%rip), %rax      # 0x71d0
addq %rax, %rax
testq %rax, %rax
jle 0x2413
xorl %ebx, %ebx
xorl %r12d, %r12d
movq 0x4e03(%rip), %rdi      # 0x71e0
addq %rbx, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1250
movslq 0x4d7f(%rip), %rax      # 0x7178
incq %rax
imulq 0x4dcc(%rip), %rax      # 0x71d0
incq %r12
addq %rax, %rax
addq $0x8, %rbx
cmpq %rax, %r12
jl 0x23d6
movq %r14, %rdi
callq 0x10e0
movq (%rsp), %rbx
cmpl $0x1, 0x4d96(%rip)      # 0x71bc
jne 0x2437
movq %rbx, %rdi
callq 0x1030
xorl %ebp, %ebp
jmp 0x2b6b
testl %r15d, %r15d
js 0x245e
leaq 0x1d5d(%rip), %rsi      # 0x41a0
leaq 0x5986(%rip), %rdx      # 0x7dd0
leaq 0x430(%rsp), %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1230
jmp 0x247b
leaq 0x1d34(%rip), %rsi      # 0x4199
leaq 0x5964(%rip), %rdx      # 0x7dd0
leaq 0x430(%rsp), %rdi
xorl %eax, %eax
callq 0x1230
cmpl $0x0, 0x4d36(%rip)      # 0x71b8
jle 0x24df
testl %r15d, %r15d
js 0x24a8
leaq 0x1d10(%rip), %rsi      # 0x41a0
leaq 0x5d29(%rip), %rdx      # 0x81c0
leaq 0x30(%rsp), %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1230
jmp 0x24c2
leaq 0x1cea(%rip), %rsi      # 0x4199
leaq 0x5d0a(%rip), %rdx      # 0x81c0
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0x1230
leaq 0x1cb4(%rip), %rsi      # 0x417d
leaq 0x30(%rsp), %rdi
callq 0x1210
movq %rax, %r14
testq %rax, %rax
je 0x2b50
leaq 0x1c97(%rip), %rsi      # 0x417d
leaq 0x430(%rsp), %rdi
callq 0x1210
testq %rax, %rax
je 0x2b40
movq %rax, %r15
leaq 0x60aa(%rip), %rdi      # 0x85b0
leaq 0x1e28(%rip), %rsi      # 0x4335
callq 0x1210
movq %rax, %r12
leaq 0x1c90(%rip), %rsi      # 0x41ac
leaq 0x10(%rsp), %rdi
movl $0x3e8, %edx            # imm = 0x3E8
xorl %eax, %eax
callq 0x1230
movq %r12, 0x8(%rsp)
testq %r12, %r12
je 0x2b7f
cmpl $0x0, 0x4c6e(%rip)      # 0x71b0
je 0x2562
movq 0x4c85(%rip), %rdx      # 0x71d0
movl 0x4c27(%rip), %ecx      # 0x7178
leaq 0x1c65(%rip), %rsi      # 0x41bd
movq %r15, %rdi
xorl %eax, %eax
callq 0x1180
movq 0x4c67(%rip), %rbx      # 0x71d0
testq %rbx, %rbx
jle 0x289a
leaq 0x1c53(%rip), %r13      # 0x41cc
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq (%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1080
testl %eax, %eax
je 0x2ba4
movq %rbx, %rdi
leaq 0x1c1e(%rip), %rsi      # 0x41c6
callq 0x1170
testl %eax, %eax
je 0x2ba4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1100
cmpl $0x0, 0x4bb5(%rip)      # 0x717c
jne 0x2657
movl 0x4ba5(%rip), %eax      # 0x7178
testl %eax, %eax
js 0x260b
incq %rax
xorl %ebx, %ebx
imulq %r12, %rax
addq 0x4bf1(%rip), %rax      # 0x71d8
movsd (%rax,%rbx,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4b75(%rip), %rax      # 0x7178
incq %rax
cmpq %rax, %rbx
jl 0x25dc
movl 0x4b67(%rip), %eax      # 0x7178
testl %eax, %eax
js 0x2657
incq %rax
xorl %ebx, %ebx
movq 0x4baf(%rip), %rcx      # 0x71d0
addq %rbp, %rcx
imulq %rax, %rcx
shlq $0x3, %rcx
addq 0x4ba5(%rip), %rcx      # 0x71d8
movsd (%rcx,%rbx,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4b29(%rip), %rax      # 0x7178
incq %rax
cmpq %rax, %rbx
jl 0x261a
cmpl $0x1, 0x4b1e(%rip)      # 0x717c
sete %cl
movl 0x4b11(%rip), %eax      # 0x7178
testl %eax, %eax
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x26a5
xorl %ebx, %ebx
incl %eax
cltq
imulq %r12, %rax
addq 0x4b54(%rip), %rax      # 0x71d8
movsd (%rax,%rbx,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4ad8(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2675
cmpl $0x2, 0x4ad0(%rip)      # 0x717c
sete %cl
movl 0x4ac3(%rip), %eax      # 0x7178
testl %eax, %eax
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2710
xorl %ebx, %ebx
movq 0x4b0e(%rip), %rcx      # 0x71d8
incl %eax
cltq
movq %r12, %rdx
imulq %rax, %rdx
addq %rcx, %rdx
movsd (%rdx,%rbx,8), %xmm0
movq 0x4aec(%rip), %rdx      # 0x71d0
addq %rbp, %rdx
imulq %rax, %rdx
leaq (%rcx,%rdx,8), %rax
addsd (%rax,%rbx,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4a6d(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x26c3
cmpl $0x3, 0x4a65(%rip)      # 0x717c
jne 0x27a3
movl 0x4a55(%rip), %eax      # 0x7178
testl %eax, %eax
jle 0x2759
xorl %ebx, %ebx
incl %eax
cltq
imulq %r12, %rax
addq 0x4aa0(%rip), %rax      # 0x71d8
movsd (%rax,%rbx,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4a24(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2729
movl 0x4a19(%rip), %eax      # 0x7178
testl %eax, %eax
jle 0x27a3
xorl %ebx, %ebx
incl %eax
cltq
movq 0x4a60(%rip), %rcx      # 0x71d0
addq %rbp, %rcx
imulq %rax, %rcx
shlq $0x3, %rcx
addq 0x4a56(%rip), %rcx      # 0x71d8
movsd (%rcx,%rbx,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x49da(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2765
movl $0xa, %edi
movq %r15, %rsi
callq 0x1140
cmpl $0x0, 0x4a01(%rip)      # 0x71b8
movq (%rsp), %rbx
jle 0x2867
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1100
movl 0x49a6(%rip), %eax      # 0x7178
testl %eax, %eax
js 0x280a
incq %rax
xorl %ebx, %ebx
imulq %r12, %rax
addq 0x49fa(%rip), %rax      # 0x71e0
movsd (%rax,%rbx,8), %xmm0
movq %r14, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4976(%rip), %rax      # 0x7178
incq %rax
cmpq %rax, %rbx
jl 0x27db
movl 0x4968(%rip), %eax      # 0x7178
testl %eax, %eax
js 0x2856
incq %rax
xorl %ebx, %ebx
movq 0x49b0(%rip), %rcx      # 0x71d0
addq %rbp, %rcx
imulq %rax, %rcx
shlq $0x3, %rcx
addq 0x49ae(%rip), %rcx      # 0x71e0
movsd (%rcx,%rbx,8), %xmm0
movq %r14, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x492a(%rip), %rax      # 0x7178
incq %rax
cmpq %rax, %rbx
jl 0x2819
movl $0xa, %edi
movq %r14, %rsi
callq 0x1140
movq (%rsp), %rbx
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1080
testl %eax, %eax
je 0x2bc0
incq %rbp
movq 0x4943(%rip), %rbx      # 0x71d0
addq $0x8, %r12
cmpq %rbx, %rbp
jl 0x257e
cmpl $0x0, 0x48cb(%rip)      # 0x716c
je 0x2b10
movslq 0x48ca(%rip), %rbp      # 0x7178
leaq 0x1(%rbp), %r12
movl $0x8, %esi
movq %r12, %rdi
callq 0x1160
movq %rax, %r13
movl $0x8, %esi
movq %r12, %rdi
callq 0x1160
movq %rbp, %r9
movq %rax, %rbp
movq (%rsp), %rax
movl $0x6b6e753c, (%rax)     # imm = 0x6B6E753C
movw $0x3e, 0x4(%rax)
testq %rbx, %rbx
jle 0x297b
cmpq $0x64, %rbx
movl $0x64, %esi
cmovlq %rbx, %rsi
movq %rbx, %rax
subq %rsi, %rax
movq 0x48d0(%rip), %rdi      # 0x71d8
xorps %xmm0, %xmm0
cvtsi2sd %rsi, %xmm0
movq %rax, %rcx
imulq %r12, %rcx
leaq (%rdi,%rcx,8), %rcx
leaq 0x8(,%r9,8), %rdx
leaq (%rbx,%rbx), %r8
subq %rsi, %r8
imulq %r12, %r8
leaq (%rdi,%r8,8), %rsi
testl %r9d, %r9d
js 0x296d
xorl %edi, %edi
movsd (%rcx,%rdi,8), %xmm1
divsd %xmm0, %xmm1
addsd (%r13,%rdi,8), %xmm1
movsd %xmm1, (%r13,%rdi,8)
movsd (%rsi,%rdi,8), %xmm1
divsd %xmm0, %xmm1
addsd (%rbp,%rdi,8), %xmm1
movsd %xmm1, (%rbp,%rdi,8)
incq %rdi
cmpq %rdi, %r12
jne 0x2939
incq %rax
addq %rdx, %rcx
addq %rdx, %rsi
cmpq %rbx, %rax
jl 0x2932
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x1100
cmpl $0x0, 0x47ee(%rip)      # 0x717c
jne 0x29ff
cmpl $0x0, 0x47e1(%rip)      # 0x7178
js 0x29c8
xorl %ebx, %ebx
leaq 0x182a(%rip), %r12      # 0x41cc
movsd (%r13,%rbx,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x47b8(%rip), %rax      # 0x7178
incq %rax
cmpq %rax, %rbx
jl 0x29a2
cmpl $0x0, 0x47a9(%rip)      # 0x7178
js 0x29ff
xorl %ebx, %ebx
leaq 0x17f2(%rip), %r12      # 0x41cc
movsd (%rbp,%rbx,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4781(%rip), %rax      # 0x7178
incq %rax
cmpq %rax, %rbx
jl 0x29da
cmpl $0x1, 0x4776(%rip)      # 0x717c
jne 0x2a3d
cmpl $0x0, 0x4769(%rip)      # 0x7178
jle 0x2a3d
xorl %ebx, %ebx
leaq 0x17b2(%rip), %r12      # 0x41cc
movsd (%r13,%rbx,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x4740(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2a1a
cmpl $0x2, 0x4738(%rip)      # 0x717c
jne 0x2a81
cmpl $0x0, 0x472b(%rip)      # 0x7178
jle 0x2a81
xorl %ebx, %ebx
leaq 0x1774(%rip), %r12      # 0x41cc
movsd (%r13,%rbx,8), %xmm0
addsd (%rbp,%rbx,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x46fc(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2a58
cmpl $0x3, 0x46f4(%rip)      # 0x717c
jne 0x2af3
cmpl $0x0, 0x46e7(%rip)      # 0x7178
jle 0x2abf
xorl %ebx, %ebx
leaq 0x1730(%rip), %r12      # 0x41cc
movsd (%r13,%rbx,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x46be(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2a9c
cmpl $0x0, 0x46b2(%rip)      # 0x7178
jle 0x2af3
xorl %ebx, %ebx
leaq 0x16fb(%rip), %r12      # 0x41cc
movsd (%rbp,%rbx,8), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x1180
incq %rbx
movslq 0x468a(%rip), %rax      # 0x7178
cmpq %rax, %rbx
jl 0x2ad1
movl $0xa, %edi
movq %r15, %rsi
callq 0x1140
movq %r13, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x10e0
movq %r15, %rdi
callq 0x10e0
cmpl $0x0, 0x468f(%rip)      # 0x71b8
movq (%rsp), %rbx
jle 0x2428
movq %r14, %rdi
callq 0x10e0
jmp 0x2428
leaq 0x1639(%rip), %rdi      # 0x4180
leaq 0x5282(%rip), %rsi      # 0x7dd0
jmp 0x2b5e
leaq 0x1636(%rip), %rdi      # 0x418d
leaq 0x5662(%rip), %rsi      # 0x81c0
callq 0x1904
movq %rbx, %rdi
callq 0x1030
movl %ebp, %eax
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x162c(%rip), %rdi      # 0x41b2
leaq 0x5a23(%rip), %rsi      # 0x85b0
callq 0x1904
movq %rbx, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x10e0
jmp 0x2b6b
movq %rbx, %rdi
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x10e0
movq %r15, %rdi
callq 0x10e0
jmp 0x2bda
movq %r15, %rdi
callq 0x10e0
movq 0x8(%rsp), %rdi
callq 0x10e0
movq %rbx, %rdi
callq 0x1030
movl $0x1, %ebp
jmp 0x2b6b