// File: /workspace/github_c_makefile_star2_O2/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 %edx, %ebx
movl %esi, %r14d
movq %rdi, 0x10(%rsp)
movl %esi, %edi
movl %edx, %esi
callq 0x221e3
movq %rax, 0x8(%rsp)
movq %rdx, %r13
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
testl %r14d, %r14d
cmovlel %eax, %r14d
movq %r14, 0x18(%rsp)
shlq $0x2, %rbx
leaq 0x316ec(%rip), %r12     # 0x4fa2c
xorl %r15d, %r15d
cmpq 0x18(%rsp), %r15
je 0x1e4d1
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rdi
leaq 0x31641(%rip), %rsi     # 0x4f99f
leaq 0x31641(%rip), %r14     # 0x4f9a6
movq %r14, %rdx
leaq 0x20(%rsp), %rbp
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x3162e(%rip), %rsi     # 0x4f9ad
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x3166a(%rip), %rsi     # 0x4f9fe
leaq 0x3342e(%rip), %r14     # 0x517c9
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x3160d(%rip), %rsi     # 0x4f9bd
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x315f3(%rip), %rsi     # 0x4f9b8
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x31629(%rip), %rsi     # 0x4fa03
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x3161a(%rip), %rsi     # 0x4fa09
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x3160b(%rip), %rsi     # 0x4fa0f
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x315fb(%rip), %rsi     # 0x4fa14
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x30310(%rip), %rsi     # 0x4e73e
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x315d6(%rip), %rsi     # 0x4fa19
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x302f4(%rip), %rsi     # 0x4e74c
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x30231(%rip), %rsi     # 0x4e69e
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x3159d(%rip), %rsi     # 0x4fa1f
movq %r14, %rdx
movq %rbp, %rcx
callq 0x42ea
movq %rbp, %rdi
leaq 0x33852(%rip), %rsi     # 0x51ce9
callq 0x3390
movq %rax, %r14
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x1e4c1
movq (%r13,%r15,8), %rdx
addq %rbp, %rdx
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x30a0
addq $0x4, %rbp
jmp 0x1e4a1
movq %r14, %rdi
callq 0x3130
incq %r15
jmp 0x1e343
movq 0x8(%rsp), %rax
movq %r13, %rdx
addq $0x1028, %rsp           # imm = 0x1028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq