LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/matrix.c
// Function: print_matrix
void print_matrix(matrix m)
{
    int i, j;
    printf("%d X %d Matrix:\n",m.rows, m.cols);
    printf(" __");
    for(j = 0; j < 16*m.cols-1; ++j) printf(" ");
    printf("__ \n");

    printf("|  ");
    for(j = 0; j < 16*m.cols-1; ++j) printf(" ");
    printf("  |\n");

    for(i = 0; i < m.rows; ++i){
        printf("|  ");
        for(j = 0; j < m.cols; ++j){
            printf("%15.7f ", m.vals[i][j]);
        }
        printf(" |\n");
    }
    printf("|__");
    for(j = 0; j < 16*m.cols-1; ++j) printf(" ");
    printf("__|\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rsi
movq %rdi, %rbx
shrq $0x20, %rbx
leaq 0x27294(%rip), %rdi     # 0x56a96
movq %rsi, 0x8(%rsp)
movl %ebx, %edx
xorl %eax, %eax
callq 0x3170
leaq 0x27290(%rip), %rdi     # 0x56aa7
xorl %eax, %eax
callq 0x3170
movl %ebx, %r15d
shll $0x4, %r15d
decl %r15d
testl %ebx, %ebx
jle 0x2f847
cmpl $0x2, %r15d
movl $0x1, %ebp
cmovgel %r15d, %ebp
movl $0x20, %edi
callq 0x3060
decl %ebp
jne 0x2f839
leaq 0x2726d(%rip), %rdi     # 0x56abb
callq 0x30c0
leaq 0x27251(%rip), %rdi     # 0x56aab
xorl %eax, %eax
callq 0x3170
testl %ebx, %ebx
jle 0x2f880
cmpl $0x2, %r15d
movl $0x1, %ebp
cmovgel %r15d, %ebp
movl $0x20, %edi
callq 0x3060
decl %ebp
jne 0x2f872
movl %r15d, 0x14(%rsp)
leaq 0x27233(%rip), %rdi     # 0x56abf
callq 0x30c0
cmpl $0x0, 0x8(%rsp)
jle 0x2f8fe
movq 0x8(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x8(%rsp)
leaq 0x27201(%rip), %r13     # 0x56aaf
leaq 0x2720b(%rip), %rbp     # 0x56ac0
xorl %r12d, %r12d
leaq 0x271ec(%rip), %rdi     # 0x56aab
xorl %eax, %eax
callq 0x3170
testl %ebx, %ebx
jle 0x2f8ec
xorl %r15d, %r15d
movq (%r14,%r12,8), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r15,4), %xmm0
movq %r13, %rdi
movb $0x1, %al
callq 0x3170
incq %r15
cmpq %r15, %rbx
jne 0x2f8cd
movq %rbp, %rdi
callq 0x30c0
incq %r12
cmpq 0x8(%rsp), %r12
jne 0x2f8b8
leaq 0x271b2(%rip), %rdi     # 0x56ab7
xorl %eax, %eax
callq 0x3170
testl %ebx, %ebx
jle 0x2f92d
movl 0x14(%rsp), %eax
cmpl $0x2, %eax
movl $0x1, %ebx
cmovgel %eax, %ebx
movl $0x20, %edi
callq 0x3060
decl %ebx
jne 0x2f91f
leaq 0x2718f(%rip), %rdi     # 0x56ac3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30c0
nop
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: get_base_args
load_args get_base_args(network *net)
{
    load_args args = {0};
    args.w = net->w;
    args.h = net->h;
    args.size = net->w;

    args.min = net->min_crop;
    args.max = net->max_crop;
    args.angle = net->angle;
    args.aspect = net->aspect;
    args.exposure = net->exposure;
    args.center = net->center;
    args.saturation = net->saturation;
    args.hue = net->hue;
    return args;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0xa8, %edx
xorl %esi, %esi
callq 0x31d0
movl 0x94(%r14), %eax
movl %eax, 0x2c(%rbx)
movl 0x90(%r14), %ecx
movl %ecx, 0x28(%rbx)
movl %eax, 0x4c(%rbx)
movl 0xa0(%r14), %eax
movl %eax, 0x44(%rbx)
movl 0x9c(%r14), %eax
movl %eax, 0x48(%rbx)
movss 0xb0(%r14), %xmm0
movss %xmm0, 0x68(%rbx)
movss 0xb4(%r14), %xmm0
movss %xmm0, 0x6c(%rbx)
movss 0xb8(%r14), %xmm0
movss %xmm0, 0x74(%rbx)
movl 0xac(%r14), %eax
movl %eax, 0x5c(%rbx)
movss 0xbc(%r14), %xmm0
movss %xmm0, 0x70(%rbx)
movss 0xc0(%r14), %xmm0
movss %xmm0, 0x78(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: load_network
network *load_network(char *cfg, char *weights, int clear)
{
    network *net = parse_network_cfg(cfg);
    if(weights && weights[0] != 0){
        load_weights(net, weights);
    }
    if(clear) (*net->seen) = 0;
    return net;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
callq 0x4ebd
movq %rax, %rbx
testq %r14, %r14
je 0x2fa0b
cmpb $0x0, (%r14)
je 0x2fa0b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6c4b
testl %ebp, %ebp
je 0x2fa1a
movq 0x8(%rbx), %rax
movq $0x0, (%rax)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: make_network
network *make_network(int n)
{
    network *net = calloc(1, sizeof(network));
    net->n = n;
    net->layers = calloc(net->n, sizeof(layer));
    net->seen = calloc(1, sizeof(size_t));
    net->t    = calloc(1, sizeof(int));
    net->cost = calloc(1, sizeof(float));
    return net;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
movl $0x1, %edi
movl $0x110, %esi            # imm = 0x110
callq 0x3260
movq %rax, %rbx
movl %ebp, (%rax)
movslq %ebp, %rdi
movl $0x4a0, %esi            # imm = 0x4A0
callq 0x3260
movq %rax, 0x20(%rbx)
movl $0x1, %edi
movl $0x8, %esi
callq 0x3260
movq %rax, 0x8(%rbx)
movl $0x1, %edi
movl $0x4, %esi
callq 0x3260
movq %rax, 0x10(%rbx)
movl $0x1, %edi
movl $0x4, %esi
callq 0x3260
movq %rax, 0x100(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: forward_network
void forward_network(network *netp)
{
    network net = *netp;
    int i;
    for(i = 0; i < net.n; ++i){
        net.index = i;
        layer l = net.layers[i];
        if(l.delta){
            fill_cpu(l.outputs * l.batch, 0, l.delta, 1);
        }
        l.forward(l, net);
        net.input = l.output;
        if(l.truth) {
            net.truth = l.output;
        }
    }
    calc_network_cost(netp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb60, %rsp            # imm = 0xB60
movq %rdi, %rbx
leaq 0x5b0(%rsp), %r14
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32c0
cmpl $0x0, (%r14)
jle 0x2fdf8
xorl %r12d, %r12d
leaq 0x6c0(%rsp), %r14
leaq 0x5b0(%rsp), %r15
xorl %r13d, %r13d
movl %r13d, 0x6ac(%rsp)
movq 0x5d0(%rsp), %rsi
addq %r12, %rsi
movl $0x4a0, %edx            # imm = 0x4A0
movq %r14, %rdi
callq 0x32c0
movq 0x920(%rsp), %rsi
testq %rsi, %rsi
je 0x2fd93
movl 0x708(%rsp), %edi
imull 0x718(%rsp), %edi
xorps %xmm0, %xmm0
movl $0x1, %edx
callq 0x2863b
movl $0x94, %ecx
movq %rsp, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x4a0(%rsp), %rdi
movl $0x22, %ecx
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq *0x6d0(%rsp)
movq 0x928(%rsp), %rax
movq %rax, 0x688(%rsp)
cmpl $0x0, 0x788(%rsp)
je 0x2fddd
movq %rax, 0x690(%rsp)
incq %r13
movslq 0x5b0(%rsp), %rax
addq $0x4a0, %r12            # imm = 0x4A0
cmpq %rax, %r13
jl 0x2fd4a
movq %rbx, %rdi
addq $0xb60, %rsp            # imm = 0xB60
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2fe10
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: calc_network_cost
void calc_network_cost(network *netp)
{
    network net = *netp;
    int i;
    float sum = 0;
    int count = 0;
    for(i = 0; i < net.n; ++i){
        if(net.layers[i].cost){
            sum += net.layers[i].cost[0];
            ++count;
        }
    }
    *net.cost = sum/count;
}

// Assembly:
movslq (%rdi), %rdx
movq 0x100(%rdi), %rax
testq %rdx, %rdx
jle 0x2fe5b
movq 0x20(%rdi), %rcx
imulq $0x4a0, %rdx, %rdx      # imm = 0x4A0
xorps %xmm0, %xmm0
xorl %esi, %esi
xorl %edi, %edi
movq 0x1d8(%rcx,%rsi), %r8
testq %r8, %r8
je 0x2fe45
addss (%r8), %xmm0
incl %edi
addq $0x4a0, %rsi            # imm = 0x4A0
cmpq %rsi, %rdx
jne 0x2fe31
cvtsi2ss %edi, %xmm1
divss %xmm1, %xmm0
jmp 0x2fe63
movss 0x26c65(%rip), %xmm0    # 0x56ac8
movss %xmm0, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: update_network
void update_network(network *netp)
{
    network net = *netp;
    int i;
    update_args a = {0};
    a.batch = net.batch*net.subdivisions;
    a.learning_rate = get_current_rate(netp);
    a.momentum = net.momentum;
    a.decay = net.decay;
    a.adam = net.adam;
    a.B1 = net.B1;
    a.B2 = net.B2;
    a.eps = net.eps;
    ++*net.t;
    a.t = *net.t;

    for(i = 0; i < net.n; ++i){
        layer l = net.layers[i];
        if(l.update){
            l.update(l, a);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
movslq (%rdi), %r14
movq 0x10(%rdi), %r15
movl 0x1c(%rdi), %eax
movq 0x20(%rdi), %rbx
movq 0x38(%rdi), %r12
movl 0x70(%rdi), %ebp
movq 0x74(%rdi), %r13
movss 0x7c(%rdi), %xmm0
movss %xmm0, 0x4cc(%rsp)
imull 0x4(%rdi), %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x4d0(%rsp)
movaps %xmm0, 0x4e0(%rsp)
movl $0x0, 0x4f0(%rsp)
movl %eax, 0x4d0(%rsp)
callq 0x2fa3d
movss %xmm0, 0x4d4(%rsp)
movq %r12, 0x4d8(%rsp)
movl %ebp, 0x4e0(%rsp)
movq %r13, 0x4e4(%rsp)
movss 0x4cc(%rsp), %xmm0
movss %xmm0, 0x4ec(%rsp)
movl (%r15), %eax
incl %eax
movl %eax, (%r15)
movl %eax, 0x4f0(%rsp)
testq %r14, %r14
jle 0x2ff67
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x2ff5b
movl $0x94, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0x4f0(%rsp), %ecx
movl %ecx, 0x4c0(%rsp)
movaps 0x4d0(%rsp), %xmm0
movaps 0x4e0(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq *%rax
addq $0x4a0, %rbx            # imm = 0x4A0
decq %r14
jne 0x2ff14
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: backward_network
void backward_network(network *netp)
{
    network net = *netp;
    int i;
    network orig = net;
    for(i = net.n-1; i >= 0; --i){
        layer l = net.layers[i];
        if(l.stopbackward) break;
        if(i == 0){
            net = orig;
        }else{
            layer prev = net.layers[i-1];
            net.input = prev.output;
            net.delta = prev.delta;
        }
        net.index = i;
        l.backward(l, net);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc78, %rsp            # imm = 0xC78
movq %rdi, %r15
leaq 0x5b8(%rsp), %rbx
movl $0x110, %edx            # imm = 0x110
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32c0
leaq 0x6c8(%rsp), %rdi
movl $0x110, %edx            # imm = 0x110
movq %r15, %rsi
callq 0x32c0
movl (%rbx), %r13d
imulq $0x4a0, %r13, %r12      # imm = 0x4A0
addq $-0x6d8, %r12           # imm = 0xF928
testl %r13d, %r13d
jle 0x300a6
movq %rbx, %r15
leaq -0x1(%r13), %r14
movq 0x5d8(%rsp), %rbx
movl %r14d, %eax
imulq $0x4a0, %rax, %rsi      # imm = 0x4A0
addq %rbx, %rsi
movl $0x4a0, %edx            # imm = 0x4A0
leaq 0x7d8(%rsp), %rdi
callq 0x32c0
movl 0x950(%rsp), %ebp
testl %ebp, %ebp
jne 0x300a6
cmpl $0x1, %r13d
jne 0x30043
movl $0x110, %edx            # imm = 0x110
movq %r15, %rbx
movq %r15, %rdi
leaq 0x6c8(%rsp), %rsi
callq 0x32c0
jmp 0x3005f
movq -0x8(%rbx,%r12), %rax
movq (%rbx,%r12), %rcx
movq %rcx, 0x690(%rsp)
movq %rax, 0x6a0(%rsp)
movq %r15, %rbx
movl %r14d, 0x6b4(%rsp)
movl $0x94, %ecx
movq %rsp, %rdi
leaq 0x7d8(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x4a0(%rsp), %rdi
movl $0x22, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq *0x7f0(%rsp)
addq $-0x4a0, %r12           # imm = 0xFB60
movq %r14, %r13
testl %ebp, %ebp
je 0x2ffdd
addq $0xc78, %rsp            # imm = 0xC78
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: train_network_datum
float train_network_datum(network *net)
{
    *net->seen += net->batch;
    net->train = 1;
    forward_network(net);
    backward_network(net);
    float error = *net->cost;
    if(((*net->seen)/net->batch)%net->subdivisions == 0) update_network(net);
    return error;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movslq 0x4(%rdi), %rax
movq 0x8(%rdi), %rcx
addq %rax, (%rcx)
movl $0x1, 0xf8(%rdi)
callq 0x2fcff
movq %rbx, %rdi
callq 0x2ff8b
movq 0x8(%rbx), %rax
movq 0x100(%rbx), %rcx
movss (%rcx), %xmm0
movq (%rax), %rax
movslq 0x4(%rbx), %rcx
xorl %edx, %edx
divq %rcx
movslq 0x1c(%rbx), %rcx
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x3011f
movq %rbx, %rdi
movss %xmm0, 0xc(%rsp)
callq 0x2fe68
movss 0xc(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: train_network_sgd
float train_network_sgd(network *net, data d, int n)
{
    int batch = net->batch;

    int i;
    float sum = 0;
    for(i = 0; i < n; ++i){
        get_random_batch(d, batch, net->input, net->truth);
        float err = train_network_datum(net);
        sum += err;
    }
    return (float)sum/(n*batch);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %esi, %ebx
movl 0x4(%rdi), %ebp
testl %esi, %esi
jle 0x301a5
movq %rdi, %r14
leaq 0x80(%rsp), %r15
xorps %xmm1, %xmm1
movl %ebx, %r12d
movss %xmm1, 0x4c(%rsp)
movq 0xd8(%r14), %rsi
movq 0xe0(%r14), %rdx
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups 0x30(%r15), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %ebp, %edi
callq 0x2e809
movq %r14, %rdi
callq 0x300b8
movss 0x4c(%rsp), %xmm1
addss %xmm0, %xmm1
decl %r12d
jne 0x3014b
jmp 0x301a8
xorps %xmm1, %xmm1
imull %ebx, %ebp
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
divss %xmm0, %xmm1
movaps %xmm1, %xmm0
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: train_network
float train_network(network *net, data d)
{
    assert(d.X.rows % net->batch == 0);
    int batch = net->batch;
    int n = d.X.rows / batch;

    int i;
    float sum = 0;
    for(i = 0; i < n; ++i){
        get_next_batch(d, batch, i*batch, net->input, net->truth);
        float err = train_network_datum(net);
        sum += err;
    }
    return (float)sum/(n*batch);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl 0x88(%rsp), %eax
movl 0x4(%rdi), %ebx
cltd
idivl %ebx
testl %edx, %edx
jne 0x3028a
movl %eax, %ebp
testl %eax, %eax
jle 0x30267
movq %rdi, %r14
leaq 0x80(%rsp), %r12
xorps %xmm1, %xmm1
xorl %r15d, %r15d
movl %ebp, %r13d
movss %xmm1, 0x44(%rsp)
movq 0xd8(%r14), %rdx
movq 0xe0(%r14), %rcx
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %ebx, %edi
movl %r15d, %esi
callq 0x2e8a5
movq %r14, %rdi
callq 0x300b8
movss 0x44(%rsp), %xmm1
addss %xmm0, %xmm1
addl %ebx, %r15d
decl %r13d
jne 0x30203
jmp 0x3026a
xorps %xmm1, %xmm1
imull %ebx, %ebp
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
divss %xmm0, %xmm1
movaps %xmm1, %xmm0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x269fd(%rip), %rdi     # 0x56c8e
leaq 0x26a11(%rip), %rsi     # 0x56ca9
leaq 0x26a14(%rip), %rcx     # 0x56cb3
movl $0x121, %edx            # imm = 0x121
callq 0x31c0
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: set_batch_network
void set_batch_network(network *net, int b)
{
    net->batch = b;
    int i;
    for(i = 0; i < net->n; ++i){
        net->layers[i].batch = b;
    }
}

// Assembly:
movl %esi, 0x4(%rdi)
movslq (%rdi), %rcx
testq %rcx, %rcx
jle 0x302fc
movq 0x20(%rdi), %rax
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
xorl %edx, %edx
movl %esi, 0x48(%rax,%rdx)
addq $0x4a0, %rdx            # imm = 0x4A0
cmpq %rdx, %rcx
jne 0x302ec
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: get_network_detection_layer
layer get_network_detection_layer(network *net)
{
    int i;
    for(i = 0; i < net->n; ++i){
        if(net->layers[i].type == DETECTION){
            return net->layers[i];
        }
    }
    fprintf(stderr, "Detection layer not found!!\n");
    layer l = {0};
    return l;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq (%rsi), %rax
testq %rax, %rax
jle 0x30683
movq 0x20(%rsi), %rsi
imulq $0x4a0, %rax, %rcx      # imm = 0x4A0
xorl %eax, %eax
cmpl $0x5, (%rsi,%rax)
je 0x3068d
addq $0x4a0, %rax            # imm = 0x4A0
cmpq %rax, %rcx
jne 0x30672
movq %rbx, %rdi
callq 0x498f
jmp 0x3069d
addq %rax, %rsi
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
callq 0x32c0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: get_network_image_layer
image get_network_image_layer(network *net, int i)
{
    layer l = net->layers[i];
    if (l.out_w && l.out_h && l.out_c){
        return float_to_image(l.out_w, l.out_h, l.out_c, l.output);
    }
    image def = {0};
    return def;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rsi), %rax
movslq %edx, %rcx
imulq $0x4a0, %rcx, %rdi      # imm = 0x4A0
movl 0x78(%rax,%rdi), %edx
movl 0x7c(%rax,%rdi), %esi
movl 0x80(%rax,%rdi), %ecx
testl %esi, %esi
setne %r8b
testl %edx, %edx
setne %r9b
andb %r8b, %r9b
testl %ecx, %ecx
setne %r8b
andb %r9b, %r8b
cmpb $0x1, %r8b
jne 0x306f5
addq %rdi, %rax
movq 0x268(%rax), %r8
movq %rbx, %rdi
callq 0x1675b
jmp 0x30703
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: get_network_image
image get_network_image(network *net)
{
    int i;
    for(i = net->n-1; i >= 0; --i){
        image m = get_network_image_layer(net, i);
        if(m.h != 0) return m;
    }
    image def = {0};
    return def;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %ebp
testl %ebp, %ebp
jle 0x3072f
decl %ebp
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x306a2
cmpl $0x0, 0x4(%rbx)
je 0x30714
jmp 0x3073d
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: visualize_network
void visualize_network(network *net)
{
    image *prev = 0;
    int i;
    char buff[256];
    for(i = 0; i < net->n; ++i){
        sprintf(buff, "Layer %d", i);
        layer l = net->layers[i];
        if(l.type == CONVOLUTIONAL){
            prev = visualize_convolutional_layer(l, buff, prev);
        }
    } 
}

// Assembly:
cmpl $0x0, (%rdi)
jle 0x307d2
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5a8, %rsp            # imm = 0x5A8
movq %rdi, %rbx
leaq 0x2500f(%rip), %r14     # 0x55778
leaq 0x4a0(%rsp), %r15
xorl %ebp, %ebp
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r15, %rdi
movq %r14, %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x3430
movq 0x20(%rbx), %rsi
cmpl $0x0, (%rsi,%rbp)
jne 0x307af
addq %rbp, %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %r15, %rdi
movq %r13, %rsi
callq 0x10dd6
movq %rax, %r13
incq %r12
movslq (%rbx), %rax
addq $0x4a0, %rbp            # imm = 0x4A0
cmpq %rax, %r12
jl 0x30779
addq $0x5a8, %rsp            # imm = 0x5A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: network_predict
float *network_predict(network *net, float *input)
{
    network orig = *net;
    net->input = input;
    net->truth = 0;
    net->train = 0;
    net->delta = 0;
    forward_network(net);
    float *out = net->output;
    *net = orig;
    return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movl $0x110, %edx            # imm = 0x110
movq %r15, %rdi
movq %r14, %rsi
callq 0x32c0
movq %rbx, 0xd8(%r14)
movl $0x0, 0xf8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0xe0(%r14)
movq %r14, %rdi
callq 0x2fcff
movq 0x28(%r14), %rbx
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %r15, %rsi
callq 0x32c0
movq %rbx, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: num_detections
int num_detections(network *net, float thresh)
{
    int i;
    int s = 0;
    for(i = 0; i < net->n; ++i){
        layer l = net->layers[i];
        if(l.type == YOLO){
            s += yolo_num_detections(l, thresh);
        }
        if(l.type == DETECTION || l.type == REGION){
            s += l.w*l.h*l.n;
        }
    }
    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4b8, %rsp            # imm = 0x4B8
movss %xmm0, 0x4ac(%rsp)
cmpl $0x0, (%rdi)
jle 0x3090d
movq %rdi, %r13
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %ecx, %ecx
movq 0x20(%r13), %rsi
movl (%rsi,%r14), %ebp
movl 0x6c(%rsi,%r14), %r12d
movl 0x70(%rsi,%r14), %ebx
movl 0x84(%rsi,%r14), %eax
cmpl $0x17, %ebp
jne 0x308df
addq %r14, %rsi
movl %ecx, 0x4b4(%rsp)
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movss 0x4ac(%rsp), %xmm0
movl %eax, 0x4b0(%rsp)
callq 0x3fb63
movl 0x4b4(%rsp), %ecx
addl %eax, %ecx
movl 0x4b0(%rsp), %eax
cmpl $0x16, %ebp
je 0x308e9
cmpl $0x5, %ebp
jne 0x308f4
imull %ebx, %r12d
imull %eax, %r12d
addl %r12d, %ecx
incq %r15
movslq (%r13), %rax
addq $0x4a0, %r14            # imm = 0x4A0
cmpq %rax, %r15
jl 0x30886
jmp 0x3090f
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: make_network_boxes
detection *make_network_boxes(network *net, float thresh, int *num)
{
    layer l = net->layers[net->n - 1];
    int i;
    int nboxes = num_detections(net, thresh);
    if(num) *num = nboxes;
    detection *dets = calloc(nboxes, sizeof(detection));
    for(i = 0; i < nboxes; ++i){
        dets[i].prob = calloc(l.classes, sizeof(float));
        if(l.coords > 4){
            dets[i].mask = calloc(l.coords-4, sizeof(float));
        }
    }
    return dets;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0x20(%rdi), %rax
movslq (%rdi), %rcx
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
movslq -0x3a4(%rax,%rcx), %rbx
movl -0x3a0(%rax,%rcx), %r12d
callq 0x30858
movl %eax, %ebp
testq %r14, %r14
je 0x3095e
movl %ebp, (%r14)
movslq %ebp, %rdi
movl $0x30, %esi
callq 0x3260
movq %rax, %r14
testl %ebp, %ebp
jle 0x309b6
leal -0x4(%r12), %r15d
movl %ebp, %eax
shlq $0x4, %rax
leaq (%rax,%rax,2), %r13
xorl %ebp, %ebp
movl $0x4, %esi
movq %rbx, %rdi
callq 0x3260
movq %rax, 0x18(%r14,%rbp)
cmpl $0x5, %r12d
jl 0x309ad
movl $0x4, %esi
movq %r15, %rdi
callq 0x3260
movq %rax, 0x20(%r14,%rbp)
addq $0x30, %rbp
cmpq %rbp, %r13
jne 0x30983
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: fill_network_boxes
void fill_network_boxes(network *net, int w, int h, float thresh, float hier, int *map, int relative, detection *dets)
{
    int j;
    for(j = 0; j < net->n; ++j){
        layer l = net->layers[j];
        if(l.type == YOLO){
            int count = get_yolo_detections(l, w, h, net->w, net->h, thresh, map, relative, dets);
            dets += count;
        }
        if(l.type == REGION){
            get_region_detections(l, w, h, net->w, net->h, thresh, map, hier, relative, dets);
            dets += l.w*l.h*l.n;
        }
        if(l.type == DETECTION){
            get_detection_detections(l, w, h, thresh, dets);
            dets += l.w*l.h*l.n;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x968, %rsp            # imm = 0x968
movl %r8d, 0x4b8(%rsp)
movq %rcx, 0x4c0(%rsp)
movss %xmm1, 0x4bc(%rsp)
movss %xmm0, 0x4b4(%rsp)
movl %edx, 0x4b0(%rsp)
cmpl $0x0, (%rdi)
jle 0x30ba9
movq %r9, %rbx
movl %esi, %r12d
movq %rdi, %r13
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0x20(%r13), %r14
addq %rbp, %r14
movl $0x4a0, %edx            # imm = 0x4A0
leaq 0x4c8(%rsp), %rdi
movq %r14, %rsi
callq 0x32c0
cmpl $0x17, 0x4c8(%rsp)
jne 0x30a9a
movl 0x90(%r13), %eax
movl 0x94(%r13), %edx
movl $0x94, %ecx
movq %rsp, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, 0x4a0(%rsp)
movl %r12d, %edi
movl 0x4b0(%rsp), %esi
movl %eax, %ecx
movss 0x4b4(%rsp), %xmm0
movq 0x4c0(%rsp), %r8
movl 0x4b8(%rsp), %r9d
callq 0x3fd83
cltq
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rbx
cmpl $0x16, 0x4c8(%rsp)
jne 0x30b2f
movl 0x90(%r13), %eax
movl 0x94(%r13), %edx
movl $0x94, %ecx
movq %rsp, %rdi
leaq 0x4c8(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, 0x4a0(%rsp)
movl %r12d, %edi
movl 0x4b0(%rsp), %esi
movl %eax, %ecx
movss 0x4b4(%rsp), %xmm0
movq 0x4c0(%rsp), %r8
movss 0x4bc(%rsp), %xmm1
movl 0x4b8(%rsp), %r9d
callq 0x3c121
movslq 0x538(%rsp), %rax
movslq 0x534(%rsp), %rcx
imulq %rax, %rcx
movslq 0x54c(%rsp), %rax
imulq %rcx, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rbx
cmpl $0x5, 0x4c8(%rsp)
jne 0x30b92
movl $0x94, %ecx
movq %rsp, %rdi
leaq 0x4c8(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movl %r12d, %edi
movl 0x4b0(%rsp), %esi
movss 0x4b4(%rsp), %xmm0
movq %rbx, %rdx
callq 0x35cfe
movslq 0x538(%rsp), %rax
movslq 0x534(%rsp), %rcx
imulq %rax, %rcx
movslq 0x54c(%rsp), %rax
imulq %rcx, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rbx
incq %r15
movslq (%r13), %rax
addq $0x4a0, %rbp            # imm = 0x4A0
cmpq %rax, %r15
jl 0x30a19
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: free_detections
void free_detections(detection *dets, int n)
{
    int i;
    for(i = 0; i < n; ++i){
        free(dets[i].prob);
        if(dets[i].mask) free(dets[i].mask);
    }
    free(dets);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
jle 0x30c58
movl %esi, %eax
shlq $0x4, %rax
leaq (%rax,%rax,2), %r14
xorl %r15d, %r15d
movq 0x18(%rbx,%r15), %rdi
callq 0x3040
movq 0x20(%rbx,%r15), %rdi
testq %rdi, %rdi
je 0x30c4f
callq 0x3040
addq $0x30, %r15
cmpq %r15, %r14
jne 0x30c36
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: network_predict_image
float *network_predict_image(network *net, image im)
{
    image imr = letterbox_image(im, net->w, net->h);
    set_batch_network(net, 1);
    float *p = network_predict(net, imr.data);
    free_image(imr);
    return p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rdi, %rbx
movl 0x90(%rdi), %edx
movl 0x94(%rdi), %esi
movq 0x170(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x160(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x18(%rsp), %rdi
callq 0x1905c
movl $0x1, 0x4(%rbx)
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x30cd3
movq 0x20(%rbx), %rax
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
xorl %edx, %edx
movl $0x1, 0x48(%rax,%rdx)
addq $0x4a0, %rdx            # imm = 0x4A0
cmpq %rdx, %rcx
jne 0x30cbf
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %r14
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32c0
movq %r15, 0xd8(%rbx)
movl $0x0, 0xf8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xe0(%rbx)
movq %rbx, %rdi
callq 0x2fcff
movq 0x28(%rbx), %r15
movl $0x110, %edx            # imm = 0x110
movq %rbx, %rdi
movq %r14, %rsi
callq 0x32c0
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x15b37
movq %r15, %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: network_predict_data
matrix network_predict_data(network *net, data test)
{
    int i,j,b;
    int k = net->outputs;
    matrix pred = make_matrix(test.X.rows, k);
    float *X = calloc(net->batch*test.X.cols, sizeof(float));
    for(i = 0; i < test.X.rows; i += net->batch){
        for(b = 0; b < net->batch; ++b){
            if(i+b == test.X.rows) break;
            memcpy(X+b*test.X.cols, test.X.vals[i+b], test.X.cols*sizeof(float));
        }
        float *out = network_predict(net, X);
        for(b = 0; b < net->batch; ++b){
            if(i+b == test.X.rows) break;
            for(j = 0; j < k; ++j){
                pred.vals[i+b][j] = out[j+b*k];
            }
        }
    }
    free(X);
    return pred;   
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, %rbx
movl 0x84(%rdi), %r14d
movslq 0x1a8(%rsp), %r15
movl %r15d, %edi
movl %r14d, %esi
callq 0x2f52e
movq %rax, 0x20(%rsp)
movq %rdx, %r13
movslq 0x4(%rbx), %rdi
movslq 0x1ac(%rsp), %rax
movq %rax, 0x18(%rsp)
imulq %rax, %rdi
movl $0x4, %esi
callq 0x3260
movq %rax, (%rsp)
testq %r15, %r15
jle 0x31111
leaq 0x1a0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
shlq $0x2, 0x18(%rsp)
leaq 0xe0(%rbx), %rax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
movq %rbx, 0x40(%rsp)
movq %r15, 0x8(%rsp)
movq %r13, 0x38(%rsp)
movslq 0x4(%rbx), %rdx
movq %rcx, 0x48(%rsp)
movslq %ecx, %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x50(%rsp)
testq %rdx, %rdx
jle 0x31055
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rcx
subq %rcx, %r15
movq 0x28(%rsp), %rax
leaq (%rax,%rcx,8), %r13
movq (%rsp), %r12
xorl %ebp, %ebp
cmpq %rbp, %r15
je 0x31055
movq (%r13,%rbp,8), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rdx
callq 0x32c0
incq %rbp
addq %rbx, %r12
cmpq %rbp, 0x50(%rsp)
jne 0x3102e
movl $0x110, %edx            # imm = 0x110
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movq 0x40(%rsp), %rbx
movq %rbx, %rsi
callq 0x32c0
movq (%rsp), %rax
movq %rax, 0xd8(%rbx)
movl $0x0, 0xf8(%rbx)
movq 0x30(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %rbx, %rdi
callq 0x2fcff
movq 0x28(%rbx), %r12
movl $0x110, %edx            # imm = 0x110
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32c0
movslq 0x4(%rbx), %rax
testq %rax, %rax
movq 0x8(%rsp), %r15
movq 0x38(%rsp), %r13
movq 0x10(%rsp), %r9
jle 0x31102
xorl %ecx, %ecx
xorl %edx, %edx
leaq (%rdx,%r9), %rdi
cmpq %r15, %rdi
je 0x31102
testl %r14d, %r14d
jle 0x310f7
movl %ecx, %esi
leaq (%r12,%rsi,4), %rsi
movq (%r13,%rdi,8), %rdi
xorl %r8d, %r8d
movss (%rsi,%r8,4), %xmm0
movss %xmm0, (%rdi,%r8,4)
incq %r8
cmpq %r8, %r14
jne 0x310e3
incq %rdx
addl %r14d, %ecx
cmpq %rax, %rdx
jne 0x310c7
addl 0x48(%rsp), %eax
movl %eax, %ecx
cmpl %r15d, %eax
jl 0x30ff7
movq (%rsp), %rdi
callq 0x3040
movq 0x20(%rsp), %rax
movq %r13, %rdx
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: compare_networks
void compare_networks(network *n1, network *n2, data test)
{
    matrix g1 = network_predict_data(n1, test);
    matrix g2 = network_predict_data(n2, test);
    int i;
    int a,b,c,d;
    a = b = c = d = 0;
    for(i = 0; i < g1.rows; ++i){
        int truth = max_index(test.y.vals[i], test.y.cols);
        int p1 = max_index(g1.vals[i], g1.cols);
        int p2 = max_index(g2.vals[i], g2.cols);
        if(p1 == truth){
            if(p2 == truth) ++d;
            else ++c;
        }else{
            if(p2 == truth) ++b;
            else ++a;
        }
    }
    printf("%5d %5d\n%5d %5d\n", a, b, c, d);
    float num = pow((abs(b - c) - 1.), 2.);
    float den = b + c;
    printf("%f\n", num/den); 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movaps 0xb0(%rsp), %xmm0
movaps 0xc0(%rsp), %xmm1
movaps 0xd0(%rsp), %xmm2
movaps 0xe0(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x30f61
movq %rax, %r12
movq %rdx, 0x70(%rsp)
movaps 0xb0(%rsp), %xmm0
movaps 0xc0(%rsp), %xmm1
movaps 0xd0(%rsp), %xmm2
movaps 0xe0(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x30f61
movq %rdx, 0x68(%rsp)
testl %r12d, %r12d
jle 0x31296
movq %rax, %r15
leaq 0xb0(%rsp), %rax
movq 0x20(%rax), %rcx
movq %rcx, 0x60(%rsp)
movl 0x1c(%rax), %eax
movl %eax, 0x5c(%rsp)
movq %r12, %rbx
shrq $0x20, %rbx
shrq $0x20, %r15
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movl $0x0, 0x4c(%rsp)
movl $0x0, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
movl $0x0, 0x50(%rsp)
movq 0x60(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movl 0x5c(%rsp), %esi
callq 0xf278
movl %eax, %r14d
movq 0x70(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movl %ebx, %esi
callq 0xf278
movl %eax, %r13d
movq 0x68(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movl %r15d, %esi
callq 0xf278
cmpl %r14d, %r13d
jne 0x31277
cmpl %r14d, %eax
jne 0x31282
incl 0x50(%rsp)
jmp 0x3128c
cmpl %r14d, %eax
jne 0x31288
incl 0x58(%rsp)
jmp 0x3128c
incl 0x54(%rsp)
jmp 0x3128c
incl 0x4c(%rsp)
incq %rbp
cmpq %rbp, %r12
jne 0x3122e
jmp 0x312b6
movl $0x0, 0x50(%rsp)
movl $0x0, 0x54(%rsp)
movl $0x0, 0x58(%rsp)
movl $0x0, 0x4c(%rsp)
leaq 0x25ab0(%rip), %rdi     # 0x56d6d
movl 0x4c(%rsp), %esi
movl 0x58(%rsp), %ebx
movl %ebx, %edx
movl 0x54(%rsp), %ebp
movl %ebp, %ecx
movl 0x50(%rsp), %r8d
xorl %eax, %eax
callq 0x3170
movl %ebx, %eax
subl %ebp, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
decl %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
mulsd %xmm0, %xmm0
addl %ebp, %ebx
xorps %xmm1, %xmm1
cvtsi2ss %ebx, %xmm1
cvtsd2ss %xmm0, %xmm0
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x275ab(%rip), %rdi     # 0x588b8
movb $0x1, %al
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3170
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: network_accuracy
float network_accuracy(network *net, data d)
{
    matrix guess = network_predict_data(net, d);
    float acc = matrix_topk_accuracy(d.y, guess,1);
    free_matrix(guess);
    return acc;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movaps 0x80(%rsp), %xmm2
movaps 0x90(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x30f61
movq %rax, %rbx
movq %rdx, %r14
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq %rax, %rdx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x2f24c
movss %xmm0, 0x44(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f214
movss 0x44(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: network_accuracies
float *network_accuracies(network *net, data d, int n)
{
    static float acc[2];
    matrix guess = network_predict_data(net, d);
    acc[0] = matrix_topk_accuracy(d.y, guess, 1);
    acc[1] = matrix_topk_accuracy(d.y, guess, n);
    free_matrix(guess);
    return acc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebx
movaps 0x70(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movaps 0x90(%rsp), %xmm2
movaps 0xa0(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x30f61
movq %rax, %r14
movq %rdx, %r15
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq %rax, %rdx
movq %r15, %rcx
movl $0x1, %r8d
callq 0x2f24c
movss %xmm0, 0x39401(%rip)    # 0x6a810
leaq 0x393fa(%rip), %r12     # 0x6a810
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq %r14, %rdx
movq %r15, %rcx
movl %ebx, %r8d
callq 0x2f24c
movss %xmm0, 0x393d8(%rip)    # 0x6a814
movq %r14, %rdi
movq %r15, %rsi
callq 0x2f214
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: free_network
void free_network(network *net)
{
    int i;
    for(i = 0; i < net->n; ++i){
        free_layer(net->layers[i]);
    }
    free(net->layers);
    if(net->input) free(net->input);
    if(net->truth) free(net->truth);
    free(net);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x4a0, %rsp            # imm = 0x4A0
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x31515
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x20(%rbx), %rsi
addq %r14, %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
callq 0x37b28
incq %r15
movslq (%rbx), %rax
addq $0x4a0, %r14            # imm = 0x4A0
cmpq %rax, %r15
jl 0x314ec
movq 0x20(%rbx), %rdi
callq 0x3040
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x3152f
callq 0x3040
movq 0xe0(%rbx), %rdi
testq %rdi, %rdi
je 0x31540
callq 0x3040
movq %rbx, %rdi
addq $0x4a0, %rsp            # imm = 0x4A0
popq %rbx
popq %r14
popq %r15
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: network_outputs
layer network_output_layer(network *net)
{
    int i;
    for(i = net->n - 1; i >= 0; --i){
        if(net->layers[i].type != COST) break;
    }
    return net->layers[i];
}

// Assembly:
movl (%rdi), %eax
movl %eax, %ecx
sarl $0x1f, %ecx
andl %eax, %ecx
decl %ecx
movq %rax, %rdx
decq %rdx
testl %eax, %eax
jle 0x315e6
movq 0x20(%rdi), %rsi
movl %edx, %r8d
imulq $0x4a0, %r8, %r8        # imm = 0x4A0
decl %eax
decq %rdx
cmpl $0x9, (%rsi,%r8)
je 0x315c6
jmp 0x315e8
movl %ecx, %eax
movq 0x20(%rdi), %rcx
cltq
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
movl 0x58(%rcx,%rax), %eax
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/connected_layer.c
// Function: forward_connected_layer
void forward_connected_layer(layer l, network net)
{
    fill_cpu(l.outputs*l.batch, 0, l.output, 1);
    int m = l.batch;
    int k = l.inputs;
    int n = l.outputs;
    float *a = net.input;
    float *b = l.weights;
    float *c = l.output;
    gemm(0,1,m,n,k,1,a,k,b,k,1,c,n);
    if(l.batch_normalize){
        forward_batchnorm_layer(l, net);
    } else {
        add_bias(l.output, l.biases, l.batch, l.outputs, 1);
    }
    activate_array(l.output, l.outputs*l.batch, l.activation);
}

// Assembly:
pushq %rbx
leaq 0x10(%rsp), %rbx
movl 0x48(%rbx), %edi
imull 0x58(%rbx), %edi
movq 0x268(%rbx), %rsi
xorps %xmm0, %xmm0
movl $0x1, %edx
callq 0x2863b
movl 0x48(%rbx), %edx
movl 0x54(%rbx), %r8d
movl 0x58(%rbx), %ecx
movq 0x588(%rsp), %r9
subq $0x8, %rsp
movss 0x21985(%rip), %xmm0    # 0x53008
xorl %edi, %edi
movl $0x1, %esi
movaps %xmm0, %xmm1
pushq %rcx
pushq 0x268(%rbx)
pushq %r8
pushq 0x250(%rbx)
pushq %r8
callq 0xdd4d
addq $0x30, %rsp
cmpl $0x0, 0x40(%rbx)
je 0x316eb
leaq 0x4b0(%rsp), %rax
subq $0x5b0, %rsp            # imm = 0x5B0
movl $0x94, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x4a0(%rsp), %rdi
movl $0x22, %ecx
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x3a360
addq $0x5b0, %rsp            # imm = 0x5B0
jmp 0x3170a
movq 0x268(%rbx), %rdi
movq 0x230(%rbx), %rsi
movl 0x48(%rbx), %edx
movl 0x58(%rbx), %ecx
movl $0x1, %r8d
callq 0x10996
movq 0x268(%rbx), %rdi
movl 0x48(%rbx), %esi
imull 0x58(%rbx), %esi
movl 0x4(%rbx), %edx
popq %rbx
jmp 0x275e5
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/connected_layer.c
// Function: backward_connected_layer
void backward_connected_layer(layer l, network net)
{
    gradient_array(l.output, l.outputs*l.batch, l.activation, l.delta);

    if(l.batch_normalize){
        backward_batchnorm_layer(l, net);
    } else {
        backward_bias(l.bias_updates, l.delta, l.batch, l.outputs, 1);
    }

    int m = l.outputs;
    int k = l.batch;
    int n = l.inputs;
    float *a = l.delta;
    float *b = net.input;
    float *c = l.weight_updates;
    gemm(1,0,m,n,k,1,a,m,b,n,1,c,n);

    m = l.batch;
    k = l.outputs;
    n = l.inputs;

    a = l.delta;
    b = l.weights;
    c = net.delta;

    if(c) gemm(0,0,m,n,k,1,a,k,b,n,1,c,n);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x4c0(%rsp), %r14
leaq 0x20(%rsp), %rbx
movq 0x268(%rbx), %rdi
movl 0x4(%rbx), %edx
movl 0x48(%rbx), %esi
imull 0x58(%rbx), %esi
movq 0x260(%rbx), %rcx
callq 0x27834
cmpl $0x0, 0x40(%rbx)
je 0x3178b
subq $0x5b0, %rsp            # imm = 0x5B0
movl $0x94, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x4a0(%rsp), %rdi
movl $0x22, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x3a570
addq $0x5b0, %rsp            # imm = 0x5B0
jmp 0x317aa
movq 0x238(%rbx), %rdi
movq 0x260(%rbx), %rsi
movl 0x48(%rbx), %edx
movl 0x58(%rbx), %ecx
movl $0x1, %r8d
callq 0x10a7a
movl 0x58(%rbx), %edx
movl 0x48(%rbx), %r8d
movl 0x54(%rbx), %ecx
movq 0x260(%rbx), %r9
subq $0x8, %rsp
movss 0x21841(%rip), %xmm0    # 0x53008
movl $0x1, %edi
xorl %esi, %esi
movaps %xmm0, %xmm1
pushq %rcx
pushq 0x258(%rbx)
pushq %rcx
pushq 0xd8(%r14)
pushq %rdx
callq 0xdd4d
addq $0x30, %rsp
movq 0xe8(%r14), %rax
testq %rax, %rax
je 0x31830
movq 0x260(%rbx), %r9
movl 0x48(%rbx), %edx
movl 0x54(%rbx), %ecx
movl 0x58(%rbx), %r8d
subq $0x8, %rsp
movss 0x217f5(%rip), %xmm0    # 0x53008
xorl %edi, %edi
xorl %esi, %esi
movaps %xmm0, %xmm1
pushq %rcx
pushq %rax
pushq %rcx
pushq 0x250(%rbx)
pushq %r8
callq 0xdd4d
addq $0x38, %rsp
jmp 0x31834
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/connected_layer.c
// Function: update_connected_layer
void update_connected_layer(layer l, update_args a)
{
    float learning_rate = a.learning_rate*l.learning_rate_scale;
    float momentum = a.momentum;
    float decay = a.decay;
    int batch = a.batch;
    axpy_cpu(l.outputs, learning_rate/batch, l.bias_updates, 1, l.biases, 1);
    scal_cpu(l.outputs, momentum, l.bias_updates, 1);

    if(l.batch_normalize){
        axpy_cpu(l.outputs, learning_rate/batch, l.scale_updates, 1, l.scales, 1);
        scal_cpu(l.outputs, momentum, l.scale_updates, 1);
    }

    axpy_cpu(l.inputs*l.outputs, -decay*batch, l.weights, 1, l.weight_updates, 1);
    axpy_cpu(l.inputs*l.outputs, learning_rate/batch, l.weight_updates, 1, l.weights, 1);
    scal_cpu(l.inputs*l.outputs, momentum, l.weight_updates, 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0x40(%rsp), %r15
movss 0x4e4(%rsp), %xmm0
movss 0x4e8(%rsp), %xmm1
movss %xmm1, 0x4(%rsp)
mulss 0xec(%r15), %xmm0
movss 0x4ec(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
xorps %xmm1, %xmm1
cvtsi2ssl 0x4e0(%rsp), %xmm1
movl 0x58(%r15), %ebx
movss %xmm1, 0xc(%rsp)
divss %xmm1, %xmm0
movq 0x238(%r15), %r14
movq 0x230(%r15), %rcx
movl %ebx, %edi
movss %xmm0, 0x8(%rsp)
movq %r14, %rsi
movl $0x1, %edx
movl $0x1, %r8d
callq 0x285e9
movl %ebx, %edi
movss 0x4(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x28619
cmpl $0x0, 0x40(%r15)
je 0x31912
movq 0x240(%r15), %rcx
movq 0x248(%r15), %r14
movl %ebx, %edi
movss 0x8(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
movl $0x1, %r8d
callq 0x285e9
movl %ebx, %edi
movss 0x4(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x28619
imull 0x54(%r15), %ebx
movaps 0x10(%rsp), %xmm0
xorps 0x2182d(%rip), %xmm0    # 0x53150
mulss 0xc(%rsp), %xmm0
movq 0x250(%r15), %r14
movq 0x258(%r15), %r15
movl %ebx, %edi
movq %r14, %rsi
movl $0x1, %edx
movq %r15, %rcx
movl $0x1, %r8d
callq 0x285e9
movl %ebx, %edi
movss 0x8(%rsp), %xmm0
movq %r15, %rsi
movl $0x1, %edx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x285e9
movl %ebx, %edi
movss 0x4(%rsp), %xmm0
movq %r15, %rsi
movl $0x1, %edx
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x28619
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/connected_layer.c
// Function: denormalize_connected_layer
void denormalize_connected_layer(layer l)
{
    int i, j;
    for(i = 0; i < l.outputs; ++i){
        float scale = l.scales[i]/sqrt(l.rolling_variance[i] + .000001);
        for(j = 0; j < l.inputs; ++j){
            l.weights[i*l.inputs + j] *= scale;
        }
        l.biases[i] -= l.rolling_mean[i] * scale;
        l.scales[i] = 1;
        l.rolling_mean[i] = 0;
        l.rolling_variance[i] = 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movslq 0xb8(%rsp), %rcx
testq %rcx, %rcx
jle 0x31ab9
leaq 0x60(%rsp), %rax
movq 0x240(%rax), %rbp
movq 0x2b8(%rax), %rsi
movl 0x54(%rax), %r12d
movq 0x250(%rax), %r13
movq 0x2b0(%rax), %rbx
movq 0x230(%rax), %r8
leaq (,%r12,4), %r15
xorl %r14d, %r14d
movsd 0x21667(%rip), %xmm2    # 0x53050
xorpd %xmm3, %xmm3
movl $0x3f800000, %r10d      # imm = 0x3F800000
movq %rsi, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
xorps %xmm1, %xmm1
cvtss2sd (%rbp,%r14,4), %xmm1
xorps %xmm0, %xmm0
cvtss2sd (%rsi,%r14,4), %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm3, %xmm0
jb 0x31a25
sqrtsd %xmm0, %xmm0
jmp 0x31a57
movsd %xmm1, 0x20(%rsp)
callq 0x3470
movsd 0x20(%rsp), %xmm1
movl $0x3f800000, %r10d      # imm = 0x3F800000
xorpd %xmm3, %xmm3
movsd 0x21608(%rip), %xmm2    # 0x53050
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rcx
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
testl %r12d, %r12d
jle 0x31a83
xorl %eax, %eax
movss (%r13,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%r13,%rax,4)
incq %rax
cmpq %rax, %r12
jne 0x31a69
movss (%r8,%r14,4), %xmm1
mulss (%rbx,%r14,4), %xmm0
subss %xmm0, %xmm1
movss %xmm1, (%r8,%r14,4)
movl %r10d, (%rbp,%r14,4)
movl $0x0, (%rbx,%r14,4)
movl %r10d, (%rsi,%r14,4)
incq %r14
addq %r15, %r13
cmpq %rcx, %r14
jne 0x31a02
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/connected_layer.c
// Function: statistics_connected_layer
void statistics_connected_layer(layer l)
{
    if(l.batch_normalize){
        printf("Scales ");
        print_statistics(l.scales, l.outputs);
        /*
           printf("Rolling Mean ");
           print_statistics(l.rolling_mean, l.outputs);
           printf("Rolling Variance ");
           print_statistics(l.rolling_variance, l.outputs);
         */
    }
    printf("Biases ");
    print_statistics(l.biases, l.outputs);
    printf("Weights ");
    print_statistics(l.weights, l.outputs);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x20(%rsp), %r14
cmpl $0x0, 0x40(%r14)
je 0x31af6
leaq 0x252d2(%rip), %rdi     # 0x56db1
xorl %eax, %eax
callq 0x3170
movq 0x240(%r14), %rdi
movl 0x58(%r14), %esi
callq 0xeeb8
leaq 0x252bc(%rip), %rdi     # 0x56db9
xorl %eax, %eax
callq 0x3170
movq 0x230(%r14), %rdi
movl 0x58(%r14), %ebx
movl %ebx, %esi
callq 0xeeb8
leaq 0x252a4(%rip), %rdi     # 0x56dc1
xorl %eax, %eax
callq 0x3170
movq 0x250(%r14), %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xeeb8
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/cost_layer.c
// Function: get_cost_type
COST_TYPE get_cost_type(char *s)
{
    if (strcmp(s, "seg")==0) return SEG;
    if (strcmp(s, "sse")==0) return SSE;
    if (strcmp(s, "masked")==0) return MASKED;
    if (strcmp(s, "smooth")==0) return SMOOTH;
    if (strcmp(s, "L1")==0) return L1;
    if (strcmp(s, "wgan")==0) return WGAN;
    fprintf(stderr, "Couldn't find cost type %s, going with SSE\n", s);
    return SSE;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x25287(%rip), %rsi     # 0x56dd0
callq 0x3270
testl %eax, %eax
je 0x31bd9
leaq 0x25277(%rip), %rsi     # 0x56dd4
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x31be0
leaq 0x25268(%rip), %rsi     # 0x56dd8
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x31be4
leaq 0x27869(%rip), %rsi     # 0x593ec
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x31beb
leaq 0x25249(%rip), %rsi     # 0x56ddf
movq %rbx, %rdi
callq 0x3270
testl %eax, %eax
je 0x31bf2
leaq 0x25239(%rip), %rsi     # 0x56de2
movq %rbx, %rdi
callq 0x3270
movl $0x5, %ebp
testl %eax, %eax
je 0x31bf7
movq 0x38437(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x2521c(%rip), %rsi     # 0x56de7
xorl %ebp, %ebp
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3280
jmp 0x31bf7
movl $0x3, %ebp
jmp 0x31bf7
xorl %ebp, %ebp
jmp 0x31bf7
movl $0x1, %ebp
jmp 0x31bf7
movl $0x4, %ebp
jmp 0x31bf7
movl $0x2, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq