// File: /workspace/github_c_makefile_star2_O0/xtanitfy[P]Murphy/src/net.c
// Function: NET_autoCreateBlob
int NET_autoCreateBlob(NET_PARA_s *pNetPara,BLOB_s *pPrevData,BLOB_s **pData,int num,int h,int w,int kh,int kw,
								BLOB_s **pK,BLOB_s **pB)
{
	CHECK_EXPR_RET(pPrevData == NULL || pData == NULL,-1);
	CHECK_EXPR_RET(pK == NULL || pB == NULL,-1);
	BLOB_s *pBlob = NULL;
	
	int ret = BLOB_create(pData,pNetPara->batchsize,num,
								h,w,TRUE);
	CHECK_EXPR_RET(ret != 0,-1);
	pBlob = (*pData);
	pBlob->type = BLOB_TYPE_DATA;

	ret = BLOB_create(pK,num,pPrevData->channelSize,
							kh,kw,TRUE);
	CHECK_EXPR_RET(ret != 0,-1);
	pBlob = (*pK);
	pBlob->type = BLOB_TYPE_WEIGHT;

	ret = BLOB_create(pB,1,num,1,1,TRUE);
	pBlob = (*pB);
	pBlob->type = BLOB_TYPE_BIAS;
	
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x51cb
cmpq $0x0, -0x20(%rbp)
jne 0x51f8
leaq 0x5e43(%rip), %rdi      # 0xb015
leaq 0x6204(%rip), %rsi      # 0xb3dd
leaq 0x62b0(%rip), %rdx      # 0xb490
movl $0x194, %ecx            # imm = 0x194
movb $0x0, %al
callq 0x1030
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5355
cmpq $0x0, 0x20(%rbp)
je 0x5206
cmpq $0x0, 0x28(%rbp)
jne 0x5233
leaq 0x5e08(%rip), %rdi      # 0xb015
leaq 0x61c9(%rip), %rsi      # 0xb3dd
leaq 0x6275(%rip), %rdx      # 0xb490
movl $0x195, %ecx            # imm = 0x195
movb $0x0, %al
callq 0x1030
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5355
movq $0x0, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq 0x210(%rax), %rsi
movslq -0x24(%rbp), %rdx
movslq -0x28(%rbp), %rcx
movslq -0x2c(%rbp), %r8
movl $0x1, %r9d
callq 0x2280
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x5297
leaq 0x5da4(%rip), %rdi      # 0xb015
leaq 0x6165(%rip), %rsi      # 0xb3dd
leaq 0x6211(%rip), %rdx      # 0xb490
movl $0x19a, %ecx            # imm = 0x19A
movb $0x0, %al
callq 0x1030
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5355
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq 0x20(%rbp), %rdi
movslq -0x24(%rbp), %rsi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movslq 0x10(%rbp), %rcx
movslq 0x18(%rbp), %r8
movl $0x1, %r9d
callq 0x2280
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x5302
leaq 0x5d36(%rip), %rdi      # 0xb015
leaq 0x60f7(%rip), %rsi      # 0xb3dd
leaq 0x61a3(%rip), %rdx      # 0xb490
movl $0x1a0, %ecx            # imm = 0x1A0
movb $0x0, %al
callq 0x1030
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5355
movq 0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl $0x1, (%rax)
movq 0x28(%rbp), %rdi
movslq -0x24(%rbp), %rdx
movl $0x1, %r8d
movl $0x1, %r9d
movq %r8, %rsi
movq %r8, %rcx
callq 0x2280
movl %eax, -0x3c(%rbp)
movq 0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl $0x2, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop