LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: show_images
void show_images(image *ims, int n, char *window)
{
    image m = collapse_images_vert(ims, n);
    /*
       int w = 448;
       int h = ((float)m.h/m.w) * 448;
       if(h > 896){
       h = 896;
       w = ((float)m.w/m.h) * 896;
       }
       image sized = resize_image(m, w, h);
     */
    normalize_image(m);
    save_image(m, window);
    show_image(m, window, 1);
    free_image(m);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movl %esi, %edx
movq %rdi, %rsi
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x1ac1a
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0x177d6
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
pushq $0x3
popq %rbp
pushq $0x50
popq %r15
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x17a81
movq 0x65aea(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x511f1(%rip), %rsi     # 0x55709
movq %r14, %rdx
xorl %eax, %eax
callq 0x3280
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x17a81
movq 0x10(%rbx), %rdi
addq $0x38, %rsp
testq %rdi, %rdi
je 0x4557
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3040
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/crop_layer.c
// Function: make_crop_layer
crop_layer make_crop_layer(int batch, int h, int w, int c, int crop_height, int crop_width, int flip, float angle, float saturation, float exposure)
{
    fprintf(stderr, "Crop Layer: %d x %d -> %d x %d x %d image\n", h,w,crop_height,crop_width,c);
    crop_layer l = {0};
    l.type = CROP;
    l.batch = batch;
    l.h = h;
    l.w = w;
    l.c = c;
    l.scale = (float)crop_height / h;
    l.flip = flip;
    l.angle = angle;
    l.saturation = saturation;
    l.exposure = exposure;
    l.out_w = crop_width;
    l.out_h = crop_height;
    l.out_c = c;
    l.inputs = l.w * l.h * l.c;
    l.outputs = l.out_w * l.out_h * l.out_c;
    l.output = calloc(l.outputs*batch, sizeof(float));
    l.forward = forward_crop_layer;
    l.backward = backward_crop_layer;

    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm2, 0x14(%rsp)
movss %xmm1, 0x10(%rsp)
movss %xmm0, 0xc(%rsp)
movl %r9d, %ebp
movl %r8d, %r15d
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %r14d
movq %rdi, %rbx
movl 0x50(%rsp), %r9d
movq 0x65a32(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
movl %r8d, (%rsp)
leaq 0x521e0(%rip), %rsi     # 0x567b4
movl %ebp, %r8d
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0x7, (%rbx)
movl %r14d, 0x48(%rbx)
movl %r13d, 0x6c(%rbx)
movl %r12d, 0x70(%rbx)
movl %r15d, 0x74(%rbx)
cvtsi2ss %ebp, %xmm0
cvtsi2ss %r13d, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x194(%rbx)
movl 0x58(%rsp), %eax
movl %eax, 0xb0(%rbx)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0xd4(%rbx)
movss 0x10(%rsp), %xmm0
movss %xmm0, 0xdc(%rbx)
movss 0x14(%rsp), %xmm0
movss %xmm0, 0xe0(%rbx)
movl 0x50(%rsp), %eax
movl %eax, 0x7c(%rbx)
movl %ebp, 0x78(%rbx)
movl %r15d, 0x80(%rbx)
imull %r13d, %r12d
imull %r15d, %r12d
movl %r12d, 0x54(%rbx)
imull %r15d, %ebp
imull %eax, %ebp
movl %ebp, 0x58(%rbx)
imull %r14d, %ebp
movslq %ebp, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
leaq 0x24721(%rip), %rax     # 0x28db1
movq %rax, 0x10(%rbx)
leaq 0x24714(%rip), %rax     # 0x28daf
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x18, %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/dropout_layer.c
// Function: make_dropout_layer
dropout_layer make_dropout_layer(int batch, int inputs, float probability)
{
    dropout_layer l = {0};
    l.type = DROPOUT;
    l.probability = probability;
    l.inputs = inputs;
    l.outputs = inputs;
    l.batch = batch;
    l.rand = calloc(inputs*batch, sizeof(float));
    l.scale = 1./(1.-probability);
    l.forward = forward_dropout_layer;
    l.backward = backward_dropout_layer;
    fprintf(stderr, "dropout       p = %.2f               %4d  ->  %4d\n", probability, inputs, inputs);
    return l;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0x6, (%rbx)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x190(%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
movl %r14d, 0x48(%rbx)
imull %ebp, %r14d
movslq %r14d, %rdi
pushq $0x4
popq %rsi
callq 0x3260
cvtss2sd 0xc(%rsp), %xmm0
movsd 0x4ea1a(%rip), %xmm1    # 0x53128
movapd %xmm1, %xmm2
subsd %xmm0, %xmm2
divsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movq %rax, 0x1d0(%rbx)
movss %xmm1, 0x194(%rbx)
leaq 0x248a8(%rip), %rax     # 0x28fdc
movq %rax, 0x10(%rbx)
leaq 0x24943(%rip), %rax     # 0x29082
movq %rax, 0x18(%rbx)
movq 0x658ae(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x5208b(%rip), %rsi     # 0x567df
movl %ebp, %edx
movl %ebp, %ecx
movb $0x1, %al
callq 0x3280
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/maxpool_layer.c
// Function: make_maxpool_layer
maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride, int padding)
{
    maxpool_layer l = {0};
    l.type = MAXPOOL;
    l.batch = batch;
    l.h = h;
    l.w = w;
    l.c = c;
    l.pad = padding;
    l.out_w = (w + padding - size)/stride + 1;
    l.out_h = (h + padding - size)/stride + 1;
    l.out_c = c;
    l.outputs = l.out_h * l.out_w * l.out_c;
    l.inputs = h*w*c;
    l.size = size;
    l.stride = stride;
    int output_size = l.out_h * l.out_w * l.out_c * batch;
    l.indexes = calloc(output_size, sizeof(int));
    l.output =  calloc(output_size, sizeof(float));
    l.delta =   calloc(output_size, sizeof(float));
    l.forward = forward_maxpool_layer;
    l.backward = backward_maxpool_layer;
    fprintf(stderr, "max          %d x %d / %d  %4d x%4d x%4d   ->  %4d x%4d x%4d\n", size, size, stride, w, h, c, l.out_w, l.out_h, l.out_c);
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r12d
movl %r8d, %r15d
movl %ecx, %r13d
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0x3, (%rbx)
movl %ebp, 0x48(%rbx)
movl %r14d, 0x6c(%rbx)
movl %r13d, 0x70(%rbx)
movl %r15d, 0x74(%rbx)
movl 0x58(%rsp), %ecx
movl %ecx, 0xa8(%rbx)
movl %r13d, %eax
movl %r13d, %edi
movl %r13d, 0xc(%rsp)
subl %r12d, %eax
addl %ecx, %eax
movl %ecx, %r8d
cltd
movl 0x50(%rsp), %ecx
idivl %ecx
movl %eax, %r13d
incl %r13d
movl %r13d, 0x7c(%rbx)
movl %r14d, %eax
movq %r14, %rsi
movq %r14, 0x10(%rsp)
subl %r12d, %eax
addl %r8d, %eax
cltd
idivl %ecx
movl %ecx, %edx
movl %eax, %r14d
incl %r14d
movl %r14d, 0x78(%rbx)
movl %r15d, 0x80(%rbx)
movl %r13d, %eax
imull %r15d, %eax
imull %r14d, %eax
movl %eax, 0x58(%rbx)
movl %edi, %ecx
imull %esi, %ecx
imull %r15d, %ecx
movl %ecx, 0x54(%rbx)
movl %r12d, 0x90(%rbx)
movl %edx, 0x98(%rbx)
imull %ebp, %eax
movslq %eax, %rbp
pushq $0x4
popq %rsi
movq %rbp, %rdi
callq 0x3260
movq %rax, 0x1a0(%rbx)
movq %rbp, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %rbp, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
leaq 0x248f0(%rip), %rax     # 0x2915a
movq %rax, 0x10(%rbx)
leaq 0x24b88(%rip), %rax     # 0x293fd
movq %rax, 0x18(%rbx)
movq 0x65778(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
subq $0x8, %rsp
leaq 0x51f84(%rip), %rsi     # 0x56812
movl %r12d, %edx
movl %r12d, %ecx
movl 0x58(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r15
pushq %r14
pushq %r13
pushq %r15
pushq 0x38(%rsp)
callq 0x3280
addq $0x30, %rsp
movq %rbx, %rax
addq $0x18, %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/cost_layer.c
// Function: make_cost_layer
cost_layer make_cost_layer(int batch, int inputs, COST_TYPE cost_type, float scale)
{
    fprintf(stderr, "cost                                           %4d\n",  inputs);
    cost_layer l = {0};
    l.type = COST;

    l.scale = scale;
    l.batch = batch;
    l.inputs = inputs;
    l.outputs = inputs;
    l.cost_type = cost_type;
    l.delta = calloc(inputs*batch, sizeof(float));
    l.output = calloc(inputs*batch, sizeof(float));
    l.cost = calloc(1, sizeof(float));

    l.forward = forward_cost_layer;
    l.backward = backward_cost_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movss %xmm0, 0x4(%rsp)
movl %ecx, %r14d
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
movq 0x651e2(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x51ff3(%rip), %rsi     # 0x56e13
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0x9, (%rbx)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x194(%rbx)
movl %r15d, 0x48(%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
movl %r14d, 0x8(%rbx)
imull %r15d, %ebp
movslq %ebp, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x1d8(%rbx)
leaq 0x2cd7e(%rip), %rax     # 0x31c1e
movq %rax, 0x10(%rbx)
leaq 0x2ce75(%rip), %rax     # 0x31d20
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/route_layer.c
// Function: make_route_layer
route_layer make_route_layer(int batch, int n, int *input_layers, int *input_sizes)
{
    fprintf(stderr,"route ");
    route_layer l = {0};
    l.type = ROUTE;
    l.batch = batch;
    l.n = n;
    l.input_layers = input_layers;
    l.input_sizes = input_sizes;
    int i;
    int outputs = 0;
    for(i = 0; i < n; ++i){
        fprintf(stderr," %d", input_layers[i]);
        outputs += input_sizes[i];
    }
    fprintf(stderr, "\n");
    l.outputs = outputs;
    l.inputs = outputs;
    l.delta =  calloc(outputs*batch, sizeof(float));
    l.output = calloc(outputs*batch, sizeof(float));;

    l.forward = forward_route_layer;
    l.backward = backward_route_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %r12d
movl %esi, %ebp
movq %rdi, %rbx
movq 0x63346(%rip), %rax     # 0x69ff8
movq (%rax), %rcx
leaq 0x50bba(%rip), %rdi     # 0x57876
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
callq 0x3450
xorl %r13d, %r13d
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0x8, (%rbx)
movl %ebp, 0x48(%rbx)
movl %r12d, 0x84(%rbx)
movq %r15, 0x1a8(%rbx)
movq %r14, 0x1b0(%rbx)
testl %r12d, %r12d
jle 0x6d41
movq %r14, %rcx
movl %r12d, %eax
movq %rax, (%rsp)
xorl %r14d, %r14d
xorl %r13d, %r13d
movq 0x632e5(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
movl (%r15,%r14,4), %edx
leaq 0x51b55(%rip), %rsi     # 0x58876
xorl %eax, %eax
movq %r15, %r12
movq %rcx, %r15
callq 0x3280
movq %r15, %rcx
movq %r12, %r15
addl (%rcx,%r14,4), %r13d
incq %r14
cmpq %r14, (%rsp)
jne 0x6d0c
movq 0x632b0(%rip), %rax     # 0x69ff8
movq (%rax), %rsi
pushq $0xa
popq %rdi
callq 0x3200
movl %r13d, 0x58(%rbx)
movl %r13d, 0x54(%rbx)
imull %r13d, %ebp
movslq %ebp, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
leaq 0x2f24f(%rip), %rax     # 0x35fe0
movq %rax, 0x10(%rbx)
leaq 0x2f35e(%rip), %rax     # 0x360fa
movq %rax, 0x18(%rbx)
movq %rbx, %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/upsample_layer.c
// Function: make_upsample_layer
layer make_upsample_layer(int batch, int w, int h, int c, int stride)
{
    layer l = {0};
    l.type = UPSAMPLE;
    l.batch = batch;
    l.w = w;
    l.h = h;
    l.c = c;
    l.out_w = w*stride;
    l.out_h = h*stride;
    l.out_c = c;
    if(stride < 0){
        stride = -stride;
        l.reverse=1;
        l.out_w = w/stride;
        l.out_h = h/stride;
    }
    l.stride = stride;
    l.outputs = l.out_w*l.out_h*l.out_c;
    l.inputs = l.w*l.h*l.c;
    l.delta =  calloc(l.outputs*batch, sizeof(float));
    l.output = calloc(l.outputs*batch, sizeof(float));;

    l.forward = forward_upsample_layer;
    l.backward = backward_upsample_layer;
    if(l.reverse) fprintf(stderr, "downsample         %2dx  %4d x%4d x%4d   ->  %4d x%4d x%4d\n", stride, w, h, c, l.out_w, l.out_h, l.out_c);
    else fprintf(stderr, "upsample           %2dx  %4d x%4d x%4d   ->  %4d x%4d x%4d\n", stride, w, h, c, l.out_w, l.out_h, l.out_c);
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r15d
movl %r8d, %r14d
movl %ecx, %ebp
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0x1a, (%rbx)
movl %r13d, 0x48(%rbx)
movl %r12d, 0x70(%rbx)
movl %ebp, 0x6c(%rbx)
movl %r14d, 0x74(%rbx)
movl %r15d, %eax
imull %r12d, %eax
movl %eax, 0x7c(%rbx)
movl %r15d, %eax
imull %ebp, %eax
movl %eax, 0x78(%rbx)
movl %r14d, 0x80(%rbx)
testl %r15d, %r15d
jns 0x6e31
negl %r15d
movl $0x1, 0x9c(%rbx)
movl %r12d, %eax
cltd
idivl %r15d
movl %eax, 0x7c(%rbx)
movl %ebp, %eax
cltd
idivl %r15d
movl %eax, 0x78(%rbx)
movl %r15d, 0x98(%rbx)
movl 0x78(%rbx), %ecx
movq %rcx, 0x8(%rsp)
movl 0x7c(%rbx), %eax
movq %rax, 0x10(%rsp)
imull %r14d, %eax
imull %ecx, %eax
movl %eax, 0x58(%rbx)
movl %ebp, %ecx
imull %r12d, %ecx
imull %r14d, %ecx
movl %ecx, 0x54(%rbx)
imull %r13d, %eax
movslq %eax, %r13
pushq $0x4
popq %rsi
movq %r13, %rdi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r13, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
leaq 0x2f4cb(%rip), %rax     # 0x3635c
movq %rax, 0x10(%rbx)
leaq 0x2f577(%rip), %rax     # 0x36413
movq %rax, 0x18(%rbx)
cmpl $0x0, 0x9c(%rbx)
movq 0x6314a(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x50a0f(%rip), %rax     # 0x578c7
leaq 0x509cc(%rip), %rsi     # 0x5788b
cmoveq %rax, %rsi
subq $0x8, %rsp
movl %r15d, %edx
movl %r12d, %ecx
movl %ebp, %r8d
movl %r14d, %r9d
xorl %eax, %eax
pushq %r14
pushq 0x18(%rsp)
pushq 0x28(%rsp)
callq 0x3280
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %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/normalization_layer.c
// Function: make_normalization_layer
layer make_normalization_layer(int batch, int w, int h, int c, int size, float alpha, float beta, float kappa)
{
    fprintf(stderr, "Local Response Normalization Layer: %d x %d x %d image, %d size\n", w,h,c,size);
    layer layer = {0};
    layer.type = NORMALIZATION;
    layer.batch = batch;
    layer.h = layer.out_h = h;
    layer.w = layer.out_w = w;
    layer.c = layer.out_c = c;
    layer.kappa = kappa;
    layer.size = size;
    layer.alpha = alpha;
    layer.beta = beta;
    layer.output = calloc(h * w * c * batch, sizeof(float));
    layer.delta = calloc(h * w * c * batch, sizeof(float));
    layer.squared = calloc(h * w * c * batch, sizeof(float));
    layer.norms = calloc(h * w * c * batch, sizeof(float));
    layer.inputs = w*h*c;
    layer.outputs = layer.inputs;

    layer.forward = forward_normalization_layer;
    layer.backward = backward_normalization_layer;
    return layer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm2, 0xc(%rsp)
movss %xmm1, 0x14(%rsp)
movss %xmm0, 0x10(%rsp)
movl %r9d, %r13d
movl %r8d, %r14d
movl %ecx, %ebp
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
movq 0x630c6(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x50af4(%rip), %rsi     # 0x57a30
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0xa, (%rbx)
movl %r15d, 0x48(%rbx)
movl %ebp, 0x78(%rbx)
movl %ebp, 0x6c(%rbx)
movl %r12d, 0x7c(%rbx)
movl %r12d, 0x70(%rbx)
movl %r14d, 0x80(%rbx)
movl %r14d, 0x74(%rbx)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x13c(%rbx)
movl %r13d, 0x90(%rbx)
movss 0x10(%rsp), %xmm0
movss %xmm0, 0x134(%rbx)
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x138(%rbx)
imull %r12d, %ebp
imull %r14d, %ebp
imull %ebp, %r15d
movslq %r15d, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x278(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x280(%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
leaq 0x3050e(%rip), %rax     # 0x3751c
movq %rax, 0x10(%rbx)
leaq 0x3087e(%rip), %rax     # 0x37897
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x18, %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/avgpool_layer.c
// Function: make_avgpool_layer
avgpool_layer make_avgpool_layer(int batch, int w, int h, int c)
{
    fprintf(stderr, "avg                     %4d x%4d x%4d   ->  %4d\n",  w, h, c, c);
    avgpool_layer l = {0};
    l.type = AVGPOOL;
    l.batch = batch;
    l.h = h;
    l.w = w;
    l.c = c;
    l.out_w = 1;
    l.out_h = 1;
    l.out_c = c;
    l.outputs = l.out_c;
    l.inputs = h*w*c;
    int output_size = l.outputs * batch;
    l.output =  calloc(output_size, sizeof(float));
    l.delta =   calloc(output_size, sizeof(float));
    l.forward = forward_avgpool_layer;
    l.backward = backward_avgpool_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %r14d
movq %rdi, %rbx
movq 0x62fab(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x50a1a(%rip), %rsi     # 0x57a71
movl %r8d, %r9d
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0xb, (%rbx)
movl %r14d, 0x48(%rbx)
movl %r15d, 0x6c(%rbx)
movl %r12d, 0x70(%rbx)
movl %ebp, 0x74(%rbx)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x78(%rbx)
movl %ebp, 0x80(%rbx)
movl %ebp, 0x58(%rbx)
imull %r12d, %r15d
imull %ebp, %r15d
movl %r15d, 0x54(%rbx)
imull %r14d, %ebp
movslq %ebp, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
leaq 0x308ca(%rip), %rax     # 0x379a8
movq %rax, 0x10(%rbx)
leaq 0x30982(%rip), %rax     # 0x37a6b
movq %rax, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/shortcut_layer.c
// Function: make_shortcut_layer
layer make_shortcut_layer(int batch, int index, int w, int h, int c, int w2, int h2, int c2)
{
    fprintf(stderr, "res  %3d                %4d x%4d x%4d   ->  %4d x%4d x%4d\n",index, w2,h2,c2, w,h,c);
    layer l = {0};
    l.type = SHORTCUT;
    l.batch = batch;
    l.w = w2;
    l.h = h2;
    l.c = c2;
    l.out_w = w;
    l.out_h = h;
    l.out_c = c;
    l.outputs = w*h*c;
    l.inputs = l.outputs;

    l.index = index;

    l.delta =  calloc(l.outputs*batch, sizeof(float));
    l.output = calloc(l.outputs*batch, sizeof(float));;

    l.forward = forward_shortcut_layer;
    l.backward = backward_shortcut_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movl %r8d, %r14d
movl %ecx, %r13d
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %rbx
movl 0x40(%rsp), %ecx
movl 0x48(%rsp), %r8d
movl 0x50(%rsp), %r9d
movq 0x62c56(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
subq $0x8, %rsp
leaq 0x50735(%rip), %rsi     # 0x57ae5
xorl %eax, %eax
pushq %r12
pushq %r14
pushq %r13
callq 0x3280
addq $0x20, %rsp
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0xd, (%rbx)
movl %ebp, 0x48(%rbx)
movl 0x40(%rsp), %eax
movl %eax, 0x70(%rbx)
movl 0x48(%rsp), %eax
movl %eax, 0x6c(%rbx)
movl 0x50(%rsp), %eax
movl %eax, 0x74(%rbx)
movl %r13d, 0x7c(%rbx)
movl %r14d, 0x78(%rbx)
movl %r12d, 0x80(%rbx)
imull %r13d, %r14d
imull %r12d, %r14d
movl %r14d, 0x58(%rbx)
movl %r14d, 0x54(%rbx)
movl %r15d, 0xb4(%rbx)
imull %ebp, %r14d
movslq %r14d, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
leaq 0x3108e(%rip), %rax     # 0x384d8
movq %rax, 0x10(%rbx)
leaq 0x3113a(%rip), %rax     # 0x3858f
movq %rax, 0x18(%rbx)
movq %rbx, %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/logistic_layer.c
// Function: make_logistic_layer
layer make_logistic_layer(int batch, int inputs)
{
    fprintf(stderr, "logistic x entropy                             %4d\n",  inputs);
    layer l = {0};
    l.type = LOGXENT;
    l.batch = batch;
    l.inputs = inputs;
    l.outputs = inputs;
    l.loss = calloc(inputs*batch, sizeof(float));
    l.output = calloc(inputs*batch, sizeof(float));
    l.delta = calloc(inputs*batch, sizeof(float));
    l.cost = calloc(1, sizeof(float));

    l.forward = forward_logistic_layer;
    l.backward = backward_logistic_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x62b77(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x506f6(%rip), %rsi     # 0x57b81
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0x1b, (%rbx)
movl %r14d, 0x48(%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
imull %r14d, %ebp
movslq %ebp, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x270(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x1d8(%rbx)
leaq 0x31215(%rip), %rax     # 0x38720
movq %rax, 0x10(%rbx)
leaq 0x312a5(%rip), %rax     # 0x387bb
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/activation_layer.c
// Function: make_activation_layer
layer make_activation_layer(int batch, int inputs, ACTIVATION activation)
{
    layer l = {0};
    l.type = ACTIVE;

    l.inputs = inputs;
    l.outputs = inputs;
    l.batch=batch;

    l.output = calloc(batch*inputs, sizeof(float*));
    l.delta = calloc(batch*inputs, sizeof(float*));

    l.forward = forward_activation_layer;
    l.backward = backward_activation_layer;
    l.activation = activation;
    fprintf(stderr, "Activation Layer: %d inputs\n", inputs);
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r14d
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0xe, (%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
movl %r15d, 0x48(%rbx)
imull %ebp, %r15d
movslq %r15d, %r15
pushq $0x8
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
leaq 0x3125f(%rip), %rax     # 0x387ec
movq %rax, 0x10(%rbx)
leaq 0x3129b(%rip), %rax     # 0x38833
movq %rax, 0x18(%rbx)
movl %r14d, 0x4(%rbx)
movq 0x62a51(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x50604(%rip), %rsi     # 0x57bb5
movl %ebp, %edx
xorl %eax, %eax
callq 0x3280
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/batchnorm_layer.c
// Function: make_batchnorm_layer
layer make_batchnorm_layer(int batch, int w, int h, int c)
{
    fprintf(stderr, "Batch Normalization Layer: %d x %d x %d image\n", w,h,c);
    layer l = {0};
    l.type = BATCHNORM;
    l.batch = batch;
    l.h = l.out_h = h;
    l.w = l.out_w = w;
    l.c = l.out_c = c;
    l.output = calloc(h * w * c * batch, sizeof(float));
    l.delta  = calloc(h * w * c * batch, sizeof(float));
    l.inputs = w*h*c;
    l.outputs = l.inputs;

    l.scales = calloc(c, sizeof(float));
    l.scale_updates = calloc(c, sizeof(float));
    l.biases = calloc(c, sizeof(float));
    l.bias_updates = calloc(c, sizeof(float));
    int i;
    for(i = 0; i < c; ++i){
        l.scales[i] = 1;
    }

    l.mean = calloc(c, sizeof(float));
    l.variance = calloc(c, sizeof(float));

    l.rolling_mean = calloc(c, sizeof(float));
    l.rolling_variance = calloc(c, sizeof(float));

    l.forward = forward_batchnorm_layer;
    l.backward = backward_batchnorm_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
movq 0x620a2(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x4fd20(%rip), %rsi     # 0x57c80
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0x13, (%rbx)
movl %r15d, 0x48(%rbx)
movl %r14d, 0x78(%rbx)
movl %r14d, 0x6c(%rbx)
movl %r12d, 0x7c(%rbx)
movl %r12d, 0x70(%rbx)
movl %ebp, 0x80(%rbx)
movl %ebp, 0x74(%rbx)
imull %r12d, %r14d
imull %ebp, %r14d
imull %r14d, %r15d
movslq %r15d, %r15
pushq $0x4
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movl %r14d, 0x54(%rbx)
movl %r14d, 0x58(%rbx)
movslq %ebp, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, %r15
movq %rax, 0x240(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x248(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x230(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x238(%rbx)
testl %r14d, %r14d
jle 0x803f
movl %ebp, %eax
xorl %ecx, %ecx
movl $0x3f800000, (%r15,%rcx,4) # imm = 0x3F800000
incq %rcx
cmpq %rcx, %rax
jne 0x802f
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x290(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x298(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x2b0(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x2b8(%rbx)
leaq 0x322ce(%rip), %rax     # 0x3a360
movq %rax, 0x10(%rbx)
leaq 0x324d3(%rip), %rax     # 0x3a570
movq %rax, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/region_layer.c
// Function: make_region_layer
layer make_region_layer(int batch, int w, int h, int n, int classes, int coords)
{
    layer l = {0};
    l.type = REGION;

    l.n = n;
    l.batch = batch;
    l.h = h;
    l.w = w;
    l.c = n*(classes + coords + 1);
    l.out_w = l.w;
    l.out_h = l.h;
    l.out_c = l.c;
    l.classes = classes;
    l.coords = coords;
    l.cost = calloc(1, sizeof(float));
    l.biases = calloc(n*2, sizeof(float));
    l.bias_updates = calloc(n*2, sizeof(float));
    l.outputs = h*w*n*(classes + coords + 1);
    l.inputs = l.outputs;
    l.truths = 30*(l.coords + 1);
    l.delta = calloc(batch*l.outputs, sizeof(float));
    l.output = calloc(batch*l.outputs, sizeof(float));
    int i;
    for(i = 0; i < n*2; ++i){
        l.biases[i] = .5;
    }

    l.forward = forward_region_layer;
    l.backward = backward_region_layer;

    fprintf(stderr, "detection\n");
    srand(0);

    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r15d
movl %r8d, %r14d
movl %ecx, %r13d
movl %edx, %ebp
movl %esi, %r12d
movl %esi, 0xc(%rsp)
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0x16, (%rbx)
movq %r14, %rax
movl %eax, 0x84(%rbx)
movl %r12d, 0x48(%rbx)
movl %r13d, 0x6c(%rbx)
movl %ebp, 0x70(%rbx)
movl 0x50(%rsp), %ecx
leal (%r15,%rcx), %r14d
incl %r14d
imull %eax, %r14d
movq %rax, %r12
movq %rax, 0x10(%rsp)
movl %r14d, 0x74(%rbx)
movl %ebp, 0x7c(%rbx)
movl %r13d, 0x78(%rbx)
movl %r14d, 0x80(%rbx)
movl %r15d, 0xfc(%rbx)
movl %ecx, 0x100(%rbx)
pushq $0x1
popq %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x1d8(%rbx)
leal (%r12,%r12), %eax
movl %eax, 0x8(%rsp)
movslq %eax, %r15
movq %r15, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, %r12
movq %rax, 0x230(%rbx)
movq %r15, %rdi
pushq $0x4
popq %rsi
callq 0x3260
movq %rax, 0x238(%rbx)
imull %r13d, %ebp
imull %r14d, %ebp
movl %ebp, 0x58(%rbx)
movl %ebp, 0x54(%rbx)
movl 0x50(%rsp), %eax
imull $0x1e, %eax, %eax
addl $0x1e, %eax
movl %eax, 0x68(%rbx)
imull 0xc(%rsp), %ebp
movslq %ebp, %r15
movq %r15, %rdi
pushq $0x4
popq %r14
movq %r14, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
cmpl $0x0, 0x10(%rsp)
jle 0x81fd
movl 0x8(%rsp), %ecx
cmpl $0x2, %ecx
pushq $0x1
popq %rax
cmovgel %ecx, %eax
xorl %ecx, %ecx
movl $0x3f000000, (%r12,%rcx,4) # imm = 0x3F000000
incq %rcx
cmpq %rcx, %rax
jne 0x81ed
leaq 0x32990(%rip), %rax     # 0x3ab94
movq %rax, 0x10(%rbx)
leaq 0x3389c(%rip), %rax     # 0x3baab
movq %rax, 0x18(%rbx)
movq 0x61dde(%rip), %rax     # 0x69ff8
movq (%rax), %rcx
leaq 0x4faa0(%rip), %rdi     # 0x57cc4
pushq $0xa
popq %rsi
pushq $0x1
popq %rdx
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
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/tree.c
// Function: change_leaves
void change_leaves(tree *t, char *leaf_list)
{
    list *llist = get_paths(leaf_list);
    char **leaves = (char **)list_to_array(llist);
    int n = llist->size;
    int i,j;
    int found = 0;
    for(i = 0; i < t->n; ++i){
        t->leaf[i] = 0;
        for(j = 0; j < n; ++j){
            if (0==strcmp(t->name[i], leaves[j])){
                t->leaf[i] = 1;
                ++found;
                break;
            }
        }
    }
    fprintf(stderr, "Found %d leaves.\n", found);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
movq %rsi, %rdi
callq 0x296f8
movq %rax, %r15
movq %rax, %rdi
callq 0x10fa0
movl $0x0, 0xc(%rsp)
cmpl $0x0, 0x8(%r13)
jle 0x82de
movq %rax, %r14
movl (%r15), %r12d
movq (%r13), %rbx
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movq %r13, 0x10(%rsp)
andl $0x0, (%rbx,%rbp,4)
testl %r12d, %r12d
jle 0x82d2
movq 0x28(%r13), %rax
movq (%rax,%rbp,8), %r15
xorl %r13d, %r13d
movq (%r14,%r13,8), %rsi
movq %r15, %rdi
callq 0x3270
testl %eax, %eax
je 0x82c2
incq %r13
cmpq %r13, %r12
jne 0x82a8
jmp 0x82cd
movl $0x1, (%rbx,%rbp,4)
incl 0xc(%rsp)
movq 0x10(%rsp), %r13
incq %rbp
movslq 0x8(%r13), %rax
cmpq %rax, %rbp
jl 0x8294
movq 0x61d13(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x4fa8e(%rip), %rsi     # 0x57d7d
movl 0xc(%rsp), %edx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3280
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/l2norm_layer.c
// Function: make_l2norm_layer
layer make_l2norm_layer(int batch, int inputs)
{
    fprintf(stderr, "l2norm                                         %4d\n",  inputs);
    layer l = {0};
    l.type = L2NORM;
    l.batch = batch;
    l.inputs = inputs;
    l.outputs = inputs;
    l.output = calloc(inputs*batch, sizeof(float));
    l.scales = calloc(inputs*batch, sizeof(float));
    l.delta = calloc(inputs*batch, sizeof(float));

    l.forward = forward_l2norm_layer;
    l.backward = backward_l2norm_layer;
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x61777(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
leaq 0x4f52d(%rip), %rsi     # 0x57db8
xorl %eax, %eax
callq 0x3280
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31d0
movl $0x1c, (%rbx)
movl %r14d, 0x48(%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
imull %r14d, %ebp
movslq %ebp, %r14
pushq $0x4
popq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x240(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
leaq 0x362ab(%rip), %rax     # 0x3eba4
movq %rax, 0x10(%rbx)
leaq 0x36303(%rip), %rax     # 0x3ec07
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/iseg_layer.c
// Function: make_iseg_layer
layer make_iseg_layer(int batch, int w, int h, int classes, int ids)
{
    layer l = {0};
    l.type = ISEG;

    l.h = h;
    l.w = w;
    l.c = classes + ids;
    l.out_w = l.w;
    l.out_h = l.h;
    l.out_c = l.c;
    l.classes = classes;
    l.batch = batch;
    l.extra = ids;
    l.cost = calloc(1, sizeof(float));
    l.outputs = h*w*l.c;
    l.inputs = l.outputs;
    l.truths = 90*(l.w*l.h+1);
    l.delta = calloc(batch*l.outputs, sizeof(float));
    l.output = calloc(batch*l.outputs, sizeof(float));

    l.counts = calloc(90, sizeof(int));
    l.sums = calloc(90, sizeof(float*));
    if(ids){
        int i;
        for(i = 0; i < 90; ++i){
            l.sums[i] = calloc(ids, sizeof(float));
        }
    }

    l.forward = forward_iseg_layer;
    l.backward = backward_iseg_layer;

    fprintf(stderr, "iseg\n");
    srand(0);

    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r14d
movl %r8d, %r12d
movl %ecx, %r15d
movl %edx, %r13d
movl %esi, %ebp
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31d0
movl $0x18, (%rbx)
movl %r15d, 0x6c(%rbx)
movl %r13d, 0x70(%rbx)
movq %r14, %rax
movq %r14, (%rsp)
addl %r12d, %r14d
movl %r14d, 0x74(%rbx)
movl %r13d, 0x7c(%rbx)
movl %r15d, 0x78(%rbx)
movl %r14d, 0x80(%rbx)
movl %r12d, 0xfc(%rbx)
movl %ebp, 0x48(%rbx)
movl %eax, 0x64(%rbx)
pushq $0x1
popq %rdi
pushq $0x4
popq %r12
movq %r12, %rsi
callq 0x3260
movq %rax, 0x1d8(%rbx)
imull %r13d, %r15d
imull %r15d, %r14d
movl %r14d, 0x58(%rbx)
movl %r14d, 0x54(%rbx)
imull $0x5a, %r15d, %eax
addl $0x5a, %eax
movl %eax, 0x68(%rbx)
imull %ebp, %r14d
movslq %r14d, %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x260(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x268(%rbx)
pushq $0x5a
popq %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, 0x1c0(%rbx)
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x3260
movq (%rsp), %rcx
movq %rax, 0x1c8(%rbx)
testl %ecx, %ecx
je 0x8bd8
movq %rax, %r15
movslq %ecx, %r14
xorl %r13d, %r13d
pushq $0x4
popq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x3260
movq %rax, (%r15,%r13,8)
incq %r13
cmpq $0x5a, %r13
jne 0x8bc0
leaq 0x37405(%rip), %rax     # 0x3ffe4
movq %rax, 0x10(%rbx)
leaq 0x37c43(%rip), %rax     # 0x4082d
movq %rax, 0x18(%rbx)
movq 0x61403(%rip), %rax     # 0x69ff8
movq (%rax), %rcx
leaq 0x4f269(%rip), %rdi     # 0x57e68
pushq $0x5
popq %rsi
pushq $0x1
popq %rdx
callq 0x3450
xorl %edi, %edi
callq 0x3230
movq %rbx, %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/cifar.c
// Function: test_cifar_csv
void test_cifar_csv(char *filename, char *weightfile)
{
    network *net = load_network(filename, weightfile, 0);
    srand(time(0));

    data test = load_cifar10_data("data/cifar/cifar-10-batches-bin/test_batch.bin");

    matrix pred = network_predict_data(net, test);

    int i;
    for(i = 0; i < test.X.rows; ++i){
        image im = float_to_image(32, 32, 3, test.X.vals[i]);
        flip_image(im);
    }
    matrix pred2 = network_predict_data(net, test);
    scale_matrix(pred, .5);
    scale_matrix(pred2, .5);
    matrix_add_matrix(pred2, pred);

    matrix_to_csv(pred);
    fprintf(stderr, "Accuracy: %f\n", matrix_topk_accuracy(test.y, pred, 1));
    free_data(test);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
xorl %edx, %edx
callq 0x2f9e4
movq %rax, %rbx
xorl %edi, %edi
callq 0x32d0
movl %eax, %edi
callq 0x3230
leaq 0x4ef95(%rip), %rsi     # 0x581e3
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x2e687
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, 0x48(%rsp)
movq %rbx, %rdi
callq 0x30f61
movq %rax, %rbx
movq %rdx, %r14
cmpl $0x0, 0x8(%r12)
jle 0x92f5
xorl %r15d, %r15d
leaq 0x90(%rsp), %r12
pushq $0x20
popq %rbp
pushq $0x3
popq %r13
movq 0x60(%rsp), %rax
movq (%rax,%r15,8), %r8
movq %r12, %rdi
movl %ebp, %esi
movl %ebp, %edx
movl %r13d, %ecx
callq 0x1675b
movq 0xa0(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x90(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x16f91
incq %r15
movslq 0x58(%rsp), %rax
cmpq %rax, %r15
jl 0x92b2
movups 0x50(%rsp), %xmm0
movups 0x60(%rsp), %xmm1
movups 0x70(%rsp), %xmm2
movups 0x80(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x48(%rsp), %rdi
callq 0x30f61
movq %rax, %r15
movq %rdx, %r12
movss 0x49efd(%rip), %xmm0    # 0x53234
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f34a
movq %r15, %rdi
movq %r12, %rsi
movss 0x49ee4(%rip), %xmm0    # 0x53234
callq 0x2f34a
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x2f42f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f75d
movq 0x60c80(%rip), %rax     # 0x69ff8
movq (%rax), %r15
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
pushq $0x1
popq %r8
movq %rbx, %rdx
movq %r14, %rcx
callq 0x2f24c
cvtss2sd %xmm0, %xmm0
leaq 0x4ef07(%rip), %rsi     # 0x582a6
movq %r15, %rdi
movb $0x1, %al
callq 0x3280
movups 0x50(%rsp), %xmm0
movups 0x60(%rsp), %xmm1
movups 0x70(%rsp), %xmm2
movups 0x80(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x2b6fd
addq $0xa8, %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/cifar.c
// Function: test_cifar_csvtrain
void test_cifar_csvtrain(char *cfg, char *weights)
{
    network *net = load_network(cfg, weights, 0);
    srand(time(0));

    data test = load_all_cifar10();

    matrix pred = network_predict_data(net, test);

    int i;
    for(i = 0; i < test.X.rows; ++i){
        image im = float_to_image(32, 32, 3, test.X.vals[i]);
        flip_image(im);
    }
    matrix pred2 = network_predict_data(net, test);
    scale_matrix(pred, .5);
    scale_matrix(pred2, .5);
    matrix_add_matrix(pred2, pred);

    matrix_to_csv(pred);
    fprintf(stderr, "Accuracy: %f\n", matrix_topk_accuracy(test.y, pred, 1));
    free_data(test);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
xorl %edx, %edx
callq 0x2f9e4
movq %rax, %rbx
xorl %edi, %edi
callq 0x32d0
movl %eax, %edi
callq 0x3230
leaq 0x50(%rsp), %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x2e9af
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, 0x48(%rsp)
movq %rbx, %rdi
callq 0x30f61
movq %rax, %rbx
movq %rdx, %r14
cmpl $0x0, 0x8(%r12)
jle 0x94bc
xorl %r15d, %r15d
leaq 0x90(%rsp), %r12
pushq $0x20
popq %rbp
pushq $0x3
popq %r13
movq 0x60(%rsp), %rax
movq (%rax,%r15,8), %r8
movq %r12, %rdi
movl %ebp, %esi
movl %ebp, %edx
movl %r13d, %ecx
callq 0x1675b
movq 0xa0(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x90(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x16f91
incq %r15
movslq 0x58(%rsp), %rax
cmpq %rax, %r15
jl 0x9479
movups 0x50(%rsp), %xmm0
movups 0x60(%rsp), %xmm1
movups 0x70(%rsp), %xmm2
movups 0x80(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x48(%rsp), %rdi
callq 0x30f61
movq %rax, %r15
movq %rdx, %r12
movss 0x49d36(%rip), %xmm0    # 0x53234
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f34a
movq %r15, %rdi
movq %r12, %rsi
movss 0x49d1d(%rip), %xmm0    # 0x53234
callq 0x2f34a
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x2f42f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f75d
movq 0x60ab9(%rip), %rax     # 0x69ff8
movq (%rax), %r15
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
pushq $0x1
popq %r8
movq %rbx, %rdx
movq %r14, %rcx
callq 0x2f24c
cvtss2sd %xmm0, %xmm0
leaq 0x4ed40(%rip), %rsi     # 0x582a6
movq %r15, %rdi
movb $0x1, %al
callq 0x3280
movups 0x50(%rsp), %xmm0
movups 0x60(%rsp), %xmm1
movups 0x70(%rsp), %xmm2
movups 0x80(%rsp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x2b6fd
addq $0xa8, %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/cifar.c
// Function: eval_cifar_csv
void eval_cifar_csv()
{
    data test = load_cifar10_data("data/cifar/cifar-10-batches-bin/test_batch.bin");

    matrix pred = csv_to_matrix("results/combined.csv");
    fprintf(stderr, "%d %d\n", pred.rows, pred.cols);

    fprintf(stderr, "Accuracy: %f\n", matrix_topk_accuracy(test.y, pred, 1));
    free_data(test);
    free_matrix(pred);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
leaq 0x4ec1d(%rip), %rsi     # 0x581e3
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x2e687
leaq 0x4ecda(%rip), %rdi     # 0x582b4
callq 0x2f66f
movq %rax, %r14
movq %rdx, %r15
movq 0x60a0c(%rip), %r12     # 0x69ff8
movq (%r12), %rdi
movq %rax, %rcx
shrq $0x20, %rcx
leaq 0x4e286(%rip), %rsi     # 0x57884
movl %r14d, %edx
xorl %eax, %eax
callq 0x3280
movq (%r12), %r12
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rsi
pushq $0x1
popq %r8
movq %r14, %rdx
movq %r15, %rcx
callq 0x2f24c
cvtss2sd %xmm0, %xmm0
leaq 0x4ec78(%rip), %rsi     # 0x582a6
movq %r12, %rdi
movb $0x1, %al
callq 0x3280
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups 0x30(%rbx), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x2b6fd
movq %r14, %rdi
movq %r15, %rsi
callq 0x2f214
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/go.c
// Function: ponder
mcts_tree *ponder(mcts_tree *tree, network *net, float *b, float *ko, int player, float cpuct)
{
    double t = what_time_is_it_now();
    int count = 0;
    if (tree) count = tree->total_count;
    while(!stdin_ready()){
        if (what_time_is_it_now() - t > 120) break;
        tree = run_mcts(tree, net, b, ko, player, 100000, cpuct, .1);
    }
    fprintf(stderr, "Pondered %d moves...\n", tree->total_count - count);
    return tree;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movss %xmm0, 0x4(%rsp)
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
xorl %r13d, %r13d
xorl %eax, %eax
callq 0xdfdc
movsd %xmm0, 0x8(%rsp)
testq %rbx, %rbx
je 0x99bb
movl 0x38(%rbx), %r13d
movl %r13d, (%rsp)
xorpd %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movapd %xmm0, 0x70(%rsi)
movapd %xmm0, 0x60(%rsi)
movapd %xmm0, 0x50(%rsi)
movapd %xmm0, 0x40(%rsi)
movapd %xmm0, 0x30(%rsi)
movapd %xmm0, 0x20(%rsi)
movapd %xmm0, 0x10(%rsi)
movapd %xmm0, (%rsi)
leaq 0x10(%rsp), %r8
movapd %xmm0, (%r8)
movq $0x1, (%rsi)
pushq $0x1
popq %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x32e0
testl %eax, %eax
jne 0x9ac4
leaq 0x10(%rsp), %r13
xorl %eax, %eax
callq 0xdfdc
subsd 0x8(%rsp), %xmm0
ucomisd 0x4e8ca(%rip), %xmm0    # 0x582f8
ja 0x9ac4
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebp, %r8d
movl $0x186a0, %r9d          # imm = 0x186A0
movss 0x4(%rsp), %xmm0
movss 0x49815(%rip), %xmm1    # 0x5326c
callq 0x44a53
movq %rax, %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x40(%rsp)
movapd %xmm0, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
movapd %xmm0, 0x10(%rsp)
movq $0x1, 0x20(%rsp)
pushq $0x1
popq %rdi
leaq 0x20(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x32e0
testl %eax, %eax
je 0x9a19
movq 0x6052d(%rip), %rax     # 0x69ff8
movq (%rax), %rdi
movl 0x38(%rbx), %edx
subl (%rsp), %edx
leaq 0x4e9c1(%rip), %rsi     # 0x5849c
xorl %eax, %eax
callq 0x3280
movq %rbx, %rax
addq $0xa8, %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/gemm.c
// Function: gemm_bin
void gemm_bin(int M, int N, int K, float ALPHA, 
        char  *A, int lda, 
        float *B, int ldb,
        float *C, int ldc)
{
    int i,j,k;
    for(i = 0; i < M; ++i){
        for(k = 0; k < K; ++k){
            char A_PART = A[i*lda+k];
            if(A_PART){
                for(j = 0; j < N; ++j){
                    C[i*ldc+j] += B[k*ldb+j];
                }
            } else {
                for(j = 0; j < N; ++j){
                    C[i*ldc+j] -= B[k*ldb+j];
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, -0x8(%rsp)
testl %edi, %edi
jle 0xda8f
movq 0x40(%rsp), %rax
movslq 0x38(%rsp), %r10
movslq %r8d, %r9
movslq 0x48(%rsp), %r11
movl %edi, %edi
movl %edx, %ebx
movl %esi, %r14d
shlq $0x2, %r11
shlq $0x2, %r10
xorl %r15d, %r15d
testl %edx, %edx
jle 0xda84
movq %r15, %r12
imulq %r9, %r12
addq %rcx, %r12
movq -0x8(%rsp), %r13
xorl %ebp, %ebp
cmpb $0x0, (%r12,%rbp)
je 0xda57
testl %esi, %esi
jle 0xda79
xorl %r8d, %r8d
movss (%r13,%r8,4), %xmm0
addss (%rax,%r8,4), %xmm0
movss %xmm0, (%rax,%r8,4)
incq %r8
cmpq %r8, %r14
jne 0xda3a
jmp 0xda79
testl %esi, %esi
jle 0xda79
xorl %r8d, %r8d
movss (%rax,%r8,4), %xmm0
subss (%r13,%r8,4), %xmm0
movss %xmm0, (%rax,%r8,4)
incq %r8
cmpq %r8, %r14
jne 0xda5e
incq %rbp
addq %r10, %r13
cmpq %rbx, %rbp
jne 0xda2c
incq %r15
addq %r11, %rax
cmpq %rdi, %r15
jne 0xda17
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/gemm.c
// Function: random_matrix
float *random_matrix(int rows, int cols)
{
    int i;
    float *m = calloc(rows*cols, sizeof(float));
    for(i = 0; i < rows*cols; ++i){
        m[i] = (float)rand()/RAND_MAX;
    }
    return m;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
imull %esi, %ebp
movslq %ebp, %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x3260
movq %rax, %rbx
testl %r14d, %r14d
jle 0xdae6
movl %ebp, %r14d
xorl %r15d, %r15d
callq 0x34f0
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0x4552c(%rip), %xmm0    # 0x53004
movss %xmm0, (%rbx,%r15,4)
incq %r15
cmpq %r15, %r14
jne 0xdac4
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq