LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: random_augment_args
augment_args random_augment_args(image im, float angle, float aspect, int low, int high, int w, int h)
{
    augment_args a = {0};
    aspect = rand_scale(aspect);
    int r = rand_int(low, high);
    int min = (im.h < im.w*aspect) ? im.h : im.w*aspect;
    float scale = (float)r / min;

    float rad = rand_uniform(-angle, angle) * TWO_PI / 360.;

    float dx = (im.w*scale/aspect - w) / 2.;
    float dy = (im.h*scale - w) / 2.;
    //if(dx < 0) dx = 0;
    //if(dy < 0) dy = 0;
    dx = rand_uniform(-dx, dx);
    dy = rand_uniform(-dy, dy);

    a.rad = rad;
    a.scale = scale;
    a.w = w;
    a.h = h;
    a.dx = dx;
    a.dy = dy;
    a.aspect = aspect;
    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r12d
movaps %xmm0, 0x50(%rsp)
movq %rdi, %r14
movaps %xmm1, %xmm0
callq 0x4e51
movss %xmm0, 0xc(%rsp)
movl %r12d, %edi
movl %r15d, %esi
callq 0x4cbe
cvtsi2ssl 0x94(%rsp), %xmm1
movaps %xmm1, 0x30(%rsp)
cvtsi2ssl 0x90(%rsp), %xmm2
movaps %xmm2, 0x10(%rsp)
movss 0xc(%rsp), %xmm0
mulss %xmm2, %xmm0
minss %xmm0, %xmm1
cvtsi2ss %eax, %xmm0
movaps %xmm0, 0x20(%rsp)
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps 0x50(%rsp), %xmm1
movaps %xmm1, %xmm0
xorps 0x3d685(%rip), %xmm0    # 0x4c150
callq 0x4c09
mulss 0x3d77c(%rip), %xmm0    # 0x4c254
movaps 0x20(%rsp), %xmm2
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
cvtsi2ss %ebp, %xmm0
movaps 0x3d7d5(%rip), %xmm1    # 0x4c2c0
movaps 0x40(%rsp), %xmm3
movss %xmm3, %xmm1            # xmm1 = xmm3[0],xmm1[1,2,3]
divps %xmm1, %xmm2
movaps 0x10(%rsp), %xmm1
mulss %xmm2, %xmm1
movaps %xmm2, %xmm4
movaps %xmm2, 0x20(%rsp)
divss 0xc(%rsp), %xmm1
subss %xmm0, %xmm1
movss 0x3d71a(%rip), %xmm3    # 0x4c234
mulss %xmm3, %xmm1
movaps 0x30(%rsp), %xmm2
mulss %xmm4, %xmm2
subss %xmm0, %xmm2
mulss %xmm3, %xmm2
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, %xmm0
xorps 0x3d612(%rip), %xmm0    # 0x4c150
callq 0x4c09
movss %xmm0, 0x10(%rsp)
movaps 0x3d600(%rip), %xmm0    # 0x4c150
movaps 0x30(%rsp), %xmm1
xorps %xmm1, %xmm0
callq 0x4c09
movaps 0x20(%rsp), %xmm1
movlps %xmm1, 0x8(%r14)
movl %ebp, (%r14)
movl %ebx, 0x4(%r14)
movss 0x10(%rsp), %xmm1
movss %xmm1, 0x10(%r14)
movss %xmm0, 0x14(%r14)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x18(%r14)
movq %r14, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: yuv_to_rgb
void yuv_to_rgb(image im)
{
    assert(im.c == 3);
    int i, j;
    float r, g, b;
    float y, u, v;
    for(j = 0; j < im.h; ++j){
        for(i = 0; i < im.w; ++i){
            y = get_pixel(im, i , j, 0);
            u = get_pixel(im, i , j, 1);
            v = get_pixel(im, i , j, 2);

            r = y + 1.13983*v;
            g = y + -.39465*u + -.58060*v;
            b = y + 2.03211*u;

            set_pixel(im, i, j, 0, r);
            set_pixel(im, i, j, 1, g);
            set_pixel(im, i, j, 2, b);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpl $0x3, 0x88(%rsp)
jne 0xede4
leaq 0x80(%rsp), %r12
movl (%r12), %eax
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %edx
movl %eax, 0x20(%rsp)
cmovgl %eax, %edx
movq %rdx, 0x40(%rsp)
movl 0x4(%r12), %eax
testl %eax, %eax
cmovlel %ecx, %eax
movq %rax, 0x30(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x28(%rsp)
pushq $0x1
popq %rbx
pushq $0x2
popq %rbp
xorl %r14d, %r14d
cmpq 0x30(%rsp), %r14
je 0xedd5
movq %rcx, 0x38(%rsp)
movl %ecx, %eax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,4), %r13
xorl %r15d, %r15d
cmpq %r15, 0x40(%rsp)
je 0xedc4
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movl %r15d, %edi
movl %r14d, %esi
xorl %edx, %edx
callq 0xb589
movss %xmm0, 0x1c(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movl %r15d, %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xb589
movss %xmm0, 0x24(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movl %r15d, %edi
movl %r14d, %esi
movl %ebp, %edx
callq 0xb589
cvtss2sd 0x1c(%rsp), %xmm1
cvtss2sd %xmm0, %xmm2
cvtss2sd 0x24(%rsp), %xmm3
movaps %xmm3, %xmm0
mulsd 0x3f746(%rip), %xmm0    # 0x4e478
addsd %xmm1, %xmm0
movaps %xmm2, %xmm4
mulsd 0x3f73f(%rip), %xmm4    # 0x4e480
addsd %xmm0, %xmm4
cvtsd2ss %xmm4, %xmm0
mulsd 0x3f737(%rip), %xmm3    # 0x4e488
addsd %xmm1, %xmm3
cvtsd2ss %xmm3, %xmm3
movss %xmm3, 0x1c(%rsp)
mulsd 0x3f729(%rip), %xmm2    # 0x4e490
addsd %xmm1, %xmm2
cvtsd2ss %xmm2, %xmm1
movss %xmm1, (%r13,%r15,4)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm1
movups %xmm1, (%rsp)
movl %r15d, %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xb5fe
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movl %r15d, %edi
movl %r14d, %esi
movl %ebp, %edx
movss 0x1c(%rsp), %xmm0
callq 0xb5fe
incq %r15
jmp 0xeca0
incq %r14
movq 0x38(%rsp), %rcx
addl 0x20(%rsp), %ecx
jmp 0xec82
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3f995(%rip), %rdi     # 0x4e780
leaq 0x3f8ca(%rip), %rsi     # 0x4e6bc
leaq 0x3f991(%rip), %rcx     # 0x4e78a
movl $0x392, %edx            # imm = 0x392
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: grayscale_image_3c
void grayscale_image_3c(image im)
{
    assert(im.c == 3);
    int i, j, k;
    float scale[] = {0.299, 0.587, 0.114};
    for(j = 0; j < im.h; ++j){
        for(i = 0; i < im.w; ++i){
            float val = 0;
            for(k = 0; k < 3; ++k){
                val += scale[k]*get_pixel(im, i, j, k);
            }
            im.data[0*im.h*im.w + im.w*j + i] = val;
            im.data[1*im.h*im.w + im.w*j + i] = val;
            im.data[2*im.h*im.w + im.w*j + i] = val;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
cmpl $0x3, 0xa8(%rsp)
jne 0xf661
leaq 0xa0(%rsp), %r12
movl 0x4(%r12), %eax
movslq (%r12), %rcx
movq 0x10(%r12), %rdx
movq %rdx, 0x30(%rsp)
leal (%rax,%rax), %edx
movq %rdx, 0x28(%rsp)
xorl %ebx, %ebx
testl %ecx, %ecx
movl $0x0, %edx
movq %rcx, 0x38(%rsp)
cmovgl %ecx, %edx
movq %rdx, 0x60(%rsp)
testl %eax, %eax
movl $0x0, %ecx
movq %rax, 0x40(%rsp)
cmovgl %eax, %ecx
movq %rcx, 0x48(%rsp)
cmpq 0x48(%rsp), %rbx
je 0xf652
movq %rbx, %rax
movq 0x38(%rsp), %rsi
imulq %rsi, %rax
movq 0x40(%rsp), %rcx
addl %ebx, %ecx
imull %esi, %ecx
movq 0x28(%rsp), %rdx
addl %ebx, %edx
imull %esi, %edx
movslq %edx, %rdx
movslq %ecx, %rcx
movq 0x30(%rsp), %rsi
leaq (%rsi,%rax,4), %rax
movq %rax, 0x58(%rsp)
leaq (%rsi,%rcx,4), %rax
movq %rax, 0x50(%rsp)
leaq (%rsi,%rdx,4), %rbp
xorl %r14d, %r14d
cmpq 0x60(%rsp), %r14
je 0xf64a
xorps %xmm0, %xmm0
leaq 0x3d083(%rip), %r13     # 0x4c654
xorl %r15d, %r15d
cmpq $0x3, %r15
je 0xf625
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movss %xmm0, 0x24(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
movl %r14d, %edi
movl %ebx, %esi
movl %r15d, %edx
callq 0xb589
mulss (%r13), %xmm0
movss 0x24(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x24(%rsp)
movss 0x24(%rsp), %xmm0
incq %r15
addq $0x4, %r13
jmp 0xf5d4
movq 0x58(%rsp), %rax
movss %xmm0, (%rax,%r14,4)
movq 0x50(%rsp), %rax
movss %xmm0, (%rax,%r14,4)
movss %xmm0, (%rbp,%r14,4)
incq %r14
jmp 0xf5bc
incq %rbx
jmp 0xf56d
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3f118(%rip), %rdi     # 0x4e780
leaq 0x3f04d(%rip), %rsi     # 0x4e6bc
leaq 0x3f170(%rip), %rcx     # 0x4e7e6
movl $0x40f, %edx            # imm = 0x40F
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: grayscale_image
image grayscale_image(image im)
{
    assert(im.c == 3);
    int i, j, k;
    image gray = make_image(im.w, im.h, 1);
    float scale[] = {0.299, 0.587, 0.114};
    for(k = 0; k < im.c; ++k){
        for(j = 0; j < im.h; ++j){
            for(i = 0; i < im.w; ++i){
                gray.data[i+im.w*j] += scale[k]*get_pixel(im, i, j, k);
            }
        }
    }
    return gray;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x3, 0x78(%rsp)
jne 0xf763
movq %rdi, %r14
leaq 0x70(%rsp), %rbx
movslq (%rbx), %r15
movl 0x4(%rbx), %r13d
pushq $0x1
popq %rcx
movl %r15d, %esi
movl %r13d, %edx
callq 0xb45a
movq %r14, 0x18(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x20(%rsp)
xorl %r12d, %r12d
testl %r15d, %r15d
movl $0x0, %r14d
cmovgl %r15d, %r14d
testl %r13d, %r13d
cmovlel %r12d, %r13d
movq %r13, 0x30(%rsp)
shlq $0x2, %r15
movq %r15, 0x28(%rsp)
cmpq $0x3, %r12
je 0xf74f
movq 0x20(%rsp), %r15
xorl %r13d, %r13d
cmpq 0x30(%rsp), %r13
je 0xf74a
xorl %ebp, %ebp
cmpq %rbp, %r14
je 0xf740
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
movl %ebp, %edi
movl %r13d, %esi
movl %r12d, %edx
callq 0xb589
leaq 0x3cf2b(%rip), %rax     # 0x4c654
mulss (%rax,%r12,4), %xmm0
addss (%r15,%rbp,4), %xmm0
movss %xmm0, (%r15,%rbp,4)
incq %rbp
jmp 0xf700
incq %r13
addq 0x28(%rsp), %r15
jmp 0xf6f7
incq %r12
jmp 0xf6e9
movq 0x18(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3f016(%rip), %rdi     # 0x4e780
leaq 0x3ef4b(%rip), %rsi     # 0x4e6bc
leaq 0x3f08d(%rip), %rcx     # 0x4e805
movl $0x421, %edx            # imm = 0x421
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: blend_image
image blend_image(image fore, image back, float alpha)
{
    assert(fore.w == back.w && fore.h == back.h && fore.c == back.c);
    image blend = make_image(fore.w, fore.h, fore.c);
    int i, j, k;
    for(k = 0; k < fore.c; ++k){
        for(j = 0; j < fore.h; ++j){
            for(i = 0; i < fore.w; ++i){
                float val = alpha * get_pixel(fore, i, j, k) + 
                    (1 - alpha)* get_pixel(back, i, j, k);
                set_pixel(blend, i, j, k, val);
            }
        }
    }
    return blend;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movss %xmm0, 0x24(%rsp)
movl 0x70(%rsp), %ebp
cmpl 0x88(%rsp), %ebp
jne 0xf8e7
leaq 0x88(%rsp), %rax
leaq 0x70(%rsp), %r14
movl 0x4(%r14), %ecx
cmpl 0x4(%rax), %ecx
jne 0xf8e7
movl 0x8(%r14), %r13d
cmpl 0x8(%rax), %r13d
jne 0xf8e7
movq %rdi, %rbx
movl %ecx, %r15d
movl %ebp, %esi
movl %ecx, %edx
movl %r13d, %ecx
callq 0xb45a
xorl %r12d, %r12d
testl %ebp, %ebp
cmovlel %r12d, %ebp
movss 0x3c816(%rip), %xmm0    # 0x4c008
testl %r15d, %r15d
cmovlel %r12d, %r15d
movl %r15d, 0x2c(%rsp)
subss 0x24(%rsp), %xmm0
movss %xmm0, 0x30(%rsp)
testl %r13d, %r13d
cmovlel %r12d, %r13d
movl %r13d, 0x28(%rsp)
cmpl %r13d, %r12d
je 0xf8d5
xorl %r13d, %r13d
cmpl 0x2c(%rsp), %r13d
je 0xf8c8
xorl %r15d, %r15d
cmpl %r15d, %ebp
je 0xf8c0
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movl %r15d, %edi
movl %r13d, %esi
movl %r12d, %edx
callq 0xb589
movss %xmm0, 0x34(%rsp)
leaq 0x88(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
movl %r15d, %edi
movl %r13d, %esi
movl %r12d, %edx
callq 0xb589
mulss 0x30(%rsp), %xmm0
movss 0x34(%rsp), %xmm1
mulss 0x24(%rsp), %xmm1
addss %xmm1, %xmm0
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm1
movups %xmm1, (%rsp)
movl %r15d, %edi
movl %r13d, %esi
movl %r12d, %edx
callq 0xb5fe
incl %r15d
jmp 0xf830
incl %r13d
jmp 0xf822
incl %r12d
movl 0x28(%rsp), %r13d
jmp 0xf816
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3ef34(%rip), %rdi     # 0x4e822
leaq 0x3edc7(%rip), %rsi     # 0x4e6bc
leaq 0x3ef5f(%rip), %rcx     # 0x4e85b
movl $0x43b, %edx            # imm = 0x43B
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: scale_image_channel
void scale_image_channel(image im, int c, float v)
{
    int i, j;
    for(j = 0; j < im.h; ++j){
        for(i = 0; i < im.w; ++i){
            float pix = get_pixel(im, i, j, c);
            pix = pix*v;
            set_pixel(im, i, j, c, pix);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movss %xmm0, 0x24(%rsp)
movl %edi, %ebx
leaq 0x60(%rsp), %r15
movl (%r15), %r12d
xorl %ebp, %ebp
testl %r12d, %r12d
cmovlel %ebp, %r12d
movl 0x4(%r15), %r13d
testl %r13d, %r13d
cmovlel %ebp, %r13d
cmpl %r13d, %ebp
je 0xf98e
xorl %r14d, %r14d
cmpl %r14d, %r12d
je 0xf98a
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movl %r14d, %edi
movl %ebp, %esi
movl %ebx, %edx
callq 0xb589
mulss 0x24(%rsp), %xmm0
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm1
movups %xmm1, (%rsp)
movl %r14d, %edi
movl %ebp, %esi
movl %ebx, %edx
callq 0xb5fe
incl %r14d
jmp 0xf940
incl %ebp
jmp 0xf938
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: saturate_image
void saturate_image(image im, float sat)
{
    rgb_to_hsv(im);
    scale_image_channel(im, 1, sat);
    hsv_to_rgb(im);
    constrain_image(im);
}

// Assembly:
subq $0x28, %rsp
movss %xmm0, 0x24(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf01f
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rdi
movss 0x24(%rsp), %xmm0
callq 0xf906
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf250
addq $0x28, %rsp
jmp 0xd231
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: hue_image
void hue_image(image im, float hue)
{
    rgb_to_hsv(im);
    int i;
    for(i = 0; i < im.w*im.h; ++i){
        im.data[i] = im.data[i] + hue;
        if (im.data[i] > 1) im.data[i] -= 1;
        if (im.data[i] < 0) im.data[i] += 1;
    }
    hsv_to_rgb(im);
    constrain_image(im);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movss %xmm0, 0x1c(%rsp)
leaq 0x30(%rsp), %rbx
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movaps (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0xf01f
movss 0x1c(%rsp), %xmm6
movl 0x4(%rbx), %eax
imull (%rbx), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
movq 0x10(%rbx), %rdx
movss 0x3c717(%rip), %xmm0    # 0x4c264
movss 0x3c4b3(%rip), %xmm1    # 0x4c008
xorps %xmm2, %xmm2
cmpq %rcx, %rax
je 0xfba0
movss (%rdx,%rcx,4), %xmm3
addss %xmm6, %xmm3
movaps %xmm3, %xmm4
addss %xmm0, %xmm4
movaps %xmm1, %xmm5
cmpltss %xmm3, %xmm5
andps %xmm5, %xmm4
andnps %xmm3, %xmm5
orps %xmm4, %xmm5
movaps %xmm5, %xmm3
addss %xmm1, %xmm3
movaps %xmm5, %xmm4
cmpltss %xmm2, %xmm4
andps %xmm4, %xmm3
andnps %xmm5, %xmm4
orps %xmm3, %xmm4
movss %xmm4, (%rdx,%rcx,4)
incq %rcx
jmp 0xfb58
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0xf250
addq $0x20, %rsp
popq %rbx
jmp 0xd231
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: exposure_image
void exposure_image(image im, float sat)
{
    rgb_to_hsv(im);
    scale_image_channel(im, 2, sat);
    hsv_to_rgb(im);
    constrain_image(im);
}

// Assembly:
subq $0x28, %rsp
movss %xmm0, 0x24(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf01f
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x2
popq %rdi
movss 0x24(%rsp), %xmm0
callq 0xf906
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf250
addq $0x28, %rsp
jmp 0xd231
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: distort_image
void distort_image(image im, float hue, float sat, float val)
{
    rgb_to_hsv(im);
    scale_image_channel(im, 1, sat);
    scale_image_channel(im, 2, val);
    int i;
    for(i = 0; i < im.w*im.h; ++i){
        im.data[i] = im.data[i] + hue;
        if (im.data[i] > 1) im.data[i] -= 1;
        if (im.data[i] < 0) im.data[i] += 1;
    }
    hsv_to_rgb(im);
    constrain_image(im);
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movss %xmm2, 0x2c(%rsp)
movss %xmm1, 0x24(%rsp)
movss %xmm0, 0x28(%rsp)
leaq 0x40(%rsp), %rbx
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movaps (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0xf01f
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movaps (%rbx), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rdi
movss 0x24(%rsp), %xmm0
callq 0xf906
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movaps (%rbx), %xmm0
movups %xmm0, (%rsp)
pushq $0x2
popq %rdi
movss 0x2c(%rsp), %xmm0
callq 0xf906
movss 0x28(%rsp), %xmm6
movl 0x4(%rbx), %eax
imull (%rbx), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
movq 0x10(%rbx), %rdx
movss 0x3c5b5(%rip), %xmm0    # 0x4c264
movss 0x3c351(%rip), %xmm1    # 0x4c008
xorps %xmm2, %xmm2
cmpq %rcx, %rax
je 0xfd02
movss (%rdx,%rcx,4), %xmm3
addss %xmm6, %xmm3
movaps %xmm3, %xmm4
addss %xmm0, %xmm4
movaps %xmm1, %xmm5
cmpltss %xmm3, %xmm5
andps %xmm5, %xmm4
andnps %xmm3, %xmm5
orps %xmm4, %xmm5
movaps %xmm5, %xmm3
addss %xmm1, %xmm3
movaps %xmm5, %xmm4
cmpltss %xmm2, %xmm4
andps %xmm4, %xmm3
andnps %xmm5, %xmm4
orps %xmm3, %xmm4
movss %xmm4, (%rdx,%rcx,4)
incq %rcx
jmp 0xfcba
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0xf250
addq $0x30, %rsp
popq %rbx
jmp 0xd231
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: random_distort_image
void random_distort_image(image im, float hue, float saturation, float exposure)
{
    float dhue = rand_uniform(-hue, hue);
    float dsat = rand_scale(saturation);
    float dexp = rand_scale(exposure);
    distort_image(im, dhue, dsat, dexp);
}

// Assembly:
subq $0x18, %rsp
movss %xmm2, 0x14(%rsp)
movss %xmm1, 0xc(%rsp)
movaps %xmm0, %xmm1
movaps 0x3c415(%rip), %xmm0    # 0x4c150
xorps %xmm1, %xmm0
callq 0x4c09
movss %xmm0, 0x10(%rsp)
movss 0xc(%rsp), %xmm0
callq 0x4e51
movss %xmm0, 0xc(%rsp)
movss 0x14(%rsp), %xmm0
callq 0x4e51
movaps %xmm0, %xmm2
movss 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
addq $0x18, %rsp
jmp 0xfc23
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: saturate_exposure_image
void saturate_exposure_image(image im, float sat, float exposure)
{
    rgb_to_hsv(im);
    scale_image_channel(im, 1, sat);
    scale_image_channel(im, 2, exposure);
    hsv_to_rgb(im);
    constrain_image(im);
}

// Assembly:
subq $0x28, %rsp
movss %xmm1, 0x24(%rsp)
movss %xmm0, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf01f
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rdi
movss 0x20(%rsp), %xmm0
callq 0xf906
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x2
popq %rdi
movss 0x24(%rsp), %xmm0
callq 0xf906
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xf250
addq $0x28, %rsp
jmp 0xd231
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: load_image_stb
image load_image_stb(char *filename, int channels)
{
    int w, h, c;
    unsigned char *data = stbi_load(filename, &w, &h, &c, channels);
    if (!data) {
        fprintf(stderr, "Cannot load image \"%s\"\nSTB Reason: %s\n", filename, stbi_failure_reason());
        exit(0);
    }
    if(channels) c = channels;
    int i,j,k;
    image im = make_image(w, h, c);
    for(k = 0; k < c; ++k){
        for(j = 0; j < h; ++j){
            for(i = 0; i < w; ++i){
                int dst_index = i + w*j + w*h*k;
                int src_index = k + c*i + c*w*j;
                im.data[dst_index] = (float)data[src_index]/255.;
            }
        }
    }
    free(data);
    return im;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, 0x20(%rsp)
leaq 0x1c(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movl %ebp, %r8d
callq 0x7334
testq %rax, %rax
je 0x1018a
movq %rax, %r14
testl %ebp, %ebp
je 0x100a0
movl %ebp, 0x8(%rsp)
jmp 0x100a4
movl 0x8(%rsp), %ebp
movl 0x1c(%rsp), %r15d
movl 0x18(%rsp), %r12d
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebp, %ecx
callq 0xb45a
movq 0x10(%rbx), %rax
xorl %r11d, %r11d
testl %r15d, %r15d
movl $0x0, %edi
cmovgl %r15d, %edi
testl %r12d, %r12d
movl $0x0, %esi
cmovgl %r12d, %esi
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
movl %ecx, 0x10(%rsp)
movl %ebp, %r8d
imull %r15d, %r8d
imull %r15d, %r12d
movl %r12d, 0xc(%rsp)
movsd 0x3e3d8(%rip), %xmm0    # 0x4e4e0
xorl %r9d, %r9d
cmpl 0x10(%rsp), %r9d
je 0x1016e
xorl %r10d, %r10d
movl %r11d, 0x14(%rsp)
movl %r9d, %r13d
cmpl %esi, %r10d
je 0x1015f
movl %r11d, %ebx
movl %r13d, %r12d
movq %rdi, %rdx
subq $0x1, %rdx
jb 0x10154
movslq %r12d, %r12
movzbl (%r14,%r12), %ecx
cvtsi2sd %ecx, %xmm1
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movslq %ebx, %rbx
movss %xmm1, (%rax,%rbx,4)
addl %ebp, %r12d
incl %ebx
jmp 0x1012b
incl %r10d
addl %r8d, %r13d
addl %r15d, %r11d
jmp 0x1011d
incl %r9d
movl 0x14(%rsp), %r11d
addl 0xc(%rsp), %r11d
jmp 0x1010b
movq %r14, %rdi
callq 0x3040
movq 0x20(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x53e67(%rip), %rax     # 0x63ff8
movq (%rax), %rdi
movq 0x5462d(%rip), %rcx     # 0x647c8
leaq 0x3e707(%rip), %rsi     # 0x4e8a9
movq %r15, %rdx
xorl %eax, %eax
callq 0x3270
xorl %edi, %edi
callq 0x3430
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: print_image
void print_image(image m)
{
    int i, j, k;
    for(i =0 ; i < m.c; ++i){
        for(j =0 ; j < m.h; ++j){
            for(k = 0; k < m.w; ++k){
                printf("%.2lf, ", m.data[i*m.h*m.w + j*m.w + k]);
                if(k > 30) break;
            }
            printf("\n");
            if(j > 30) break;
        }
        printf("\n");
    }
    printf("\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl 0x68(%rsp), %eax
movl 0x60(%rsp), %ecx
movl 0x64(%rsp), %edx
xorl %esi, %esi
testl %ecx, %ecx
movl $0x0, %ebp
cmovgl %ecx, %ebp
testl %edx, %edx
movl $0x0, %edi
cmovgl %edx, %edi
movq %rdi, 0x20(%rsp)
movq 0x70(%rsp), %rdi
movq %rdi, 0x18(%rsp)
testl %eax, %eax
cmovlel %esi, %eax
movl %eax, 0x4(%rsp)
movl %ecx, 0xc(%rsp)
imull %ecx, %edx
movl %edx, (%rsp)
leaq 0x3e6c4(%rip), %r14     # 0x4e8d0
xorl %eax, %eax
cmpl 0x4(%rsp), %eax
je 0x10284
movl %eax, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movl %esi, %ebx
xorl %r15d, %r15d
cmpq 0x20(%rsp), %r15
je 0x1026c
movslq %ebx, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,4), %r13
xorl %r12d, %r12d
cmpq %r12, %rbp
je 0x10257
cvtss2sd (%r13,%r12,4), %xmm0
movq %r14, %rdi
movb $0x1, %al
callq 0x3160
incq %r12
cmpq $0x20, %r12
jne 0x10238
pushq $0xa
popq %rdi
callq 0x3060
incq %r15
addl 0xc(%rsp), %ebx
cmpq $0x20, %r15
jne 0x10222
pushq $0xa
popq %rdi
callq 0x3060
movl 0x8(%rsp), %eax
incl %eax
movq 0x10(%rsp), %rsi
addl (%rsp), %esi
jmp 0x1020e
pushq $0xa
popq %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3060
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: collapse_images_vert
image collapse_images_vert(image *ims, int n)
{
    int color = 1;
    int border = 1;
    int h,w,c;
    w = ims[0].w;
    h = (ims[0].h + border) * n - border;
    c = ims[0].c;
    if(c != 3 || !color){
        w = (w+border)*c - border;
        c = 1;
    }

    image filters = make_image(w, h, c);
    int i,j;
    for(i = 0; i < n; ++i){
        int h_offset = i*(ims[0].h+border);
        image copy = copy_image(ims[i]);
        //normalize_image(copy);
        if(c == 3 && color){
            embed_image(copy, filters, 0, h_offset);
        }
        else{
            for(j = 0; j < copy.c; ++j){
                int w_offset = j*(ims[0].w+border);
                image layer = get_image_layer(copy, j);
                embed_image(layer, filters, w_offset, h_offset);
                free_image(layer);
            }
        }
        free_image(copy);
    }
    return filters;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movl (%rsi), %eax
movl 0x4(%rsi), %edx
incl %edx
imull %ebx, %edx
decl %edx
movl 0x8(%rsi), %edi
leal 0x1(%rax), %esi
imull %edi, %esi
decl %esi
xorl %ecx, %ecx
movl %edi, 0x34(%rsp)
cmpl $0x3, %edi
sete %cl
leal 0x1(%rcx,%rcx), %ecx
cmovel %eax, %esi
movq %r14, %rdi
callq 0xb45a
xorl %ecx, %ecx
testl %ebx, %ebx
cmovlel %ecx, %ebx
movq %rbx, 0x50(%rsp)
cmpq 0x50(%rsp), %rcx
je 0x103f0
movl 0x4(%r15), %eax
incl %eax
movl %ecx, %ebp
imull %eax, %ebp
movq %rcx, 0x58(%rsp)
imulq $0x18, %rcx, %rax
movq 0x10(%r15,%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%r15,%rax), %xmm0
movups %xmm0, (%rsp)
leaq 0x38(%rsp), %rdi
callq 0xb85b
cmpl $0x3, 0x34(%rsp)
jne 0x10376
movq 0x10(%r14), %rax
movq %rax, 0x28(%rsp)
movups (%r14), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
xorl %edi, %edi
movl %ebp, %esi
callq 0xb8af
movq 0x48(%rsp), %rdi
callq 0x3040
movq 0x58(%rsp), %rcx
incq %rcx
jmp 0x102ee
movl 0x40(%rsp), %r13d
xorl %r12d, %r12d
testl %r13d, %r13d
cmovlel %r12d, %r13d
cmpl %r12d, %r13d
je 0x1035f
movl (%r15), %ebx
incl %ebx
imull %r12d, %ebx
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %rdi
movl %r12d, %esi
callq 0xd1ca
movq 0x10(%r14), %rax
movq %rax, 0x28(%rsp)
movups (%r14), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movl %ebx, %edi
movl %ebp, %esi
callq 0xb8af
movq 0x70(%rsp), %rdi
callq 0x3040
incl %r12d
jmp 0x10385
movq %r14, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/image.c
// Function: collapse_images_horz
image collapse_images_horz(image *ims, int n)
{
    int color = 1;
    int border = 1;
    int h,w,c;
    int size = ims[0].h;
    h = size;
    w = (ims[0].w + border) * n - border;
    c = ims[0].c;
    if(c != 3 || !color){
        h = (h+border)*c - border;
        c = 1;
    }

    image filters = make_image(w, h, c);
    int i,j;
    for(i = 0; i < n; ++i){
        int w_offset = i*(size+border);
        image copy = copy_image(ims[i]);
        //normalize_image(copy);
        if(c == 3 && color){
            embed_image(copy, filters, w_offset, 0);
        }
        else{
            for(j = 0; j < copy.c; ++j){
                int h_offset = j*(size+border);
                image layer = get_image_layer(copy, j);
                embed_image(layer, filters, w_offset, h_offset);
                free_image(layer);
            }
        }
        free_image(copy);
    }
    return filters;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %edx, %ebx
movq %rsi, %rcx
movq %rdi, %r14
movl (%rsi), %esi
movl 0x4(%rcx), %eax
incl %esi
imull %edx, %esi
decl %esi
movq %rcx, 0x58(%rsp)
movl 0x8(%rcx), %edi
leal 0x1(%rax), %r15d
movl %edi, %edx
imull %r15d, %edx
decl %edx
xorl %ecx, %ecx
movl %edi, 0x3c(%rsp)
cmpl $0x3, %edi
sete %cl
leal 0x1(%rcx,%rcx), %ecx
cmovel %eax, %edx
movq %r14, %rdi
callq 0xb45a
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
movq %rbx, 0x60(%rsp)
cmpq 0x60(%rsp), %rax
je 0x10565
movq %rax, %rbp
imulq %r15, %rbp
movq %rax, 0x68(%rsp)
imulq $0x18, %rax, %rax
movq 0x58(%rsp), %rdx
movq 0x10(%rdx,%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rdx,%rax), %xmm0
movups %xmm0, (%rsp)
leaq 0x40(%rsp), %rdi
callq 0xb85b
cmpl $0x3, 0x3c(%rsp)
jne 0x104ea
movq 0x10(%r14), %rax
movq %rax, 0x28(%rsp)
movups (%r14), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movl %ebp, %edi
xorl %esi, %esi
callq 0xb8af
movq 0x50(%rsp), %rdi
callq 0x3040
movq 0x68(%rsp), %rax
incq %rax
jmp 0x10462
movl 0x48(%rsp), %r13d
xorl %r12d, %r12d
testl %r13d, %r13d
cmovlel %r12d, %r13d
xorl %ebx, %ebx
cmpl %ebx, %r13d
je 0x104d3
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x70(%rsp), %rdi
movl %ebx, %esi
callq 0xd1ca
movq 0x10(%r14), %rax
movq %rax, 0x28(%rsp)
movups (%r14), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x70(%rsp), %xmm0
movups %xmm0, (%rsp)
movl %ebp, %edi
movl %r12d, %esi
callq 0xb8af
movq 0x80(%rsp), %rdi
callq 0x3040
incl %ebx
addl %r15d, %r12d
jmp 0x104fb
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0xb85b
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
callq 0xd27c
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0xd4c7
movq 0x10(%r14), %rdi
addq $0x38, %rsp
popq %rbx
popq %r14
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movl %esi, %edx
movq %rdi, %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x1029a
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
callq 0xd27c
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
pushq $0x3
popq %rsi
pushq $0x50
popq %rdx
movq %rbx, %rdi
callq 0xd51f
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0xd4c7
movq 0x10(%r14), %rdi
addq $0x38, %rsp
popq %rbx
popq %r14
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/activations.c
// Function: get_activation
ACTIVATION get_activation(char *s)
{
    if (strcmp(s, "logistic")==0) return LOGISTIC;
    if (strcmp(s, "loggy")==0) return LOGGY;
    if (strcmp(s, "relu")==0) return RELU;
    if (strcmp(s, "elu")==0) return ELU;
    if (strcmp(s, "selu")==0) return SELU;
    if (strcmp(s, "relie")==0) return RELIE;
    if (strcmp(s, "plse")==0) return PLSE;
    if (strcmp(s, "hardtan")==0) return HARDTAN;
    if (strcmp(s, "lhtan")==0) return LHTAN;
    if (strcmp(s, "linear")==0) return LINEAR;
    if (strcmp(s, "ramp")==0) return RAMP;
    if (strcmp(s, "leaky")==0) return LEAKY;
    if (strcmp(s, "tanh")==0) return TANH;
    if (strcmp(s, "stair")==0) return STAIR;
    fprintf(stderr, "Couldn't find activation function %s, going with ReLU\n", s);
    return RELU;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x35694(%rip), %rsi     # 0x4f6b8
callq 0x3260
testl %eax, %eax
je 0x1a14b
leaq 0x35689(%rip), %rsi     # 0x4f6c1
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a14f
leaq 0x35678(%rip), %rsi     # 0x4f6c7
movq %r14, %rdi
callq 0x3260
pushq $0x1
popq %rbx
testl %eax, %eax
je 0x1a17a
leaq 0x3565f(%rip), %rsi     # 0x4f6c8
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a153
leaq 0x3564c(%rip), %rsi     # 0x4f6cc
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a157
leaq 0x3563a(%rip), %rsi     # 0x4f6d1
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a15b
leaq 0x3563a(%rip), %rsi     # 0x4f6e8
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a15f
leaq 0x35634(%rip), %rsi     # 0x4f6f9
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a163
leaq 0x35625(%rip), %rsi     # 0x4f701
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a167
leaq 0x355ed(%rip), %rsi     # 0x4f6dc
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a16b
leaq 0x355d5(%rip), %rsi     # 0x4f6d7
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a16f
leaq 0x355d8(%rip), %rsi     # 0x4f6ed
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a173
leaq 0x355bb(%rip), %rsi     # 0x4f6e3
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
je 0x1a177
leaq 0x355b8(%rip), %rsi     # 0x4f6f3
movq %r14, %rdi
callq 0x3260
testl %eax, %eax
jne 0x1a184
pushq $0xa
jmp 0x1a179
xorl %ebx, %ebx
jmp 0x1a17a
pushq $0x9
jmp 0x1a179
pushq $0x8
jmp 0x1a179
pushq $0xd
jmp 0x1a179
pushq $0x2
jmp 0x1a179
pushq $0x6
jmp 0x1a179
pushq $0xb
jmp 0x1a179
pushq $0xc
jmp 0x1a179
pushq $0x3
jmp 0x1a179
pushq $0x4
jmp 0x1a179
pushq $0x7
jmp 0x1a179
pushq $0x5
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x49e6d(%rip), %rax     # 0x63ff8
movq (%rax), %rdi
leaq 0x35572(%rip), %rsi     # 0x4f707
movq %r14, %rdx
xorl %eax, %eax
callq 0x3270
jmp 0x1a17a
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/im2col.c
// Function: im2col_cpu
void im2col_cpu(float* data_im,
     int channels,  int height,  int width,
     int ksize,  int stride, int pad, float* data_col) 
{
    int c,h,w;
    int height_col = (height + 2*pad - ksize) / stride + 1;
    int width_col = (width + 2*pad - ksize) / stride + 1;

    int channels_col = channels * ksize * ksize;
    for (c = 0; c < channels_col; ++c) {
        int w_offset = c % ksize;
        int h_offset = (c / ksize) % ksize;
        int c_im = c / ksize / ksize;
        for (h = 0; h < height_col; ++h) {
            for (w = 0; w < width_col; ++w) {
                int im_row = h_offset + h * stride;
                int im_col = w_offset + w * stride;
                int col_index = (c * height_col + h) * width_col + w;
                data_col[col_index] = im2col_get_pixel(data_im, height, width, channels,
                        im_row, im_col, c_im, pad);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq 0x98(%rsp), %r13
movl 0x90(%rsp), %r11d
movl %edx, 0x10(%rsp)
movl %edx, %eax
subl %r8d, %eax
leal (%rax,%r11,2), %eax
cltd
idivl %r9d
movl %eax, %edi
leal 0x1(%rdi), %r10d
movl %ecx, 0x14(%rsp)
movl %ecx, %eax
subl %r8d, %eax
leal (%rax,%r11,2), %eax
cltd
movl %r9d, (%rsp)
idivl %r9d
imull %r8d, %esi
movl %r8d, 0x4(%rsp)
imull %r8d, %esi
movslq %eax, %r15
incl %eax
movslq %eax, %rdx
movslq %edi, %rcx
movq %rcx, 0x40(%rsp)
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %esi
movq %rsi, 0x20(%rsp)
movslq %r10d, %rcx
imulq %rdx, %rcx
shlq $0x2, %rcx
movq %rcx, 0x18(%rsp)
shlq $0x2, %rdx
movq %rdx, 0x38(%rsp)
cmpq 0x20(%rsp), %rax
je 0x1a910
movq %rax, 0x28(%rsp)
cltd
movl 0x4(%rsp), %ecx
idivl %ecx
movl %edx, 0xc(%rsp)
cltd
idivl %ecx
movl %eax, %r12d
movl %edx, 0x8(%rsp)
movq %r13, 0x30(%rsp)
xorl %eax, %eax
cmpq 0x40(%rsp), %rax
jg 0x1a8f9
movq %rax, 0x48(%rsp)
movl %eax, %ebp
imull (%rsp), %ebp
addl 0x8(%rsp), %ebp
movl 0xc(%rsp), %r14d
xorl %ebx, %ebx
cmpq %r15, %rbx
jg 0x1a8ea
movq 0x50(%rsp), %rdi
movl 0x10(%rsp), %esi
movl 0x14(%rsp), %edx
movl %ebp, %r8d
movl %r14d, %r9d
movl 0x90(%rsp), %eax
pushq %rax
pushq %r12
callq 0x1a790
popq %rax
popq %rcx
movss %xmm0, (%r13,%rbx,4)
incq %rbx
addl (%rsp), %r14d
jmp 0x1a8b1
movq 0x48(%rsp), %rax
incq %rax
addq 0x38(%rsp), %r13
jmp 0x1a894
movq 0x28(%rsp), %rax
incq %rax
movq 0x30(%rsp), %r13
addq 0x18(%rsp), %r13
jmp 0x1a868
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: reorg_cpu
void reorg_cpu(float *x, int w, int h, int c, int batch, int stride, int forward, float *out)
{
    int b,i,j,k;
    int out_c = c/(stride*stride);

    for(b = 0; b < batch; ++b){
        for(k = 0; k < c; ++k){
            for(j = 0; j < h; ++j){
                for(i = 0; i < w; ++i){
                    int in_index  = i + w*(j + h*(k + c*b));
                    int c2 = k % out_c;
                    int offset = k / out_c;
                    int w2 = i*stride + offset % stride;
                    int h2 = j*stride + offset / stride;
                    int out_index = w2 + w*stride*(h2 + h*stride*(c2 + out_c*b));
                    if(forward) out[out_index] = x[in_index];
                    else out[in_index] = x[out_index];
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %r11d
movl %edx, %ecx
movl %r9d, %r10d
imull %r9d, %r10d
movl %r11d, %eax
cltd
idivl %r10d
movl %eax, %r10d
testl %esi, %esi
movl $0x0, %r12d
cmovgl %esi, %r12d
movl 0x38(%rsp), %ebp
movslq %esi, %rdx
testl %ecx, %ecx
movl $0x0, %eax
cmovgl %ecx, %eax
movq %rax, -0x8(%rsp)
movslq %ecx, %rbx
testl %r11d, %r11d
movl $0x0, %eax
cmovgl %r11d, %eax
movq %rax, -0x20(%rsp)
movslq %r11d, %r11
xorl %r13d, %r13d
testl %r8d, %r8d
cmovlel %r13d, %r8d
movq %r8, -0x40(%rsp)
movq %rdx, -0x10(%rsp)
imulq %rdx, %rbx
movq %rbx, -0x28(%rsp)
imulq %rbx, %r11
movq %r11, -0x48(%rsp)
xorl %r8d, %r8d
xorl %edx, %edx
cmpq -0x40(%rsp), %rdx
je 0x1abf0
movq %rdx, -0x38(%rsp)
movq %r13, -0x30(%rsp)
xorl %r11d, %r11d
cmpq -0x20(%rsp), %r11
je 0x1abd6
movq %r13, -0x18(%rsp)
xorl %r15d, %r15d
cmpq -0x8(%rsp), %r15
je 0x1abc4
xorl %r14d, %r14d
cmpq %r14, %r12
je 0x1abba
movl %r11d, %eax
cltd
idivl %r10d
movl %edx, %ebx
cltd
idivl %r9d
addl %r8d, %ebx
imull %ecx, %ebx
addl %r15d, %ebx
imull %r9d, %ebx
addl %eax, %ebx
leaq (%r14,%r13), %rax
imull %esi, %ebx
addl %r14d, %ebx
imull %r9d, %ebx
addl %edx, %ebx
testl %ebp, %ebp
movslq %ebx, %rdx
movq %rdx, %rbx
cmoveq %rax, %rbx
cmoveq %rdx, %rax
movss (%rdi,%rax,4), %xmm0
movq 0x40(%rsp), %rax
movss %xmm0, (%rax,%rbx,4)
incq %r14
jmp 0x1ab65
incq %r15
addq -0x10(%rsp), %r13
jmp 0x1ab5b
incq %r11
movq -0x18(%rsp), %r13
addq -0x28(%rsp), %r13
jmp 0x1ab48
movq -0x38(%rsp), %rdx
incq %rdx
addl %r10d, %r8d
movq -0x30(%rsp), %r13
addq -0x48(%rsp), %r13
jmp 0x1ab30
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: flatten
void flatten(float *x, int size, int layers, int batch, int forward)
{
    float *swap = calloc(size*layers*batch, sizeof(float));
    int i,c,b;
    for(b = 0; b < batch; ++b){
        for(c = 0; c < layers; ++c){
            for(i = 0; i < size; ++i){
                int i1 = b*layers*size + c*size + i;
                int i2 = b*layers*size + i*layers + c;
                if (forward) swap[i2] = x[i1];
                else swap[i1] = x[i2];
            }
        }
    }
    memcpy(x, swap, size*layers*batch*sizeof(float));
    free(swap);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %r13d
movq %rdi, %rbx
movl %edx, %eax
imull %esi, %eax
movl %eax, 0xc(%rsp)
imull %ecx, %eax
movslq %eax, %rdi
pushq $0x4
popq %rsi
movq %rdi, 0x18(%rsp)
callq 0x3250
movq %rax, %r12
xorl %eax, %eax
testl %r13d, %r13d
movl $0x0, %ecx
cmovgl %r13d, %ecx
testl %r15d, %r15d
movl $0x0, %edx
cmovgl %r15d, %edx
testl %r14d, %r14d
cmovlel %eax, %r14d
movl %r14d, 0x10(%rsp)
xorl %esi, %esi
cmpl 0x10(%rsp), %esi
je 0x1accd
movl %esi, 0x14(%rsp)
movl %eax, %edi
movq %rax, 0x20(%rsp)
movl %eax, %r8d
xorl %r9d, %r9d
cmpq %rdx, %r9
je 0x1acbc
movslq %edi, %rax
movq %rcx, %r11
movl %r8d, %esi
subq $0x1, %r11
jb 0x1acb1
testl %ebp, %ebp
movslq %esi, %rsi
movq %rsi, %r14
cmoveq %rax, %r14
movq %rax, %r10
cmoveq %rsi, %r10
movss (%rbx,%r10,4), %xmm0
movss %xmm0, (%r12,%r14,4)
addl %r15d, %esi
incq %rax
jmp 0x1ac84
incq %r9
incl %r8d
addl %r13d, %edi
jmp 0x1ac76
movl 0x14(%rsp), %esi
incl %esi
movq 0x20(%rsp), %rax
addl 0xc(%rsp), %eax
jmp 0x1ac5f
movq 0x18(%rsp), %rdx
shlq $0x2, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32b0
movq %r12, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3040
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: weighted_delta_cpu
void weighted_delta_cpu(float *a, float *b, float *s, float *da, float *db, float *ds, int n, float *dc)
{
    int i;
    for(i = 0; i < n; ++i){
        if(da) da[i] += dc[i] * s[i];
        if(db) db[i] += dc[i] * (1-s[i]);
        ds[i] += dc[i] * (a[i] - b[i]);
    }
}

// Assembly:
movq 0x10(%rsp), %rax
movl 0x8(%rsp), %r10d
xorl %r11d, %r11d
testl %r10d, %r10d
cmovlel %r11d, %r10d
movss 0x312ad(%rip), %xmm0    # 0x4c008
cmpq %r11, %r10
je 0x1adc0
testq %rcx, %rcx
je 0x1ad7d
movss (%rax,%r11,4), %xmm1
mulss (%rdx,%r11,4), %xmm1
addss (%rcx,%r11,4), %xmm1
movss %xmm1, (%rcx,%r11,4)
testq %r8, %r8
je 0x1ad9d
movaps %xmm0, %xmm1
subss (%rdx,%r11,4), %xmm1
mulss (%rax,%r11,4), %xmm1
addss (%r8,%r11,4), %xmm1
movss %xmm1, (%r8,%r11,4)
movss (%rdi,%r11,4), %xmm1
subss (%rsi,%r11,4), %xmm1
mulss (%rax,%r11,4), %xmm1
addss (%r9,%r11,4), %xmm1
movss %xmm1, (%r9,%r11,4)
incq %r11
jmp 0x1ad5b
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: mean_cpu
void mean_cpu(float *x, int batch, int filters, int spatial, float *mean)
{
    float scale = 1./(batch * spatial);
    int i,j,k;
    for(i = 0; i < filters; ++i){
        mean[i] = 0;
        for(j = 0; j < batch; ++j){
            for(k = 0; k < spatial; ++k){
                int index = j*filters*spatial + i*spatial + k;
                mean[i] += x[index];
            }
        }
        mean[i] *= scale;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %eax
imull %esi, %eax
cvtsi2sd %eax, %xmm0
movsd 0x3116a(%rip), %xmm1    # 0x4c128
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm0
xorl %eax, %eax
testl %ecx, %ecx
movl $0x0, %r9d
cmovgl %ecx, %r9d
testl %esi, %esi
cmovlel %eax, %esi
testl %edx, %edx
movl $0x0, %r10d
cmovgl %edx, %r10d
imull %ecx, %edx
xorl %r11d, %r11d
cmpq %r10, %r11
je 0x1b03a
andl $0x0, (%r8,%r11,4)
xorps %xmm1, %xmm1
movl %eax, %ebx
xorl %r14d, %r14d
cmpq %rsi, %r14
je 0x1b029
movslq %ebx, %r15
leaq (%rdi,%r15,4), %r15
xorl %r12d, %r12d
cmpq %r12, %r9
je 0x1b022
addss (%r15,%r12,4), %xmm1
movss %xmm1, (%r8,%r11,4)
incq %r12
jmp 0x1b00c
incq %r14
addl %edx, %ebx
jmp 0x1affd
mulss %xmm0, %xmm1
movss %xmm1, (%r8,%r11,4)
incq %r11
addl %ecx, %eax
jmp 0x1afeb
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: variance_cpu
void variance_cpu(float *x, float *mean, int batch, int filters, int spatial, float *variance)
{
    float scale = 1./(batch * spatial - 1);
    int i,j,k;
    for(i = 0; i < filters; ++i){
        variance[i] = 0;
        for(j = 0; j < batch; ++j){
            for(k = 0; k < spatial; ++k){
                int index = j*filters*spatial + i*spatial + k;
                variance[i] += pow((x[index] - mean[i]), 2);
            }
        }
        variance[i] *= scale;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %eax
imull %edx, %eax
decl %eax
cvtsi2sd %eax, %xmm0
movsd 0x310ca(%rip), %xmm1    # 0x4c128
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm0
xorl %eax, %eax
testl %r8d, %r8d
movl $0x0, %r10d
cmovgl %r8d, %r10d
testl %edx, %edx
cmovlel %eax, %edx
testl %ecx, %ecx
movl $0x0, %r11d
cmovgl %ecx, %r11d
imull %r8d, %ecx
xorl %ebx, %ebx
cmpq %r11, %rbx
je 0x1b0f5
andl $0x0, (%r9,%rbx,4)
xorps %xmm1, %xmm1
movl %eax, %ebp
xorl %r14d, %r14d
cmpq %rdx, %r14
je 0x1b0e3
movslq %ebp, %r15
leaq (%rdi,%r15,4), %r15
xorl %r12d, %r12d
cmpq %r12, %r10
je 0x1b0dc
movss (%r15,%r12,4), %xmm2
subss (%rsi,%rbx,4), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm2
cvtss2sd %xmm1, %xmm1
addsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%r9,%rbx,4)
incq %r12
jmp 0x1b0ad
incq %r14
addl %ecx, %ebp
jmp 0x1b09e
mulss %xmm0, %xmm1
movss %xmm1, (%r9,%rbx,4)
incq %rbx
addl %r8d, %eax
jmp 0x1b08c
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: l2normalize_cpu
void l2normalize_cpu(float *x, float *dx, int batch, int filters, int spatial)
{
    int b,f,i;
    for(b = 0; b < batch; ++b){
        for(i = 0; i < spatial; ++i){
            float sum = 0;
            for(f = 0; f < filters; ++f){
                int index = b*filters*spatial + f*spatial + i;
                sum += powf(x[index], 2);
            }
            sum = sqrtf(sum);
            for(f = 0; f < filters; ++f){
                int index = b*filters*spatial + f*spatial + i;
                x[index] /= sum;
                dx[index] = (1 - x[index]) / sum;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
movq %rsi, %r15
xorl %r14d, %r14d
testl %ecx, %ecx
movl $0x0, %r13d
cmovgl %ecx, %r13d
testl %r8d, %r8d
movl $0x0, %ebp
cmovgl %r8d, %ebp
movq %rdi, %r12
testl %edx, %edx
cmovlel %r14d, %edx
movl %edx, 0x8(%rsp)
imull %r8d, %ecx
movl %ecx, 0x4(%rsp)
xorps %xmm3, %xmm3
movss 0x30ebb(%rip), %xmm4    # 0x4c008
xorl %edx, %edx
cmpl 0x8(%rsp), %edx
je 0x1b20f
xorl %edi, %edi
movl %r14d, 0xc(%rsp)
movl %r14d, %r9d
movl %edx, 0x10(%rsp)
cmpl %ebp, %edi
je 0x1b1fe
xorps %xmm0, %xmm0
movl %r9d, %eax
movq %r13, %rcx
subq $0x1, %rcx
jb 0x1b192
cltq
movss (%r12,%rax,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
addl %ebx, %eax
jmp 0x1b178
ucomiss %xmm3, %xmm0
jb 0x1b19d
sqrtss %xmm0, %xmm0
jmp 0x1b1c1
movl %edi, %r14d
movl %r9d, 0x14(%rsp)
callq 0x32e0
movl 0x14(%rsp), %r9d
movl %r14d, %edi
movl 0x10(%rsp), %edx
movss 0x30e4a(%rip), %xmm4    # 0x4c008
xorps %xmm3, %xmm3
movl %r9d, %eax
movq %r13, %rcx
subq $0x1, %rcx
jb 0x1b1f4
cltq
movss (%r12,%rax,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r12,%rax,4)
movaps %xmm4, %xmm2
subss %xmm1, %xmm2
divss %xmm0, %xmm2
movss %xmm2, (%r15,%rax,4)
addl %ebx, %eax
jmp 0x1b1c7
incl %edi
incl %r9d
jmp 0x1b167
incl %edx
movl 0xc(%rsp), %r14d
addl 0x4(%rsp), %r14d
jmp 0x1b14f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq