LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/examples/mnist/mnist_train.c
// Function: MnistTrainRun
int MnistTrainRun(SIZE_s *pTrainXSize,SIZE_s *pTrainYSize)
{
	int ret = -1;
	int batchCnt = pTrainXSize->n / netTrainPara.batchsize;
    //int batchCnt = 1;
	int xdim = netTrainPara.batchsize * pTrainXSize->h * pTrainXSize->w;
	int ydim = netTrainPara.batchsize * pTrainYSize->h * pTrainYSize->w;
	int testCnt = 0;

	for (int i = 0;i < batchCnt;i++){
		//CalTimeStart();
		printf("=======Batches:%d==========\n",i);
		NET_setInputData(pNetTrain,gTrainX + xdim * i,xdim);
		NET_setTableYData(pNetTrain,gTrainY + ydim * i,ydim);

		//CalTimeStart();
		ret = NET_Forward(pNetTrain);
		CHECK_EXPR_RET(ret != 0,-1);
		//CalTimeEnd("NET_Forward");
		
		//CalTimeStart();
		ret = NET_Backward(pNetTrain);
		CHECK_EXPR_RET(ret != 0,-1);
		//CalTimeEnd("NET_Backward");

		//CalTimeStart();
		ret = NET_Update(pNetTrain);
		CHECK_EXPR_RET(ret != 0,-1);
		//CalTimeEnd("NET_Update");

		double loss = NET_GetLoss(pNetTrain,"output");
		printf("Output loss:%lf\n",loss);
		//CalTimeEnd("all");

	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x8(%rdi), %eax
movl 0x9e20(%rip), %ebp      # 0xb4e8
cltd
idivl %ebp
movl (%rdi), %r15d
imull %ebp, %r15d
imull 0x4(%rdi), %r15d
imull (%rsi), %ebp
imull 0x4(%rsi), %ebp
movslq %ebp, %rcx
movslq %r15d, %rdx
testl %eax, %eax
movl $0x0, %r12d
movl %eax, 0x4(%rsp)
cmovgl %eax, %r12d
shlq $0x3, %rdx
movq %rdx, 0x8(%rsp)
shlq $0x3, %rcx
movq %rcx, 0x10(%rsp)
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpq %r14, %r12
je 0x17eb
leaq 0x598e(%rip), %rdi      # 0x70ac
movl %r14d, %esi
xorl %eax, %eax
callq 0x1030
movq 0x9ba1(%rip), %rdi      # 0xb2d0
movq 0x9dd2(%rip), %rsi      # 0xb508
addq %rbx, %rsi
movl %r15d, %edx
callq 0x3250
movq 0x9b88(%rip), %rdi      # 0xb2d0
movq 0x9dc1(%rip), %rsi      # 0xb510
addq %r13, %rsi
movl %ebp, %edx
callq 0x3260
movq 0x9b70(%rip), %rdi      # 0xb2d0
callq 0x3714
testl %eax, %eax
jne 0x17bc
movq 0x9b60(%rip), %rdi      # 0xb2d0
callq 0x3727
testl %eax, %eax
jne 0x17c3
movq 0x9b50(%rip), %rdi      # 0xb2d0
callq 0x2d3a
testl %eax, %eax
jne 0x17ca
movq 0x9b40(%rip), %rdi      # 0xb2d0
leaq 0x590e(%rip), %rsi      # 0x70a5
callq 0x3600
leaq 0x5934(%rip), %rdi      # 0x70d7
movb $0x1, %al
callq 0x1030
incq %r14
addq 0x8(%rsp), %rbx
addq 0x10(%rsp), %r13
jmp 0x170e
movl $0xf0, %ecx
jmp 0x17cf
movl $0xf5, %ecx
jmp 0x17cf
movl $0xfa, %ecx
leaq 0x586f(%rip), %rdi      # 0x7045
leaq 0x587e(%rip), %rsi      # 0x705b
leaq 0x58e5(%rip), %rdx      # 0x70c9
xorl %eax, %eax
callq 0x1030
movslq 0x4(%rsp), %rcx
xorl %eax, %eax
cmpq %rcx, %r14
setl %al
negl %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/examples/mnist/mnist_read_input.c
// Function: Mnist_PrintSize
void Mnist_PrintSize(char *name,SIZE_s *pSize)
{
	printf("======name:%s:\n",name);
	printf("pSize->h:%d\n",pSize->h);
	printf("pSize->w:%d\n",pSize->w);
	printf("pSize->n:%d\n",pSize->n);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x57da(%rip), %rdi      # 0x7168
xorl %eax, %eax
callq 0x1030
movl (%rbx), %esi
leaq 0x57da(%rip), %rdi      # 0x7178
xorl %eax, %eax
callq 0x1030
movl 0x4(%rbx), %esi
leaq 0x57d6(%rip), %rdi      # 0x7185
xorl %eax, %eax
callq 0x1030
movl 0x8(%rbx), %esi
leaq 0x57d2(%rip), %rdi      # 0x7192
xorl %eax, %eax
popq %rbx
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/examples/mnist/mnist_read_input.c
// Function: Mnist_GetData
int Mnist_GetData(char *file,double **data,SIZE_s *pSize)
{
	getSizeFromFilename(file,pSize);
	
	int allSize = pSize->w*pSize->h*pSize->n;
	*data = (double *)malloc(sizeof(double)*allSize);
	int ret = readMatFromFile(file,*data,allSize);
	CHECK_EXPR_RET(ret != 0,-1);
	
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
callq 0x1a3d
movslq 0x4(%rbx), %rax
movslq (%rbx), %rcx
imulq %rax, %rcx
movslq 0x8(%rbx), %rbx
imulq %rcx, %rbx
movq %rbx, %rdi
shlq $0x3, %rdi
callq 0x10e0
movq %rax, (%r14)
movq %r15, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x1acc
testl %eax, %eax
je 0x1a35
leaq 0x562d(%rip), %rdi      # 0x7045
leaq 0x5780(%rip), %rsi      # 0x719f
leaq 0x578c(%rip), %rdx      # 0x71b2
pushq $0x39
popq %rcx
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
jmp 0x1a37
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/examples/mnist/mnist_read_input.c
// Function: getSizeFromFilename
static int getSizeFromFilename(char *file,SIZE_s *pSize)
{
	char buf[256];
	memcpy(buf,file,strlen(file)+1);
	
	char *ptr = strrchr(buf,'_');
	pSize->n = atoi(ptr+1);
	*ptr = '*';
	
	ptr = strrchr(buf,'_');
	pSize->w = atoi(ptr+1);
	*ptr = '*';
	
	ptr = strrchr(buf,'_');
	pSize->h = atoi(ptr+1);
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rsi, %rbx
movq %rdi, %r15
callq 0x1060
leaq 0x1(%rax), %rdx
movq %rsp, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x10a0
pushq $0x5f
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x10b0
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0x1140
movl %eax, 0x8(%rbx)
movb $0x2a, %r12b
movb %r12b, (%r15)
movq %r14, %rdi
movl %ebp, %esi
callq 0x10b0
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0x1140
movl %eax, 0x4(%rbx)
movb %r12b, (%r15)
movq %r14, %rdi
movl %ebp, %esi
callq 0x10b0
leaq 0x1(%rax), %rdi
callq 0x1140
movl %eax, (%rbx)
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/examples/mnist/mnist_read_input.c
// Function: readMatFromFile
static int readMatFromFile(char *file,double *data,int size)
{
	FILE *fp = fopen(file,"rb");
	if (fp == NULL) {
		printf("fopen error!\n");
		return -1;
	}
	
	int nread = fread(data,sizeof(double),size,fp);
	if (nread != size) {
		printf("read error,size:%d needreadsize:%d\n",nread,size);
		return -1;
	} else {
		//printf("read success!\n");
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
leaq 0x570f(%rip), %rsi      # 0x71ec
callq 0x10c0
testq %rax, %rax
je 0x1b16
movslq %ebx, %r15
pushq $0x8
popq %rsi
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
callq 0x1120
xorl %ecx, %ecx
cmpl %r15d, %eax
je 0x1b25
leaq 0x56e6(%rip), %rdi      # 0x71ef
movl %eax, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x1030
jmp 0x1b22
leaq 0x56f6(%rip), %rdi      # 0x7213
callq 0x1130
pushq $-0x1
popq %rcx
movl %ecx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/examples/mnist/mnist_read_input.c
// Function: Mnist_dataNormalie
int Mnist_dataNormalie(double *pData,SIZE_s *pSize)
{
	int allSize = pSize->w*pSize->h*pSize->n;
	for (int i= 0;i < allSize;i++) {
		pData[i] /= (double)255; 
	}
	
	return 0;
}

// Assembly:
movl (%rsi), %eax
imull 0x4(%rsi), %eax
imull 0x8(%rsi), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
movsd 0x5446(%rip), %xmm0     # 0x7160
cmpq %rcx, %rax
je 0x1d32
movsd (%rdi,%rcx,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rdi,%rcx,8)
incq %rcx
jmp 0x1d1a
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/functions.c
// Function: weightInit
int weightInit(BLOB_s *k)
{
	double arr[][5]= {
		{0.1667,0.0971,0.0427,-0.0349,-0.1637},
        { -0.0996,-0.0161,0.1081,0.1613,-0.0545},
        {0.0396,-0.1783,0.1562,0.1544,0.1160},
        {-0.0052,0.1190,0.0882,-0.0332,-0.1815},
        {0.1449,-0.0205,-0.1199,0.1458,-0.1337}
	};

	BLOB_DATA_PTR(k,ptr);

	int outputNum = k->numSize;
	int inputNum = k->channelSize;
	int sectionY = k->heightSize;
	int sectionX = k->widthSize;
	
	/*��ʱ��������*/
	CHECK_EXPR_RET(sectionY != 5,-1);
	CHECK_EXPR_RET(sectionX != 5,-1);
	
	for (int oy = 0;oy < outputNum;oy++) {	
		for (int ix = 0;ix < inputNum;ix++) {
			for (int y = 0;y < sectionY;y++) {	
				for (int x = 0;x  < sectionX;x++) {
					ptr[oy][ix][y][x] = arr[y][x];
				}
			}
		}
	}
	

	//printf("weightInit OK!\n");
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x20(%rdi), %rcx
cmpl $0x5, %ecx
jne 0x25a9
movq 0x28(%rdi), %rdx
cmpl $0x5, %edx
jne 0x25ad
movq 0x18(%rdi), %r10
movq 0x8(%rdi), %rsi
movl 0x10(%rdi), %edi
imulq %rdx, %rcx
movq %r10, %r8
imulq %rcx, %r8
xorl %eax, %eax
testl %r10d, %r10d
movl $0x0, %r9d
cmovgl %r10d, %r9d
testl %edi, %edi
cmovlel %eax, %edi
shlq $0x3, %r8
shlq $0x3, %rcx
shlq $0x3, %rdx
leaq 0x4dee(%rip), %r10      # 0x7340
xorl %r11d, %r11d
cmpq %rdi, %r11
je 0x25cf
movq %rsi, %rbx
xorl %r14d, %r14d
cmpq %r9, %r14
je 0x25a1
movq %r10, %r15
movq %rbx, %r12
xorl %r13d, %r13d
cmpq $0x5, %r13
je 0x2599
xorl %ebp, %ebp
cmpq $0x5, %rbp
je 0x258d
movsd (%r15,%rbp,8), %xmm0
movsd %xmm0, (%r12,%rbp,8)
incq %rbp
jmp 0x2576
incq %r13
addq %rdx, %r12
addq $0x28, %r15
jmp 0x256e
incq %r14
addq %rcx, %rbx
jmp 0x2560
incq %r11
addq %r8, %rsi
jmp 0x2555
pushq $0x28
jmp 0x25af
pushq $0x29
popq %rcx
leaq 0x4a8e(%rip), %rdi      # 0x7045
leaq 0x4e4a(%rip), %rsi      # 0x7408
leaq 0x4e4f(%rip), %rdx      # 0x7414
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/functions.c
// Function: biasInit
int biasInit(BLOB_s *b)
{
	BLOB_DATA_PTR(b,ptr);
	
	for (int i_batch = 0;i_batch < b->numSize;i_batch++) {
		for (int i_num = 0;i_num < b->channelSize;i_num++) {	
			for (int i_height = 0;i_height < b->heightSize;i_height++) {
				for (int i_width = 0;i_width < b->widthSize;i_width++) {	
					ptr[i_batch][i_num][i_height][i_width] = 0;
				}
			}
		}
	}
	
	
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rcx
movq 0x28(%rdi), %rdx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
movq %rdx, %r8
imulq %rcx, %r8
movq %r8, %r9
imulq %rax, %r9
shlq $0x3, %r9
shlq $0x3, %r8
leaq (,%rdx,8), %r10
xorl %r11d, %r11d
cmpq %rdi, %r11
je 0x2661
movq %rsi, %rbx
xorl %r14d, %r14d
cmpq %rax, %r14
je 0x2659
movq %rbx, %r15
xorl %r12d, %r12d
cmpq %rcx, %r12
je 0x2651
xorl %r13d, %r13d
cmpq %r13, %rdx
je 0x2649
andq $0x0, (%r15,%r13,8)
incq %r13
jmp 0x263a
incq %r12
addq %r10, %r15
jmp 0x2632
incq %r14
addq %r8, %rbx
jmp 0x2627
incq %r11
addq %r9, %rsi
jmp 0x261c
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/functions.c
// Function: functionLoss1
double functionLoss1(BLOB_s *pError)
{
	CHECK_EXPR_RET(pError == NULL,-1);

	double loss = 0.0;
	for (int i = 0;i < pError->count;i++) {
		loss += 0.5 * pError->data[i] * pError->data[i];
	}
	loss /= pError->numSize;

	return loss;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x26ce
movq 0x30(%rdi), %rax
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
movsd 0x4ca3(%rip), %xmm1     # 0x7328
cmpq %rcx, %rax
je 0x26a8
movq 0x8(%rdi), %rdx
movsd (%rdx,%rcx,8), %xmm2
movapd %xmm2, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm3, %xmm0
incq %rcx
jmp 0x2685
movsd 0x10(%rdi), %xmm1
unpcklps 0x4c4c(%rip), %xmm1     # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x4c54(%rip), %xmm1     # 0x7310
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
jmp 0x26f5
leaq 0x4970(%rip), %rdi      # 0x7045
leaq 0x4d2c(%rip), %rsi      # 0x7408
leaq 0x4d3c(%rip), %rdx      # 0x741f
pushq $0x4f
popq %rcx
xorl %eax, %eax
callq 0x1030
movsd 0x4c3b(%rip), %xmm0     # 0x7330
popq %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NET_addLayer
int NET_addLayer(NET_s *pNet,LAYER_PARA_s *pLayerPara)
{
	CHECK_EXPR_RET(pNet == NULL,-1);
	CHECK_EXPR_RET(pLayerPara == NULL,-1);

	LAYER_s *pLayer = (LAYER_s *)malloc(sizeof(LAYER_s));
	CHECK_EXPR_RET(pLayer == NULL,-1);
	memset(pLayer,'\0',sizeof(LAYER_s));

	char *typename = pLayerPara->typeName;
	BOOL isFind = FALSE;
	int i = 0;
	for (i = 0;i < DIM_OF(gLayerRegInfo);i++) {
		if (!strcmp(gLayerRegInfo[i].typename,typename)) {
			isFind = TRUE;
			break;
		}
	}
	CHECK_EXPR_RET(isFind == FALSE,-1);
	pLayer->init = gLayerRegInfo[i].funcInit;
	pLayer->forward = gLayerRegInfo[i].funcForward;
	pLayer->backward = gLayerRegInfo[i].funcBackward;
	LAYER_PARA_s *para = (LAYER_PARA_s *)malloc(sizeof(LAYER_PARA_s));
	CHECK_EXPR_RET(para == NULL,-1);
	memcpy(para,pLayerPara,sizeof(LAYER_PARA_s));	
	pLayer->para = para;
	
	int ret = NET_Register(pNet,pLayer);
	CHECK_EXPR_RET(ret != 0,-1);

	printf("Add %s layer ok!\n",pLayer->para->name);
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x27ce
movq %rsi, %r14
testq %rsi, %rsi
je 0x27e7
movq %rdi, %rbx
pushq $0x1
popq %rdi
movl $0x128, %esi            # imm = 0x128
callq 0x1080
testq %rax, %rax
je 0x2800
movq %rax, %r15
leaq 0x4(%r14), %r12
xorl %edi, %edi
leaq 0x89cf(%rip), %r13      # 0xb110
leaq 0x58(%rdi), %rbp
cmpq $0x210, %rbp            # imm = 0x210
je 0x2819
addq %r13, %rdi
movq %r12, %rsi
callq 0x1100
movq %rbp, %rdi
testl %eax, %eax
jne 0x2741
movups -0x18(%r13,%rbp), %xmm0
movups %xmm0, 0x48(%r15)
movq -0x8(%r13,%rbp), %rax
movq %rax, 0x58(%r15)
movl $0x2b8, %edi            # imm = 0x2B8
callq 0x10e0
testq %rax, %rax
je 0x2832
movq %rax, %r12
movl $0x2b8, %edx            # imm = 0x2B8
movq %rax, %rdi
movq %r14, %rsi
callq 0x10a0
movq %r12, 0x8(%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x287f
testl %eax, %eax
je 0x2865
leaq 0x4889(%rip), %rdi      # 0x7045
leaq 0x4c6a(%rip), %rsi      # 0x742d
leaq 0x4c69(%rip), %rdx      # 0x7433
pushq $0x23
jmp 0x2849
leaq 0x4870(%rip), %rdi      # 0x7045
leaq 0x4c51(%rip), %rsi      # 0x742d
leaq 0x4c50(%rip), %rdx      # 0x7433
pushq $0x9
jmp 0x2849
leaq 0x4857(%rip), %rdi      # 0x7045
leaq 0x4c38(%rip), %rsi      # 0x742d
leaq 0x4c37(%rip), %rdx      # 0x7433
pushq $0xa
jmp 0x2849
leaq 0x483e(%rip), %rdi      # 0x7045
leaq 0x4c1f(%rip), %rsi      # 0x742d
leaq 0x4c1e(%rip), %rdx      # 0x7433
pushq $0xd
jmp 0x2849
leaq 0x4825(%rip), %rdi      # 0x7045
leaq 0x4c06(%rip), %rsi      # 0x742d
leaq 0x4c05(%rip), %rdx      # 0x7433
pushq $0x19
jmp 0x2849
leaq 0x480c(%rip), %rdi      # 0x7045
leaq 0x4bed(%rip), %rsi      # 0x742d
leaq 0x4bec(%rip), %rdx      # 0x7433
pushq $0x1e
popq %rcx
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r15), %rsi
addq $0x44, %rsi
leaq 0x4bcc(%rip), %rdi      # 0x7440
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1030
jmp 0x2854
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NET_create
NET_s *NET_create(NET_PARA_s *pNetPara)
{
	CHECK_EXPR_RET(pNetPara == NULL,NULL);
	
	NET_s *pNet = (NET_s *)malloc(sizeof(NET_s));
	CHECK_EXPR_RET(pNet == NULL,NULL);

	pNet->pMTree = MTREE_create(pNet);
	CHECK_EXPR_RET(pNet->pMTree == NULL,NULL);
	
	memcpy(&pNet->para, pNetPara, sizeof(pNet->para));

	for (int i = 0;i < LAYERS_MAX_N;i++) {
		pNet->layers[i] = NULL;
	} 
	pNet->layerId = 0;

	int ret = BLOB_create(&pNet->pTableY,pNetPara->batchsize,pNetPara->classifyNum,1,1,FALSE);
	CHECK_EXPR_RET(ret != 0,NULL);

	pNet->para.pTableY = pNet->pTableY;
	printf("NET_init!\n");
	
	return pNet;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2c6d
movq %rdi, %r14
movl $0x2248, %edi           # imm = 0x2248
callq 0x10e0
testq %rax, %rax
je 0x2cd7
movq %rax, %rbx
movq %rax, %rdi
callq 0x3ffc
movq %rax, 0x230(%rbx)
testq %rax, %rax
je 0x2cf2
movl $0x230, %edx            # imm = 0x230
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10a0
pushq $0x48
popq %rax
cmpq $0x448, %rax            # imm = 0x448
je 0x2c8b
andq $0x0, (%rbx,%rax,8)
incq %rax
jmp 0x2c5b
leaq 0x43d1(%rip), %rdi      # 0x7045
leaq 0x47b2(%rip), %rsi      # 0x742d
leaq 0x47d0(%rip), %rdx      # 0x7452
xorl %ebx, %ebx
pushq $0x2c
jmp 0x2d0b
andl $0x0, 0x2240(%rbx)
movq %rbx, %rdi
addq $0x238, %rdi            # imm = 0x238
movslq 0x210(%r14), %rsi
movslq 0x21c(%r14), %rdx
pushq $0x1
popq %rcx
movq %rcx, %r8
xorl %r9d, %r9d
callq 0x1d38
testl %eax, %eax
je 0x2d1e
leaq 0x4382(%rip), %rdi      # 0x7045
leaq 0x4763(%rip), %rsi      # 0x742d
leaq 0x4781(%rip), %rdx      # 0x7452
xorl %ebx, %ebx
pushq $0x3c
jmp 0x2d0b
leaq 0x4367(%rip), %rdi      # 0x7045
leaq 0x4748(%rip), %rsi      # 0x742d
leaq 0x4766(%rip), %rdx      # 0x7452
xorl %ebx, %ebx
pushq $0x2f
jmp 0x2d0b
leaq 0x434c(%rip), %rdi      # 0x7045
leaq 0x472d(%rip), %rsi      # 0x742d
leaq 0x474b(%rip), %rdx      # 0x7452
xorl %ebx, %ebx
pushq $0x32
popq %rcx
xorl %eax, %eax
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x238(%rbx), %rax
movq %rax, 0x228(%rbx)
leaq 0x483b(%rip), %rdi      # 0x756e
callq 0x1130
jmp 0x2d13
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NETForwardPrint
static int NETForwardPrint(void *usr,int idCurr,int *idPrev,int nIdPrev)
{
	NET_s *pNet = (NET_s *)usr;
	CHECK_EXPR_RET(pNet == NULL,-1);
	
	LAYER_s *pLayerCurr =  pNet->layers[idCurr];
	CHECK_EXPR_RET(pLayerCurr == NULL,-1);
	
	printf("====>%s nNext:%d \n",pLayerCurr->para->name,pLayerCurr->nNext);
	for (int i = 0;i < nIdPrev;i++) {
		printf("**%s-->%s:\n",pNet->layers[idPrev[i]]->para->name,pLayerCurr->para->name);
	}
	CHECK_EXPR_RET(pLayerCurr->pData == NULL,-1);
	BLOB_printPara(pLayerCurr->pData);
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x30bc
movq %rdi, %r15
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %r13
testq %r13, %r13
je 0x30d8
movl %ecx, %ebx
movq %rdx, %r14
movq 0x8(%r13), %rsi
addq $0x44, %rsi
movl 0xa0(%r13), %edx
leaq 0x4485(%rip), %rdi      # 0x74e6
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x1030
testl %ebx, %ebx
cmovlel %r12d, %ebx
leaq 0x4481(%rip), %r12      # 0x74f9
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x30aa
movslq (%r14,%rbp,4), %rax
movq 0x240(%r15,%rax,8), %rax
movq 0x8(%rax), %rsi
addq $0x44, %rsi
movq 0x8(%r13), %rdx
addq $0x44, %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x1030
incq %rbp
jmp 0x307a
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0x30f4
callq 0x226d
xorl %eax, %eax
jmp 0x3118
leaq 0x3f82(%rip), %rdi      # 0x7045
leaq 0x4363(%rip), %rsi      # 0x742d
leaq 0x4405(%rip), %rdx      # 0x74d6
movl $0x8b, %ecx
jmp 0x310e
leaq 0x3f66(%rip), %rdi      # 0x7045
leaq 0x4347(%rip), %rsi      # 0x742d
leaq 0x43e9(%rip), %rdx      # 0x74d6
movl $0x8e, %ecx
jmp 0x310e
leaq 0x3f4a(%rip), %rdi      # 0x7045
leaq 0x432b(%rip), %rsi      # 0x742d
leaq 0x43cd(%rip), %rdx      # 0x74d6
movl $0x94, %ecx
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NETBackwardPrint
static int NETBackwardPrint(void *usr,int idCurr,int *idNext,int nIdNext)
{
	NET_s *pNet = (NET_s *)usr;
	CHECK_EXPR_RET(pNet == NULL,-1);

	LAYER_s *pLayerCurr =  pNet->layers[idCurr];
	CHECK_EXPR_RET(pLayerCurr == NULL,-1);

	printf("<====%s:\n",pLayerCurr->para->name);
	for (int i = 0;i < nIdNext;i++) {
		printf("**%s<--%s:\n",pLayerCurr->para->name,pNet->layers[idNext[i]]->para->name);
	}
	CHECK_EXPR_RET(pLayerCurr->pData == NULL,-1);
	BLOB_printPara(pLayerCurr->pData);
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x31e5
movq %rdi, %r15
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %r13
testq %r13, %r13
je 0x3201
movl %ecx, %ebx
movq %rdx, %r14
movq 0x8(%r13), %rsi
addq $0x44, %rsi
leaq 0x438c(%rip), %rdi      # 0x7516
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x1030
testl %ebx, %ebx
cmovlel %r12d, %ebx
leaq 0x437f(%rip), %r12      # 0x7520
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x31d3
movq 0x8(%r13), %rsi
addq $0x44, %rsi
movslq (%r14,%rbp,4), %rax
movq 0x240(%r15,%rax,8), %rax
movq 0x8(%rax), %rdx
addq $0x44, %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x1030
incq %rbp
jmp 0x31a3
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0x321d
callq 0x226d
xorl %eax, %eax
jmp 0x3241
leaq 0x3e59(%rip), %rdi      # 0x7045
leaq 0x423a(%rip), %rsi      # 0x742d
leaq 0x430b(%rip), %rdx      # 0x7505
movl $0xa3, %ecx
jmp 0x3237
leaq 0x3e3d(%rip), %rdi      # 0x7045
leaq 0x421e(%rip), %rsi      # 0x742d
leaq 0x42ef(%rip), %rdx      # 0x7505
movl $0xa6, %ecx
jmp 0x3237
leaq 0x3e21(%rip), %rdi      # 0x7045
leaq 0x4202(%rip), %rsi      # 0x742d
leaq 0x42d3(%rip), %rdx      # 0x7505
movl $0xac, %ecx
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NETLayerInit
static int NETLayerInit(NET_s *pNet,int idCurr,int *idPrev,int nIdPrev)
{
	CHECK_EXPR_RET(pNet->layers[idCurr]->init == NULL,-1);
	for (int i = 0;i < nIdPrev;i++) {
		 pNet->layers[idCurr]->pPrev[i] = pNet->layers[idPrev[i]];
	}
	CHECK_EXPR_RET(pNet->layers[idCurr]->init == NULL,-1);
	int ret = pNet->layers[idCurr]->init(&pNet->para,pNet->layers[idCurr]);
	CHECK_EXPR_RET(ret != 0,-1);
	
	return 0;
}

// Assembly:
pushq %rax
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %rsi
cmpq $0x0, 0x48(%rsi)
je 0x32d4
xorl %esi, %esi
testl %ecx, %ecx
cmovlel %esi, %ecx
cmpq %rsi, %rcx
je 0x32b4
movslq (%rdx,%rsi,4), %r8
movq 0x240(%rdi,%r8,8), %r8
movq 0x240(%rdi,%rax,8), %r9
movq %r8, 0xa8(%r9,%rsi,8)
incq %rsi
jmp 0x328e
movq 0x240(%rdi,%rax,8), %rsi
movq 0x48(%rsi), %rax
testq %rax, %rax
je 0x32db
callq *%rax
movl $0xc1, %ecx
testl %eax, %eax
jne 0x32e0
xorl %eax, %eax
jmp 0x32ff
movl $0xbb, %ecx
jmp 0x32e0
movl $0xbf, %ecx
leaq 0x3d5e(%rip), %rdi      # 0x7045
leaq 0x413f(%rip), %rsi      # 0x742d
leaq 0x4237(%rip), %rdx      # 0x752c
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NET_test
int NET_test(NET_s *pNet)
{
	CHECK_EXPR_RET(pNet == NULL,-1);

	printf(">>>>NET_test:\n");
	int ret = MTREE_forward(pNet->pMTree,NETForward);
	CHECK_EXPR_RET(ret != 0,-1);

	int idEnd[LAYER_MAX_MUX];
	int nEnd;
	MTREE_getEndIds(pNet->pMTree,idEnd,&nEnd);
	CHECK_EXPR_RET(nEnd <= 0 || nEnd > LAYER_MAX_MUX,-1);
	LAYER_s *pLayer = NULL;
	for (int i = 0;i < nEnd;i++) {
		pLayer = pNet->layers[idEnd[i]];
		CHECK_EXPR_RET(pLayer == NULL,-1);
//		printf("%s test out:\n",pLayer->name);
		BLOB_print(pLayer->pData);
	}
	
	return 0;
 }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
testq %rdi, %rdi
je 0x3351
movq %rdi, %rbx
leaq 0x4282(%rip), %rdi      # 0x759b
callq 0x1130
movq 0x230(%rbx), %rdi
leaq 0xef(%rip), %rsi        # 0x341b
callq 0x438d
testl %eax, %eax
je 0x336d
leaq 0x3d09(%rip), %rdi      # 0x7045
leaq 0x40ea(%rip), %rsi      # 0x742d
leaq 0x4142(%rip), %rdx      # 0x748c
movl $0x153, %ecx            # imm = 0x153
jmp 0x33ab
leaq 0x3ced(%rip), %rdi      # 0x7045
leaq 0x40ce(%rip), %rsi      # 0x742d
leaq 0x4126(%rip), %rdx      # 0x748c
movl $0x14f, %ecx            # imm = 0x14F
jmp 0x33ab
movq 0x230(%rbx), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %r14
movq %r14, %rdx
callq 0x456b
movl (%r14), %eax
leal -0x9(%rax), %ecx
cmpl $-0x8, %ecx
jae 0x33bf
leaq 0x3cad(%rip), %rdi      # 0x7045
leaq 0x408e(%rip), %rsi      # 0x742d
leaq 0x40e6(%rip), %rdx      # 0x748c
movl $0x158, %ecx            # imm = 0x158
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorl %r14d, %r14d
movslq %eax, %r15
cmpq %r15, %r14
jge 0x340f
movslq 0x10(%rsp,%r14,4), %rax
movq 0x240(%rbx,%rax,8), %rax
testq %rax, %rax
je 0x33ee
movq 0x10(%rax), %rdi
callq 0x231b
incq %r14
movl 0xc(%rsp), %eax
jmp 0x33c2
leaq 0x3c50(%rip), %rdi      # 0x7045
leaq 0x4031(%rip), %rsi      # 0x742d
leaq 0x4089(%rip), %rdx      # 0x748c
movl $0x15c, %ecx            # imm = 0x15C
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
cmpq %r15, %r14
setl %al
negl %eax
jmp 0x33b5
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NET_GetLoss
double NET_GetLoss(NET_s *pNet,char *layerName)
{
	CHECK_EXPR_RET(layerName == NULL,-1);

	int idEnd[LAYER_MAX_MUX];
	int nEnd;

	MTREE_getEndIds(pNet->pMTree,idEnd,&nEnd);
	CHECK_EXPR_RET(nEnd <= 0,-1);
	LAYER_s *pLayer = NULL;
	double  loss = 0;
	for (int i = 0;i < nEnd;i++) {
		pLayer = pNet->layers[idEnd[i]];
		if (strcmp(layerName,pLayer->para->name) == 0) {
			CHECK_EXPR_RET(pLayer->pError == NULL,-1);
			CHECK_EXPR_RET(pNet->para.loss_function == NULL,-1);
			loss = pNet->para.loss_function(pLayer->pError);
			break;
		}
	}

	return loss;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rsi, %rsi
je 0x3684
movq %rsi, %r14
movq %rdi, %rbx
movq 0x230(%rdi), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %r15
movq %r15, %rdx
callq 0x456b
movslq (%r15), %r15
testq %r15, %r15
jle 0x36a0
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x36bc
movslq 0x10(%rsp,%r12,4), %rax
movq 0x240(%rbx,%rax,8), %r13
movq 0x8(%r13), %rsi
addq $0x44, %rsi
movq %r14, %rdi
callq 0x1100
incq %r12
testl %eax, %eax
jne 0x363c
movq 0xf8(%r13), %rdi
testq %rdi, %rdi
je 0x36c1
movq 0x220(%rbx), %rax
testq %rax, %rax
je 0x36dd
callq *%rax
jmp 0x3706
leaq 0x39ba(%rip), %rdi      # 0x7045
leaq 0x3d9b(%rip), %rsi      # 0x742d
leaq 0x3dfc(%rip), %rdx      # 0x7495
movl $0x166, %ecx            # imm = 0x166
jmp 0x36f7
leaq 0x399e(%rip), %rdi      # 0x7045
leaq 0x3d7f(%rip), %rsi      # 0x742d
leaq 0x3de0(%rip), %rdx      # 0x7495
movl $0x16c, %ecx            # imm = 0x16C
jmp 0x36f7
xorps %xmm0, %xmm0
jmp 0x3706
leaq 0x397d(%rip), %rdi      # 0x7045
leaq 0x3d5e(%rip), %rsi      # 0x742d
leaq 0x3dbf(%rip), %rdx      # 0x7495
movl $0x172, %ecx            # imm = 0x172
jmp 0x36f7
leaq 0x3961(%rip), %rdi      # 0x7045
leaq 0x3d42(%rip), %rsi      # 0x742d
leaq 0x3da3(%rip), %rdx      # 0x7495
movl $0x173, %ecx            # imm = 0x173
xorl %eax, %eax
callq 0x1030
movsd 0x3c2a(%rip), %xmm0     # 0x7330
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/net.c
// Function: NETBackward
static int NETBackward(void *usr,int idCurr,int *idNext,int nIdNext)
{
	NET_s *pNet = (NET_s *)usr;
	CHECK_EXPR_RET(pNet == NULL,-1);

	LAYER_s *pLayerCurr = pNet->layers[idCurr];
	CHECK_EXPR_RET(pLayerCurr == NULL,-1);

	CHECK_EXPR_RET(pLayerCurr->backward == NULL,-1);
	for (int i = 0;i < nIdNext;i++) {
		pLayerCurr->pNext[i] = pNet->layers[idNext[i]];
	}
	pLayerCurr->nNext = nIdNext;

	CHECK_EXPR_RET(pLayerCurr->backward == NULL,-1);
	return pLayerCurr->backward(&pNet->para,pLayerCurr);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x3783
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %rsi
testq %rsi, %rsi
je 0x37a8
movq 0x58(%rsi), %rax
testq %rax, %rax
je 0x37c4
xorl %r8d, %r8d
testl %ecx, %ecx
movl $0x0, %r9d
cmovgl %ecx, %r9d
cmpq %r8, %r9
je 0x379f
movslq (%rdx,%r8,4), %r10
movq 0x240(%rdi,%r10,8), %r10
movq %r10, 0x60(%rsi,%r8,8)
incq %r8
jmp 0x3768
leaq 0x38bb(%rip), %rdi      # 0x7045
leaq 0x3c9c(%rip), %rsi      # 0x742d
leaq 0x3dca(%rip), %rdx      # 0x7562
movl $0x105, %ecx            # imm = 0x105
jmp 0x37de
movl %ecx, 0xa0(%rsi)
popq %rcx
jmpq *%rax
leaq 0x3896(%rip), %rdi      # 0x7045
leaq 0x3c77(%rip), %rsi      # 0x742d
leaq 0x3da5(%rip), %rdx      # 0x7562
movl $0x108, %ecx            # imm = 0x108
jmp 0x37de
leaq 0x387a(%rip), %rdi      # 0x7045
leaq 0x3c5b(%rip), %rsi      # 0x742d
leaq 0x3d89(%rip), %rdx      # 0x7562
movl $0x10a, %ecx            # imm = 0x10A
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r13
testq %rsi, %rsi
setne %al
testq %rdx, %rdx
setne %dl
testb %dl, %al
jne 0x384d
leaq 0x3810(%rip), %rdi      # 0x7045
leaq 0x3bf1(%rip), %rsi      # 0x742d
leaq 0x3c5e(%rip), %rdx      # 0x74a1
movl $0x194, %ecx            # imm = 0x194
jmp 0x390f
movq 0x48(%rsp), %rbx
movq 0x40(%rsp), %r14
testq %r14, %r14
setne %al
testq %rbx, %rbx
setne %dl
testb %dl, %al
jne 0x3886
leaq 0x37d7(%rip), %rdi      # 0x7045
leaq 0x3bb8(%rip), %rsi      # 0x742d
leaq 0x3c25(%rip), %rdx      # 0x74a1
movl $0x195, %ecx            # imm = 0x195
jmp 0x390f
movq %rsi, %r12
movslq 0x210(%rdi), %rsi
movslq %ecx, %r15
movslq %r8d, %rcx
movslq %r9d, %r8
pushq $0x1
popq %r9
movq %r13, %rdi
movq %r15, %rdx
callq 0x1d38
testl %eax, %eax
je 0x38c8
leaq 0x3792(%rip), %rdi      # 0x7045
leaq 0x3b73(%rip), %rsi      # 0x742d
leaq 0x3be0(%rip), %rdx      # 0x74a1
movl $0x19a, %ecx            # imm = 0x19A
jmp 0x390f
movl 0x38(%rsp), %eax
movq (%r13), %rcx
andl $0x0, (%rcx)
movl 0x30(%rsp), %ecx
movq 0x18(%r12), %rdx
movslq %ecx, %rcx
movslq %eax, %r8
pushq $0x1
popq %r9
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d38
testl %eax, %eax
je 0x3923
leaq 0x3749(%rip), %rdi      # 0x7045
leaq 0x3b2a(%rip), %rsi      # 0x742d
leaq 0x3b97(%rip), %rdx      # 0x74a1
movl $0x1a0, %ecx            # imm = 0x1A0
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq (%r14), %rax
movl $0x1, (%rax)
pushq $0x1
popq %rcx
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %rcx, %rsi
movq %r15, %rdx
movq %rcx, %r8
callq 0x1d38
movq (%rbx), %rax
movl $0x2, (%rax)
xorl %eax, %eax
jmp 0x3919
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/layers/data_layer.c
// Function: DataLayerInit
int DataLayerInit(NET_PARA_s *pNetPara,LAYER_s *pLayer)
{
	CHECK_EXPR_RET(pLayer == NULL,-1);
	
	DATA_LAYER_PARA_s *layerPara = &pLayer->para->select.dataLayer;
	
	int ret = BLOB_create(&pLayer->pData,pNetPara->batchsize,\
						1,layerPara->wSize,layerPara->hSize,FALSE);
	CHECK_EXPR_RET(ret != 0,-1);


	return 0;
}

// Assembly:
pushq %rbx
testq %rsi, %rsi
je 0x566d
movq 0x8(%rsi), %rdx
addq $0x10, %rsi
movslq 0x210(%rdi), %rax
movslq 0x290(%rdx), %rcx
movslq 0x28c(%rdx), %r8
pushq $0x1
popq %rdx
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rax, %rsi
xorl %r9d, %r9d
callq 0x1d38
testl %eax, %eax
je 0x568f
pushq $0x14
jmp 0x566f
pushq $0xe
popq %rcx
leaq 0x19ce(%rip), %rdi      # 0x7045
leaq 0x2151(%rip), %rsi      # 0x77cf
leaq 0x2157(%rip), %rdx      # 0x77dc
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/layers/linear_layer.c
// Function: LinearLayerInit
int LinearLayerInit(NET_PARA_s *pNetPara,LAYER_s *pLayer)
{
	CHECK_EXPR_RET(pLayer == NULL,-1);
	BLOB_s *pPrevBlob = pLayer->pPrev[0]->pData;
	CHECK_EXPR_RET(pPrevBlob == NULL,-1);
	
	int size = pPrevBlob->channelSize * pPrevBlob->heightSize* pPrevBlob->widthSize;
	int ret = BLOB_create(&pLayer->pData,pNetPara->batchsize,size,
								1,1,TRUE);
	CHECK_EXPR_RET(ret != 0,-1);

	ret = BLOB_shapeLike(pLayer->pData,&pLayer->pDelta);
	CHECK_EXPR_RET(ret != 0,-1);

	return 0;
}

// Assembly:
pushq %rbx
testq %rsi, %rsi
je 0x56e4
movq %rsi, %rbx
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x56e8
movl 0x18(%rcx), %edx
leaq 0x10(%rbx), %rax
imull 0x20(%rcx), %edx
movslq 0x210(%rdi), %rsi
imull 0x28(%rcx), %edx
movslq %edx, %rdx
pushq $0x1
popq %rcx
pushq $0x1
popq %r9
movq %rax, %rdi
movq %rcx, %r8
callq 0x1d38
testl %eax, %eax
je 0x56ec
pushq $0x31
jmp 0x5702
pushq $0x2a
jmp 0x5702
pushq $0x2c
jmp 0x5702
movq 0x10(%rbx), %rdi
addq $0x28, %rbx
movq %rbx, %rsi
callq 0x208b
testl %eax, %eax
je 0x5724
pushq $0x34
popq %rcx
leaq 0x193b(%rip), %rdi      # 0x7045
leaq 0x20d9(%rip), %rsi      # 0x77ea
leaq 0x20e1(%rip), %rdx      # 0x77f9
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
popq %rbx
retq
xorl %eax, %eax
jmp 0x5722
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/layers/linear_layer.c
// Function: LinearLayerForward
int LinearLayerForward(NET_PARA_s *pNetPara,LAYER_s *pLayer)
{
	CHECK_EXPR_RET(pLayer == NULL,-1);
	
	BLOB_s *pPrevData = pLayer->pPrev[0]->pData;
	CHECK_EXPR_RET(pPrevData == NULL,-1);
	
	BLOB_DATA_PTR(pLayer->pData,ptrCurr);
	BLOB_DATA_PTR(pPrevData,ptrPrev);

	int cnt = 0;
	BLOB_s *pData = pLayer->pData;
	
	for (int i_batch = 0;i_batch < pData->numSize;i_batch++) {
		cnt = 0;
		for (int i_in = 0;i_in < pPrevData->channelSize;i_in++) {
			for (int i_w = 0; i_w < pPrevData->widthSize;i_w++) {
				for (int i_h = 0; i_h < pPrevData->heightSize;i_h++) {
					ptrCurr[i_batch][cnt++][0][0] = 
						ptrPrev[i_batch][i_in][i_h][i_w];
				}
			}
		}
	}
	
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rsi, %rsi
je 0x5836
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x583a
movq 0x10(%rsi), %rsi
movq 0x28(%rsi), %rcx
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %rdi
movq %rdi, 0x10(%rsp)
movq 0x8(%rax), %r12
movq 0x18(%rax), %r8
movq 0x20(%rax), %r9
movq 0x28(%rax), %r10
movq %r10, %r11
imulq %r9, %r11
negq %r9
movq %r11, %rax
imulq %r8, %rax
shlq $0x3, %rax
movq %rax, 0x8(%rsp)
shlq $0x3, %r11
leaq (,%r10,8), %r14
imulq 0x20(%rsi), %rcx
movq 0x18(%rsi), %rax
imulq %rcx, %rax
shlq $0x3, %rax
movq %rax, (%rsp)
shlq $0x3, %rcx
xorl %eax, %eax
cmpq 0x10(%rsp), %rax
je 0x5832
movq %rax, 0x18(%rsp)
xorl %r13d, %r13d
movq %r12, 0x20(%rsp)
xorl %esi, %esi
cmpq %r8, %r13
je 0x581a
movq %r12, %rdi
xorl %ebx, %ebx
cmpq %r10, %rbx
je 0x5812
movslq %esi, %r15
imulq %rcx, %r15
addq %rdx, %r15
movq %rdi, %rbp
xorl %eax, %eax
cmpq %rax, %r9
je 0x5807
movsd (%rbp), %xmm0
movsd %xmm0, (%r15)
decq %rax
addq %r14, %rbp
addq %rcx, %r15
jmp 0x57ed
subl %eax, %esi
incq %rbx
addq $0x8, %rdi
jmp 0x57d9
incq %r13
addq %r11, %r12
jmp 0x57cf
movq 0x18(%rsp), %rax
incq %rax
movq 0x20(%rsp), %r12
addq 0x8(%rsp), %r12
addq (%rsp), %rdx
jmp 0x57b9
xorl %eax, %eax
jmp 0x585c
pushq $0x3b
jmp 0x583c
pushq $0x3e
popq %rcx
leaq 0x1801(%rip), %rdi      # 0x7045
leaq 0x1f9f(%rip), %rsi      # 0x77ea
leaq 0x1fb7(%rip), %rdx      # 0x7809
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/layers/output_layer.c
// Function: OutputLayerInit
int OutputLayerInit(NET_PARA_s *pNetPara,LAYER_s *pLayer)
{
	CHECK_EXPR_RET(pLayer == NULL,-1);

	BLOB_s *pPrevBlob = pLayer->pPrev[0]->pData;
	CHECK_EXPR_RET(pPrevBlob == NULL,-1);

	OUTPUT_LAYER_PARA_s *pPara = &pLayer->para->select.outputLayer;

	NET_autoCreateBlob(pNetPara,pPrevBlob,&pLayer->pData,
						pPara->num,1,1,1,1,&pLayer->k,&pLayer->b);
	
	CHECK_EXPR_RET(pPara->weightInit == NULL,-1);
	pPara->weightInit(pLayer->k);
	
	CHECK_EXPR_RET(pPara->biasInit == NULL,-1);
	pPara->biasInit(pLayer->b);

	pLayer->k->type = BLOB_TYPE_WEIGHT;
	LOG_writeBlobToTxtFile("fw.txt",pLayer->k);	
	
	BLOB_shapeLike(pLayer->pData,&pLayer->pError);
	BLOB_shapeLike(pLayer->pData,&pLayer->pDelta);
	BLOB_shapeLike(pLayer->k,&pLayer->pDK);
	BLOB_shapeLike(pLayer->b,&pLayer->pDB);
	
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x5bbe
movq %rsi, %rbx
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x5bd7
movq 0x8(%rbx), %r14
leaq 0x10(%rbx), %rdx
movl 0x288(%r14), %ecx
leaq 0x18(%rbx), %r15
leaq 0x20(%rbx), %rax
pushq $0x1
popq %r8
movl %r8d, %r9d
pushq %rax
pushq %r15
pushq %r8
pushq %r8
callq 0x3812
addq $0x20, %rsp
movq 0x298(%r14), %rax
testq %rax, %rax
je 0x5bf0
movq (%r15), %rdi
callq *%rax
movq 0x2a0(%r14), %rax
testq %rax, %rax
je 0x5c09
movq 0x20(%rbx), %rdi
callq *%rax
movq 0x18(%rbx), %rsi
movl $0x1, (%rsi)
leaq 0x1cd4(%rip), %rdi      # 0x784f
callq 0x39ff
movq 0x10(%rbx), %rdi
leaq 0xf8(%rbx), %rsi
callq 0x208b
movq 0x10(%rbx), %rdi
leaq 0x28(%rbx), %rsi
callq 0x208b
movq 0x18(%rbx), %rdi
leaq 0x30(%rbx), %rsi
callq 0x208b
movq 0x20(%rbx), %rdi
addq $0x38, %rbx
movq %rbx, %rsi
callq 0x208b
xorl %eax, %eax
jmp 0x5c2b
leaq 0x1480(%rip), %rdi      # 0x7045
leaq 0x1c64(%rip), %rsi      # 0x7830
leaq 0x1c6c(%rip), %rdx      # 0x783f
pushq $0x26
jmp 0x5c20
leaq 0x1467(%rip), %rdi      # 0x7045
leaq 0x1c4b(%rip), %rsi      # 0x7830
leaq 0x1c53(%rip), %rdx      # 0x783f
pushq $0x29
jmp 0x5c20
leaq 0x144e(%rip), %rdi      # 0x7045
leaq 0x1c32(%rip), %rsi      # 0x7830
leaq 0x1c3a(%rip), %rdx      # 0x783f
pushq $0x30
jmp 0x5c20
leaq 0x1435(%rip), %rdi      # 0x7045
leaq 0x1c19(%rip), %rsi      # 0x7830
leaq 0x1c21(%rip), %rdx      # 0x783f
pushq $0x33
popq %rcx
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/xtanitfy[P]Murphy/src/layers/samp_layer.c
// Function: SampLayerInit
int SampLayerInit(NET_PARA_s *pNetPara,LAYER_s *pLayer)
{
	SAMP_LAYER_PARA_s *pPara = &pLayer->para->select.sampLayer;

	BLOB_s *pPrevBlob = pLayer->pPrev[0]->pData;
	CHECK_EXPR_RET(pPrevBlob->widthSize% pPara->stride != 0,-1);
	CHECK_EXPR_RET(pPrevBlob->heightSize% pPara->stride != 0,-1);

	int width =  pPrevBlob->widthSize/ pPara->stride;
	int height =  pPrevBlob->heightSize/ pPara->stride;

	int ret = BLOB_create(&pLayer->pData,pNetPara->batchsize,pPrevBlob->channelSize,\
			width,height,TRUE);
	CHECK_EXPR_RET(ret != 0,-1);
	
	ret = BLOB_shapeLike(pLayer->pData,&pLayer->pDelta);
	CHECK_EXPR_RET(ret != 0,-1);
	pLayer->sampScale = pPara->stride;

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rsi), %r14
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %r8
movq 0x28(%r8), %rax
movslq 0x28c(%r14), %rsi
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x6157
leaq 0xf03(%rip), %rdi       # 0x7045
leaq 0x1734(%rip), %rsi      # 0x787d
leaq 0x173a(%rip), %rdx      # 0x788a
pushq $0x2e
jmp 0x61e7
movq %rax, %rcx
movq 0x20(%r8), %rax
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x6181
leaq 0xed6(%rip), %rdi       # 0x7045
leaq 0x1707(%rip), %rsi      # 0x787d
leaq 0x170d(%rip), %rdx      # 0x788a
pushq $0x2f
jmp 0x61e7
leaq 0x10(%rbx), %r10
movslq 0x210(%rdi), %rsi
movq 0x18(%r8), %rdx
movslq %ecx, %rcx
movslq %eax, %r8
pushq $0x1
popq %r9
movq %r10, %rdi
callq 0x1d38
testl %eax, %eax
je 0x61bf
leaq 0xe98(%rip), %rdi       # 0x7045
leaq 0x16c9(%rip), %rsi      # 0x787d
leaq 0x16cf(%rip), %rdx      # 0x788a
pushq $0x36
jmp 0x61e7
movq 0x10(%rbx), %rdi
leaq 0x28(%rbx), %rsi
callq 0x208b
testl %eax, %eax
je 0x61fa
leaq 0xe6e(%rip), %rdi       # 0x7045
leaq 0x169f(%rip), %rsi      # 0x787d
leaq 0x16a5(%rip), %rdx      # 0x788a
pushq $0x39
popq %rcx
xorl %eax, %eax
callq 0x1030
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x28c(%r14), %eax
movl %eax, 0xec(%rbx)
xorl %eax, %eax
jmp 0x61f2
// File: /workspace/github_c_makefile_star2_O2/zhoudian64[P]OS2-exp/sender.c
// Function: main
int main() {
	printf("\n");
	int i;
	close(1);
	open("./mypipe.txt", O_WRONLY | O_CREAT, 0666);
	for( i=0; ; i++) {
	// 由于pipe1 被关闭了所以都往下一个fd(open的文件)里写了
		printf("%d\n", i);
		sleep(1);
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
pushq $0xa
popq %rdi
callq 0x1030
pushq $0x1
popq %rbx
movl %ebx, %edi
callq 0x1050
leaq 0xe65(%rip), %rdi       # 0x2004
pushq $0x41
popq %rsi
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x1060
leaq 0xe5c(%rip), %r14       # 0x2011
xorl %r15d, %r15d
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x1040
movl %ebx, %edi
callq 0x1070
incl %r15d
jmp 0x11b8
// File: /workspace/github_c_makefile_star2_O2/zpole[P]IICV/src/test_mathop_abs.c
// Function: main
int
main(int argc VL_UNUSED, char**argv VL_UNUSED)
{
  VlRand * rand = vl_get_rand() ;
  vl_size numData = 100000000 ;
  vl_size i ;
  float * X = vl_malloc(sizeof(float) * numData) ;
  float * Y = vl_malloc(sizeof(float) * numData) ;
  float * X_end = X + numData ;

  for (i = 0 ; i < numData ; ++ i) {
    X[i] = vl_rand_real1(rand) - .5 ;
    Y[i] = 0 ;
  }

  {
    float * Xi = X ;
    float * Yi = Y ;
    vl_tic() ;
    while (Xi < X_end) {
      *Yi++ = fabsf (*Xi++) ;
    }
    VL_PRINTF("fabsf: %.3f\n", vl_toc()) ;
  }

  for (i = 0 ; i < numData ; ++ i) {
    X[i] = vl_rand_real1(rand) - .5 ;
    X[i] = 0 ;
  }

  {
    float * Xi = X ;
    float * Yi = Y ;
    vl_tic() ;
    while (Xi < X_end) {
      *Yi++ = vl_abs_f (*Xi++) ;
    }
    VL_PRINTF("vl_abs_f: %.3f\n", vl_toc()) ;
  }

  vl_free (Y) ;
  vl_free (X) ;

  return 0 ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
callq 0x1090
movq %rax, %r15
movl $0x17d78400, %edi       # imm = 0x17D78400
callq 0x1080
movq %rax, %rbx
movl $0x17d78400, %edi       # imm = 0x17D78400
callq 0x1080
movq %rax, %r14
xorl %r12d, %r12d
cmpq $0x5f5e100, %r12        # imm = 0x5F5E100
je 0x11f6
movq %r15, %rdi
callq 0x12b5
addsd 0xe26(%rip), %xmm0      # 0x2008
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%rbx,%r12,4)
andl $0x0, (%r14,%r12,4)
incq %r12
jmp 0x11c9
callq 0x1030
xorl %eax, %eax
cmpq $0x17d783ff, %rax       # imm = 0x17D783FF
ja 0x121d
movss (%rbx,%rax), %xmm0
andps 0xe0f(%rip), %xmm0      # 0x2020
movss %xmm0, (%r14,%rax)
addq $0x4, %rax
jmp 0x11fd
callq 0x1040
movq %rax, %r12
callq 0x1050
leaq 0xdff(%rip), %rdi       # 0x2030
movb $0x1, %al
callq *%r12
xorl %r12d, %r12d
cmpq $0x5f5e100, %r12        # imm = 0x5F5E100
je 0x1254
movq %r15, %rdi
callq 0x12b5
andl $0x0, (%rbx,%r12,4)
incq %r12
jmp 0x1239
callq 0x1030
xorl %eax, %eax
movaps 0xdbe(%rip), %xmm1      # 0x2020
cmpq $0x17d783ff, %rax       # imm = 0x17D783FF
ja 0x127e
movss (%rbx,%rax), %xmm0
andps %xmm1, %xmm0
movss %xmm0, (%r14,%rax)
addq $0x4, %rax
jmp 0x1262
callq 0x1040
movq %rax, %r15
callq 0x1050
leaq 0xdab(%rip), %rdi       # 0x203d
movb $0x1, %al
callq *%r15
movq %r14, %rdi
callq 0x1070
movq %rbx, %rdi
callq 0x1070
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_8/exercise_8_08/bfree.c
// Function: c_malloc
void *c_malloc(size_t nr_of_bytes)
{
  Header *p;
  Header *prev_p;

  if (nr_of_bytes == 0 || nr_of_bytes >= UINT_MAX - MIN_NR_OF_UNITS)
  {
    fprintf(stderr, "Error(malloc): invalid size %zu\n", nr_of_bytes);
    return NULL;
  }

  size_t nr_of_units = (nr_of_bytes + sizeof(Header) - 1) / sizeof(Header);

  if ((prev_p = free_p) == NULL)
  {
    base.s.free_block_p = free_p = prev_p = &base;
    base.s.size = 0;
  }

  for (p = prev_p->s.free_block_p;; prev_p = p, p = p->s.free_block_p)
  {
    if (p->s.size >= nr_of_units)
    {
      if (p->s.size == nr_of_units)
      {
        prev_p->s.free_block_p = p->s.free_block_p;
      }
      else
      {
        p->s.size -= nr_of_units;
        p += p->s.size;
        p->s.size = nr_of_units;
      }

      free_p = prev_p;
      return (void *)(p + 1);
    }

    if (p == free_p)
    {
      if ((p = c_morecore(nr_of_units)) == NULL)
      {
        return NULL;
      }
    }
  }

  return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $-0xfffffbff, %rax      # imm = 0xFFFFFFFF00000401
leaq (%rdi,%rax), %rcx
incq %rax
cmpq %rax, %rcx
jb 0x12ef
addq $0xf, %rbx
movq 0x2de9(%rip), %rax      # 0x4058
testq %rax, %rax
jne 0x1291
leaq 0x2de5(%rip), %rax      # 0x4060
movq %rax, 0x2dd6(%rip)      # 0x4058
movq %rax, 0x2dd7(%rip)      # 0x4060
andq $0x0, 0x2dd7(%rip)      # 0x4068
shrq $0x4, %rbx
movq (%rax), %r14
movq 0x8(%r14), %rcx
subq %rbx, %rcx
jae 0x12bf
movq %r14, %rax
cmpq 0x2dad(%rip), %r14      # 0x4058
jne 0x1295
movq %rbx, %rdi
callq 0x1425
testq %rax, %rax
jne 0x1295
xorl %r14d, %r14d
jmp 0x12e4
jne 0x12c9
movq (%r14), %rcx
movq %rcx, (%rax)
jmp 0x12d9
movq %rcx, 0x8(%r14)
shlq $0x4, %rcx
movq %rbx, 0x8(%r14,%rcx)
addq %rcx, %r14
movq %rax, 0x2d78(%rip)      # 0x4058
addq $0x10, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x2d02(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xd87(%rip), %rsi       # 0x2087
xorl %r14d, %r14d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1060
jmp 0x12e4
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_8/exercise_8_08/bfree.c
// Function: c_free
void c_free(void *a_p)
{
  Header *p;
  Header *b_p = (Header *)a_p - 1;

  if (b_p->s.size == 0 || b_p->s.size == UINT_MAX - MIN_NR_OF_UNITS)
  {
    fprintf(stderr, "Error(free): invalid block size %zu\n", b_p->s.size);
    return;
  }

  for (p = free_p; !(b_p > p && b_p < p->s.free_block_p); p = p->s.free_block_p)
  {
    if (p >= p->s.free_block_p && (b_p > p || b_p < p->s.free_block_p))
    {
      break;
    }
  }

  if (b_p + b_p->s.size == p->s.free_block_p)
  {
    b_p->s.size += p->s.free_block_p->s.size;
    b_p->s.free_block_p = p->s.free_block_p->s.free_block_p;
  }
  else
  {
    b_p->s.free_block_p = p->s.free_block_p;
  }

  if (p + p->s.size == b_p)
  {
    p->s.size += b_p->s.size;
    p->s.free_block_p = b_p->s.free_block_p;
  }
  else
  {
    p->s.free_block_p = b_p;
  }

  free_p = p;
}

// Assembly:
movq -0x8(%rdi), %rdx
testq %rdx, %rdx
je 0x13ae
movl $0xfffffbff, %eax       # imm = 0xFFFFFBFF
cmpq %rax, %rdx
je 0x13ae
leaq -0x10(%rdi), %rax
movq 0x2d23(%rip), %rsi      # 0x4058
movq %rsi, %rcx
cmpq %rsi, %rax
seta %r8b
movq (%rsi), %rsi
cmpq %rsi, %rax
setb %r9b
testb %r9b, %r8b
jne 0x1366
cmpq %rcx, %rax
seta %r8b
cmpq %rsi, %rax
setb %r9b
cmpq %rsi, %rcx
jb 0x1335
orb %r9b, %r8b
je 0x1335
movq %rdx, %r8
shlq $0x4, %r8
addq %rax, %r8
cmpq %rsi, %r8
jne 0x1383
addq 0x8(%rsi), %rdx
movq %rdx, -0x8(%rdi)
movq (%rcx), %rsi
movq (%rsi), %rsi
movq %rsi, (%rax)
movq 0x8(%rcx), %rsi
movq %rsi, %rdi
shlq $0x4, %rdi
addq %rcx, %rdi
cmpq %rax, %rdi
jne 0x13a3
addq %rsi, %rdx
movq %rdx, 0x8(%rcx)
movq (%rax), %rax
movq %rax, (%rcx)
movq %rcx, 0x2cab(%rip)      # 0x4058
retq
movq 0x2c43(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xc79(%rip), %rsi       # 0x2038
xorl %eax, %eax
jmp 0x1060
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_8/exercise_8_08/bfree.c
// Function: c_bfree
void c_bfree(void *p, size_t block_size)
{
  Header *b_p;

  if (block_size < MIN_NR_OF_UNITS)
  {
    fprintf(stderr, "Error: block must be at least of size %d\n", MIN_NR_OF_UNITS);
    return;
  }

  b_p = (Header *)p;
  b_p->s.size = (block_size / sizeof(Header)) - 1;
  c_free((void *)(b_p + 1));
}

// Assembly:
cmpq $0x3ff, %rsi            # imm = 0x3FF
jbe 0x1408
shrq $0x4, %rsi
decq %rsi
movq %rsi, 0x8(%rdi)
addq $0x10, %rdi
jmp 0x130f
movq 0x2be9(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xc44(%rip), %rsi       # 0x205d
movl $0x400, %edx            # imm = 0x400
xorl %eax, %eax
jmp 0x1060
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_4/exercise_4_08/getch.c
// Function: main
int main(void)
{
  char c = getch();
  printf("%c\n", c);

  ungetch(c);

  printf("%c\n", c = getch());

  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x119e
movsbl %al, %ebx
leaq 0xe95(%rip), %r14       # 0x2004
movq %r14, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq 0x1040
movl %ebx, %edi
callq 0x11b8
callq 0x119e
movsbl %al, %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq