// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movl %r9d, %r11d
movl %edx, %r15d
movl %esi, %r9d
movl 0x70(%rsp), %esi
movl %r9d, %eax
cltd
idivl %r11d
movl %eax, %ebx
movl %r11d, %eax
cltd
idivl %r9d
movl %eax, %ebp
movl %r15d, %eax
cltd
idivl %esi
cmpl %eax, %ebx
jne 0x1af70
movl %esi, %eax
cltd
idivl %r15d
cmpl %eax, %ebp
jne 0x1af89
movl 0x78(%rsp), %edx
cmpl $0x2, %ebx
pushq $0x1
popq %rax
cmovll %eax, %ebx
cmpl $0x2, %ebp
cmovgel %ebp, %eax
cmpl %r11d, %r9d
movl %r9d, %ebp
movl %r11d, %r9d
cmovll %ebp, %r9d
cmpl %esi, %r15d
movl %esi, %r14d
cmovll %r15d, %r14d
cmpl %edx, %ecx
movl %edx, %r10d
cmovll %ecx, %r10d
imull %r11d, %esi
imull %ebp, %r15d
xorl %r13d, %r13d
testl %r9d, %r9d
cmovlel %r13d, %r9d
movq 0x80(%rsp), %r12
testl %r14d, %r14d
cmovlel %r13d, %r14d
testl %r10d, %r10d
cmovlel %r13d, %r10d
movl %r10d, 0x28(%rsp)
testl %edi, %edi
cmovlel %r13d, %edi
movl %edi, 0x18(%rsp)
imull %esi, %edx
movl %edx, 0x10(%rsp)
leaq (,%rax,4), %r13
movl %eax, %r10d
imull %r11d, %r10d
imull %r15d, %ecx
movl %ecx, 0x14(%rsp)
xorl %eax, %eax
movl %ebx, %r11d
imull %ebp, %r11d
leaq (,%rbx,4), %rbx
xorl %ecx, %ecx
xorl %edx, %edx
movl %r15d, 0x24(%rsp)
movl %esi, 0x20(%rsp)
cmpl 0x18(%rsp), %edx
je 0x1af61
movq %rax, 0x30(%rsp)
movl %eax, 0xc(%rsp)
xorl %eax, %eax
movl %ecx, 0x1c(%rsp)
movl %ecx, 0x8(%rsp)
cmpl 0x28(%rsp), %eax
je 0x1af49
movl %eax, 0x2c(%rsp)
movl 0xc(%rsp), %r15d
movl 0x8(%rsp), %eax
xorl %esi, %esi
cmpq %r14, %rsi
je 0x1af2f
movl %edx, %ecx
movslq %eax, %rdx
leaq (%r12,%rdx,4), %rbp
movslq %r15d, %rdx
leaq (%r8,%rdx,4), %rdi
movq %r9, %rdx
subq $0x1, %rdx
jb 0x1af22
movss (%rdi), %xmm2
mulss %xmm1, %xmm2
movss (%rbp), %xmm3
mulss %xmm0, %xmm3
addss %xmm2, %xmm3
movss %xmm3, (%rbp)
addq %r13, %rbp
addq %rbx, %rdi
jmp 0x1aefa
incq %rsi
addl %r10d, %eax
addl %r11d, %r15d
movl %ecx, %edx
jmp 0x1aee2
movl 0x2c(%rsp), %eax
incl %eax
movl 0x20(%rsp), %esi
addl %esi, 0x8(%rsp)
movl 0x24(%rsp), %r15d
addl %r15d, 0xc(%rsp)
jmp 0x1aecd
incl %edx
movl 0x1c(%rsp), %ecx
addl 0x10(%rsp), %ecx
movq 0x30(%rsp), %rax
addl 0x14(%rsp), %eax
jmp 0x1aeb0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x347d9(%rip), %rdi     # 0x4f750
leaq 0x347e2(%rip), %rsi     # 0x4f760
leaq 0x347e2(%rip), %rcx     # 0x4f767
pushq $0x48
jmp 0x1afa0
leaq 0x3482c(%rip), %rdi     # 0x4f7bc
leaq 0x347c9(%rip), %rsi     # 0x4f760
leaq 0x347c9(%rip), %rcx     # 0x4f767
pushq $0x49
popq %rdx
callq 0x31b0