LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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
movl 0x1c8(%rsp), %ebx
testl %ebx, %ebx
jne 0x36bc9
movl 0xc4(%rsp), %ebx
leaq 0x40(%rsp), %r13
movl 0x74(%r13), %eax
movl 0x90(%r13), %r15d
movl %eax, 0x4(%rsp)
cltd
idivl 0x8c(%r13)
imull %r15d, %r15d
movl %r15d, %ebp
imull %ebx, %ebp
imull %eax, %ebp
movq 0x230(%r13), %rdi
movslq %ebx, %r12
movl $0x4, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x30d0
cmpl $0x0, 0x40(%r13)
je 0x36c62
cmpl $0x0, 0x1c4(%rsp)
jne 0x36c62
movq 0x240(%r13), %rdi
movl $0x4, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x30d0
movq 0x2b0(%r13), %rdi
movl $0x4, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x30d0
movq 0x2b8(%r13), %rdi
movl $0x4, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x30d0
movq 0x250(%r13), %r12
movslq %ebp, %rdx
movl $0x4, %esi
movq %r12, %rdi
movq %r14, %rcx
callq 0x30d0
cmpl $0x0, 0x50(%r13)
je 0x36ca4
imull 0x4(%rsp), %r15d
movq %r12, %rdi
movl %r15d, %esi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3668f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x24160(%rip), %rsi     # 0x5ae29
callq 0x3390
movq %rax, %rbx
testq %rax, %rax
jne 0x36cde
movq %r14, %rdi
callq 0xe925
xorl %eax, %eax
callq 0x11828
movq %rax, %r14
movq %rbx, %rdi
callq 0xe948
testq %rax, %rax
je 0x36d6f
movq %rax, %r12
movl $0x1, %ebp
leaq 0x22a81(%rip), %r15     # 0x59785
movabsq $0x800000800000001, %r13 # imm = 0x800000800000001
movq %r12, %rdi
callq 0xf25f
movzbl (%r12), %eax
cmpq $0x3b, %rax
ja 0x36d31
btq %rax, %r13
jae 0x36d31
movq %r12, %rdi
callq 0x3040
jmp 0x36d40
movq %r12, %rdi
movq %r14, %rsi
callq 0x36d89
testl %eax, %eax
je 0x36d54
movq %rbx, %rdi
callq 0xe948
movq %rax, %r12
incl %ebp
testq %rax, %rax
jne 0x36d0e
jmp 0x36d6f
movq 0x3529d(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x3270
jmp 0x36d27
movq %rbx, %rdi
callq 0x3130
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/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 0x3140
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x36dc0
leaq 0x1(%r14), %r15
xorl %edx, %edx
cmpb $0x3d, -0x1(%r15)
je 0x36dc7
incq %rdx
incq %r15
cmpq %rdx, %rcx
jne 0x36da9
xorl %r15d, %r15d
jmp 0x36dd4
xorl %edx, %edx
xorl %r15d, %r15d
jmp 0x36dcc
movb $0x0, -0x1(%r15)
decq %rcx
cmpq %rcx, %rdx
je 0x36dfc
movl $0x18, %edi
callq 0x3300
movq %r14, (%rax)
movq %r15, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11881
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x36cb4
movq %rax, %rbx
leaq 0x229d4(%rip), %rsi     # 0x597e9
movq %rax, %rdi
xorl %edx, %edx
callq 0x36e77
testq %rax, %rax
jne 0x36e3a
leaq 0x21c2b(%rip), %rsi     # 0x58a56
movq %rbx, %rdi
xorl %edx, %edx
callq 0x36e77
testq %rax, %rax
je 0x36e6d
movq %rax, %rdi
callq 0x2d26c
movq %rax, %r14
leaq 0x2244f(%rip), %rsi     # 0x5929b
movq %rbx, %rdi
movl $0x2, %edx
callq 0x36eed
movl %eax, %ebp
movq %rbx, %rdi
callq 0x118de
movl %ebp, %eax
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
retq
callq 0x6ef4
xorl %r14d, %r14d
jmp 0x36e45
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%r15), %r15
testq %r15, %r15
je 0x36eb7
movq (%r15), %r12
movq (%r12), %rdi
movq %r14, %rsi
callq 0x3260
testl %eax, %eax
jne 0x36e88
movl $0x1, 0x10(%r12)
movq 0x8(%r12), %rax
testq %rax, %rax
jne 0x36ebe
testq %rbx, %rbx
jne 0x36eca
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x35127(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x22947(%rip), %rsi     # 0x59822
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x3270
movq %rbx, %rax
jmp 0x36ebe
// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: option_find_int
int option_find_int(list *l, char *key, int def)
{
    char *v = option_find(l, key);
    if(v) return atoi(v);
    fprintf(stderr, "%s: Using default '%d'\n", key, def);
    return def;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%r15), %r15
testq %r15, %r15
je 0x36f3c
movq (%r15), %r12
movq (%r12), %rdi
movq %r14, %rsi
callq 0x3260
testl %eax, %eax
jne 0x36efd
movl $0x1, 0x10(%r12)
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x36f3c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3400
movq 0x350b5(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x228ed(%rip), %rsi     # 0x5983a
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x3270
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3300
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq %r15, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x11881
// File: /workspace/github_c_makefile_star2_O3/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 0x36fbd
movq (%rbx), %rdi
cmpl $0x0, 0x10(%rdi)
je 0x36fb6
movq 0x8(%rbx), %rbx
jmp 0x36fa2
callq 0x6f10
jmp 0x36fb0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %r15
xorl %ebx, %ebx
movq 0x8(%r15), %r15
testq %r15, %r15
je 0x36ff9
movq (%r15), %r12
movq (%r12), %rdi
movq %r14, %rsi
callq 0x3260
testl %eax, %eax
jne 0x36fcf
movl $0x1, 0x10(%r12)
movq 0x8(%r12), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/option_list.c
// Function: option_find_float
float option_find_float(list *l, char *key, float def)
{
    char *v = option_find(l, key);
    if(v) return atof(v);
    fprintf(stderr, "%s: Using default '%lf'\n", key, def);
    return def;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x37119
movq (%r14), %r15
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x3260
testl %eax, %eax
jne 0x370da
movl $0x1, 0x10(%r15)
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x37119
callq 0x30f0
cvtsd2ss %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x34ed8(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
xorps %xmm0, %xmm0
cvtss2sd 0xc(%rsp), %xmm0
leaq 0x2271f(%rip), %rsi     # 0x59852
movq %rbx, %rdx
movb $0x1, %al
callq 0x3270
movss 0xc(%rsp), %xmm0
jmp 0x3710f
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x31c0
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 0x37282
movl $0x1, %edi
movl $0x4, %esi
callq 0x3250
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 0x3250
movq %rax, 0x268(%rbx)
movl $0x4, %esi
movq %r14, %rdi
callq 0x3250
movq %rax, 0x260(%rbx)
leaq 0x67(%rip), %rax        # 0x372a1
movq %rax, 0x10(%rbx)
leaq 0xc5b(%rip), %rax       # 0x37ea0
movq %rax, 0x18(%rbx)
movq 0x34da8(%rip), %rax     # 0x6bff8
movq (%rax), %rcx
leaq 0x226bd(%rip), %rdi     # 0x59917
movl $0x10, %esi
movl $0x1, %edx
callq 0x3440
xorl %edi, %edi
callq 0x3220
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x225ff(%rip), %rdi     # 0x59888
leaq 0x2262d(%rip), %rsi     # 0x598bd
leaq 0x22638(%rip), %rcx     # 0x598cf
movl $0x1c, %edx
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/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 0x3824f
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 0x38234
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 0x29fe0
addq %r12, %r15
addq %rbp, %r14
decq %r13
jne 0x38211
addl 0xc(%rsp), %ebx
movq 0x18(%rsp), %rcx
incq %rcx
movl %ebx, 0xc(%rsp)
cmpq 0x40(%rsp), %rcx
jne 0x381bf
addq $0x48, %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/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 0x38371
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 0x38356
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 0x1ccd3(%rip), %xmm0    # 0x55008
movq %r15, %rsi
movl $0x1, %edx
movq %r14, %rcx
movl $0x1, %r8d
callq 0x29d31
addq %rbp, %r14
addq %r12, %r15
decq %r13
jne 0x3832b
addl 0xc(%rsp), %ebx
movq 0x18(%rsp), %rcx
incq %rcx
movl %ebx, 0xc(%rsp)
cmpq 0x40(%rsp), %rcx
jne 0x382d9
addq $0x48, %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/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
movq 0x7c(%rax,%rcx), %rax
movl %ebp, 0x78(%rdi)
movq %rax, 0x7c(%rdi)
movl %esi, 0x58(%rdi)
movl %esi, (%rdx)
cmpl $0x2, 0x84(%rdi)
jl 0x38468
movq %rax, %xmm0
movd %xmm0, %r15d
movl $0x1, %r13d
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), %r12d
addl %r8d, 0x58(%rbx)
movl %r8d, (%rcx,%r13,4)
cmpl %r15d, %esi
jne 0x3842f
cmpl %ebp, %edx
jne 0x3842f
addl 0x80(%rbx), %r12d
jmp 0x3844e
xorl %r12d, %r12d
leaq 0x2154c(%rip), %rdi     # 0x59985
movl %r15d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x3160
movq $0x0, 0x78(%rbx)
movl %r12d, 0x80(%rbx)
incq %r13
movslq 0x84(%rbx), %rax
cmpq %rax, %r13
jl 0x383e3
movslq 0x58(%rbx), %rax
movl %eax, 0x54(%rbx)
movq 0x260(%rbx), %rdi
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3350
movq %rax, 0x260(%rbx)
movq 0x268(%rbx), %rdi
movslq 0x58(%rbx), %rax
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3350
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_O3/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 0x29d83
cmpl $0x0, 0x9c(%r12)
je 0x38537
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 0x38566
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 0x2a44e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x385bc
movq 0x260(%rax), %rdi
movl 0x78(%rax), %edx
movl 0x7c(%rax), %esi
pushq 0xe8(%r10)
pushq $0x1
jmp 0x385d1
movq 0xe8(%r10), %rdi
movl 0x6c(%rax), %edx
movl 0x70(%rax), %esi
pushq 0x260(%rax)
pushq $0x0
callq 0x2a44e
addq $0x10, %rsp
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/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), %r8d
movl %r8d, %edi
imull %esi, %edi
movl %edi, 0x7c(%rbx)
movl %r8d, %eax
imull %edx, %eax
movl %eax, 0x78(%rbx)
cmpl $0x0, 0x9c(%rbx)
je 0x3861e
movl %esi, %eax
cltd
idivl %r8d
movl %eax, %edi
movl %eax, 0x7c(%rbx)
movl %ecx, %eax
cltd
idivl %r8d
movl %eax, 0x78(%rbx)
imull %edi, %eax
movslq 0x80(%rbx), %rdx
cltq
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 0x3350
movq %rax, 0x260(%rbx)
movq 0x268(%rbx), %rdi
movslq 0x58(%rbx), %rax
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3350
movq %rax, 0x268(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x3869d
movq 0x18(%rsi), %rcx
movq 0x18(%rdi), %rdx
movss (%rdx,%rax,4), %xmm0
subss (%rcx,%rax,4), %xmm0
jmp 0x386a7
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_O3/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 0x1c349(%rip), %xmm4    # 0x55264
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_O3/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
cvtps2pd %xmm0, %xmm0
subps %xmm3, %xmm1
cvtps2pd %xmm1, %xmm1
mulpd %xmm0, %xmm0
mulpd %xmm1, %xmm1
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
addsd %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
xorps %xmm0, %xmm0
sqrtsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movaps %xmm3, 0x10(%rsp)
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, (%rsp)
movaps %xmm0, 0x20(%rsp)
callq 0x38da4
movaps 0x1f942(%rip), %xmm2    # 0x589b0
movaps (%rsp), %xmm4
mulps %xmm2, %xmm4
movaps 0x20(%rsp), %xmm7
movaps %xmm7, %xmm3
subps %xmm4, %xmm3
movaps 0x10(%rsp), %xmm5
mulps %xmm2, %xmm5
movaps 0x30(%rsp), %xmm6
movaps %xmm6, %xmm2
subps %xmm5, %xmm2
maxps %xmm2, %xmm3
addps %xmm7, %xmm4
addps %xmm6, %xmm5
minps %xmm5, %xmm4
subps %xmm3, %xmm4
shufps $0x11, %xmm4, %xmm4     # xmm4 = xmm4[1,0,1,0]
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
mulps %xmm4, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addq $0x48, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1c206(%rip), %xmm1    # 0x552f0
movaps 0x1f8bf(%rip), %xmm2    # 0x589b0
movaps 0x20918(%rip), %xmm3    # 0x59a10
xorps %xmm0, %xmm0
callq 0x3904b
movss 0x1bf00(%rip), %xmm3    # 0x55008
movaps %xmm3, %xmm2
subss %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
subss %xmm1, %xmm3
movaps 0x1bf72(%rip), %xmm1    # 0x55090
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 0x20963(%rip), %rdi     # 0x59aa8
movaps %xmm4, %xmm0
movb $0x4, %al
callq 0x3160
xorps %xmm0, %xmm0
movaps 0x1c197(%rip), %xmm1    # 0x552f0
movaps 0x1f850(%rip), %xmm2    # 0x589b0
movaps 0x208a9(%rip), %xmm3    # 0x59a10
callq 0x38f99
movss %xmm0, 0x14(%rsp)
movss 0x1fdea(%rip), %xmm0    # 0x58f64
movaps 0x1c16f(%rip), %xmm1    # 0x552f0
movaps 0x1f828(%rip), %xmm2    # 0x589b0
movaps 0x20881(%rip), %xmm3    # 0x59a10
callq 0x38f99
movss %xmm0, 0x10(%rsp)
movsd 0x2087e(%rip), %xmm0    # 0x59a20
movaps 0x1c147(%rip), %xmm1    # 0x552f0
movaps 0x1f800(%rip), %xmm2    # 0x589b0
movaps 0x20859(%rip), %xmm3    # 0x59a10
callq 0x38f99
movss %xmm0, 0xc(%rsp)
movsd 0x20866(%rip), %xmm1    # 0x59a30
xorps %xmm0, %xmm0
movaps 0x1f7dc(%rip), %xmm2    # 0x589b0
movaps 0x20835(%rip), %xmm3    # 0x59a10
callq 0x38f99
movss %xmm0, 0x8(%rsp)
movsd 0x20852(%rip), %xmm1    # 0x59a40
xorps %xmm0, %xmm0
movaps 0x1f7b8(%rip), %xmm2    # 0x589b0
movaps 0x20811(%rip), %xmm3    # 0x59a10
callq 0x38f99
movss 0x14(%rsp), %xmm4
movss 0x10(%rsp), %xmm1
subss %xmm4, %xmm1
cvtss2sd %xmm1, %xmm1
movsd 0x20868(%rip), %xmm2    # 0x59a88
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 0x2082c(%rip), %rdi     # 0x59abc
movb $0x4, %al
addq $0x18, %rsp
jmp 0x3160
// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movss %xmm0, 0x1c(%rsp)
movl %ecx, 0xc(%rsp)
testl %edx, %edx
jle 0x39630
movq %rdi, %r15
movl %edx, %eax
movq %rax, 0x10(%rsp)
movl 0xc(%rsp), %r13d
movl $0x1, %r12d
xorl %ebx, %ebx
xorps %xmm1, %xmm1
movq %rsi, 0x20(%rsp)
cmpl $0x0, 0xc(%rsp)
jle 0x39619
xorl %eax, %eax
xorl %ecx, %ecx
testl %ecx, %ecx
je 0x3954b
incq %rax
movl $0x1, %ecx
cmpq %r13, %rax
jne 0x39538
jmp 0x3956d
movq (%rsi,%rbx,8), %rcx
movss (%rcx,%rax,4), %xmm0
xorl %ecx, %ecx
ucomiss %xmm1, %xmm0
seta %cl
incq %rax
cmpq %r13, %rax
jne 0x39538
ucomiss %xmm1, %xmm0
jbe 0x39619
leaq 0x1(%rbx), %rax
cmpq 0x10(%rsp), %rax
jge 0x3961f
movq %rax, 0x28(%rsp)
movq %rbx, %rbp
shlq $0x4, %rbp
addq %r15, %rbp
movq %r12, 0x30(%rsp)
cmpl $0x0, 0xc(%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 0x389b3
ucomiss 0x1c(%rsp), %xmm0
setbe %al
orb %r14b, %al
jne 0x395fb
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 0x395e8
movq %rcx, %rsi
movl $0x0, (%rsi)
addq $0x4, %rcx
addq $0x4, %rax
decq %rdx
jne 0x395d9
incq %r12
cmpq 0x10(%rsp), %r12
jne 0x39590
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %r12
xorps %xmm1, %xmm1
movq 0x28(%rsp), %rax
jmp 0x3961f
incq %rbx
movq %rbx, %rax
incq %r12
movq %rax, %rbx
cmpq 0x10(%rsp), %rax
jne 0x39529
addq $0x38, %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/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 0x39c1a
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 0x39c0f
movq %r10, %r11
imulq %rdx, %r11
movq %rdi, %rbx
xorl %r14d, %r14d
leaq (%r11,%r14), %r15
movl $0x0, (%rsi,%r15,4)
xorps %xmm1, %xmm1
testl %ecx, %ecx
jle 0x39bfa
xorl %r12d, %r12d
addss (%rbx,%r12,4), %xmm1
movss %xmm1, (%rsi,%r15,4)
incq %r12
cmpq %r12, %rcx
jne 0x39be6
divss %xmm0, %xmm1
movss %xmm1, (%rsi,%r15,4)
incq %r14
addq %r9, %rbx
cmpq %rdx, %r14
jne 0x39bd0
incq %r10
addq %r8, %rdi
cmpq %rax, %r10
jne 0x39bbf
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x39cc6
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 0x39cbb
movq %r10, %r11
imulq %rdx, %r11
movq %rdi, %rbx
xorl %r14d, %r14d
testl %ecx, %ecx
jle 0x39cb0
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 0x39c92
incq %r14
addq %r9, %rbx
cmpq %rdx, %r14
jne 0x39c87
incq %r10
addq %r8, %rdi
cmpq %rax, %r10
jne 0x39c76
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x29d31
movl %ebp, %edi
movss 0x4(%rsp), %xmm0
movq %r14, %rsi
movl $0x1, %edx
callq 0x29d61
movaps 0x10(%rsp), %xmm0
xorps 0x1a97c(%rip), %xmm0    # 0x55090
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 0x29d31
movl %ebx, %edi
movss 0xc(%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 $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x29d61
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x3a987
movq %rdi, %rbx
movl 0x6c(%rdi), %eax
cmpl 0x78(%rdi), %eax
jne 0x3a9a6
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 0x3350
movq %rax, 0x260(%rbx)
movq 0x268(%rbx), %rdi
movslq 0x58(%rbx), %rax
movslq 0x48(%rbx), %rsi
imulq %rax, %rsi
shlq $0x2, %rsi
callq 0x3350
movq %rax, 0x268(%rbx)
popq %rbx
retq
leaq 0x1f27a(%rip), %rdi     # 0x59c08
leaq 0x1f284(%rip), %rsi     # 0x59c19
leaq 0x1f28e(%rip), %rcx     # 0x59c2a
movl $0x24, %edx
callq 0x31b0
leaq 0x1f2ab(%rip), %rdi     # 0x59c58
leaq 0x1f265(%rip), %rsi     # 0x59c19
leaq 0x1f26f(%rip), %rcx     # 0x59c2a
movl $0x25, %edx
callq 0x31b0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x29fe0
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x28c99
movq 0x5b0(%rsp), %rdx
testq %rdx, %rdx
je 0x3aa5a
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 0x2a177
movq %r15, %rdi
movl %ebx, %esi
callq 0xf5d3
movq 0x1d8(%r12), %rax
movss %xmm0, (%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/gru_layer.c
// Function: update_gru_layer
void update_gru_layer(layer l, update_args a)
{
    update_connected_layer(*(l.ur), a);
    update_connected_layer(*(l.uz), a);
    update_connected_layer(*(l.uh), a);
    update_connected_layer(*(l.wr), a);
    update_connected_layer(*(l.wz), a);
    update_connected_layer(*(l.wh), a);
}

// Assembly:
subq $0x4c8, %rsp            # imm = 0x4C8
movq 0x908(%rsp), %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl 0x990(%rsp), %eax
movl %eax, 0x4c0(%rsp)
movaps 0x970(%rsp), %xmm0
movaps 0x980(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq 0x337f6
movq 0x8f8(%rsp), %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl 0x990(%rsp), %eax
movl %eax, 0x4c0(%rsp)
movaps 0x970(%rsp), %xmm0
movaps 0x980(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq 0x337f6
movq 0x918(%rsp), %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl 0x990(%rsp), %eax
movl %eax, 0x4c0(%rsp)
movaps 0x970(%rsp), %xmm0
movaps 0x980(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq 0x337f6
movq 0x900(%rsp), %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl 0x990(%rsp), %eax
movl %eax, 0x4c0(%rsp)
movaps 0x970(%rsp), %xmm0
movaps 0x980(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq 0x337f6
movq 0x8f0(%rsp), %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl 0x990(%rsp), %eax
movl %eax, 0x4c0(%rsp)
movaps 0x970(%rsp), %xmm0
movaps 0x980(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq 0x337f6
movq 0x910(%rsp), %rsi
movl $0x94, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl 0x990(%rsp), %eax
movl %eax, 0x4c0(%rsp)
movaps 0x970(%rsp), %xmm0
movaps 0x980(%rsp), %xmm1
movups %xmm1, 0x4b0(%rsp)
movups %xmm0, 0x4a0(%rsp)
callq 0x337f6
addq $0x4c8, %rsp            # imm = 0x4C8
retq
nop
// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/batchnorm_layer.c
// Function: backward_batchnorm_layer
void backward_batchnorm_layer(layer l, network net)
{
    if(!net.train){
        l.mean = l.rolling_mean;
        l.variance = l.rolling_variance;
    }
    backward_bias(l.bias_updates, l.delta, l.batch, l.out_c, l.out_w*l.out_h);
    backward_scale_cpu(l.x_norm, l.delta, l.batch, l.out_c, l.out_w*l.out_h, l.scale_updates);

    scale_bias(l.delta, l.scales, l.batch, l.out_c, l.out_h*l.out_w);

    mean_delta_cpu(l.delta, l.variance, l.batch, l.out_c, l.out_w*l.out_h, l.mean_delta);
    variance_delta_cpu(l.x, l.delta, l.mean, l.variance, l.batch, l.out_c, l.out_w*l.out_h, l.variance_delta);
    normalize_delta_cpu(l.x, l.mean, l.variance, l.mean_delta, l.variance_delta, l.batch, l.out_c, l.out_w*l.out_h, l.delta);
    if(l.type == BATCHNORM) copy_cpu(l.outputs*l.batch, l.delta, 1, net.delta, 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x0, 0x5f8(%rsp)
leaq 0x2f8(%rsp), %rax
leaq 0x2f0(%rsp), %rcx
leaq 0x310(%rsp), %rdx
cmovneq %rcx, %rdx
leaq 0x318(%rsp), %rbx
movq (%rdx), %rdx
movq %rdx, 0x20(%rsp)
cmoveq %rbx, %rax
movq (%rax), %r12
movq -0x80(%rbx), %rdi
movq -0x58(%rbx), %r13
movl -0x270(%rbx), %ebp
movl -0x240(%rbx), %r15d
movl -0x238(%rbx), %r14d
imull -0x23c(%rbx), %r15d
movq %r13, %rsi
movl %ebp, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0x11402
movq -0x70(%rbx), %r9
movq 0x10(%rbx), %rdi
movq %r13, %rsi
movl %ebp, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0x3c9be
movq -0x78(%rbx), %rsi
movq %r13, %rdi
movl %ebp, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0x11390
movq -0x18(%rbx), %r9
movq %r9, 0x18(%rsp)
movq %r13, %rdi
movq %r12, 0x8(%rsp)
movq %r12, %rsi
movl %ebp, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0x3ca50
movq -0x10(%rbx), %rax
movq 0x8(%rbx), %rdi
movq %rdi, 0x10(%rsp)
movq %r13, %rsi
movq 0x20(%rsp), %rbx
movq %rbx, %rdx
movq %r12, %rcx
movl %ebp, %r8d
movl %r14d, %r9d
pushq %rax
movq %rax, %r12
pushq %r15
callq 0x3cb7a
addq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %r12, %r8
movl %ebp, %r9d
pushq %r13
pushq %r15
pushq %r14
callq 0x3cca5
addq $0x20, %rsp
leaq 0x318(%rsp), %rax
cmpl $0x13, -0x2b8(%rax)
jne 0x3c9af
leaq 0x500(%rsp), %rax
leaq 0x60(%rsp), %rcx
imull 0x58(%rcx), %ebp
movq 0xe8(%rax), %rcx
movl %ebp, %edi
movq %r13, %rsi
movl $0x1, %edx
movl $0x1, %r8d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x29fe0
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/batchnorm_layer.c
// Function: backward_scale_cpu
void backward_scale_cpu(float *x_norm, float *delta, int batch, int n, int size, float *scale_updates)
{
    int i,b,f;
    for(f = 0; f < n; ++f){
        float sum = 0;
        for(b = 0; b < batch; ++b){
            for(i = 0; i < size; ++i){
                int index = i + size*(f + n*b);
                sum += delta[index] * x_norm[index];
            }
        }
        scale_updates[f] += sum;
    }
}

// Assembly:
testl %ecx, %ecx
jle 0x3ca4f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %eax
movl %r8d, %ecx
movl %edx, %r10d
leaq (,%rcx,4), %r11
movq %rcx, %rbx
imulq %rax, %rbx
shlq $0x2, %rbx
xorl %r14d, %r14d
xorps %xmm0, %xmm0
testl %edx, %edx
jle 0x3ca2b
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
testl %r8d, %r8d
jle 0x3ca1d
xorl %ebp, %ebp
movss (%r15,%rbp,4), %xmm1
mulss (%r12,%rbp,4), %xmm1
addss %xmm1, %xmm0
incq %rbp
cmpq %rbp, %rcx
jne 0x3ca05
incq %r13
addq %rbx, %r12
addq %rbx, %r15
cmpq %r10, %r13
jne 0x3c9fe
addss (%r9,%r14,4), %xmm0
movss %xmm0, (%r9,%r14,4)
incq %r14
addq %r11, %rdi
addq %r11, %rsi
cmpq %rax, %r14
jne 0x3c9ee
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/batchnorm_layer.c
// Function: mean_delta_cpu
void mean_delta_cpu(float *delta, float *variance, int batch, int filters, int spatial, float *mean_delta)
{

    int i,j,k;
    for(i = 0; i < filters; ++i){
        mean_delta[i] = 0;
        for (j = 0; j < batch; ++j) {
            for (k = 0; k < spatial; ++k) {
                int index = j*filters*spatial + i*spatial + k;
                mean_delta[i] += delta[index];
            }
        }
        mean_delta[i] *= (-1./sqrt(variance[i] + .00001f));
    }
}

// Assembly:
testl %ecx, %ecx
jle 0x3cb79
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movl %ecx, %r10d
movl %edx, %r12d
movl %r8d, %r15d
imull %r8d, %r14d
xorl %r11d, %r11d
movss 0x1cff9(%rip), %xmm3    # 0x59a80
xorpd %xmm4, %xmm4
movsd 0x1bbe5(%rip), %xmm5    # 0x58678
xorl %r13d, %r13d
movl %edx, 0x4(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movq %r10, 0x8(%rsp)
movl $0x0, (%rbx,%r13,4)
testl %edx, %edx
jle 0x3caea
xorps %xmm0, %xmm0
movl %r11d, %eax
xorl %ecx, %ecx
testl %ebp, %ebp
jle 0x3cadf
movslq %eax, %r8
leaq (%rdi,%r8,4), %r9
xorl %r8d, %r8d
addss (%r9,%r8,4), %xmm0
movss %xmm0, (%rbx,%r13,4)
incq %r8
cmpq %r8, %r15
jne 0x3cacb
incq %rcx
addl %r14d, %eax
cmpq %r12, %rcx
jne 0x3cabd
movss (%rsi,%r13,4), %xmm0
addss %xmm3, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd %xmm4, %xmm0
jb 0x3cb04
sqrtsd %xmm0, %xmm0
jmp 0x3cb3a
movq %r11, 0x20(%rsp)
callq 0x3460
movsd 0x1bb62(%rip), %xmm5    # 0x58678
xorpd %xmm4, %xmm4
movss 0x1cf5e(%rip), %xmm3    # 0x59a80
movq 0x20(%rsp), %r11
movq 0x8(%rsp), %r10
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x4(%rsp), %edx
movapd %xmm5, %xmm1
xorps %xmm2, %xmm2
cvtss2sd (%rbx,%r13,4), %xmm2
divsd %xmm0, %xmm1
mulsd %xmm1, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, (%rbx,%r13,4)
incq %r13
addl %ebp, %r11d
cmpq %r10, %r13
jne 0x3caa9
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq