// File: /workspace/github_c_makefile_star2_O3/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 0x311ee
movq %rax, 0x8(%rsp)
movq %rdx, %r12
testl %ebx, %ebx
jle 0x2d0ca
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 0x2bb0a(%rip), %rsi     # 0x58a4f
leaq 0x2bb0a(%rip), %rbx     # 0x58a56
movq %rbx, %rdx
leaq 0x20(%rsp), %r14
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2baf7(%rip), %rsi     # 0x58a5d
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2bb33(%rip), %rsi     # 0x58aae
leaq 0x2d98f(%rip), %rbx     # 0x5a911
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2bad6(%rip), %rsi     # 0x58a6d
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2babc(%rip), %rsi     # 0x58a68
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2baf2(%rip), %rsi     # 0x58ab3
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2bae3(%rip), %rsi     # 0x58ab9
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2bad4(%rip), %rsi     # 0x58abf
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2bac4(%rip), %rsi     # 0x58ac4
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2a809(%rip), %rsi     # 0x5781e
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2ba9f(%rip), %rsi     # 0x58ac9
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2a7ed(%rip), %rsi     # 0x5782c
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2a72a(%rip), %rsi     # 0x5777e
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2ba66(%rip), %rsi     # 0x58acf
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf02d
movq %r14, %rdi
leaq 0x2ddab(%rip), %rsi     # 0x5ae29
callq 0x3390
movq %rax, %rbx
cmpl $0x0, 0x4(%rsp)
leaq 0x2ba4a(%rip), %r15     # 0x58adc
jle 0x2d0b4
xorl %r14d, %r14d
movq (%r12,%r13,8), %rdx
addq %r14, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x30a0
addq $0x4, %r14
cmpq %r14, %rbp
jne 0x2d097
movq %rbx, %rdi
callq 0x3130
incq %r13
cmpq 0x10(%rsp), %r13
jne 0x2cf35
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