// File: /workspace/github_c_makefile_star2_O3/SimpleDoger[P]Darknet_CPU_Only/parser.c
// Function: load_convolutional_weights_binary
void load_convolutional_weights_binary(layer l, FILE *fp)
{
    fread(l.biases, sizeof(float), l.n, fp);
    if (l.batch_normalize && (!l.dontloadscales)){
        fread(l.scales, sizeof(float), l.n, fp);
        fread(l.rolling_mean, sizeof(float), l.n, fp);
        fread(l.rolling_variance, sizeof(float), l.n, fp);
    }
    int size = l.c*l.size*l.size;
    int i, j, k;
    for(i = 0; i < l.n; ++i){
        float mean = 0;
        fread(&mean, sizeof(float), 1, fp);
        for(j = 0; j < size/8; ++j){
            int index = i*size + j*8;
            unsigned char c = 0;
            fread(&c, sizeof(char), 1, fp);
            for(k = 0; k < 8; ++k){
                if (j*8 + k >= size) break;
                l.weights[index + k] = (c & 1<<k) ? mean : -mean;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rcx
leaq 0xb0(%rsp), %rbx
movq 0x230(%rbx), %rdi
movslq 0x84(%rbx), %rdx
movl $0x4, %esi
movq %rdx, 0x10(%rsp)
movq %rcx, 0x20(%rsp)
callq 0x30d0
cmpl $0x0, 0x40(%rbx)
je 0x368f9
cmpl $0x0, 0x234(%rsp)
jne 0x368f9
movq 0x240(%rbx), %rdi
movl $0x4, %esi
movq 0x10(%rsp), %r15
movq %r15, %rdx
movq 0x20(%rsp), %r14
movq %r14, %rcx
callq 0x30d0
movq 0x2b0(%rbx), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x30d0
movq 0x2b8(%rbx), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %r14, %rcx
callq 0x30d0
cmpl $0x0, 0x10(%rsp)
jle 0x36b9a
movl 0x90(%rbx), %eax
movl 0x74(%rbx), %r15d
imull %eax, %r15d
imull %eax, %r15d
leal 0x7(%r15), %eax
testl %r15d, %r15d
cmovnsl %r15d, %eax
sarl $0x3, %eax
movq %rax, 0x48(%rsp)
movq 0x250(%rbx), %rax
movslq %r15d, %r14
addq $0xc, %rax
movq %rax, 0x40(%rsp)
leaq -0x1(%r14), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x18(%rsp)
xorl %ecx, %ecx
movq %r15, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x4, %esi
movl $0x1, %edx
leaq 0xc(%rsp), %rdi
movq 0x20(%rsp), %rcx
callq 0x30d0
movdqa 0x1e70d(%rip), %xmm0    # 0x55090
cmpl $0x8, %r15d
jl 0x36b75
movd 0xc(%rsp), %xmm9
movdqa %xmm9, %xmm10
pxor %xmm0, %xmm10
movq 0x28(%rsp), %r13
movq 0x18(%rsp), %rax
movl %eax, %r15d
xorl %r12d, %r12d
movdqa %xmm9, 0x60(%rsp)
movdqa %xmm10, 0x50(%rsp)
cmpq $0x7, %r13
movl $0x7, %ebx
cmovbq %r13, %rbx
leaq (,%r12,8), %rbp
movb $0x0, 0xb(%rsp)
movl $0x1, %esi
movl $0x1, %edx
leaq 0xb(%rsp), %rdi
movq 0x20(%rsp), %rcx
callq 0x30d0
movdqa 0x50(%rsp), %xmm10
movdqa 0x60(%rsp), %xmm9
movdqa 0x1e68b(%rip), %xmm6    # 0x55090
cmpq %r14, %rbp
pcmpeqd %xmm7, %xmm7
movdqa 0x1e76b(%rip), %xmm8    # 0x55180
jge 0x36b5f
movl %r15d, %eax
addl $0x4, %ebx
andl $0xc, %ebx
notq %rbp
addq %r14, %rbp
cmpq $0x7, %rbp
movl $0x7, %ecx
cmovaeq %rcx, %rbp
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movzbl 0xb(%rsp), %edx
movq %rbp, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
pxor %xmm6, %xmm0
xorl %ecx, %ecx
movdqa 0x1e623(%rip), %xmm1    # 0x55080
movdqa 0x1e70b(%rip), %xmm2    # 0x55170
movdqa %xmm1, %xmm3
pxor %xmm6, %xmm3
movdqa %xmm3, %xmm4
pcmpgtd %xmm0, %xmm4
pcmpeqd %xmm0, %xmm3
pshufd $0xf5, %xmm3, %xmm5     # xmm5 = xmm3[1,1,3,3]
pand %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm3     # xmm3 = xmm4[1,1,3,3]
por %xmm5, %xmm3
movd %xmm3, %esi
notl %esi
testb $0x1, %sil
je 0x36aac
btl %ecx, %edx
movdqa %xmm10, %xmm4
jae 0x36aa6
movdqa %xmm9, %xmm4
movd %xmm4, -0xc(%rax,%rcx,4)
pxor %xmm7, %xmm3
pextrw $0x4, %xmm3, %esi
testb $0x1, %sil
je 0x36ad5
movl %edx, %esi
shrl %cl, %esi
movdqa %xmm10, %xmm3
testb $0x2, %sil
je 0x36acf
movdqa %xmm9, %xmm3
movd %xmm3, -0x8(%rax,%rcx,4)
movdqa %xmm2, %xmm3
pxor %xmm6, %xmm3
movdqa %xmm3, %xmm4
pcmpgtd %xmm0, %xmm4
pcmpeqd %xmm0, %xmm3
pshufd $0xf5, %xmm3, %xmm5     # xmm5 = xmm3[1,1,3,3]
pand %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm3     # xmm3 = xmm4[1,1,3,3]
por %xmm5, %xmm3
pxor %xmm7, %xmm3
pextrw $0x0, %xmm3, %esi
testb $0x1, %sil
je 0x36b24
movl %edx, %esi
shrl %cl, %esi
movdqa %xmm10, %xmm4
testb $0x4, %sil
je 0x36b1e
movdqa %xmm9, %xmm4
movd %xmm4, -0x4(%rax,%rcx,4)
pextrw $0x4, %xmm3, %esi
testb $0x1, %sil
je 0x36b48
movl %edx, %esi
shrl %cl, %esi
movdqa %xmm10, %xmm3
testb $0x8, %sil
je 0x36b43
movdqa %xmm9, %xmm3
movd %xmm3, (%rax,%rcx,4)
addq $0x4, %rcx
paddq %xmm8, %xmm1
paddq %xmm8, %xmm2
cmpq %rcx, %rbx
jne 0x36a65
incq %r12
addl $0x8, %r15d
addq $-0x8, %r13
cmpq 0x48(%rsp), %r12
jne 0x369bc
movq 0x38(%rsp), %rcx
incq %rcx
movq 0x30(%rsp), %r15
movq 0x18(%rsp), %rax
addl %r15d, %eax
movq %rax, 0x18(%rsp)
cmpq 0x10(%rsp), %rcx
jne 0x36955
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq