LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/parser.c
// Function: load_convolutional_weights_binary
void load_convolutional_weights_binary(layer l, FILE *fp)
{
    fread(l.biases, sizeof(float), l.n, fp);
    if (l.batch_normalize && (!l.dontloadscales)){
        fread(l.scales, sizeof(float), l.n, fp);
        fread(l.rolling_mean, sizeof(float), l.n, fp);
        fread(l.rolling_variance, sizeof(float), l.n, fp);
    }
    int size = l.c*l.size*l.size;
    int i, j, k;
    for(i = 0; i < l.n; ++i){
        float mean = 0;
        fread(&mean, sizeof(float), 1, fp);
        for(j = 0; j < size/8; ++j){
            int index = i*size + j*8;
            unsigned char c = 0;
            fread(&c, sizeof(char), 1, fp);
            for(k = 0; k < 8; ++k){
                if (j*8 + k >= size) break;
                l.weights[index + k] = (c & 1<<k) ? mean : -mean;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rcx
leaq 0xa0(%rsp), %r14
movq 0x230(%r14), %rdi
movslq 0x84(%r14), %rdx
movl $0x4, %esi
movq %rdx, 0x10(%rsp)
movq %rcx, 0x20(%rsp)
callq 0x30e0
cmpl $0x0, 0x40(%r14)
je 0x34942
cmpl $0x0, 0x224(%rsp)
jne 0x34942
movq 0x240(%r14), %rdi
movl $0x4, %esi
movq 0x10(%rsp), %r15
movq %r15, %rdx
movq 0x20(%rsp), %rbx
movq %rbx, %rcx
callq 0x30e0
movq 0x2b0(%r14), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x30e0
movq 0x2b8(%r14), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x30e0
cmpl $0x0, 0x10(%rsp)
jle 0x34a7e
movl 0x90(%r14), %eax
movl 0x74(%r14), %ecx
imull %eax, %ecx
imull %eax, %ecx
leal 0x7(%rcx), %ebp
testl %ecx, %ecx
cmovnsl %ecx, %ebp
sarl $0x3, %ebp
movq 0x250(%r14), %rax
movq %rax, 0x38(%rsp)
movq %rcx, 0x28(%rsp)
movslq %ecx, %r14
movq $0x0, 0x18(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x30(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x4, %esi
movl $0x1, %edx
leaq 0xc(%rsp), %rdi
movq 0x20(%rsp), %rcx
callq 0x30e0
cmpl $0x8, %r14d
jl 0x34a5d
movss 0xc(%rsp), %xmm1
movaps %xmm1, %xmm2
xorps 0x1e788(%rip), %xmm2    # 0x53150
movl $0x1, %r13d
movq 0x18(%rsp), %rax
movl %eax, %r15d
xorl %r12d, %r12d
movaps %xmm1, 0x50(%rsp)
movaps %xmm2, 0x40(%rsp)
leaq (,%r12,8), %rbx
movb $0x0, 0xb(%rsp)
movl $0x1, %esi
movl $0x1, %edx
leaq 0xb(%rsp), %rdi
movq 0x20(%rsp), %rcx
callq 0x30e0
movaps 0x40(%rsp), %xmm2
movaps 0x50(%rsp), %xmm1
cmpq %r14, %rbx
jge 0x34a4d
movl %r15d, %eax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movzbl 0xb(%rsp), %ecx
xorl %edx, %edx
btl %edx, %ecx
movaps %xmm2, %xmm0
jae 0x34a36
movaps %xmm1, %xmm0
movss %xmm0, (%rax,%rdx,4)
cmpq $0x6, %rdx
ja 0x34a4d
leaq (%rdx,%r13), %rsi
incq %rdx
cmpq %r14, %rsi
jl 0x34a2b
incq %r12
addl $0x8, %r15d
addq $0x8, %r13
cmpq %rbp, %r12
jne 0x349e3
movq 0x30(%rsp), %rcx
incq %rcx
movq 0x18(%rsp), %rax
addl 0x28(%rsp), %eax
movq %rax, 0x18(%rsp)
cmpq 0x10(%rsp), %rcx
jne 0x34988
addq $0x68, %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/parser.c
// Function: load_convolutional_weights
void load_convolutional_weights(layer l, FILE *fp)
{
    if(l.binary){
        //load_convolutional_weights_binary(l, fp);
        //return;
    }
    if(l.numload) l.n = l.numload;
    int num = l.c/l.groups*l.n*l.size*l.size;
    fread(l.biases, sizeof(float), l.n, fp);
    if (l.batch_normalize && (!l.dontloadscales)){
        fread(l.scales, sizeof(float), l.n, fp);
        fread(l.rolling_mean, sizeof(float), l.n, fp);
        fread(l.rolling_variance, sizeof(float), l.n, fp);
        if(0){
            int i;
            for(i = 0; i < l.n; ++i){
                printf("%g, ", l.rolling_mean[i]);
            }
            printf("\n");
            for(i = 0; i < l.n; ++i){
                printf("%g, ", l.rolling_variance[i]);
            }
            printf("\n");
        }
        if(0){
            fill_cpu(l.n, 0, l.rolling_mean, 1);
            fill_cpu(l.n, 0, l.rolling_variance, 1);
        }
        if(0){
            int i;
            for(i = 0; i < l.n; ++i){
                printf("%g, ", l.rolling_mean[i]);
            }
            printf("\n");
            for(i = 0; i < l.n; ++i){
                printf("%g, ", l.rolling_variance[i]);
            }
            printf("\n");
        }
    }
    fread(l.weights, sizeof(float), num, fp);
    //if(l.c == 3) scal_cpu(num, 1./256, l.weights, 1);
    if (l.flipped) {
        transpose_matrix(l.weights, l.c*l.size*l.size, l.n);
    }
    //if (l.binary) binarize_weights(l.weights, l.n, l.c*l.size*l.size, l.weights);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x40(%rsp), %r13
movl 0x188(%r13), %eax
testl %eax, %eax
je 0x34ab2
movl %eax, 0x84(%r13)
movl 0x74(%r13), %eax
movl 0x90(%r13), %ebp
movl %eax, 0x4(%rsp)
cltd
idivl 0x8c(%r13)
movslq 0x84(%r13), %r15
imull %ebp, %ebp
movl %ebp, %ebx
imull %r15d, %ebx
imull %eax, %ebx
movq 0x230(%r13), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x30e0
cmpl $0x0, 0x40(%r13)
je 0x34b49
cmpl $0x0, 0x184(%r13)
jne 0x34b49
movq 0x240(%r13), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x30e0
movq 0x2b0(%r13), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x30e0
movq 0x2b8(%r13), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x30e0
movq 0x250(%r13), %r12
movslq %ebx, %rdx
movl $0x4, %esi
movq %r12, %rdi
movq %r14, %rcx
callq 0x30e0
cmpl $0x0, 0x50(%r13)
je 0x34b8a
imull 0x4(%rsp), %ebp
movq %r12, %rdi
movl %ebp, %esi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x346d7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: read_data_cfg
list *read_data_cfg(char *filename)
{
    FILE *file = fopen(filename, "r");
    if(file == 0) file_error(filename);
    char *line;
    int nu = 0;
    list *options = make_list();
    while((line=fgetl(file)) != 0){
        ++ nu;
        strip(line);
        switch(line[0]){
            case '\0':
            case '#':
            case ';':
                free(line);
                break;
            default:
                if(!read_option(line, options)){
                    fprintf(stderr, "Config file error line %d, could parse: %s\n", nu, line);
                    free(line);
                }
                break;
        }
    }
    fclose(file);
    return options;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x24120(%rip), %rsi     # 0x58cd1
callq 0x33a0
movq %rax, %rbx
testq %rax, %rax
jne 0x34bc6
movq %r14, %rdi
callq 0xe142
xorl %eax, %eax
callq 0x10ea0
movq %rax, %r14
movq %rbx, %rdi
callq 0xe165
testq %rax, %rax
je 0x34c57
movq %rax, %r12
movl $0x1, %ebp
leaq 0x22a99(%rip), %r15     # 0x57685
movabsq $0x800000800000001, %r13 # imm = 0x800000800000001
movq %r12, %rdi
callq 0xea74
movzbl (%r12), %eax
cmpq $0x3b, %rax
ja 0x34c19
btq %rax, %r13
jae 0x34c19
movq %r12, %rdi
callq 0x3040
jmp 0x34c28
movq %r12, %rdi
movq %r14, %rsi
callq 0x34c71
testl %eax, %eax
je 0x34c3c
movq %rbx, %rdi
callq 0xe165
movq %rax, %r12
incl %ebp
testq %rax, %rax
jne 0x34bf6
jmp 0x34c57
movq 0x353b5(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x3280
jmp 0x34c0f
movq %rbx, %rdi
callq 0x3140
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/option_list.c
// Function: read_option
int read_option(char *s, list *options)
{
    size_t i;
    size_t len = strlen(s);
    char *val = 0;
    for(i = 0; i < len; ++i){
        if(s[i] == '='){
            s[i] = '\0';
            val = s+i+1;
            break;
        }
    }
    if(i == len-1) return 0;
    char *key = s;
    option_insert(options, key, val);
    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3150
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x34ca8
leaq 0x1(%r14), %r15
xorl %edx, %edx
cmpb $0x3d, -0x1(%r15)
je 0x34caf
incq %rdx
incq %r15
cmpq %rdx, %rcx
jne 0x34c91
movq %rcx, %rdx
jmp 0x34caa
xorl %edx, %edx
xorl %r15d, %r15d
jmp 0x34cb4
movb $0x0, -0x1(%r15)
decq %rcx
cmpq %rcx, %rdx
je 0x34ce4
movl $0x18, %edi
callq 0x3310
movq %r14, (%rax)
movq %r15, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10ef9
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: get_metadata
metadata get_metadata(char *file)
{
    metadata m = {0};
    list *options = read_data_cfg(file);

    char *name_list = option_find_str(options, "names", 0);
    if(!name_list) name_list = option_find_str(options, "labels", 0);
    if(!name_list) {
        fprintf(stderr, "No names or labels found\n");
    } else {
        m.names = get_labels(name_list);
    }
    m.classes = option_find_int(options, "classes", 2);
    free_list(options);
    return m;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
callq 0x34b9c
movq %rax, %rbx
leaq 0x229ec(%rip), %rsi     # 0x576e9
movq %rax, %rdi
callq 0x34e40
testq %rax, %rax
jne 0x34d19
leaq 0x21c45(%rip), %rsi     # 0x56956
movq %rbx, %rdi
callq 0x34e40
testq %rax, %rax
je 0x34d51
movq %rax, %rdi
callq 0x2b6d3
movq %rax, %r14
leaq 0x2246b(%rip), %rsi     # 0x5719b
movq %rbx, %rdi
movl $0x2, %edx
callq 0x34d9f
movl %eax, %ebp
movq %rbx, %rdi
callq 0x10f56
movl %ebp, %eax
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
retq
callq 0x6c54
xorl %r14d, %r14d
jmp 0x34d29
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: option_find_str
char *option_find_str(list *l, char *key, char *def)
{
    char *v = option_find(l, key);
    if(v) return v;
    if(def) fprintf(stderr, "%s: Using default '%s'\n", key, def);
    return def;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
callq 0x34e40
testq %rax, %rax
jne 0x34d77
testq %rbx, %rbx
jne 0x34d7f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x35272(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x22992(%rip), %rsi     # 0x57722
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x3280
jmp 0x34d74
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: option_insert
void option_insert(list *l, char *key, char *val)
{
    kvp *p = malloc(sizeof(kvp));
    p->key = key;
    p->val = val;
    p->used = 0;
    list_insert(l, p);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x18, %edi
callq 0x3310
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq %r15, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x10ef9
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: option_unused
void option_unused(list *l)
{
    node *n = l->front;
    while(n){
        kvp *p = (kvp *)n->val;
        if(!p->used){
            fprintf(stderr, "Unused field: '%s = %s'\n", p->key, p->val);
        }
        n = n->next;
    }
}

// Assembly:
pushq %rbx
movq 0x8(%rdi), %rbx
testq %rbx, %rbx
je 0x34e3e
movq (%rbx), %rdi
cmpl $0x0, 0x10(%rdi)
je 0x34e37
movq 0x8(%rbx), %rbx
jmp 0x34e23
callq 0x6c70
jmp 0x34e31
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: option_find
char *option_find(list *l, char *key)
{
    node *n = l->front;
    while(n){
        kvp *p = (kvp *)n->val;
        if(strcmp(p->key, key) == 0){
            p->used = 1;
            return p->val;
        }
        n = n->next;
    }
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x34e81
movq (%r15), %r12
movq (%r12), %rdi
movq %rbx, %rsi
callq 0x3270
testl %eax, %eax
je 0x34e6d
movq 0x8(%r15), %r15
jmp 0x34e7b
movl $0x1, 0x10(%r12)
movq 0x8(%r12), %r14
testl %eax, %eax
jne 0x34e4f
jmp 0x34e84
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/detection_layer.c
// Function: make_detection_layer
detection_layer make_detection_layer(int batch, int inputs, int n, int side, int classes, int coords, int rescore)
{
    detection_layer l = {0};
    l.type = DETECTION;

    l.n = n;
    l.batch = batch;
    l.inputs = inputs;
    l.classes = classes;
    l.coords = coords;
    l.rescore = rescore;
    l.side = side;
    l.w = side;
    l.h = side;
    assert(side*side*((1 + l.coords)*l.n + l.classes) == inputs);
    l.cost = calloc(1, sizeof(float));
    l.outputs = l.inputs;
    l.truths = l.side*l.side*(1+l.coords+l.classes);
    l.output = calloc(batch*l.outputs, sizeof(float));
    l.delta = calloc(batch*l.outputs, sizeof(float));

    l.forward = forward_detection_layer;
    l.backward = backward_detection_layer;

    fprintf(stderr, "Detection Layer\n");
    srand(0);

    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r14d
movl %r8d, %r15d
movl %ecx, %r13d
movl %edx, 0x14(%rsp)
movl %esi, %ebp
movq %rdi, %rbx
movl 0x50(%rsp), %r12d
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0x5, (%rbx)
movl %r13d, 0x84(%rbx)
movl %ebp, 0xc(%rsp)
movl %ebp, 0x48(%rbx)
movl 0x14(%rsp), %ebp
movl %ebp, 0x54(%rbx)
movl %r14d, 0xfc(%rbx)
movl %r12d, 0x100(%rbx)
movl 0x58(%rsp), %eax
movl %eax, 0x108(%rbx)
movl %r15d, 0x94(%rbx)
movl %r15d, 0x70(%rbx)
movl %r15d, 0x6c(%rbx)
imull %r15d, %r15d
incl %r12d
imull %r12d, %r13d
movl %r14d, 0x10(%rsp)
addl %r14d, %r13d
imull %r15d, %r13d
cmpl %ebp, %r13d
jne 0x35062
movl $0x1, %edi
movl $0x4, %esi
callq 0x3260
movq %rax, 0x1d8(%rbx)
movl %ebp, 0x58(%rbx)
addl 0x10(%rsp), %r12d
imull %r15d, %r12d
movl %r12d, 0x68(%rbx)
movl 0xc(%rsp), %eax
imull %ebp, %eax
movslq %eax, %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x3260
movq %rax, 0x268(%rbx)
movl $0x4, %esi
movq %r14, %rdi
callq 0x3260
movq %rax, 0x260(%rbx)
leaq 0x67(%rip), %rax        # 0x35081
movq %rax, 0x10(%rbx)
leaq 0xca8(%rip), %rax       # 0x35ccd
movq %rax, 0x18(%rbx)
movq 0x34fc8(%rip), %rax     # 0x69ff8
movq (%rax), %rcx
leaq 0x227d5(%rip), %rdi     # 0x5780f
movl $0x10, %esi
movl $0x1, %edx
callq 0x3450
xorl %edi, %edi
callq 0x3230
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x22717(%rip), %rdi     # 0x57780
leaq 0x22745(%rip), %rsi     # 0x577b5
leaq 0x22750(%rip), %rcx     # 0x577c7
movl $0x1c, %edx
callq 0x31c0
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/route_layer.c
// Function: forward_route_layer
void forward_route_layer(const route_layer l, network net)
{
    int i, j;
    int offset = 0;
    for(i = 0; i < l.n; ++i){
        int index = l.input_layers[i];
        float *input = net.layers[index].output;
        int input_size = l.input_sizes[i];
        for(j = 0; j < l.batch; ++j){
            copy_cpu(input_size, input + j*input_size, 1, l.output + offset + j*l.outputs, 1);
        }
        offset += input_size;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movslq 0x104(%rsp), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
jle 0x360eb
leaq 0x520(%rsp), %rax
leaq 0x80(%rsp), %rcx
movq 0x1a8(%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x20(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x1b0(%rcx), %rax
movq %rax, 0x38(%rsp)
movl 0x48(%rcx), %eax
movq %rax, 0x10(%rsp)
movq 0x268(%rcx), %rax
movq %rax, 0x20(%rsp)
movslq 0x58(%rcx), %r12
shlq $0x2, %r12
xorl %ecx, %ecx
movl $0x0, 0xc(%rsp)
movq 0x38(%rsp), %rax
movq %rcx, 0x18(%rsp)
movslq (%rax,%rcx,4), %rbx
cmpl $0x0, 0x10(%rsp)
jle 0x360d0
movq 0x30(%rsp), %rax
movq 0x18(%rsp), %rcx
movslq (%rax,%rcx,4), %rax
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
movq 0x28(%rsp), %rcx
movq 0x268(%rcx,%rax), %r14
movslq 0xc(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,4), %r15
leaq (,%rbx,4), %rbp
movq 0x10(%rsp), %r13
movl %ebx, %edi
movq %r14, %rsi
movl $0x1, %edx
movq %r15, %rcx
movl $0x1, %r8d
callq 0x2879c
addq %r12, %r15
addq %rbp, %r14
decq %r13
jne 0x360ad
addl 0xc(%rsp), %ebx
movq 0x18(%rsp), %rcx
incq %rcx
movl %ebx, 0xc(%rsp)
cmpq 0x40(%rsp), %rcx
jne 0x3605b
addq $0x48, %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/route_layer.c
// Function: backward_route_layer
void backward_route_layer(const route_layer l, network net)
{
    int i, j;
    int offset = 0;
    for(i = 0; i < l.n; ++i){
        int index = l.input_layers[i];
        float *delta = net.layers[index].delta;
        int input_size = l.input_sizes[i];
        for(j = 0; j < l.batch; ++j){
            axpy_cpu(input_size, 1, l.delta + offset + j*l.outputs, 1, delta + j*input_size, 1);
        }
        offset += input_size;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movslq 0x104(%rsp), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
jle 0x3620d
leaq 0x520(%rsp), %rax
leaq 0x80(%rsp), %rcx
movq 0x1a8(%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x20(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x1b0(%rcx), %rax
movq %rax, 0x38(%rsp)
movl 0x48(%rcx), %eax
movq %rax, 0x10(%rsp)
movq 0x260(%rcx), %rax
movq %rax, 0x20(%rsp)
movslq 0x58(%rcx), %r12
shlq $0x2, %r12
xorl %ecx, %ecx
movl $0x0, 0xc(%rsp)
movq 0x38(%rsp), %rax
movq %rcx, 0x18(%rsp)
movslq (%rax,%rcx,4), %rbx
cmpl $0x0, 0x10(%rsp)
jle 0x361f2
movq 0x30(%rsp), %rax
movq 0x18(%rsp), %rcx
movslq (%rax,%rcx,4), %rax
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
movq 0x28(%rsp), %rcx
movq 0x260(%rcx,%rax), %r14
movslq 0xc(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,4), %r15
leaq (,%rbx,4), %rbp
movq 0x10(%rsp), %r13
movl %ebx, %edi
movss 0x1ce37(%rip), %xmm0    # 0x53008
movq %r15, %rsi
movl $0x1, %edx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x285e9
addq %rbp, %r14
addq %r12, %r15
decq %r13
jne 0x361c7
addl 0xc(%rsp), %ebx
movq 0x18(%rsp), %rcx
incq %rcx
movl %ebx, 0xc(%rsp)
cmpq 0x40(%rsp), %rcx
jne 0x36175
addq $0x48, %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/route_layer.c
// Function: resize_route_layer
void resize_route_layer(route_layer *l, network *net)
{
    int i;
    layer first = net->layers[l->input_layers[0]];
    l->out_w = first.out_w;
    l->out_h = first.out_h;
    l->out_c = first.out_c;
    l->outputs = first.outputs;
    l->input_sizes[0] = first.outputs;
    for(i = 1; i < l->n; ++i){
        int index = l->input_layers[i];
        layer next = net->layers[index];
        l->outputs += next.outputs;
        l->input_sizes[i] = next.outputs;
        if(next.out_w == first.out_w && next.out_h == first.out_h){
            l->out_c += next.out_c;
        }else{
            printf("%d %d, %d %d\n", next.out_w, next.out_h, first.out_w, first.out_h);
            l->out_h = l->out_w = l->out_c = 0;
        }
    }
    l->inputs = l->outputs;
    l->delta =  realloc(l->delta, l->outputs*l->batch*sizeof(float));
    l->output = realloc(l->output, l->outputs*l->batch*sizeof(float));

    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %rax
movq 0x1a8(%rdi), %rcx
movq 0x1b0(%rdi), %rdx
movslq (%rcx), %rcx
imulq $0x4a0, %rcx, %rcx      # imm = 0x4A0
movl 0x58(%rax,%rcx), %esi
movl 0x78(%rax,%rcx), %ebp
movl 0x7c(%rax,%rcx), %r15d
movl 0x80(%rax,%rcx), %eax
movl %r15d, 0x7c(%rdi)
movl %ebp, 0x78(%rdi)
movl %eax, 0x80(%rdi)
movl %esi, 0x58(%rdi)
movl %esi, (%rdx)
cmpl $0x2, 0x84(%rdi)
jl 0x36304
movl $0x1, %r13d
leaq 0x215f4(%rip), %r12     # 0x5787d
movq 0x1a8(%rbx), %rax
movq 0x1b0(%rbx), %rcx
movslq (%rax,%r13,4), %rax
movq 0x20(%r14), %rdi
imulq $0x4a0, %rax, %rax      # imm = 0x4A0
movl 0x58(%rdi,%rax), %r8d
movl 0x78(%rdi,%rax), %edx
movl 0x7c(%rdi,%rax), %esi
movl 0x80(%rdi,%rax), %eax
addl %r8d, 0x58(%rbx)
movl %r8d, (%rcx,%r13,4)
cmpl %r15d, %esi
jne 0x362d3
cmpl %ebp, %edx
jne 0x362d3
addl %eax, 0x80(%rbx)
jmp 0x362f5
movq %r12, %rdi
movl %r15d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x3170
movl $0x0, 0x80(%rbx)
movq $0x0, 0x78(%rbx)
incq %r13
movslq 0x84(%rbx), %rax
cmpq %rax, %r13
jl 0x36289
movslq 0x58(%rbx), %rax
movl %eax, 0x54(%rbx)
movq 0x260(%rbx), %rdi
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3360
movq %rax, 0x260(%rbx)
movq 0x268(%rbx), %rdi
movslq 0x58(%rbx), %rax
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3360
movq %rax, 0x268(%rbx)
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/upsample_layer.c
// Function: forward_upsample_layer
void forward_upsample_layer(const layer l, network net)
{
    fill_cpu(l.outputs*l.batch, 0, l.output, 1);
    if(l.reverse){
        upsample_cpu(l.output, l.out_w, l.out_h, l.c, l.batch, l.stride, 0, l.scale, net.input);
    }else{
        upsample_cpu(net.input, l.w, l.h, l.c, l.batch, l.stride, 1, l.scale, l.output);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x4d0(%rsp), %r15
leaq 0x30(%rsp), %r12
movl 0x48(%r12), %ebx
movl 0x58(%r12), %edi
imull %ebx, %edi
movq 0x268(%r12), %r14
xorps %xmm0, %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x2863b
cmpl $0x0, 0x9c(%r12)
je 0x363d3
movl 0x7c(%r12), %esi
movl 0x74(%r12), %ecx
movl 0x78(%r12), %edx
movl 0x98(%r12), %r9d
movss 0x194(%r12), %xmm0
movq %r14, %rdi
movl %ebx, %r8d
pushq 0xd8(%r15)
pushq $0x0
jmp 0x36402
movq 0xd8(%r15), %rdi
movl 0x6c(%r12), %edx
movl 0x70(%r12), %esi
movl 0x74(%r12), %ecx
movl 0x98(%r12), %r9d
movss 0x194(%r12), %xmm0
movl %ebx, %r8d
pushq %r14
pushq $0x1
callq 0x28c32
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/upsample_layer.c
// Function: backward_upsample_layer
void backward_upsample_layer(const layer l, network net)
{
    if(l.reverse){
        upsample_cpu(l.delta, l.out_w, l.out_h, l.c, l.batch, l.stride, 1, l.scale, net.delta);
    }else{
        upsample_cpu(net.delta, l.w, l.h, l.c, l.batch, l.stride, 0, l.scale, l.delta);
    }
}

// Assembly:
pushq %rax
leaq 0x4b0(%rsp), %r10
leaq 0x10(%rsp), %rax
cmpl $0x0, 0x9c(%rax)
movl 0x48(%rax), %r8d
movl 0x74(%rax), %ecx
movl 0x98(%rax), %r9d
movss 0x194(%rax), %xmm0
je 0x36458
movq 0x260(%rax), %rdi
movl 0x78(%rax), %edx
movl 0x7c(%rax), %esi
pushq 0xe8(%r10)
pushq $0x1
jmp 0x3646d
movq 0xe8(%r10), %rdi
movl 0x6c(%rax), %edx
movl 0x70(%rax), %esi
pushq 0x260(%rax)
pushq $0x0
callq 0x28c32
addq $0x10, %rsp
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/upsample_layer.c
// Function: resize_upsample_layer
void resize_upsample_layer(layer *l, int w, int h)
{
    l->w = w;
    l->h = h;
    l->out_w = w*l->stride;
    l->out_h = h*l->stride;
    if(l->reverse){
        l->out_w = w/l->stride;
        l->out_h = h/l->stride;
    }
    l->outputs = l->out_w*l->out_h*l->out_c;
    l->inputs = l->h*l->w*l->c;
    l->delta =  realloc(l->delta, l->outputs*l->batch*sizeof(float));
    l->output = realloc(l->output, l->outputs*l->batch*sizeof(float));

    
}

// Assembly:
pushq %rbx
movl %edx, %ecx
movq %rdi, %rbx
movl %esi, 0x70(%rdi)
movl %edx, 0x6c(%rdi)
movl 0x98(%rdi), %edi
movl %edi, %eax
imull %esi, %eax
movl %eax, 0x7c(%rbx)
movl %edi, %eax
imull %edx, %eax
movl %eax, 0x78(%rbx)
cmpl $0x0, 0x9c(%rbx)
je 0x364b3
movl %esi, %eax
cltd
idivl %edi
movl %eax, 0x7c(%rbx)
movl %ecx, %eax
cltd
idivl %edi
movl %eax, 0x78(%rbx)
movslq 0x7c(%rbx), %rax
movslq 0x78(%rbx), %rdx
imulq %rax, %rdx
movslq 0x80(%rbx), %rax
imulq %rdx, %rax
movl %eax, 0x58(%rbx)
imull %esi, %ecx
imull 0x74(%rbx), %ecx
movl %ecx, 0x54(%rbx)
movq 0x260(%rbx), %rdi
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3360
movq %rax, 0x260(%rbx)
movq 0x268(%rbx), %rdi
movslq 0x58(%rbx), %rax
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3360
movq %rax, 0x268(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: nms_comparator
int nms_comparator(const void *pa, const void *pb)
{
    detection a = *(detection *)pa;
    detection b = *(detection *)pb;
    float diff = 0;
    if(b.sort_class >= 0){
        diff = a.prob[b.sort_class] - b.prob[b.sort_class];
    } else {
        diff = a.objectness - b.objectness;
    }
    if(diff < 0) return 1;
    else if(diff > 0) return -1;
    return 0;
}

// Assembly:
movslq 0x2c(%rsi), %rax
testq %rax, %rax
js 0x36539
movq 0x18(%rsi), %rcx
movq 0x18(%rdi), %rdx
movss (%rdx,%rax,4), %xmm0
subss (%rcx,%rax,4), %xmm0
jmp 0x36543
movss 0x28(%rdi), %xmm0
subss 0x28(%rsi), %xmm0
xorps %xmm1, %xmm1
xorl %ecx, %ecx
ucomiss %xmm1, %xmm0
seta %cl
negl %ecx
ucomiss %xmm0, %xmm1
movl $0x1, %eax
cmovbel %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: float_to_box
box float_to_box(float *f, int stride)
{
    box b = {0};
    b.x = f[0];
    b.y = f[1*stride];
    b.w = f[2*stride];
    b.h = f[3*stride];
    return b;
}

// Assembly:
movslq %esi, %rax
leal (%rax,%rax), %ecx
movslq %ecx, %rcx
leal (%rax,%rax,2), %edx
movslq %edx, %rdx
movss (%rdi,%rcx,4), %xmm1
movss (%rdi,%rdx,4), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movss (%rdi,%rax,4), %xmm2
movss (%rdi), %xmm0
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: overlap
float overlap(float x1, float w1, float x2, float w2)
{
    float l1 = x1 - w1/2;
    float l2 = x2 - w2/2;
    float left = l1 > l2 ? l1 : l2;
    float r1 = x1 + w1/2;
    float r2 = x2 + w2/2;
    float right = r1 < r2 ? r1 : r2;
    return right - left;
}

// Assembly:
movss 0x1c64e(%rip), %xmm4    # 0x53234
mulss %xmm4, %xmm1
movaps %xmm0, %xmm5
subss %xmm1, %xmm5
mulss %xmm4, %xmm3
movaps %xmm2, %xmm4
subss %xmm3, %xmm4
maxss %xmm4, %xmm5
addss %xmm1, %xmm0
addss %xmm2, %xmm3
minss %xmm3, %xmm0
subss %xmm5, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: box_intersection
float box_intersection(box a, box b)
{
    float w = overlap(a.x, a.w, b.x, b.w);
    float h = overlap(a.y, a.h, b.y, b.h);
    if(w < 0 || h < 0) return 0;
    float area = w*h;
    return area;
}

// Assembly:
movss 0x1c61b(%rip), %xmm5    # 0x53234
movaps %xmm1, %xmm4
mulss %xmm5, %xmm4
movaps %xmm0, %xmm6
subss %xmm4, %xmm6
movaps %xmm3, %xmm7
mulss %xmm5, %xmm7
movaps %xmm2, %xmm8
subss %xmm7, %xmm8
maxss %xmm8, %xmm6
addss %xmm0, %xmm4
addss %xmm2, %xmm7
minss %xmm7, %xmm4
subss %xmm6, %xmm4
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
mulss %xmm5, %xmm1
movaps %xmm0, %xmm6
subss %xmm1, %xmm6
mulss %xmm5, %xmm3
movaps %xmm2, %xmm5
subss %xmm3, %xmm5
maxss %xmm5, %xmm6
addss %xmm0, %xmm1
addss %xmm2, %xmm3
minss %xmm3, %xmm1
subss %xmm6, %xmm1
xorps %xmm0, %xmm0
movaps %xmm4, %xmm2
cmpltps %xmm0, %xmm2
movaps %xmm1, %xmm3
cmpltps %xmm0, %xmm3
orps %xmm2, %xmm3
movd %xmm3, %eax
testb $0x1, %al
jne 0x36ca9
mulss %xmm1, %xmm4
movaps %xmm4, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: box_rmse
float box_rmse(box a, box b)
{
    return sqrt(pow(a.x-b.x, 2) + 
                pow(a.y-b.y, 2) + 
                pow(a.w-b.w, 2) + 
                pow(a.h-b.h, 2));
}

// Assembly:
subps %xmm2, %xmm0
xorps %xmm2, %xmm2
cvtss2sd %xmm0, %xmm2
mulsd %xmm2, %xmm2
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvtss2sd %xmm0, %xmm0
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
subps %xmm3, %xmm1
xorps %xmm2, %xmm2
cvtss2sd %xmm1, %xmm2
mulsd %xmm2, %xmm2
addsd %xmm0, %xmm2
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x36dbd
sqrtsd %xmm0, %xmm0
jmp 0x36dc7
pushq %rax
callq 0x3470
addq $0x8, %rsp
cvtsd2ss %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: dintersect
dbox dintersect(box a, box b)
{
    float w = overlap(a.x, a.w, b.x, b.w);
    float h = overlap(a.y, a.h, b.y, b.h);
    dbox dover = derivative(a, b);
    dbox di;

    di.dw = dover.dw*h;
    di.dx = dover.dx*h;
    di.dh = dover.dh*w;
    di.dy = dover.dy*w;

    return di;
}

// Assembly:
subq $0x28, %rsp
movss 0x1c45c(%rip), %xmm4    # 0x53234
movaps %xmm1, %xmm8
mulss %xmm4, %xmm8
movaps %xmm0, %xmm5
subss %xmm8, %xmm5
movaps %xmm3, %xmm6
mulss %xmm4, %xmm6
movaps %xmm2, %xmm7
subss %xmm6, %xmm7
maxss %xmm7, %xmm5
addss %xmm0, %xmm8
addss %xmm2, %xmm6
minss %xmm6, %xmm8
subss %xmm5, %xmm8
movaps %xmm8, 0x10(%rsp)
movaps %xmm0, %xmm5
shufps $0x55, %xmm0, %xmm5     # xmm5 = xmm5[1,1],xmm0[1,1]
movaps %xmm1, %xmm9
shufps $0x55, %xmm1, %xmm9     # xmm9 = xmm9[1,1],xmm1[1,1]
movaps %xmm2, %xmm6
shufps $0x55, %xmm2, %xmm6     # xmm6 = xmm6[1,1],xmm2[1,1]
movaps %xmm3, %xmm7
shufps $0x55, %xmm3, %xmm7     # xmm7 = xmm7[1,1],xmm3[1,1]
mulss %xmm4, %xmm9
movaps %xmm5, %xmm8
subss %xmm9, %xmm8
mulss %xmm4, %xmm7
movaps %xmm6, %xmm4
subss %xmm7, %xmm4
maxss %xmm4, %xmm8
addss %xmm5, %xmm9
addss %xmm6, %xmm7
minss %xmm7, %xmm9
subss %xmm8, %xmm9
movaps %xmm9, (%rsp)
callq 0x36a6f
movaps (%rsp), %xmm4
movaps %xmm4, %xmm2
mulss %xmm1, %xmm2
mulss %xmm0, %xmm4
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps 0x10(%rsp), %xmm3
mulss %xmm3, %xmm1
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
mulss %xmm3, %xmm0
unpcklps %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1]
movaps %xmm4, %xmm0
movaps %xmm2, %xmm1
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: test_dunion
void test_dunion()
{
    box a = {0, 0, 1, 1};
    box dxa= {0+.0001, 0, 1, 1};
    box dya= {0, 0+.0001, 1, 1};
    box dwa= {0, 0, 1+.0001, 1};
    box dha= {0, 0, 1, 1+.0001};

    box b = {.5, .5, .2, .2};
    dbox di = dunion(a,b);
    printf("Union: %f %f %f %f\n", di.dx, di.dy, di.dw, di.dh);
    float inter =  box_union(a, b);
    float xinter = box_union(dxa, b);
    float yinter = box_union(dya, b);
    float winter = box_union(dwa, b);
    float hinter = box_union(dha, b);
    xinter = (xinter - inter)/(.0001);
    yinter = (yinter - inter)/(.0001);
    winter = (winter - inter)/(.0001);
    hinter = (hinter - inter)/(.0001);
    printf("Union Manual %f %f %f %f\n", xinter, yinter, winter, hinter);
}

// Assembly:
subq $0x18, %rsp
movaps 0x20a38(%rip), %xmm1    # 0x57910
movaps 0x20a41(%rip), %xmm2    # 0x57920
movaps 0x20a4a(%rip), %xmm3    # 0x57930
xorps %xmm0, %xmm0
callq 0x36dcc
movss 0x1c112(%rip), %xmm3    # 0x53008
movaps %xmm3, %xmm2
subss %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
subss %xmm1, %xmm3
movaps 0x1c244(%rip), %xmm1    # 0x53150
movaps %xmm0, %xmm4
xorps %xmm1, %xmm4
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
xorps %xmm1, %xmm0
cvtss2sd %xmm4, %xmm4
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
cvtss2sd %xmm2, %xmm2
cvtss2sd %xmm3, %xmm3
leaq 0x20a8d(%rip), %rdi     # 0x579c0
movaps %xmm4, %xmm0
movb $0x4, %al
callq 0x3170
xorps %xmm0, %xmm0
movaps 0x209c9(%rip), %xmm1    # 0x57910
movaps 0x209d2(%rip), %xmm2    # 0x57920
movaps 0x209db(%rip), %xmm3    # 0x57930
callq 0x36caa
movss %xmm0, 0x14(%rsp)
movss 0x1fefc(%rip), %xmm0    # 0x56e64
movaps 0x209a1(%rip), %xmm1    # 0x57910
movaps 0x209aa(%rip), %xmm2    # 0x57920
movaps 0x209b3(%rip), %xmm3    # 0x57930
callq 0x36caa
movss %xmm0, 0x10(%rsp)
movsd 0x209b0(%rip), %xmm0    # 0x57940
movaps 0x20979(%rip), %xmm1    # 0x57910
movaps 0x20982(%rip), %xmm2    # 0x57920
movaps 0x2098b(%rip), %xmm3    # 0x57930
callq 0x36caa
movss %xmm0, 0xc(%rsp)
movsd 0x20998(%rip), %xmm1    # 0x57950
xorps %xmm0, %xmm0
movaps 0x2095e(%rip), %xmm2    # 0x57920
movaps 0x20967(%rip), %xmm3    # 0x57930
callq 0x36caa
movss %xmm0, 0x8(%rsp)
movsd 0x20984(%rip), %xmm1    # 0x57960
xorps %xmm0, %xmm0
movaps 0x2093a(%rip), %xmm2    # 0x57920
movaps 0x20943(%rip), %xmm3    # 0x57930
callq 0x36caa
movss 0x14(%rsp), %xmm4
movss 0x10(%rsp), %xmm1
subss %xmm4, %xmm1
cvtss2sd %xmm1, %xmm1
movsd 0x20992(%rip), %xmm2    # 0x579a0
divsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movss 0xc(%rsp), %xmm3
subss %xmm4, %xmm3
cvtss2sd %xmm3, %xmm3
divsd %xmm2, %xmm3
cvtsd2ss %xmm3, %xmm3
movss 0x8(%rsp), %xmm6
subss %xmm4, %xmm6
movaps %xmm4, %xmm5
xorps %xmm4, %xmm4
cvtss2sd %xmm6, %xmm4
divsd %xmm2, %xmm4
cvtsd2ss %xmm4, %xmm4
subss %xmm5, %xmm0
cvtss2sd %xmm0, %xmm0
divsd %xmm2, %xmm0
xorps %xmm5, %xmm5
cvtsd2ss %xmm0, %xmm5
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtss2sd %xmm3, %xmm1
xorps %xmm2, %xmm2
cvtss2sd %xmm4, %xmm2
xorps %xmm3, %xmm3
cvtss2sd %xmm5, %xmm3
leaq 0x20956(%rip), %rdi     # 0x579d4
movb $0x4, %al
addq $0x18, %rsp
jmp 0x3170
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: do_nms
void do_nms(box *boxes, float **probs, int total, int classes, float thresh)
{
    int i, j, k;
    for(i = 0; i < total; ++i){
        int any = 0;
        for(k = 0; k < classes; ++k) any = any || (probs[i][k] > 0);
        if(!any) {
            continue;
        }
        for(j = i+1; j < total; ++j){
            if (box_iou(boxes[i], boxes[j]) > thresh){
                for(k = 0; k < classes; ++k){
                    if (probs[i][k] < probs[j][k]) probs[i][k] = 0;
                    else probs[j][k] = 0;
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movss %xmm0, 0x14(%rsp)
movl %ecx, 0x4(%rsp)
movq %rsi, 0x20(%rsp)
testl %edx, %edx
jle 0x373fe
movq %rdi, %r15
movl %edx, %eax
movq %rax, 0x8(%rsp)
movl 0x4(%rsp), %r13d
movl $0x1, %eax
movq %rax, 0x18(%rsp)
xorl %ebx, %ebx
cmpl $0x0, 0x4(%rsp)
jle 0x373eb
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x20(%rsp), %rdx
xorps %xmm1, %xmm1
testl %ecx, %ecx
movl $0x1, %ecx
jne 0x37349
movq (%rdx,%rbx,8), %rcx
movss (%rcx,%rax,4), %xmm0
xorl %ecx, %ecx
ucomiss %xmm1, %xmm0
seta %cl
incq %rax
cmpq %rax, %r13
jne 0x3732f
leaq 0x1(%rbx), %rax
cmpq 0x8(%rsp), %rax
setb %al
andb %cl, %al
cmpb $0x1, %al
jne 0x373eb
movq %rbx, %rbp
shlq $0x4, %rbp
addq %r15, %rbp
movq 0x18(%rsp), %r12
cmpl $0x0, 0x4(%rsp)
setle %r14b
movq %r12, %rax
shlq $0x4, %rax
movsd (%rbp), %xmm0
movsd 0x8(%rbp), %xmm1
movsd (%r15,%rax), %xmm2
movsd 0x8(%r15,%rax), %xmm3
callq 0x36754
ucomiss 0x14(%rsp), %xmm0
setbe %al
orb %r14b, %al
jne 0x373e1
movq 0x20(%rsp), %rcx
movq (%rcx,%rbx,8), %rax
movq (%rcx,%r12,8), %rcx
movq %r13, %rdx
movss (%rcx), %xmm0
ucomiss (%rax), %xmm0
movq %rax, %rsi
ja 0x373ce
movq %rcx, %rsi
movl $0x0, (%rsi)
addq $0x4, %rcx
addq $0x4, %rax
decq %rdx
jne 0x373bf
incq %r12
cmpq 0x8(%rsp), %r12
jne 0x37376
incq %rbx
incq 0x18(%rsp)
cmpq 0x8(%rsp), %rbx
jne 0x37318
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/box.c
// Function: encode_box
box encode_box(box b, box anchor)
{
    box encode;
    encode.x = (b.x - anchor.x) / anchor.w;
    encode.y = (b.y - anchor.y) / anchor.h;
    encode.w = log2(b.w / anchor.w);
    encode.h = log2(b.h / anchor.h);
    return encode;
}

// Assembly:
subq $0x48, %rsp
movaps %xmm1, 0x20(%rsp)
subps %xmm2, %xmm0
movaps %xmm0, %xmm2
divss %xmm3, %xmm2
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm1, %xmm4
divss %xmm3, %xmm4
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
movaps %xmm3, 0x10(%rsp)
divss %xmm3, %xmm0
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
movaps %xmm2, 0x30(%rsp)
xorps %xmm0, %xmm0
cvtss2sd %xmm4, %xmm0
callq 0x3050
cvtsd2ss %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps 0x20(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
divss 0x10(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x3050
cvtsd2ss %xmm0, %xmm0
movaps (%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movaps 0x30(%rsp), %xmm0
addq $0x48, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/box.c
// Function: decode_box
box decode_box(box b, box anchor)
{
    box decode;
    decode.x = b.x * anchor.w + anchor.x;
    decode.y = b.y * anchor.h + anchor.y;
    decode.w = pow(2., b.w) * anchor.w;
    decode.h = pow(2., b.h) * anchor.h;
    return decode;
}

// Assembly:
subq $0x48, %rsp
movaps %xmm3, (%rsp)
movaps %xmm1, %xmm5
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, %xmm1
mulss %xmm3, %xmm1
addss %xmm2, %xmm1
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm3, %xmm4
shufps $0x55, %xmm3, %xmm4     # xmm4 = xmm4[1,1],xmm3[1,1]
movaps %xmm4, 0x20(%rsp)
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
mulss %xmm4, %xmm0
addss %xmm2, %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movaps %xmm1, 0x30(%rsp)
xorps %xmm0, %xmm0
cvtss2sd %xmm5, %xmm0
callq 0x3030
xorps %xmm1, %xmm1
cvtss2sd (%rsp), %xmm1
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movaps %xmm0, (%rsp)
movaps 0x10(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvtss2sd %xmm0, %xmm0
callq 0x3030
xorps %xmm1, %xmm1
cvtss2sd 0x20(%rsp), %xmm1
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movaps (%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movaps 0x30(%rsp), %xmm0
addq $0x48, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/normalization_layer.c
// Function: resize_normalization_layer
void resize_normalization_layer(layer *layer, int w, int h)
{
    int c = layer->c;
    int batch = layer->batch;
    layer->h = h;
    layer->w = w;
    layer->out_h = h;
    layer->out_w = w;
    layer->inputs = w*h*c;
    layer->outputs = layer->inputs;
    layer->output = realloc(layer->output, h * w * c * batch * sizeof(float));
    layer->delta = realloc(layer->delta, h * w * c * batch * sizeof(float));
    layer->squared = realloc(layer->squared, h * w * c * batch * sizeof(float));
    layer->norms = realloc(layer->norms, h * w * c * batch * sizeof(float));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x74(%rdi), %rax
movslq 0x48(%rdi), %rcx
movl %edx, 0x6c(%rdi)
movl %esi, 0x70(%rdi)
movl %edx, 0x78(%rdi)
movl %esi, 0x7c(%rdi)
imull %esi, %edx
movslq %edx, %r14
imulq %rax, %r14
movl %r14d, 0x54(%rdi)
movl %r14d, 0x58(%rdi)
movq 0x268(%rdi), %rdi
imulq %rcx, %r14
shlq $0x2, %r14
movq %r14, %rsi
callq 0x3360
movq %rax, 0x268(%rbx)
movq 0x260(%rbx), %rdi
movq %r14, %rsi
callq 0x3360
movq %rax, 0x260(%rbx)
movq 0x278(%rbx), %rdi
movq %r14, %rsi
callq 0x3360
movq %rax, 0x278(%rbx)
movq 0x280(%rbx), %rdi
movq %r14, %rsi
callq 0x3360
movq %rax, 0x280(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/avgpool_layer.c
// Function: forward_avgpool_layer
void forward_avgpool_layer(const avgpool_layer l, network net)
{
    int b,i,k;

    for(b = 0; b < l.batch; ++b){
        for(k = 0; k < l.c; ++k){
            int out_index = k + b*l.c;
            l.output[out_index] = 0;
            for(i = 0; i < l.h*l.w; ++i){
                int in_index = i + l.h*l.w*(k + b*l.c);
                l.output[out_index] += net.input[in_index];
            }
            l.output[out_index] /= l.h*l.w;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq 0x70(%rsp), %rax
testq %rax, %rax
jle 0x37a63
leaq 0x4c8(%rsp), %rdi
leaq 0x28(%rsp), %r8
movl 0x70(%r8), %ecx
movl 0x74(%r8), %edx
movq 0x268(%r8), %rsi
imull 0x6c(%r8), %ecx
movq 0xd8(%rdi), %rdi
cvtsi2ss %ecx, %xmm0
movq %rdx, %r8
imulq %rcx, %r8
shlq $0x2, %r8
leaq (,%rcx,4), %r9
xorl %r10d, %r10d
testl %edx, %edx
jle 0x37a58
movq %r10, %r11
imulq %rdx, %r11
movq %rdi, %rbx
xorl %r14d, %r14d
leaq (%r11,%r14), %r15
movl $0x0, (%rsi,%r15,4)
testl %ecx, %ecx
jle 0x37a3d
movss (%rsi,%r15,4), %xmm1
xorl %r12d, %r12d
addss (%rbx,%r12,4), %xmm1
movss %xmm1, (%rsi,%r15,4)
incq %r12
cmpq %r12, %rcx
jne 0x37a29
movss (%rsi,%r15,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rsi,%r15,4)
incq %r14
addq %r9, %rbx
cmpq %rdx, %r14
jne 0x37a10
incq %r10
addq %r8, %rdi
cmpq %rax, %r10
jne 0x379ff
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/avgpool_layer.c
// Function: backward_avgpool_layer
void backward_avgpool_layer(const avgpool_layer l, network net)
{
    int b,i,k;

    for(b = 0; b < l.batch; ++b){
        for(k = 0; k < l.c; ++k){
            int out_index = k + b*l.c;
            for(i = 0; i < l.h*l.w; ++i){
                int in_index = i + l.h*l.w*(k + b*l.c);
                net.delta[in_index] += l.delta[out_index] / (l.h*l.w);
            }
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq 0x70(%rsp), %rax
testq %rax, %rax
jle 0x37b0f
leaq 0x28(%rsp), %rsi
movl 0x70(%rsi), %ecx
imull 0x6c(%rsi), %ecx
leaq 0x4c8(%rsp), %rdi
cvtsi2ss %ecx, %xmm0
movl 0x74(%rsi), %edx
movq 0x260(%rsi), %rsi
movq 0xe8(%rdi), %rdi
movq %rdx, %r8
imulq %rcx, %r8
shlq $0x2, %r8
leaq (,%rcx,4), %r9
xorl %r10d, %r10d
testl %edx, %edx
jle 0x37b04
movq %r10, %r11
imulq %rdx, %r11
movq %rdi, %rbx
xorl %r14d, %r14d
testl %ecx, %ecx
jle 0x37af9
leaq (%r11,%r14), %r15
xorl %r12d, %r12d
movss (%rsi,%r15,4), %xmm1
divss %xmm0, %xmm1
addss (%rbx,%r12,4), %xmm1
movss %xmm1, (%rbx,%r12,4)
incq %r12
cmpq %r12, %rcx
jne 0x37adb
incq %r14
addq %r9, %rbx
cmpq %rdx, %r14
jne 0x37ad0
incq %r10
addq %r8, %rdi
cmpq %rax, %r10
jne 0x37abf
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/local_layer.c
// Function: update_local_layer
void update_local_layer(local_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;

    int locations = l.out_w*l.out_h;
    int size = l.size*l.size*l.c*l.n*locations;
    axpy_cpu(l.outputs, learning_rate/batch, l.bias_updates, 1, l.biases, 1);
    scal_cpu(l.outputs, momentum, l.bias_updates, 1);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movss 0x4f4(%rsp), %xmm1
movss 0x4f8(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
mulss 0x13c(%rsp), %xmm1
movaps %xmm1, %xmm0
movl 0xc8(%rsp), %eax
movl 0xe0(%rsp), %ebx
imull 0xcc(%rsp), %eax
imull %ebx, %ebx
imull %eax, %ebx
imull 0xc4(%rsp), %ebx
imull 0xd4(%rsp), %ebx
movl 0xa8(%rsp), %ebp
xorps %xmm1, %xmm1
cvtsi2ssl 0x4f0(%rsp), %xmm1
movss %xmm1, 0x8(%rsp)
divss %xmm1, %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x288(%rsp), %r14
movq 0x280(%rsp), %rcx
movss 0x4fc(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movl %ebp, %edi
movq %r14, %rsi
movl $0x1, %edx
movl $0x1, %r8d
callq 0x285e9
movl %ebp, %edi
movss 0x4(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x28619
movaps 0x10(%rsp), %xmm0
xorps 0x1ace4(%rip), %xmm0    # 0x53150
mulss 0x8(%rsp), %xmm0
movq 0x2a0(%rsp), %r14
movq 0x2a8(%rsp), %r15
movl %ebx, %edi
movq %r14, %rsi
movl $0x1, %edx
movq %r15, %rcx
movl $0x1, %r8d
callq 0x285e9
movl %ebx, %edi
movss 0xc(%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 $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x28619
nop
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/shortcut_layer.c
// Function: resize_shortcut_layer
void resize_shortcut_layer(layer *l, int w, int h)
{
    assert(l->w == l->out_w);
    assert(l->h == l->out_h);
    l->w = l->out_w = w;
    l->h = l->out_h = h;
    l->outputs = w*h*l->out_c;
    l->inputs = l->outputs;
    l->delta =  realloc(l->delta, l->outputs*l->batch*sizeof(float));
    l->output = realloc(l->output, l->outputs*l->batch*sizeof(float));

    
}

// Assembly:
pushq %rbx
movl 0x70(%rdi), %eax
cmpl 0x7c(%rdi), %eax
jne 0x386df
movq %rdi, %rbx
movl 0x6c(%rdi), %eax
cmpl 0x78(%rdi), %eax
jne 0x386fe
movl %esi, 0x7c(%rbx)
movl %esi, 0x70(%rbx)
movl %edx, 0x78(%rbx)
movl %edx, 0x6c(%rbx)
imull %esi, %edx
movslq 0x80(%rbx), %rax
movslq %edx, %rcx
imulq %rax, %rcx
movl %ecx, 0x58(%rbx)
movl %ecx, 0x54(%rbx)
movq 0x260(%rbx), %rdi
movslq 0x48(%rbx), %rsi
imulq %rcx, %rsi
shlq $0x2, %rsi
callq 0x3360
movq %rax, 0x260(%rbx)
movq 0x268(%rbx), %rdi
movslq 0x58(%rbx), %rax
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3360
movq %rax, 0x268(%rbx)
popq %rbx
retq
leaq 0x1f43a(%rip), %rdi     # 0x57b20
leaq 0x1f444(%rip), %rsi     # 0x57b31
leaq 0x1f44e(%rip), %rcx     # 0x57b42
movl $0x24, %edx
callq 0x31c0
leaq 0x1f46b(%rip), %rdi     # 0x57b70
leaq 0x1f425(%rip), %rsi     # 0x57b31
leaq 0x1f42f(%rip), %rcx     # 0x57b42
movl $0x25, %edx
callq 0x31c0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/logistic_layer.c
// Function: forward_logistic_layer
void forward_logistic_layer(const layer l, network net)
{
    copy_cpu(l.outputs*l.batch, net.input, 1, l.output, 1);
    activate_array(l.output, l.outputs*l.batch, LOGISTIC);
    if(net.truth){
        logistic_x_ent_cpu(l.batch*l.inputs, l.output, net.truth, l.delta, l.loss);
        l.cost[0] = sum_array(l.loss, l.batch*l.inputs);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x78(%rsp), %ebx
movl 0x88(%rsp), %ebp
imull %ebx, %ebp
movq 0x5a8(%rsp), %rsi
movq 0x298(%rsp), %r14
movl %ebp, %edi
movl $0x1, %edx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x2879c
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x275e5
movq 0x5b0(%rsp), %rdx
testq %rdx, %rdx
je 0x387b2
leaq 0x30(%rsp), %r12
imull 0x54(%r12), %ebx
movq 0x260(%r12), %rcx
movq 0x270(%r12), %r15
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %r8
callq 0x28939
movq %r15, %rdi
movl %ebx, %esi
callq 0xedee
movq 0x1d8(%r12), %rax
movss %xmm0, (%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq