// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/data.c
// Function: load_regression_labels_paths
matrix load_regression_labels_paths(char **paths, int n, int k)
{
    matrix y = make_matrix(n, k);
    int i,j;
    for(i = 0; i < n; ++i){
        char labelpath[4096];
        find_replace(paths[i], "images", "labels", labelpath);
        find_replace(labelpath, "JPEGImages", "labels", labelpath);
        find_replace(labelpath, ".BMP", ".txt", labelpath);
        find_replace(labelpath, ".JPEG", ".txt", labelpath);
        find_replace(labelpath, ".JPG", ".txt", labelpath);
        find_replace(labelpath, ".JPeG", ".txt", labelpath);
        find_replace(labelpath, ".Jpeg", ".txt", labelpath);
        find_replace(labelpath, ".PNG", ".txt", labelpath);
        find_replace(labelpath, ".TIF", ".txt", labelpath);
        find_replace(labelpath, ".bmp", ".txt", labelpath);
        find_replace(labelpath, ".jpeg", ".txt", labelpath);
        find_replace(labelpath, ".jpg", ".txt", labelpath);
        find_replace(labelpath, ".png", ".txt", labelpath);
        find_replace(labelpath, ".tif", ".txt", labelpath);

        FILE *file = fopen(labelpath, "r");
        for(j = 0; j < k; ++j){
            fscanf(file, "%f", &(y.vals[i][j]));
        }
        fclose(file);
    }
    return y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movl %esi, %ebx
movq %rdi, 0x18(%rsp)
movl %esi, %edi
movl %edx, 0x4(%rsp)
movl %edx, %esi
callq 0x2f52e
movq %rax, 0x8(%rsp)
movq %rdx, %r12
testl %ebx, %ebx
jle 0x2b524
movl %ebx, %eax
movq %rax, 0x10(%rsp)
movl 0x4(%rsp), %ebp
shlq $0x2, %rbp
xorl %r13d, %r13d
movq 0x18(%rsp), %rax
movq (%rax,%r13,8), %rdi
leaq 0x2b5b0(%rip), %rsi     # 0x5694f
leaq 0x2b5b0(%rip), %rbx     # 0x56956
movq %rbx, %rdx
leaq 0x20(%rsp), %r14
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b59d(%rip), %rsi     # 0x5695d
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b5d9(%rip), %rsi     # 0x569ae
leaq 0x2d3dd(%rip), %rbx     # 0x587b9
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b57c(%rip), %rsi     # 0x5696d
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b562(%rip), %rsi     # 0x56968
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b598(%rip), %rsi     # 0x569b3
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b589(%rip), %rsi     # 0x569b9
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b57a(%rip), %rsi     # 0x569bf
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b56a(%rip), %rsi     # 0x569c4
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2a2d7(%rip), %rsi     # 0x55746
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b545(%rip), %rsi     # 0x569c9
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2a2bb(%rip), %rsi     # 0x55754
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2a1f8(%rip), %rsi     # 0x556a6
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2b50c(%rip), %rsi     # 0x569cf
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe842
movq %r14, %rdi
leaq 0x2d7f9(%rip), %rsi     # 0x58cd1
callq 0x33a0
movq %rax, %rbx
cmpl $0x0, 0x4(%rsp)
leaq 0x2b4f0(%rip), %r15     # 0x569dc
jle 0x2b50e
xorl %r14d, %r14d
movq (%r12,%r13,8), %rdx
addq %r14, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x30b0
addq $0x4, %r14
cmpq %r14, %rbp
jne 0x2b4f1
movq %rbx, %rdi
callq 0x3140
incq %r13
cmpq 0x10(%rsp), %r13
jne 0x2b38f
movq 0x8(%rsp), %rax
movq %r12, %rdx
addq $0x1028, %rsp           # imm = 0x1028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq