// File: /workspace/github_c_makefile_star2_O1/SimpleDoger[P]Darknet_CPU_Only/blas.c
// Function: shortcut_cpu
void shortcut_cpu(int batch, int w1, int h1, int c1, float *add, int w2, int h2, int c2, float s1, float s2, float *out)
{
    int stride = w1/w2;
    int sample = w2/w1;
    assert(stride == h1/h2);
    assert(sample == h2/h1);
    if(stride < 1) stride = 1;
    if(sample < 1) sample = 1;
    int minw = (w1 < w2) ? w1 : w2;
    int minh = (h1 < h2) ? h1 : h2;
    int minc = (c1 < c2) ? c1 : c2;

    int i,j,k,b;
    for(b = 0; b < batch; ++b){
        for(k = 0; k < minc; ++k){
            for(j = 0; j < minh; ++j){
                for(i = 0; i < minw; ++i){
                    int out_index = i*sample + w2*(j*sample + h2*(k + c2*b));
                    int add_index = i*stride + w1*(j*stride + h1*(k + c1*b));
                    out[out_index] = s1*out[out_index] + s2*add[add_index];
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %r14d
movq %r8, 0x40(%rsp)
movl %ecx, 0xc(%rsp)
movl %edx, %r9d
movl %esi, %r11d
movl %edi, 0x18(%rsp)
movl 0x80(%rsp), %esi
movl %r11d, %eax
cltd
idivl %r14d
movl %eax, %ebp
movl %r14d, %eax
cltd
idivl %r11d
movl %eax, %edi
movl %r9d, %eax
cltd
idivl %esi
cmpl %eax, %ebp
jne 0x2813d
movl %esi, %eax
cltd
idivl %r9d
cmpl %eax, %edi
jne 0x2815c
movl 0x88(%rsp), %ecx
cmpl %r14d, %r11d
movl %r14d, %edx
cmovll %r11d, %edx
cmpl %esi, %r9d
movl %esi, %eax
cmovll %r9d, %eax
movl %eax, 0x1c(%rsp)
movl 0xc(%rsp), %eax
cmpl %ecx, %eax
movl %ecx, 0x10(%rsp)
cmovll %eax, %ecx
movl %ecx, 0x20(%rsp)
cmpl $0x0, 0x18(%rsp)
jle 0x2812e
cmpl $0x2, %edi
movl $0x1, %eax
cmovll %eax, %edi
cmpl $0x2, %ebp
cmovgel %ebp, %eax
imull %r14d, %esi
imull %r11d, %r9d
movl 0x1c(%rsp), %r13d
movl %edx, %r8d
movl 0xc(%rsp), %ecx
imull %r9d, %ecx
movl %ecx, 0xc(%rsp)
leaq (,%rax,4), %rbx
movl %eax, %r10d
imull %r11d, %r10d
movl 0x10(%rsp), %eax
imull %esi, %eax
movl %eax, 0x10(%rsp)
movl %edi, %r11d
imull %r14d, %r11d
leaq (,%rdi,4), %rax
movq $0x0, 0x28(%rsp)
movl $0x0, 0x14(%rsp)
xorl %edi, %edi
movl %r9d, 0x3c(%rsp)
movl %esi, 0x38(%rsp)
movl %edi, 0x34(%rsp)
cmpl $0x0, 0x20(%rsp)
jle 0x28104
xorl %ecx, %ecx
movq 0x28(%rsp), %rdi
movl %edi, 0x24(%rsp)
movl 0x14(%rsp), %r14d
cmpl $0x0, 0x1c(%rsp)
jle 0x280e8
movl 0x24(%rsp), %edi
movl %r14d, %r9d
xorl %r15d, %r15d
testl %edx, %edx
jle 0x280da
movslq %r9d, %rsi
movq 0x40(%rsp), %r12
leaq (%r12,%rsi,4), %r12
movslq %edi, %rsi
movq 0x90(%rsp), %rbp
leaq (,%rsi,4), %rsi
addq %rbp, %rsi
movq %r8, %rbp
movss (%r12), %xmm2
mulss %xmm1, %xmm2
movss (%rsi), %xmm3
mulss %xmm0, %xmm3
addss %xmm2, %xmm3
movss %xmm3, (%rsi)
addq %rbx, %r12
addq %rax, %rsi
decq %rbp
jne 0x280b5
incq %r15
addl %r10d, %r9d
addl %r11d, %edi
cmpq %r13, %r15
jne 0x2808c
incl %ecx
movl 0x3c(%rsp), %r9d
addl %r9d, %r14d
movl 0x38(%rsp), %esi
addl %esi, 0x24(%rsp)
cmpl 0x20(%rsp), %ecx
jne 0x2807b
movl 0x34(%rsp), %edi
incl %edi
movl 0x14(%rsp), %ecx
addl 0xc(%rsp), %ecx
movl %ecx, 0x14(%rsp)
movq 0x28(%rsp), %rcx
addl 0x10(%rsp), %ecx
movq %rcx, 0x28(%rsp)
cmpl 0x18(%rsp), %edi
jne 0x2805c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2e5ec(%rip), %rdi     # 0x56730
leaq 0x2e5f5(%rip), %rsi     # 0x56740
leaq 0x2e5f5(%rip), %rcx     # 0x56747
movl $0x48, %edx
callq 0x31c0
leaq 0x2e639(%rip), %rdi     # 0x5679c
leaq 0x2e5d6(%rip), %rsi     # 0x56740
leaq 0x2e5d6(%rip), %rcx     # 0x56747
movl $0x49, %edx
callq 0x31c0