LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x276b1(%rip), %rdi     # 0x58b96
movq %rsi, 0x8(%rsp)
movl %ebx, %edx
xorl %eax, %eax
callq 0x3160
leaq 0x276ad(%rip), %rdi     # 0x58ba7
xorl %eax, %eax
callq 0x3160
movl %ebx, %r15d
shll $0x4, %r15d
decl %r15d
testl %ebx, %ebx
jle 0x31565
cmpl $0x2, %r15d
movl $0x1, %ebp
cmovgel %r15d, %ebp
movl $0x20, %edi
callq 0x3060
decl %ebp
jne 0x3151c
leaq 0x2768a(%rip), %rdi     # 0x58bbb
callq 0x30b0
leaq 0x2766e(%rip), %rdi     # 0x58bab
xorl %eax, %eax
callq 0x3160
testl %ebx, %ebx
jle 0x3157f
cmpl $0x2, %r15d
movl $0x1, %ebp
cmovgel %r15d, %ebp
movl $0x20, %edi
callq 0x3060
decl %ebp
jne 0x31555
jmp 0x3157f
leaq 0x2764f(%rip), %rdi     # 0x58bbb
callq 0x30b0
leaq 0x27633(%rip), %rdi     # 0x58bab
xorl %eax, %eax
callq 0x3160
movl %r15d, 0x14(%rsp)
leaq 0x27634(%rip), %rdi     # 0x58bbf
callq 0x30b0
cmpl $0x0, 0x8(%rsp)
jle 0x315fd
movq 0x8(%rsp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, 0x8(%rsp)
leaq 0x27602(%rip), %r13     # 0x58baf
leaq 0x2760c(%rip), %rbp     # 0x58bc0
xorl %r15d, %r15d
leaq 0x275ed(%rip), %rdi     # 0x58bab
xorl %eax, %eax
callq 0x3160
testl %ebx, %ebx
jle 0x315eb
xorl %r12d, %r12d
movq (%r14,%r15,8), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r12,4), %xmm0
movq %r13, %rdi
movb $0x1, %al
callq 0x3160
incq %r12
cmpq %r12, %rbx
jne 0x315cc
movq %rbp, %rdi
callq 0x30b0
incq %r15
cmpq 0x8(%rsp), %r15
jne 0x315b7
leaq 0x275b3(%rip), %rdi     # 0x58bb7
xorl %eax, %eax
callq 0x3160
testl %ebx, %ebx
jle 0x3162c
movl 0x14(%rsp), %eax
cmpl $0x2, %eax
movl $0x1, %ebx
cmovgel %eax, %ebx
movl $0x20, %edi
callq 0x3060
decl %ebx
jne 0x3161e
leaq 0x27590(%rip), %rdi     # 0x58bc3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30b0
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x5145
movq %rax, %rbx
testq %r14, %r14
je 0x316e3
cmpb $0x0, (%r14)
je 0x316e3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6eeb
testl %ebp, %ebp
je 0x316f2
movq 0x8(%rbx), %rax
movq $0x0, (%rax)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3250
movq %rax, %rbx
movl %ebp, (%rax)
movslq %ebp, %rdi
movl $0x4a0, %esi            # imm = 0x4A0
callq 0x3250
movq %rax, 0x20(%rbx)
movl $0x1, %edi
movl $0x8, %esi
callq 0x3250
movq %rax, 0x8(%rbx)
movl $0x1, %edi
movl $0x4, %esi
callq 0x3250
movq %rax, 0x10(%rbx)
movl $0x1, %edi
movl $0x4, %esi
callq 0x3250
movq %rax, 0x100(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x32b0
cmpl $0x0, (%r14)
jle 0x31ad0
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 0x32b0
movq 0x920(%rsp), %rsi
testq %rsi, %rsi
je 0x31a6b
movl 0x708(%rsp), %edi
imull 0x718(%rsp), %edi
xorps %xmm0, %xmm0
movl $0x1, %edx
callq 0x29d83
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 0x31ab5
movq %rax, 0x690(%rsp)
incq %r13
movslq 0x5b0(%rsp), %rax
addq $0x4a0, %r12            # imm = 0x4A0
cmpq %rax, %r13
jl 0x31a22
movq %rbx, %rdi
addq $0xb60, %rsp            # imm = 0xB60
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x31ae8
// File: /workspace/github_c_makefile_star2_O3/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 0x31b33
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 0x31b1d
addss (%r8), %xmm0
incl %edi
addq $0x4a0, %rsi            # imm = 0x4A0
cmpq %rsi, %rdx
jne 0x31b09
cvtsi2ss %edi, %xmm1
divss %xmm1, %xmm0
jmp 0x31b3b
movss 0x2708d(%rip), %xmm0    # 0x58bc8
movss %xmm0, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
subq $0x508, %rsp            # imm = 0x508
movslq (%rdi), %r14
movq 0x10(%rdi), %r15
movl 0x1c(%rdi), %eax
movq 0x20(%rdi), %rbx
movl 0x70(%rdi), %ebp
imull 0x4(%rdi), %eax
movss 0x7c(%rdi), %xmm0
movss %xmm0, 0x4cc(%rsp)
movl %eax, 0x4d0(%rsp)
movsd 0x38(%rdi), %xmm0
movsd %xmm0, 0x4f8(%rsp)
movsd 0x74(%rdi), %xmm0
movsd %xmm0, 0x500(%rsp)
callq 0x31715
movss %xmm0, 0x4d4(%rsp)
movsd 0x4f8(%rsp), %xmm0
movsd %xmm0, 0x4d8(%rsp)
movl %ebp, 0x4e0(%rsp)
movsd 0x500(%rsp), %xmm0
movsd %xmm0, 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 0x31c45
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x31c39
movl $0x94, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0x4f0(%rsp), %ecx
movl %ecx, 0x4c0(%rsp)
movups 0x4d0(%rsp), %xmm0
movups 0x4e0(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq *%rax
addq $0x4a0, %rbx            # imm = 0x4A0
decq %r14
jne 0x31bf2
addq $0x508, %rsp            # imm = 0x508
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, %rbx
leaq 0x5b8(%rsp), %r14
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32b0
leaq 0x6c8(%rsp), %rdi
movl $0x110, %edx            # imm = 0x110
movq %rbx, %rsi
callq 0x32b0
movslq (%r14), %r13
testq %r13, %r13
jle 0x31d86
imulq $0x4a0, %r13, %r12      # imm = 0x4A0
leaq 0x7d8(%rsp), %rbx
leaq 0x5b8(%rsp), %r14
leaq 0x6c8(%rsp), %r15
movq 0x5d8(%rsp), %rbp
leaq (%r12,%rbp), %rsi
addq $-0x4a0, %rsi           # imm = 0xFB60
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
callq 0x32b0
cmpl $0x0, 0x950(%rsp)
jne 0x31d86
cmpq $0x1, %r13
jne 0x31d17
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %r15, %rsi
callq 0x32b0
jmp 0x31d37
movq -0x6e0(%rbp,%r12), %rax
movq -0x6d8(%rbp,%r12), %rcx
movq %rcx, 0x690(%rsp)
movq %rax, 0x6a0(%rsp)
leaq -0x1(%r13), %rbp
decl %r13d
movl %r13d, 0x6b4(%rsp)
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 *0x7f0(%rsp)
leaq 0x1(%rbp), %rax
addq $-0x4a0, %r12           # imm = 0xFB60
movq %rbp, %r13
cmpq $0x1, %rax
ja 0x31cd1
addq $0xc78, %rsp            # imm = 0xC78
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x319d7
movq %rbx, %rdi
callq 0x31c65
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 0x31dff
movq %rbx, %rdi
movss %xmm0, 0xc(%rsp)
callq 0x31b40
movss 0xc(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x31e85
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 0x304d3
movq %r14, %rdi
callq 0x31d98
movss 0x4c(%rsp), %xmm1
addss %xmm0, %xmm1
decl %r12d
jne 0x31e2b
jmp 0x31e88
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_O3/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 0x31f6a
movl %eax, %ebp
testl %eax, %eax
jle 0x31f47
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 0x3056f
movq %r14, %rdi
callq 0x31d98
movss 0x44(%rsp), %xmm1
addss %xmm0, %xmm1
addl %ebx, %r15d
decl %r13d
jne 0x31ee3
jmp 0x31f4a
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 0x26e1d(%rip), %rdi     # 0x58d8e
leaq 0x26e31(%rip), %rsi     # 0x58da9
leaq 0x26e34(%rip), %rcx     # 0x58db3
movl $0x121, %edx            # imm = 0x121
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/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 0x321b6
movq 0x20(%rdi), %rax
leal 0x3(%rcx), %edx
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl $0x2, %edx
imulq $0x1280, %rdx, %rcx     # imm = 0x1280
movdqa 0x23094(%rip), %xmm1    # 0x55170
movdqa 0x22f9c(%rip), %xmm2    # 0x55080
xorl %edx, %edx
movdqa 0x22fa2(%rip), %xmm3    # 0x55090
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x23082(%rip), %xmm5    # 0x55180
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edi
notl %edi
testb $0x1, %dil
je 0x32137
movl %esi, 0x48(%rax,%rdx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edi
testb $0x1, %dil
je 0x3214d
movl %esi, 0x4e8(%rax,%rdx)
movdqa %xmm1, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
pxor %xmm4, %xmm6
pextrw $0x0, %xmm6, %edi
testb $0x1, %dil
je 0x3218c
movl %esi, 0x988(%rax,%rdx)
pextrw $0x4, %xmm6, %edi
testb $0x1, %dil
je 0x3219e
movl %esi, 0xe28(%rax,%rdx)
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
addq $0x1280, %rdx           # imm = 0x1280
cmpq %rdx, %rcx
jne 0x320fe
retq
// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/network.c
// Function: get_network_output_layer
layer get_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:
pushq %rbx
movq %rdi, %rbx
movl (%rsi), %eax
movl %eax, %ecx
sarl $0x1f, %ecx
andl %eax, %ecx
decl %ecx
movq 0x20(%rsi), %rsi
movq %rax, %rdx
decq %rdx
testl %eax, %eax
jle 0x324df
movl %edx, %edi
imulq $0x4a0, %rdi, %rdi      # imm = 0x4A0
decl %eax
decq %rdx
cmpl $0x9, (%rsi,%rdi)
je 0x324c5
jmp 0x324e1
movl %ecx, %eax
cltq
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
addq %rax, %rsi
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
callq 0x32b0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x32529
movq 0x20(%rsi), %rsi
imulq $0x4a0, %rax, %rcx      # imm = 0x4A0
xorl %eax, %eax
cmpl $0x5, (%rsi,%rax)
je 0x32533
addq $0x4a0, %rax            # imm = 0x4A0
cmpq %rax, %rcx
jne 0x32518
movq %rbx, %rdi
callq 0x4b03
jmp 0x32543
addq %rax, %rsi
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
callq 0x32b0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x325d5
decl %ebp
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x32548
cmpl $0x0, 0x4(%rbx)
je 0x325ba
jmp 0x325e3
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_O3/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 0x32678
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5a8, %rsp            # imm = 0x5A8
movq %rdi, %rbx
leaq 0x25241(%rip), %r14     # 0x57850
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 0x3420
movq 0x20(%rbx), %rsi
cmpl $0x0, (%rsi,%rbp)
jne 0x32655
addq %rbp, %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %r15, %rdi
movq %r13, %rsi
callq 0x1175e
movq %rax, %r13
incq %r12
movslq (%rbx), %rax
addq $0x4a0, %rbp            # imm = 0x4A0
cmpq %rax, %r12
jl 0x3261f
addq $0x5a8, %rsp            # imm = 0x5A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x32b0
movq %rbx, 0xd8(%r14)
movl $0x0, 0xf8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0xe0(%r14)
movq %r14, %rdi
callq 0x319d7
movq 0x28(%r14), %rbx
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %r15, %rsi
callq 0x32b0
movq %rbx, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x327b3
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 0x32785
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 0x41e03
movl 0x4b4(%rsp), %ecx
addl %eax, %ecx
movl 0x4b0(%rsp), %eax
cmpl $0x16, %ebp
je 0x3278f
cmpl $0x5, %ebp
jne 0x3279a
imull %ebx, %r12d
imull %eax, %r12d
addl %r12d, %ecx
incq %r15
movslq (%r13), %rax
addq $0x4a0, %r14            # imm = 0x4A0
cmpq %rax, %r15
jl 0x3272c
jmp 0x327b5
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_O3/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 0x326fe
movl %eax, %ebp
testq %r14, %r14
je 0x32804
movl %ebp, (%r14)
movslq %ebp, %rdi
movl $0x30, %esi
callq 0x3250
movq %rax, %r14
testl %ebp, %ebp
jle 0x3285c
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 0x3250
movq %rax, 0x18(%r14,%rbp)
cmpl $0x5, %r12d
jl 0x32853
movl $0x4, %esi
movq %r15, %rdi
callq 0x3250
movq %rax, 0x20(%r14,%rbp)
addq $0x30, %rbp
cmpq %rbp, %r13
jne 0x32829
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_O3/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 0x32a55
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 0x32b0
movl 0x4c8(%rsp), %eax
cmpl $0x17, %eax
jne 0x32949
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 0x42023
cltq
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rbx
movl 0x4c8(%rsp), %eax
cmpl $0x16, %eax
jne 0x329e0
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 0x3e2ef
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
movl 0x4c8(%rsp), %eax
cmpl $0x5, %eax
jne 0x32a3e
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 0x37ed1
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 0x328bf
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x32b04
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 0x32afb
callq 0x3040
addq $0x30, %r15
cmpq %r15, %r14
jne 0x32ae2
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O3/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)
movdqa 0x160(%rsp), %xmm0
movdqu %xmm0, (%rsp)
leaq 0x18(%rsp), %rdi
callq 0x19916
movl $0x1, 0x4(%rbx)
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x32c74
movq 0x20(%rbx), %rax
leal 0x3(%rcx), %edx
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl $0x2, %edx
imulq $0x1280, %rdx, %rcx     # imm = 0x1280
movdqa 0x225e6(%rip), %xmm1    # 0x55170
movdqa 0x224ee(%rip), %xmm2    # 0x55080
xorl %edx, %edx
movdqa 0x224f4(%rip), %xmm3    # 0x55090
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x225d4(%rip), %xmm5    # 0x55180
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %esi
notl %esi
testb $0x1, %sil
je 0x32be9
movl $0x1, 0x48(%rax,%rdx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x32c03
movl $0x1, 0x4e8(%rax,%rdx)
movdqa %xmm1, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
pxor %xmm4, %xmm6
pextrw $0x0, %xmm6, %esi
testb $0x1, %sil
je 0x32c46
movl $0x1, 0x988(%rax,%rdx)
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x32c5c
movl $0x1, 0xe28(%rax,%rdx)
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
addq $0x1280, %rdx           # imm = 0x1280
cmpq %rdx, %rcx
jne 0x32bac
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %r14
movl $0x110, %edx            # imm = 0x110
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32b0
movq %r15, 0xd8(%rbx)
movl $0x0, 0xf8(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0xe0(%rbx)
movq %rbx, %rdi
callq 0x319d7
movq 0x28(%rbx), %r15
movl $0x110, %edx            # imm = 0x110
movq %rbx, %rdi
movq %r14, %rsi
callq 0x32b0
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x1657b
movq %r15, %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x311ee
movq %rax, 0x28(%rsp)
movq %rdx, %rbp
movq %rbx, 0x8(%rsp)
movslq 0x4(%rbx), %r12
movslq 0x1ac(%rsp), %rdi
movq %rdi, 0x20(%rsp)
imulq %r12, %rdi
movl $0x4, %esi
callq 0x3250
movq %rax, (%rsp)
testq %r15, %r15
jle 0x330b8
leaq 0x1a0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
shlq $0x2, 0x20(%rsp)
movq 0x8(%rsp), %rax
addq $0xe0, %rax
movq %rax, 0x38(%rsp)
xorl %eax, %eax
movq %r15, 0x10(%rsp)
movq %rbp, 0x40(%rsp)
movq %rax, 0x48(%rsp)
cltq
movq %rax, 0x18(%rsp)
testl %r12d, %r12d
jle 0x32ff6
movl %r12d, %eax
movq %rax, 0x50(%rsp)
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rcx
subq %rcx, %r15
movq 0x30(%rsp), %rax
leaq (%rax,%rcx,8), %rbx
movq (%rsp), %r12
xorl %ebp, %ebp
cmpq %rbp, %r15
je 0x32ff6
movq (%rbx,%rbp,8), %rsi
movq %r12, %rdi
movq 0x20(%rsp), %r13
movq %r13, %rdx
callq 0x32b0
incq %rbp
addq %r13, %r12
cmpq %rbp, 0x50(%rsp)
jne 0x32fd0
movl $0x110, %edx            # imm = 0x110
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x32b0
movq (%rsp), %rax
movq %rax, 0xd8(%rbx)
movl $0x0, 0xf8(%rbx)
movq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %rbx, %rdi
callq 0x319d7
movq 0x28(%rbx), %r13
movl $0x110, %edx            # imm = 0x110
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32b0
movslq 0x4(%rbx), %r12
testq %r12, %r12
movq 0x10(%rsp), %r15
movq 0x40(%rsp), %rbp
movq 0x18(%rsp), %r8
jle 0x330a7
xorl %eax, %eax
xorl %ecx, %ecx
leaq (%rcx,%r8), %rsi
cmpq %r15, %rsi
je 0x330a7
testl %r14d, %r14d
jle 0x3309c
movl %eax, %edx
leaq (,%rdx,4), %rdx
addq %r13, %rdx
movq (%rbp,%rsi,8), %rsi
xorl %edi, %edi
movss (%rdx,%rdi,4), %xmm0
movss %xmm0, (%rsi,%rdi,4)
incq %rdi
cmpq %rdi, %r14
jne 0x3308a
incq %rcx
addl %r14d, %eax
cmpq %r12, %rcx
jne 0x33068
movq 0x48(%rsp), %rax
addl %r12d, %eax
cmpl %r15d, %eax
jl 0x32f9b
movq (%rsp), %rdi
callq 0x3040
movq 0x28(%rsp), %rax
movq %rbp, %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_O3/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 0x32f01
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 0x32f01
movq %rdx, 0x68(%rsp)
testl %r12d, %r12d
jle 0x3323d
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 0xfa87
movl %eax, %r14d
movq 0x70(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movl %ebx, %esi
callq 0xfa87
movl %eax, %r13d
movq 0x68(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movl %r15d, %esi
callq 0xfa87
cmpl %r14d, %r13d
jne 0x3321e
cmpl %r14d, %eax
jne 0x33229
incl 0x50(%rsp)
jmp 0x33233
cmpl %r14d, %eax
jne 0x3322f
incl 0x58(%rsp)
jmp 0x33233
incl 0x54(%rsp)
jmp 0x33233
incl 0x4c(%rsp)
incq %rbp
cmpq %rbp, %r12
jne 0x331d5
jmp 0x3325d
movl $0x0, 0x50(%rsp)
movl $0x0, 0x54(%rsp)
movl $0x0, 0x58(%rsp)
movl $0x0, 0x4c(%rsp)
leaq 0x25c09(%rip), %rdi     # 0x58e6d
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 0x3160
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 0x2775c(%rip), %rdi     # 0x5aa10
movb $0x1, %al
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3160
// File: /workspace/github_c_makefile_star2_O3/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 0x32f01
movq %rax, %rbx
movq %rdx, %r14
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq %rax, %rdx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x30f1c
movss %xmm0, 0x44(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30ee4
movss 0x44(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x32f01
movq %rax, %r14
movq %rdx, %r15
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq %rax, %rdx
movq %r15, %rcx
movl $0x1, %r8d
callq 0x30f1c
movss %xmm0, 0x3944a(%rip)    # 0x6c800
leaq 0x39443(%rip), %r12     # 0x6c800
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq %r14, %rdx
movq %r15, %rcx
movl %ebx, %r8d
callq 0x30f1c
movss %xmm0, 0x39421(%rip)    # 0x6c804
movq %r14, %rdi
movq %r15, %rsi
callq 0x30ee4
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x334bc
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 0x39ce0
incq %r15
movslq (%rbx), %rax
addq $0x4a0, %r14            # imm = 0x4A0
cmpq %rax, %r15
jl 0x33493
movq 0x20(%rbx), %rdi
callq 0x3040
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x334d6
callq 0x3040
movq 0xe0(%rbx), %rdi
testq %rdi, %rdi
je 0x334e7
callq 0x3040
movq %rbx, %rdi
addq $0x4a0, %rsp            # imm = 0x4A0
popq %rbx
popq %r14
popq %r15
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x30(%rsp), %rbx
movl 0x48(%rbx), %r15d
movl 0x58(%rbx), %r12d
movl %r15d, %ebp
imull %r12d, %ebp
movq 0x268(%rbx), %r14
xorps %xmm0, %xmm0
movl %ebp, %edi
movq %r14, %rsi
movl $0x1, %edx
callq 0x29d83
movl 0x54(%rbx), %r8d
movq 0x5a8(%rsp), %r9
subq $0x8, %rsp
movss 0x219e3(%rip), %xmm0    # 0x55008
xorl %edi, %edi
movl $0x1, %esi
movl %r15d, %edx
movl %r12d, %ecx
movaps %xmm0, %xmm1
pushq %r12
pushq %r14
pushq %r8
pushq 0x250(%rbx)
pushq %r8
callq 0xe50d
addq $0x30, %rsp
cmpl $0x0, 0x40(%rbx)
je 0x3369e
leaq 0x4d0(%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 0x3c630
addq $0x5b0, %rsp            # imm = 0x5B0
movq 0x268(%rbx), %r14
movl 0x48(%rbx), %ebp
imull 0x58(%rbx), %ebp
jmp 0x336b9
movq 0x230(%rbx), %rsi
movq %r14, %rdi
movl %r15d, %edx
movl %r12d, %ecx
movl $0x1, %r8d
callq 0x1131e
movl 0x4(%rbx), %edx
movq %r14, %rdi
movl %ebp, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x28c99
// File: /workspace/github_c_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x4d0(%rsp), %r14
leaq 0x30(%rsp), %rbx
movq 0x268(%rbx), %rdi
movl 0x58(%rbx), %r15d
movl 0x4(%rbx), %edx
movl 0x48(%rbx), %ebp
movl %ebp, %esi
imull %r15d, %esi
movq 0x260(%rbx), %r12
movq %r12, %rcx
callq 0x28ee8
cmpl $0x0, 0x40(%rbx)
je 0x33753
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 0x3c842
addq $0x5b0, %rsp            # imm = 0x5B0
movl 0x48(%rbx), %ebp
movl 0x58(%rbx), %r15d
movq 0x260(%rbx), %r12
jmp 0x3376d
movq 0x238(%rbx), %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movl $0x1, %r8d
callq 0x11402
movl 0x54(%rbx), %ecx
subq $0x8, %rsp
movss 0x2188c(%rip), %xmm0    # 0x55008
movl $0x1, %edi
xorl %esi, %esi
movl %r15d, %edx
movl %ebp, %r8d
movq %r12, %r9
movaps %xmm0, %xmm1
pushq %rcx
pushq 0x258(%rbx)
pushq %rcx
pushq 0xd8(%r14)
pushq %r15
callq 0xe50d
addq $0x30, %rsp
movq 0xe8(%r14), %rax
testq %rax, %rax
je 0x337ed
movq 0x260(%rbx), %r9
movl 0x48(%rbx), %edx
movl 0x54(%rbx), %ecx
movl 0x58(%rbx), %r8d
subq $0x8, %rsp
movss 0x21836(%rip), %xmm0    # 0x55008
xorl %edi, %edi
xorl %esi, %esi
movaps %xmm0, %xmm1
pushq %rcx
pushq %rax
pushq %rcx
pushq 0x250(%rbx)
pushq %r8
callq 0xe50d
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x29d31
movl %ebx, %edi
movss 0x4(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x29d61
cmpl $0x0, 0x40(%r15)
je 0x338d0
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 0x29d31
movl %ebx, %edi
movss 0x4(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x29d61
imull 0x54(%r15), %ebx
movaps 0x10(%rsp), %xmm0
xorps 0x217af(%rip), %xmm0    # 0x55090
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 0x29d31
movl %ebx, %edi
movss 0x8(%rsp), %xmm0
movq %r15, %rsi
movl $0x1, %edx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x29d31
movl %ebx, %edi
movss 0x4(%rsp), %xmm0
movq %r15, %rsi
movl $0x1, %edx
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x29d61
// File: /workspace/github_c_makefile_star2_O3/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 0x33a77
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 0x216a9(%rip), %xmm2    # 0x55050
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 0x339e3
sqrtsd %xmm0, %xmm0
jmp 0x33a15
movsd %xmm1, 0x20(%rsp)
callq 0x3460
movsd 0x20(%rsp), %xmm1
movl $0x3f800000, %r10d      # imm = 0x3F800000
xorpd %xmm3, %xmm3
movsd 0x2164a(%rip), %xmm2    # 0x55050
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 0x33a41
xorl %eax, %eax
movss (%r13,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%r13,%rax,4)
incq %rax
cmpq %rax, %r12
jne 0x33a27
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 0x339c0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x33ab8
leaq 0x25414(%rip), %rdi     # 0x58eb1
xorl %eax, %eax
callq 0x3160
movq 0x240(%r14), %rdi
movl 0x58(%r14), %ebx
movl %ebx, %esi
callq 0xf69d
jmp 0x33abc
movl 0x58(%r14), %ebx
leaq 0x253f6(%rip), %rdi     # 0x58eb9
xorl %eax, %eax
callq 0x3160
movq 0x230(%r14), %rdi
movl %ebx, %esi
callq 0xf69d
leaq 0x253e2(%rip), %rdi     # 0x58ec1
xorl %eax, %eax
callq 0x3160
movq 0x250(%r14), %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xf69d
nop