LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/hansvanstaveren[P]BigDeal/output.c
// Function: print_avg
static void
print_avg(FILE *out, int sum, int divisor, int decimals, char *termstr)
/*
 * Prevent use of floating point
 */
{
	int power_of_ten;
	int i;
	int result;

	power_of_ten = 1;
	for (i=0; i<decimals; i++)
		power_of_ten *= 10;

	sum *= power_of_ten;
	/*
	 * Make sure of proper rounding
	 */
	sum += divisor/2;
	result = sum/divisor;

	fprintf(out, "%d", result/power_of_ten);
	if (decimals) {
		fprintf(out, ".");
		for (i=0; i<decimals; i++) {
			result -= result/power_of_ten*power_of_ten;
			power_of_ten /= 10;
			fprintf(out, "%d", result/power_of_ten);
		}
	}
	fprintf(out, "%s", termstr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %r14d
movl %edx, %ecx
movq %rdi, %r15
testl %r14d, %r14d
jle 0x6256
leal 0x3(%r14), %eax
andl $-0x4, %eax
leal -0x1(%r14), %edx
movd %edx, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqa 0x159a(%rip), %xmm1     # 0x7760
movl $0x4, %edx
movdqa 0x159d(%rip), %xmm3     # 0x7770
movdqa %xmm1, %xmm2
pmuludq %xmm3, %xmm1
pshufd $0xe8, %xmm1, %xmm1     # xmm1 = xmm1[0,2,2,3]
pshufd $0xf5, %xmm2, %xmm4     # xmm4 = xmm2[1,1,3,3]
pmuludq %xmm3, %xmm4
pshufd $0xe8, %xmm4, %xmm4     # xmm4 = xmm4[0,2,2,3]
punpckldq %xmm4, %xmm1    # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
movl %edx, %edi
addl $-0x4, %edx
addl %eax, %edi
addl $-0x4, %edi
cmpl $0x4, %edi
jne 0x61d3
negl %edx
movd %edx, %xmm3
pshufd $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
por 0x156c(%rip), %xmm3     # 0x7780
movdqa 0x1574(%rip), %xmm4     # 0x7790
pxor %xmm4, %xmm0
pxor %xmm4, %xmm3
pcmpgtd %xmm0, %xmm3
pand %xmm3, %xmm2
pandn %xmm1, %xmm3
por %xmm2, %xmm3
pshufd $0xee, %xmm3, %xmm0     # xmm0 = xmm3[2,3,2,3]
pshufd $0xff, %xmm3, %xmm1     # xmm1 = xmm3[3,3,3,3]
pshufd $0xf5, %xmm3, %xmm2     # xmm2 = xmm3[1,1,3,3]
pmuludq %xmm1, %xmm2
pmuludq %xmm3, %xmm0
pmuludq %xmm2, %xmm0
movd %xmm0, %r13d
jmp 0x625c
movl $0x1, %r13d
imull %r13d, %esi
movl %ecx, %eax
shrl $0x1f, %eax
addl %ecx, %eax
sarl %eax
addl %esi, %eax
cltd
idivl %ecx
movl %eax, %ebp
cltd
idivl %r13d
leaq 0x1b24(%rip), %rsi      # 0x7d9f
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0x2180
testl %r14d, %r14d
je 0x62df
movl $0x2e, %edi
movq %r15, %rsi
callq 0x2120
testl %r14d, %r14d
jle 0x62df
leaq 0x1afa(%rip), %r12      # 0x7d9f
movl %ebp, %eax
cltd
idivl %r13d
movslq %r13d, %rax
imulq $0x66666667, %rax, %r13 # imm = 0x66666667
movq %r13, %rax
shrq $0x3f, %rax
sarq $0x22, %r13
addl %eax, %r13d
movl %edx, %ebp
movl %edx, %eax
cltd
idivl %r13d
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
xorl %eax, %eax
callq 0x2180
decl %r14d
jne 0x62a5
movq %rbx, %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20e0
// File: /workspace/github_c_makefile_star2_O3/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_5/exercise_5_16/sort.c
// Function: estrcmp
int estrcmp(const char *s1, const char *s2)
{
  while (*s1 != '\0' && *s2 != '\0')
  {
    if (directory)
    {
      while (*s1 != '\0' && !isalnum(*s1) && !isspace(*s1))
      {
        ++s1;
      }
      while (*s2 != '\0' && !isalnum(*s2) && !isspace(*s2))
      {
        ++s2;
      }
    }

    int result = fold ? tolower(*s1) - tolower(*s2) : *s1 - *s2;
    if (result == 0)
    {
      ++s1;
      ++s2;
    }
    else
    {
      return order * result;
    }
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x2ee1(%rip), %ebp      # 0x4094
movl 0x2ed6(%rip), %r15d     # 0x4090
movb (%r14), %r13b
xorl %eax, %eax
testb %r13b, %r13b
je 0x125b
movb (%rbx), %r12b
testb %r12b, %r12b
je 0x125b
testl %ebp, %ebp
je 0x1220
callq 0x1090
movq (%rax), %rax
movsbq %r13b, %rcx
movzwl (%rax,%rcx,2), %ecx
testl $0x2008, %ecx           # imm = 0x2008
jne 0x11fc
movb 0x1(%r14), %r13b
incq %r14
testb %r13b, %r13b
jne 0x11e0
callq 0x1090
movq (%rax), %rax
movsbq %r12b, %rcx
movzwl (%rax,%rcx,2), %ecx
testl $0x2008, %ecx           # imm = 0x2008
jne 0x1220
movb 0x1(%rbx), %r12b
incq %rbx
testb %r12b, %r12b
jne 0x1204
testl %r15d, %r15d
je 0x123d
callq 0x1080
movq (%rax), %rcx
movsbq (%r14), %rax
movl (%rcx,%rax,4), %eax
movsbq (%rbx), %rdx
subl (%rcx,%rdx,4), %eax
jmp 0x1246
movsbl (%r14), %eax
movsbl (%rbx), %ecx
subl %ecx, %eax
incq %r14
incq %rbx
testl %eax, %eax
je 0x11ba
imull 0x2e05(%rip), %eax      # 0x4060
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/soso7885[P]OPCUA_example/demo_src/server_method.c
// Function: helloWorldMethod
static UA_StatusCode
helloWorldMethod(void *handle, const UA_NodeId objectId, size_t inputSize, const UA_Variant *input,
                 size_t outputSize, UA_Variant *output) {
        UA_String *inputStr = (UA_String*)input->data;
        UA_String tmp = UA_STRING_ALLOC("Hello ");
        if(inputStr->length > 0) {
            tmp.data = realloc(tmp.data, tmp.length + inputStr->length);
            memcpy(&tmp.data[tmp.length], inputStr->data, inputStr->length);
            tmp.length += inputStr->length;
        }
        UA_Variant_setScalarCopy(output, &tmp, &UA_TYPES[UA_TYPES_STRING]);
        UA_String_deleteMembers(&tmp);
        UA_LOG_INFO(logger, UA_LOGCATEGORY_SERVER, "Hello World was called");
        return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movq 0x18(%rdx), %r12
leaq 0x8c6(%rip), %rdi       # 0x2109
callq 0x10d0
movq %rax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq (%r12), %rsi
testq %rsi, %rsi
je 0x1887
movq %rax, %r14
addq %rax, %rsi
movq %rdx, %rdi
callq 0x10e0
movq %rax, -0x28(%rbp)
leaq (%rax,%r14), %rdi
movq (%r12), %r15
movq 0x8(%r12), %rsi
movq %r15, %rdx
callq 0x10a0
addq %r14, %r15
movq %r15, -0x30(%rbp)
movl $0x1b8, %r14d           # imm = 0x1B8
addq 0x2744(%rip), %r14      # 0x3fd8
leaq -0x30(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1090
movq %r15, %rdi
movq %r14, %rsi
callq 0x1070
movq 0x27f0(%rip), %rcx      # 0x40a8
testq %rcx, %rcx
je 0x18d2
leaq 0x84c(%rip), %rdx       # 0x2110
movl $0x2, %edi
movl $0x3, %esi
xorl %eax, %eax
callq *%rcx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/soso7885[P]OPCUA_example/demo_src/server_method.c
// Function: IncInt32ArrayValuesMethod
static UA_StatusCode
IncInt32ArrayValuesMethod(void *handle, const UA_NodeId objectId, size_t inputSize,
                          const UA_Variant *input, size_t outputSize, UA_Variant *output) {
	UA_Variant_setArrayCopy(output, input->data, 5, &UA_TYPES[UA_TYPES_INT32]);
	for(size_t i = 0; i< input->arrayLength; i++)
		((UA_Int32*)output->data)[i] = ((UA_Int32*)input->data)[i] + 1;
	return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %r8, %rbx
movq %rdx, %r14
movq 0x18(%rdx), %rsi
movl $0xc8, %ecx
addq 0x26da(%rip), %rcx      # 0x3fd8
movl $0x5, %edx
movq %r8, %rdi
callq 0x1050
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x192e
movq 0x18(%r14), %rcx
movq 0x18(%rbx), %rdx
xorl %esi, %esi
movl (%rcx,%rsi,4), %edi
incl %edi
movl %edi, (%rdx,%rsi,4)
incq %rsi
cmpq %rsi, %rax
jne 0x191e
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/soso7885[P]OPCUA_example/demo_src/server_method.c
// Function: fooBarMethod
static UA_StatusCode
fooBarMethod(void *handle, const UA_NodeId objectId, size_t inputSize, const UA_Variant *input,
                 size_t outputSize, UA_Variant *output) {
	// Exactly the same as helloWorld, but returns foobar
        UA_String *inputStr = (UA_String*)input->data;
        UA_String tmp = UA_STRING_ALLOC("FooBar! ");
        if(inputStr->length > 0) {
            tmp.data = realloc(tmp.data, tmp.length + inputStr->length);
            memcpy(&tmp.data[tmp.length], inputStr->data, inputStr->length);
            tmp.length += inputStr->length;
        }
        UA_Variant_setScalarCopy(output, &tmp, &UA_TYPES[UA_TYPES_STRING]);
        UA_String_deleteMembers(&tmp);
        UA_LOG_INFO(logger, UA_LOGCATEGORY_SERVER, "Hello World was called");
        return UA_STATUSCODE_GOOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movq 0x18(%rdx), %r12
leaq 0x7d5(%rip), %rdi       # 0x2127
callq 0x10d0
movq %rax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq (%r12), %rsi
testq %rsi, %rsi
je 0x1996
movq %rax, %r14
addq %rax, %rsi
movq %rdx, %rdi
callq 0x10e0
movq %rax, -0x28(%rbp)
leaq (%rax,%r14), %rdi
movq (%r12), %r15
movq 0x8(%r12), %rsi
movq %r15, %rdx
callq 0x10a0
addq %r14, %r15
movq %r15, -0x30(%rbp)
movl $0x1b8, %r14d           # imm = 0x1B8
addq 0x2635(%rip), %r14      # 0x3fd8
leaq -0x30(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1090
movq %r15, %rdi
movq %r14, %rsi
callq 0x1070
movq 0x26e1(%rip), %rcx      # 0x40a8
testq %rcx, %rcx
je 0x19e1
leaq 0x73d(%rip), %rdx       # 0x2110
movl $0x2, %edi
movl $0x3, %esi
xorl %eax, %eax
callq *%rcx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/codeniko[P]CS214-Malloc-Free/Test7.c
// Function: main
void main()
{
    void* p = malloc(1);
    free(p);
    printf("p has been freed\n");
    free(p + 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0xeaa(%rip), %rbx       # 0x2004
movl $0x1, %edi
movq %rbx, %rsi
movl $0x6, %edx
callq 0x11a4
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
movl $0x7, %edx
callq 0x12fd
leaq 0xe86(%rip), %rdi       # 0x200c
callq 0x1030
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x9, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x12fd
nop
// File: /workspace/github_c_makefile_star2_O3/janmojzis[P]mcencrypt/mckeypair.c
// Function: main
int main(int argc, char **argv) {

    if (!checkfd(5, POLLOUT)) die_usage(NAME, "write publickey failed", "5>publickey 9>secretkey");
    if (!checkfd(9, POLLOUT)) die_usage(NAME, "write secretkey failed", "5>publickey 9>secretkey");
    limits();
    if (crypto_kem_mceliece8192128sha512_keypair(pk, sk)) die_temp(NAME, "keypair failed");
    if (writeall(5, pk, sizeof pk) == -1) die_temp(NAME, "write publickey failed");
    if (fsyncfd(5) == -1) die_temp(NAME, "write publickey failed");
    if (writeall(9, sk, sizeof sk) == -1) die_temp(NAME, "write secretkey failed");
    if (fsyncfd(9) == -1) die_temp(NAME, "write secretkey failed");
    die(0);
}

// Assembly:
pushq %rax
movl $0x5, %edi
movl $0x4, %esi
callq 0x3978
testl %eax, %eax
jne 0x126e
leaq 0x5da9(%rip), %rdi      # 0x7004
leaq 0x5dac(%rip), %rsi      # 0x700e
leaq 0x5dbc(%rip), %rdx      # 0x7025
callq 0x4924
movl $0x9, %edi
movl $0x4, %esi
callq 0x3978
testl %eax, %eax
jne 0x129b
leaq 0x5d7c(%rip), %rdi      # 0x7004
leaq 0x5dae(%rip), %rsi      # 0x703d
leaq 0x5d8f(%rip), %rdx      # 0x7025
callq 0x4924
callq 0x595c
leaq 0x8e19(%rip), %rdi      # 0xa0c0
leaq 0x154612(%rip), %rsi    # 0x1558c0
callq 0x5cf6
testl %eax, %eax
je 0x12ca
leaq 0x5d46(%rip), %rdi      # 0x7004
leaq 0x5d8f(%rip), %rsi      # 0x7054
callq 0x4a53
leaq 0x8def(%rip), %rsi      # 0xa0c0
movl $0x14b800, %edx         # imm = 0x14B800
movl $0x5, %edi
callq 0x6e0c
cmpl $-0x1, %eax
jne 0x12f8
leaq 0x5d18(%rip), %rdi      # 0x7004
leaq 0x5d1b(%rip), %rsi      # 0x700e
callq 0x4a53
movl $0x5, %edi
callq 0x50d8
cmpl $-0x1, %eax
jne 0x131a
leaq 0x5cf6(%rip), %rdi      # 0x7004
leaq 0x5cf9(%rip), %rsi      # 0x700e
callq 0x4a53
leaq 0x15459f(%rip), %rsi    # 0x1558c0
movl $0x3700, %edx           # imm = 0x3700
movl $0x9, %edi
callq 0x6e0c
cmpl $-0x1, %eax
jne 0x1348
leaq 0x5cc8(%rip), %rdi      # 0x7004
leaq 0x5cfa(%rip), %rsi      # 0x703d
callq 0x4a53
movl $0x9, %edi
callq 0x50d8
cmpl $-0x1, %eax
jne 0x136a
leaq 0x5ca6(%rip), %rdi      # 0x7004
leaq 0x5cd8(%rip), %rsi      # 0x703d
callq 0x4a53
xorl %edi, %edi
callq 0x4b07
xorl %eax, %eax
popq %rcx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: show_image_normalized
void show_image_normalized(image im, const char *name)
{
    image c = copy_image(im);
    normalize_image(c);
    show_image(c, name, 1);
    free_image(c);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x70(%rsp), %r15
movaps 0x60(%rsp), %xmm0
movl 0x64(%rsp), %eax
imull 0x60(%rsp), %eax
movaps %xmm0, 0x20(%rsp)
imull 0x68(%rsp), %eax
movslq %eax, %r12
pushq $0x4
popq %rsi
movq %r12, %rdi
callq 0x3250
movq %rax, %r14
movq %rax, 0x30(%rsp)
shlq $0x2, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x32b0
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x1807b
movq 0x67a2e(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x5320d(%rip), %rsi     # 0x577e1
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3270
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x3
popq %rsi
pushq $0x50
popq %rdx
movq %rbx, %rdi
callq 0x18310
testq %r14, %r14
je 0x4617
movq %r14, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3040
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x1b459
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0x1807b
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 0x18310
movq 0x67976(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x53155(%rip), %rsi     # 0x577e1
movq %r14, %rdx
xorl %eax, %eax
callq 0x3270
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x18310
movq 0x10(%rbx), %rdi
addq $0x38, %rsp
testq %rdi, %rdi
je 0x46cb
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_O3/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 0x678be(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
movl %r8d, (%rsp)
leaq 0x5413c(%rip), %rsi     # 0x58884
movl %ebp, %r8d
xorl %eax, %eax
callq 0x3270
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x268(%rbx)
leaq 0x25dc9(%rip), %rax     # 0x2a5cd
movq %rax, 0x10(%rbx)
leaq 0x25dbc(%rip), %rax     # 0x2a5cb
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_O3/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 0x31c0
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 0x3250
cvtss2sd 0xc(%rsp), %xmm0
movsd 0x508ce(%rip), %xmm1    # 0x55150
movapd %xmm1, %xmm2
subsd %xmm0, %xmm2
divsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movq %rax, 0x1d0(%rbx)
movss %xmm1, 0x194(%rbx)
leaq 0x25f5c(%rip), %rax     # 0x2a804
movq %rax, 0x10(%rbx)
leaq 0x25ff7(%rip), %rax     # 0x2a8aa
movq %rax, 0x18(%rbx)
movq 0x6773a(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x53fe7(%rip), %rsi     # 0x588af
movl %ebp, %edx
movl %ebp, %ecx
movb $0x1, %al
callq 0x3270
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x31c0
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 0x3250
movq %rax, 0x1a0(%rbx)
movq %rbp, %rdi
pushq $0x4
popq %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
movq %rbp, %rdi
pushq $0x4
popq %rsi
callq 0x3250
movq %rax, 0x260(%rbx)
leaq 0x25fa4(%rip), %rax     # 0x2a982
movq %rax, 0x10(%rbx)
leaq 0x26255(%rip), %rax     # 0x2ac3e
movq %rax, 0x18(%rbx)
movq 0x67604(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
subq $0x8, %rsp
leaq 0x53ee0(%rip), %rsi     # 0x588e2
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 0x3270
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_O3/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 0x66f5a(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x53e6b(%rip), %rsi     # 0x58f13
xorl %eax, %eax
callq 0x3270
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x1d8(%rbx)
leaq 0x2eab4(%rip), %rax     # 0x33bdc
movq %rax, 0x10(%rbx)
leaq 0x2ebba(%rip), %rax     # 0x33ced
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_O3/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 0x650a6(%rip), %rax     # 0x6bff8
movq (%rax), %rcx
leaq 0x52a22(%rip), %rdi     # 0x5997e
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
callq 0x3440
xorl %r13d, %r13d
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
movl $0x8, (%rbx)
movl %ebp, 0x48(%rbx)
movl %r12d, 0x84(%rbx)
movq %r15, 0x1a8(%rbx)
movq %r14, 0x1b0(%rbx)
testl %r12d, %r12d
jle 0x6fe1
movq %r14, %rcx
movl %r12d, %eax
movq %rax, (%rsp)
xorl %r14d, %r14d
xorl %r13d, %r13d
movq 0x65045(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
movl (%r15,%r14,4), %edx
leaq 0x53a0d(%rip), %rsi     # 0x5a9ce
xorl %eax, %eax
movq %r15, %r12
movq %rcx, %r15
callq 0x3270
movq %r15, %rcx
movq %r12, %r15
addl (%rcx,%r14,4), %r13d
incq %r14
cmpq %r14, (%rsp)
jne 0x6fac
movq 0x65010(%rip), %rax     # 0x6bff8
movq (%rax), %rsi
pushq $0xa
popq %rdi
callq 0x31f0
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 0x3250
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
leaq 0x31113(%rip), %rax     # 0x38144
movq %rax, 0x10(%rbx)
leaq 0x31222(%rip), %rax     # 0x3825e
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_O3/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, %r12d
movl %edx, %ebp
movl %esi, %r13d
movq %rdi, %rbx
movl $0x4a0, %edx            # imm = 0x4A0
xorl %esi, %esi
callq 0x31c0
movl %r13d, %edi
movl %ebp, %r8d
movl $0x1a, (%rbx)
movl %r13d, 0x48(%rbx)
movl %ebp, 0x70(%rbx)
movl %r12d, 0x6c(%rbx)
movl %r14d, 0x74(%rbx)
movl %r15d, %r13d
imull %ebp, %r13d
movl %r13d, 0x7c(%rbx)
movl %r15d, %ebp
imull %r12d, %ebp
movl %ebp, 0x78(%rbx)
movl %r14d, 0x80(%rbx)
testl %r15d, %r15d
js 0x70c2
leaq 0x5290f(%rip), %rax     # 0x599cf
jmp 0x70ef
negl %r15d
movl $0x1, 0x9c(%rbx)
movl %r8d, %eax
cltd
idivl %r15d
movl %eax, %r13d
movl %eax, 0x7c(%rbx)
movl %r12d, %eax
cltd
idivl %r15d
movl %eax, %ebp
movl %eax, 0x78(%rbx)
leaq 0x528a4(%rip), %rax     # 0x59993
movq %rax, 0x10(%rsp)
movl %r15d, 0x98(%rbx)
movl %r13d, %eax
imull %r14d, %eax
imull %ebp, %eax
movl %eax, 0x58(%rbx)
movl %r12d, %ecx
imull %r8d, %ecx
imull %r14d, %ecx
movl %ecx, 0x54(%rbx)
imull %edi, %eax
movl %r12d, 0xc(%rsp)
movslq %eax, %r12
pushq $0x4
popq %rsi
movq %r12, %rdi
movl %r8d, 0x8(%rsp)
callq 0x3250
movq %rax, 0x260(%rbx)
movq %r12, %rdi
pushq $0x4
popq %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
leaq 0x3136f(%rip), %rax     # 0x384c0
movq %rax, 0x10(%rbx)
leaq 0x3141b(%rip), %rax     # 0x38577
movq %rax, 0x18(%rbx)
movq 0x64e91(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
subq $0x8, %rsp
movq 0x18(%rsp), %rsi
movl %r15d, %edx
movl 0x10(%rsp), %ecx
movl 0x14(%rsp), %r8d
movl %r14d, %r9d
xorl %eax, %eax
pushq %r14
pushq %rbp
pushq %r13
callq 0x3270
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_O3/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 0x64e1c(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x52932(%rip), %rsi     # 0x59b18
xorl %eax, %eax
callq 0x3270
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x278(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x280(%rbx)
movl %ebp, 0x54(%rbx)
movl %ebp, 0x58(%rbx)
leaq 0x32440(%rip), %rax     # 0x396f8
movq %rax, 0x10(%rbx)
leaq 0x32797(%rip), %rax     # 0x39a5a
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_O3/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 0x64d01(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x52858(%rip), %rsi     # 0x59b59
movl %r8d, %r9d
xorl %eax, %eax
callq 0x3270
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x260(%rbx)
leaq 0x327e0(%rip), %rax     # 0x39b68
movq %rax, 0x10(%rbx)
leaq 0x3288f(%rip), %rax     # 0x39c22
movq %rax, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x649ac(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
subq $0x8, %rsp
leaq 0x52573(%rip), %rsi     # 0x59bcd
xorl %eax, %eax
pushq %r12
pushq %r14
pushq %r13
callq 0x3270
addq $0x20, %rsp
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x260(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
leaq 0x3308c(%rip), %rax     # 0x3a780
movq %rax, 0x10(%rbx)
leaq 0x33138(%rip), %rax     # 0x3a837
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_O3/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 0x648cd(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x52534(%rip), %rsi     # 0x59c69
xorl %eax, %eax
callq 0x3270
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x270(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x260(%rbx)
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x1d8(%rbx)
leaq 0x33213(%rip), %rax     # 0x3a9c8
movq %rax, 0x10(%rbx)
leaq 0x332a3(%rip), %rax     # 0x3aa63
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_O3/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
addq $0x8, %rdi
movl $0x498, %edx            # imm = 0x498
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x268(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3250
movq %rax, 0x260(%rbx)
leaq 0x33259(%rip), %rax     # 0x3aa94
movq %rax, 0x10(%rbx)
leaq 0x33295(%rip), %rax     # 0x3aadb
movq %rax, 0x18(%rbx)
movl %r14d, 0x4(%rbx)
movq 0x647a3(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x5243e(%rip), %rsi     # 0x59c9d
movl %ebp, %edx
xorl %eax, %eax
callq 0x3270
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, %rbx
movq %rsi, %rdi
callq 0x2af38
movq %rax, %r15
movq %rax, %rdi
callq 0x11928
movl $0x0, 0xc(%rsp)
cmpl $0x0, 0x8(%rbx)
jle 0x874e
movq %rax, %r14
movl (%r15), %r12d
movq (%rbx), %r13
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movq %rbx, 0x10(%rsp)
andl $0x0, (%r13,%rbp,4)
testl %r12d, %r12d
jle 0x8742
movq 0x28(%rbx), %rax
movq (%rax,%rbp,8), %r15
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rsi
movq %r15, %rdi
callq 0x3260
testl %eax, %eax
je 0x8730
incq %rbx
cmpq %rbx, %r12
jne 0x8716
jmp 0x873d
movl $0x1, (%r13,%rbp,4)
incl 0xc(%rsp)
movq 0x10(%rsp), %rbx
incq %rbp
movslq 0x8(%rbx), %rax
cmpq %rax, %rbp
jl 0x8701
movq 0x638a3(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x5172e(%rip), %rsi     # 0x59e8d
movl 0xc(%rsp), %edx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3270
// File: /workspace/github_c_makefile_star2_O3/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 0x63307(%rip), %rax     # 0x6bff8
movq (%rax), %rdi
leaq 0x511cd(%rip), %rsi     # 0x59ec8
xorl %eax, %eax
callq 0x3270
movl $0x4a0, %edx            # imm = 0x4A0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x31c0
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 0x3250
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x240(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3250
movq %rax, 0x260(%rbx)
leaq 0x381bf(%rip), %rax     # 0x40f28
movq %rax, 0x10(%rbx)
leaq 0x38217(%rip), %rax     # 0x40f8b
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_O3/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 0x31c0
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 0x3250
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 0x3250
movq %rax, 0x260(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3250
movq %rax, 0x268(%rbx)
pushq $0x5a
popq %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3250
movq %rax, 0x1c0(%rbx)
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x3250
movq (%rsp), %rcx
movq %rax, 0x1c8(%rbx)
testl %ecx, %ecx
je 0x91ba
movq %rax, %r15
movslq %ecx, %r14
xorl %r13d, %r13d
pushq $0x4
popq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x3250
movq %rax, (%r15,%r13,8)
incq %r13
cmpq $0x5a, %r13
jne 0x91a2
leaq 0x390c3(%rip), %rax     # 0x42284
movq %rax, 0x10(%rbx)
leaq 0x3986a(%rip), %rax     # 0x42a36
movq %rax, 0x18(%rbx)
movq 0x62e21(%rip), %rax     # 0x6bff8
movq (%rax), %rcx
leaq 0x50dbf(%rip), %rdi     # 0x59fa0
pushq $0x5
popq %rsi
pushq $0x1
popq %rdx
callq 0x3440
xorl %edi, %edi
callq 0x3220
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_O3/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 0x316bc
movq %rax, %rbx
xorl %edi, %edi
callq 0x32c0
movl %eax, %edi
callq 0x3220
leaq 0x50af6(%rip), %rsi     # 0x5a31b
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x30336
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 0x32f01
movq %rax, %rbx
movq %rdx, %r14
cmpl $0x0, 0x8(%r12)
jle 0x98cc
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 0x170ea
movq 0xa0(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x90(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x1786a
incq %r15
movslq 0x58(%rsp), %rax
cmpq %rax, %r15
jl 0x9889
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 0x32f01
movq %rax, %r15
movq %rdx, %r12
movss 0x4b956(%rip), %xmm0    # 0x55264
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31007
movq %r15, %rdi
movq %r12, %rsi
movss 0x4b93d(%rip), %xmm0    # 0x55264
callq 0x31007
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x310ef
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31440
movq 0x626a9(%rip), %rax     # 0x6bff8
movq (%rax), %r15
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
pushq $0x1
popq %r8
movq %rbx, %rdx
movq %r14, %rcx
callq 0x30f1c
cvtss2sd %xmm0, %xmm0
leaq 0x50a68(%rip), %rsi     # 0x5a3de
movq %r15, %rdi
movb $0x1, %al
callq 0x3270
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 0x2d296
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq