LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/preprocessor/line_concat.c
// Function: process
void _process(
	ResizableString *dst,
	const char *file,
	const char *src,
	int len
) {
	assert(dst);
	assert(file);
	assert(src);
	assert(len >= 0);

	for (int i = 0; i < len; i++) {
		char chr = src[i];
		if (chr == '\\') {
			if (i + 1 < len
					&& src[i + 1] == '\n') {
				i += 2;
				int n = 1;
				for (; i < len; i++) {
					chr = src[i];
					if (chr == '\\') {
						if (i + 1 < len
								&& src[i + 1] == '\n') {
							i++;
							n++;
						} else {
							rstr_append_with_char(dst, chr);
						}
					} else {
						rstr_append_with_char(dst, chr);
						if (chr == '\n') {
							break;
						}
					}
				}
				for (int j = 0; j < n; j++) {
					rstr_append_with_char(dst, '\n');
				}
			} else {
				rstr_append_with_char(dst, chr);
			}
		} else {
			rstr_append_with_char(dst, chr);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, -0x30(%rbp)
testq %rdi, %rdi
je 0x2c1fb
testq %rsi, %rsi
je 0x2c21a
cmpq $0x0, -0x30(%rbp)
je 0x2c239
movl %ecx, %ebx
testl %ecx, %ecx
js 0x2c258
je 0x2c1ec
movq %rdi, %r15
xorl %r12d, %r12d
movslq %r12d, %rcx
movq -0x30(%rbp), %rax
movb (%rax,%rcx), %al
cmpb $0x5c, %al
jne 0x2c1ba
incq %rcx
cmpl %ebx, %ecx
jge 0x2c1ba
movq -0x30(%rbp), %rdx
cmpb $0xa, (%rdx,%rcx)
jne 0x2c1ba
addl $0x2, %r12d
movl $0x1, %r13d
cmpl %ebx, %r12d
jge 0x2c1d3
movslq %r12d, %rax
movq -0x30(%rbp), %rcx
movb (%rcx,%rax), %r14b
cmpb $0x5c, %r14b
jne 0x2c195
incq %rax
cmpl %ebx, %eax
jge 0x2c1a9
movq -0x30(%rbp), %rcx
cmpb $0xa, (%rcx,%rax)
jne 0x2c1a9
incl %r13d
movl %eax, %r12d
jmp 0x2c1b5
movsbl %r14b, %esi
movq %r15, %rdi
callq 0xe5eb
cmpb $0xa, %r14b
jne 0x2c1b5
jmp 0x2c1d3
movsbl %r14b, %esi
movq %r15, %rdi
callq 0xe5eb
incl %r12d
jmp 0x2c166
movsbl %al, %esi
movq %r15, %rdi
callq 0xe5eb
incl %r12d
cmpl %ebx, %r12d
jl 0x2c13d
jmp 0x2c1ec
testl %r13d, %r13d
jle 0x2c1c5
movq %r15, %rdi
movl $0xa, %esi
callq 0xe5eb
decl %r13d
jne 0x2c1d8
jmp 0x2c1c5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e67(%rip), %rdi      # 0x2e069
leaq 0xb45c(%rip), %rsi      # 0x37665
leaq 0xb479(%rip), %rcx      # 0x37689
movl $0xb, %edx
callq 0xa0b0
leaq 0x27f8(%rip), %rdi      # 0x2ea19
leaq 0xb43d(%rip), %rsi      # 0x37665
leaq 0xb45a(%rip), %rcx      # 0x37689
movl $0xc, %edx
callq 0xa0b0
leaq 0x3cbd(%rip), %rdi      # 0x2fefd
leaq 0xb41e(%rip), %rsi      # 0x37665
leaq 0xb43b(%rip), %rcx      # 0x37689
movl $0xd, %edx
callq 0xa0b0
leaq 0x22ee(%rip), %rdi      # 0x2e54d
leaq 0xb3ff(%rip), %rsi      # 0x37665
leaq 0xb41c(%rip), %rcx      # 0x37689
movl $0xe, %edx
callq 0xa0b0
// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/preprocessor/line_concat.c
// Function: pp_line_concat_process
void pp_line_concat_process(
	ResizableString *dst,
	const char *file,
	const char *src,
	int len
) {
	assert(dst);
	assert(file);
	assert(src);

	_process(dst, file, src, len);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x2c290
testq %rsi, %rsi
je 0x2c2af
testq %rdx, %rdx
je 0x2c2ce
popq %rbp
jmp 0x2c0f8
leaq 0x1dd2(%rip), %rdi      # 0x2e069
leaq 0xb3c7(%rip), %rsi      # 0x37665
leaq 0xb426(%rip), %rcx      # 0x376cb
movl $0x3a, %edx
callq 0xa0b0
leaq 0x2763(%rip), %rdi      # 0x2ea19
leaq 0xb3a8(%rip), %rsi      # 0x37665
leaq 0xb407(%rip), %rcx      # 0x376cb
movl $0x3b, %edx
callq 0xa0b0
leaq 0x3c28(%rip), %rdi      # 0x2fefd
leaq 0xb389(%rip), %rsi      # 0x37665
leaq 0xb3e8(%rip), %rcx      # 0x376cb
movl $0x3c, %edx
callq 0xa0b0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/preprocessor/parser.c
// Function: pp_parser_new_context
_RULE_END

ParserContext * pp_parser_new_context(
	const char *file,
	const char *source,
	int len
) {
	assert(file);
	assert(source);
	assert(len >= 0);

	LexerContext *lexctx = pp_lexer_new_context(file, source, len);
	lexer_parse(lexctx);

	ParserContext *ctx = parser_new_context(lexctx);
	ctx->arch = 0;

	return ctx;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2c32a
testq %rsi, %rsi
je 0x2c349
testl %edx, %edx
js 0x2c368
callq 0x2a884
movq %rax, %rbx
movq %rax, %rdi
callq 0xb6e0
movq %rbx, %rdi
callq 0xd539
movl $0x0, 0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x26e8(%rip), %rdi      # 0x2ea19
leaq 0xb3e3(%rip), %rsi      # 0x3771b
leaq 0xb3fb(%rip), %rcx      # 0x3773a
movl $0x1b4, %edx            # imm = 0x1B4
callq 0xa0b0
leaq 0x21f6(%rip), %rdi      # 0x2e546
leaq 0xb3c4(%rip), %rsi      # 0x3771b
leaq 0xb3dc(%rip), %rcx      # 0x3773a
movl $0x1b5, %edx            # imm = 0x1B5
callq 0xa0b0
leaq 0x21de(%rip), %rdi      # 0x2e54d
leaq 0xb3a5(%rip), %rsi      # 0x3771b
leaq 0xb3bd(%rip), %rcx      # 0x3773a
movl $0x1b6, %edx            # imm = 0x1B6
callq 0xa0b0
// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/preprocessor/parser.c
// Function: print_ast
static void _print_ast(
	ParserASTNode *node,
	FILE *file,
	int level,
	char padchr
) {
	assert(node);
	assert(file);
	assert(level >= 0);

	for (int i = 0; i < level; i++) {
		fputc(padchr, file);
	}

	fprintf(
		file,
		"@%s#%x#%p#%p#%d",
		node->type_name != NULL ? node->type_name : "N/A",
		node->type,
		node->parent,
		node,
		node->nchilds
	);
	if (node->token != NULL) {
		fputc('(', file);
		for (int i = 0; i < node->token->len; i++) {
			fputc(*(node->token->content + i), file);
		}
		fprintf(file, "#%x)", node->token->type);
	}
	fputc('\n', file);

	for (int i = 0; i < node->nchilds; i++) {
		_print_ast(node->childs[i], file, level + 1, padchr);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x2c6d4
movl %edx, %ebx
testl %edx, %edx
js 0x2c6f3
movq %rsi, %r14
movq %rdi, %r15
je 0x2c607
movl %ebx, %r12d
movl $0x9, %edi
movq %r14, %rsi
callq 0xa0d0
decl %r12d
jne 0x2c5f5
movq 0x8(%r15), %rax
testq %rax, %rax
leaq 0x9f5b(%rip), %rdx      # 0x36570
cmovneq %rax, %rdx
movl (%r15), %ecx
movq 0x30(%r15), %r8
movl 0x44(%r15), %eax
movl %eax, (%rsp)
leaq 0xb648(%rip), %rsi      # 0x37c76
movq %r14, %rdi
movq %r15, %r9
xorl %eax, %eax
callq 0xa0f0
cmpq $0x0, 0x10(%r15)
je 0x2c690
movl $0x28, %edi
movq %r14, %rsi
callq 0xa0d0
movq 0x10(%r15), %rax
cmpl $0x0, 0x4(%rax)
jle 0x2c67d
xorl %r12d, %r12d
movq 0x8(%rax), %rax
movsbl (%rax,%r12), %edi
movq %r14, %rsi
callq 0xa0d0
incq %r12
movq 0x10(%r15), %rax
movslq 0x4(%rax), %rcx
cmpq %rcx, %r12
jl 0x2c65c
movl (%rax), %edx
leaq 0x9eee(%rip), %rsi      # 0x36574
movq %r14, %rdi
xorl %eax, %eax
callq 0xa0f0
movl $0xa, %edi
movq %r14, %rsi
callq 0xa0d0
cmpl $0x0, 0x44(%r15)
jle 0x2c6c7
incl %ebx
xorl %r12d, %r12d
movq 0x48(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x2c5c8
incq %r12
movslq 0x44(%r15), %rax
cmpq %rax, %r12
jl 0x2c6a9
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6620(%rip), %rdi      # 0x32cfb
leaq 0xb039(%rip), %rsi      # 0x3771b
leaq 0x9e3b(%rip), %rcx      # 0x36524
movl $0x1d5, %edx            # imm = 0x1D5
callq 0xa0b0
leaq 0x9e5e(%rip), %rdi      # 0x36558
leaq 0xb01a(%rip), %rsi      # 0x3771b
leaq 0x9e1c(%rip), %rcx      # 0x36524
movl $0x1d7, %edx            # imm = 0x1D7
callq 0xa0b0
// File: /workspace/github_c_makefile_star2_O1/eric-lo[P]3150/12-VirtualMemory/grow_stack.c
// Function: recursion
void recursion() {
	char buf[BUF_SIZE];

	printf("Real allocation...");
	fflush(stdout);
	while( getchar() != '\n' );

	memset(buf, 0, sizeof(buf));

	printf("Virtual allocation...");
	fflush(stdout);
	while( getchar() != '\n' );
	recursion();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0xe8c(%rip), %rbx       # 0x2004
movq 0x2e61(%rip), %r15      # 0x3fe0
leaq 0xe91(%rip), %r14       # 0x2017
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1040
movq (%r15), %rdi
callq 0x1060
callq 0x1050
cmpl $0xa, %eax
jne 0x1198
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq (%r15), %rdi
callq 0x1060
callq 0x1050
cmpl $0xa, %eax
jne 0x11b4
jmp 0x1186
// File: /workspace/github_c_makefile_star2_O1/arachsys[P]init/syslog.c
// Function: syslog_open
int syslog_open(void) {
  int fd;
  struct sockaddr_un addr = {
    .sun_family = AF_UNIX,
    .sun_path = "/dev/log"
  };

  if ((fd = socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0)) < 0)
    err(EXIT_FAILURE, "socket");

  unlink(addr.sun_path);
  umask(0111); /* Syslog socket should be writeable by everyone. */
  if (bind(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0)
    err(EXIT_FAILURE, "bind %s", addr.sun_path);

  if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &(int) { 1 },
        sizeof(int)) < 0)
    err(EXIT_FAILURE, "setsockopt SO_PASSCRED %s", addr.sun_path);
  return fd;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x78, %rsp
leaq 0xf2d(%rip), %rsi       # 0x3206
leaq 0xa(%rsp), %rdi
movl $0x6e, %edx
callq 0x20e0
movl $0x1, %edi
movl $0x802, %esi            # imm = 0x802
xorl %edx, %edx
callq 0x21c0
testl %eax, %eax
js 0x235a
movl %eax, %ebp
leaq 0xc(%rsp), %rbx
movq %rbx, %rdi
callq 0x2050
movl $0x49, %edi
callq 0x20d0
leaq 0xa(%rsp), %rsi
movl %ebp, %edi
movl $0x6e, %edx
callq 0x2160
testl %eax, %eax
js 0x236d
leaq 0x4(%rsp), %rcx
movl $0x1, (%rcx)
movl %ebp, %edi
movl $0x1, %esi
movl $0x10, %edx
movl $0x4, %r8d
callq 0x2060
testl %eax, %eax
js 0x2376
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %rbp
retq
leaq 0xd70(%rip), %rsi       # 0x30d1
movl $0x1, %edi
xorl %eax, %eax
callq 0x2100
leaq 0xd64(%rip), %rsi       # 0x30d8
jmp 0x237d
leaq 0xd63(%rip), %rsi       # 0x30e0
movl $0x1, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2100
// File: /workspace/github_c_makefile_star2_O1/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 0x9dc7(%rip), %ebx      # 0xb4d8
cltd
idivl %ebx
testl %eax, %eax
setg %r15b
jle 0x1839
movl (%rdi), %ecx
imull %ebx, %ecx
imull 0x4(%rdi), %ecx
imull (%rsi), %ebx
imull 0x4(%rsi), %ebx
movl %ecx, 0x4(%rsp)
movslq %ecx, %rcx
movslq %ebx, %rdx
movl %eax, %r12d
shlq $0x3, %rdx
movq %rdx, 0x8(%rsp)
shlq $0x3, %rcx
movq %rcx, 0x10(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq 0x694e(%rip), %rdi      # 0x80ac
movl %r13d, %esi
xorl %eax, %eax
callq 0x1030
movq 0x9b51(%rip), %rdi      # 0xb2c0
movq 0x9d82(%rip), %rsi      # 0xb4f8
addq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x3502
movq 0x9b37(%rip), %rdi      # 0xb2c0
movq 0x9d70(%rip), %rsi      # 0xb500
addq %rbp, %rsi
movl %ebx, %edx
callq 0x3512
movq 0x9b1f(%rip), %rdi      # 0xb2c0
callq 0x39ea
testl %eax, %eax
jne 0x180a
movq 0x9b0f(%rip), %rdi      # 0xb2c0
callq 0x39fd
testl %eax, %eax
jne 0x1811
movq 0x9aff(%rip), %rdi      # 0xb2c0
callq 0x2fcd
testl %eax, %eax
jne 0x1818
movq 0x9aef(%rip), %rdi      # 0xb2c0
leaq 0x68cd(%rip), %rsi      # 0x80a5
callq 0x38d6
leaq 0x68f3(%rip), %rdi      # 0x80d7
movb $0x1, %al
callq 0x1030
incq %r13
cmpq %r12, %r13
setb %r15b
addq 0x8(%rsp), %rbp
addq 0x10(%rsp), %r14
cmpq %r13, %r12
jne 0x1757
jmp 0x1839
movl $0xf0, %ecx
jmp 0x181d
movl $0xf5, %ecx
jmp 0x181d
movl $0xfa, %ecx
leaq 0x6821(%rip), %rdi      # 0x8045
leaq 0x6830(%rip), %rsi      # 0x805b
leaq 0x6897(%rip), %rdx      # 0x80c9
xorl %eax, %eax
callq 0x1030
movzbl %r15b, %eax
andl $0x1, %eax
negl %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6792(%rip), %rdi      # 0x8168
xorl %eax, %eax
callq 0x1030
movl (%rbx), %esi
leaq 0x6792(%rip), %rdi      # 0x8178
xorl %eax, %eax
callq 0x1030
movl 0x4(%rbx), %esi
leaq 0x678e(%rip), %rdi      # 0x8185
xorl %eax, %eax
callq 0x1030
movl 0x8(%rbx), %esi
leaq 0x678a(%rip), %rdi      # 0x8192
xorl %eax, %eax
popq %rbx
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/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 0x1a89
movslq 0x4(%rbx), %rax
movslq (%rbx), %rcx
imulq %rax, %rcx
movslq 0x8(%rbx), %rbx
imulq %rcx, %rbx
movq %rbx, %rdi
shlq $0x3, %rdi
callq 0x10d0
movq %rax, (%r14)
movq %r15, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x1b1a
testl %eax, %eax
je 0x1a81
leaq 0x65e5(%rip), %rdi      # 0x8045
leaq 0x6738(%rip), %rsi      # 0x819f
leaq 0x6744(%rip), %rdx      # 0x81b2
movl $0x39, %ecx
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1a83
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movq %rdi, %r15
callq 0x1060
leaq 0x1(%rax), %rdx
movq %rsp, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1090
movq %r14, %rdi
movl $0x5f, %esi
callq 0x10a0
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0x1130
movl %eax, 0x8(%rbx)
movb $0x2a, %bpl
movb %bpl, (%r15)
movq %r14, %rdi
movl $0x5f, %esi
callq 0x10a0
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0x1130
movl %eax, 0x4(%rbx)
movb %bpl, (%r15)
movq %r14, %rdi
movl $0x5f, %esi
callq 0x10a0
leaq 0x1(%rax), %rdi
callq 0x1130
movl %eax, (%rbx)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x66c1(%rip), %rsi      # 0x81ec
callq 0x10b0
testq %rax, %rax
je 0x1b66
movslq %ebx, %r15
movl $0x8, %esi
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
callq 0x1110
xorl %ecx, %ecx
cmpl %r15d, %eax
je 0x1b77
leaq 0x6696(%rip), %rdi      # 0x81ef
movl %eax, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x1030
jmp 0x1b72
leaq 0x66a6(%rip), %rdi      # 0x8213
callq 0x1120
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
testl %eax, %eax
jle 0x1d9e
movl %eax, %eax
xorl %ecx, %ecx
movsd 0x63d8(%rip), %xmm0     # 0x8160
movsd (%rdi,%rcx,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rdi,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x1d88
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x20(%rdi), %rax
movl $0x28, %ecx
cmpl $0x5, %eax
jne 0x2740
movq 0x28(%rdi), %rdx
movl $0x29, %ecx
cmpl $0x5, %edx
jne 0x2740
movq 0x10(%rdi), %rcx
testl %ecx, %ecx
jle 0x273c
movq 0x18(%rdi), %rsi
movq 0x8(%rdi), %rdi
imulq %rdx, %rax
movq %rax, %r8
imulq %rsi, %r8
shlq $0x3, %r8
shlq $0x3, %rax
shlq $0x3, %rdx
movl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
andq %r10, %rcx
movq %rsi, %r9
andq %r10, %r9
xorl %r10d, %r10d
leaq 0x5c57(%rip), %r11      # 0x8340
testl %esi, %esi
jle 0x2731
movq %rdi, %rbx
xorl %r14d, %r14d
movq %rbx, %r15
xorl %r12d, %r12d
movq 0x20(%r12,%r11), %r13
movq %r13, 0x20(%r15)
movups (%r12,%r11), %xmm0
movups 0x10(%r12,%r11), %xmm1
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
addq $0x28, %r12
addq %rdx, %r15
cmpq $0xc8, %r12
jne 0x26f9
incq %r14
addq %rax, %rbx
cmpq %r9, %r14
jne 0x26f3
incq %r10
addq %r8, %rdi
cmpq %rcx, %r10
jne 0x26e9
xorl %eax, %eax
jmp 0x2761
leaq 0x58fe(%rip), %rdi      # 0x8045
leaq 0x5cba(%rip), %rsi      # 0x8408
leaq 0x5cbf(%rip), %rdx      # 0x8414
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x10(%rdi), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x2837
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rcx
movq 0x8(%rdi), %rdx
movq %rdx, (%rsp)
movq 0x28(%rdi), %r15
movq %r15, %rdx
movq %rcx, 0x30(%rsp)
imulq %rcx, %rdx
movq %rdx, %rcx
movq %rax, 0x8(%rsp)
imulq %rax, %rcx
shlq $0x3, %rcx
movq %rcx, 0x10(%rsp)
shlq $0x3, %rdx
movq %rdx, 0x28(%rsp)
leaq (,%r15,8), %rbx
xorl %ecx, %ecx
movq %rcx, 0x20(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x281f
movq (%rsp), %r12
xorl %ebp, %ebp
movq 0x30(%rsp), %rax
movq %rax, %r13
movq %r12, %r14
testq %rax, %rax
je 0x2810
testq %r15, %r15
je 0x2808
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1070
addq %rbx, %r14
decq %r13
jne 0x27f6
incq %rbp
addq 0x28(%rsp), %r12
cmpq 0x8(%rsp), %rbp
jne 0x27e6
movq 0x20(%rsp), %rcx
incq %rcx
movq 0x10(%rsp), %rax
addq %rax, (%rsp)
cmpq 0x18(%rsp), %rcx
jne 0x27d3
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2888
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x28b3
movq 0x8(%rdi), %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
movsd 0x5abf(%rip), %xmm1     # 0x8328
movsd (%rcx,%rdx,8), %xmm2
movapd %xmm2, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm3, %xmm0
incq %rdx
cmpq %rdx, %rax
jne 0x2869
jmp 0x28b7
leaq 0x57b6(%rip), %rdi      # 0x8045
leaq 0x5b72(%rip), %rsi      # 0x8408
leaq 0x5b82(%rip), %rdx      # 0x841f
movl $0x4f, %ecx
xorl %eax, %eax
callq 0x1030
movsd 0x5a7f(%rip), %xmm0     # 0x8330
jmp 0x28db
xorpd %xmm0, %xmm0
movsd 0x10(%rdi), %xmm1
unpcklps 0x5a3d(%rip), %xmm1     # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x5a45(%rip), %xmm1     # 0x8310
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
popq %rax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x2f47
movq %rdi, %r14
movl $0x2248, %edi           # imm = 0x2248
callq 0x10d0
testq %rax, %rax
je 0x2f65
movq %rax, %rbx
movq %rax, %rdi
callq 0x4400
movq %rax, 0x230(%rbx)
testq %rax, %rax
je 0x2f83
movl $0x230, %edx            # imm = 0x230
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1090
leaq 0x240(%rbx), %rdi
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x1070
movl $0x0, 0x2240(%rbx)
movq %rbx, %rdi
addq $0x238, %rdi            # imm = 0x238
movslq 0x210(%r14), %rsi
movslq 0x21c(%r14), %rdx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x1da4
testl %eax, %eax
je 0x2fb1
leaq 0x5115(%rip), %rdi      # 0x8045
leaq 0x54f6(%rip), %rsi      # 0x842d
leaq 0x5514(%rip), %rdx      # 0x8452
xorl %ebx, %ebx
movl $0x3c, %ecx
jmp 0x2f9f
leaq 0x50f7(%rip), %rdi      # 0x8045
leaq 0x54d8(%rip), %rsi      # 0x842d
leaq 0x54f6(%rip), %rdx      # 0x8452
xorl %ebx, %ebx
movl $0x2c, %ecx
jmp 0x2f9f
leaq 0x50d9(%rip), %rdi      # 0x8045
leaq 0x54ba(%rip), %rsi      # 0x842d
leaq 0x54d8(%rip), %rdx      # 0x8452
xorl %ebx, %ebx
movl $0x2f, %ecx
jmp 0x2f9f
leaq 0x50bb(%rip), %rdi      # 0x8045
leaq 0x549c(%rip), %rsi      # 0x842d
leaq 0x54ba(%rip), %rdx      # 0x8452
xorl %ebx, %ebx
movl $0x32, %ecx
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 0x55a8(%rip), %rdi      # 0x856e
callq 0x1120
jmp 0x2fa6
// File: /workspace/github_c_makefile_star2_O1/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 0x336b
movq %rdi, %r14
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %r12
testq %r12, %r12
je 0x3387
movl %ecx, %ebp
movq %rdx, %rbx
movq 0x8(%r12), %rsi
addq $0x44, %rsi
movl 0xa0(%r12), %edx
leaq 0x51d4(%rip), %rdi      # 0x84e6
xorl %eax, %eax
callq 0x1030
testl %ebp, %ebp
jle 0x3358
movl %ebp, %r13d
leaq 0x51d2(%rip), %r15      # 0x84f9
xorl %ebp, %ebp
movslq (%rbx,%rbp,4), %rax
movq 0x240(%r14,%rax,8), %rax
movq 0x8(%rax), %rsi
addq $0x44, %rsi
movq 0x8(%r12), %rdx
addq $0x44, %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1030
incq %rbp
cmpq %rbp, %r13
jne 0x3329
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x33a3
callq 0x23b7
xorl %eax, %eax
jmp 0x33c9
leaq 0x4cd3(%rip), %rdi      # 0x8045
leaq 0x50b4(%rip), %rsi      # 0x842d
leaq 0x5156(%rip), %rdx      # 0x84d6
movl $0x8b, %ecx
jmp 0x33bd
leaq 0x4cb7(%rip), %rdi      # 0x8045
leaq 0x5098(%rip), %rsi      # 0x842d
leaq 0x513a(%rip), %rdx      # 0x84d6
movl $0x8e, %ecx
jmp 0x33bd
leaq 0x4c9b(%rip), %rdi      # 0x8045
leaq 0x507c(%rip), %rsi      # 0x842d
leaq 0x511e(%rip), %rdx      # 0x84d6
movl $0x94, %ecx
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3495
movq %rdi, %r14
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %r12
testq %r12, %r12
je 0x34b1
movl %ecx, %ebp
movq %rdx, %rbx
movq 0x8(%r12), %rsi
addq $0x44, %rsi
leaq 0x50da(%rip), %rdi      # 0x8516
xorl %eax, %eax
callq 0x1030
testl %ebp, %ebp
jle 0x3482
movl %ebp, %r13d
leaq 0x50cf(%rip), %r15      # 0x8520
xorl %ebp, %ebp
movq 0x8(%r12), %rsi
addq $0x44, %rsi
movslq (%rbx,%rbp,4), %rax
movq 0x240(%r14,%rax,8), %rax
movq 0x8(%rax), %rdx
addq $0x44, %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x1030
incq %rbp
cmpq %rbp, %r13
jne 0x3453
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x34cd
callq 0x23b7
xorl %eax, %eax
jmp 0x34f3
leaq 0x4ba9(%rip), %rdi      # 0x8045
leaq 0x4f8a(%rip), %rsi      # 0x842d
leaq 0x505b(%rip), %rdx      # 0x8505
movl $0xa3, %ecx
jmp 0x34e7
leaq 0x4b8d(%rip), %rdi      # 0x8045
leaq 0x4f6e(%rip), %rsi      # 0x842d
leaq 0x503f(%rip), %rdx      # 0x8505
movl $0xa6, %ecx
jmp 0x34e7
leaq 0x4b71(%rip), %rdi      # 0x8045
leaq 0x4f52(%rip), %rsi      # 0x842d
leaq 0x5023(%rip), %rdx      # 0x8505
movl $0xac, %ecx
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3585
testl %ecx, %ecx
jle 0x3565
movl %ecx, %ecx
xorl %esi, %esi
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
cmpq %rsi, %rcx
jne 0x3541
movq 0x240(%rdi,%rax,8), %rsi
movq 0x48(%rsi), %rax
testq %rax, %rax
je 0x358c
callq *%rax
movl $0xc1, %ecx
testl %eax, %eax
jne 0x3591
xorl %eax, %eax
jmp 0x35b2
movl $0xbb, %ecx
jmp 0x3591
movl $0xbf, %ecx
leaq 0x4aad(%rip), %rdi      # 0x8045
leaq 0x4e8e(%rip), %rsi      # 0x842d
leaq 0x4f86(%rip), %rdx      # 0x852c
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
testq %rdi, %rdi
je 0x3603
movq %rdi, %rbx
leaq 0x4fd0(%rip), %rdi      # 0x859b
callq 0x1120
movq 0x230(%rbx), %rdi
leaq 0x10f(%rip), %rsi       # 0x36ed
callq 0x4841
testl %eax, %eax
je 0x361f
leaq 0x4a57(%rip), %rdi      # 0x8045
leaq 0x4e38(%rip), %rsi      # 0x842d
leaq 0x4e90(%rip), %rdx      # 0x848c
movl $0x153, %ecx            # imm = 0x153
jmp 0x365d
leaq 0x4a3b(%rip), %rdi      # 0x8045
leaq 0x4e1c(%rip), %rsi      # 0x842d
leaq 0x4e74(%rip), %rdx      # 0x848c
movl $0x14f, %ecx            # imm = 0x14F
jmp 0x365d
movq 0x230(%rbx), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %r14
movq %r14, %rdx
callq 0x4a8e
movl (%r14), %eax
addl $-0x9, %eax
cmpl $-0x8, %eax
jae 0x3672
leaq 0x49fb(%rip), %rdi      # 0x8045
leaq 0x4ddc(%rip), %rsi      # 0x842d
leaq 0x4e34(%rip), %rdx      # 0x848c
movl $0x158, %ecx            # imm = 0x158
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x0, 0xc(%rsp)
setg %bpl
jle 0x36e2
movslq 0x10(%rsp), %rax
movq 0x240(%rbx,%rax,8), %rax
testq %rax, %rax
je 0x36c1
movl $0x1, %r14d
movq 0x10(%rax), %rdi
callq 0x2465
movslq 0xc(%rsp), %rax
cmpq %rax, %r14
setl %bpl
jge 0x36e2
movslq 0x10(%rsp,%r14,4), %rax
movq 0x240(%rbx,%rax,8), %rax
incq %r14
testq %rax, %rax
jne 0x3695
leaq 0x497d(%rip), %rdi      # 0x8045
leaq 0x4d5e(%rip), %rsi      # 0x842d
leaq 0x4db6(%rip), %rdx      # 0x848c
movl $0x15c, %ecx            # imm = 0x15C
xorl %eax, %eax
callq 0x1030
movzbl %bpl, %eax
negl %eax
jmp 0x3669
// File: /workspace/github_c_makefile_star2_O1/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 0x3943
movq %rsi, %r14
movq %rdi, %rbx
movq 0x230(%rdi), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %r15
movq %r15, %rdx
callq 0x4a8e
movslq (%r15), %r15
testq %r15, %r15
jle 0x395f
xorl %r12d, %r12d
movslq 0x10(%rsp,%r12,4), %rax
movq 0x240(%rbx,%rax,8), %r13
movq 0x8(%r13), %rsi
addq $0x44, %rsi
movq %r14, %rdi
callq 0x10f0
testl %eax, %eax
je 0x397b
incq %r12
cmpq %r12, %r15
jne 0x3912
xorps %xmm0, %xmm0
jmp 0x39dc
leaq 0x46fb(%rip), %rdi      # 0x8045
leaq 0x4adc(%rip), %rsi      # 0x842d
leaq 0x4b3d(%rip), %rdx      # 0x8495
movl $0x166, %ecx            # imm = 0x166
jmp 0x39cd
leaq 0x46df(%rip), %rdi      # 0x8045
leaq 0x4ac0(%rip), %rsi      # 0x842d
leaq 0x4b21(%rip), %rdx      # 0x8495
movl $0x16c, %ecx            # imm = 0x16C
jmp 0x39cd
movq 0xf8(%r13), %rdi
testq %rdi, %rdi
je 0x3997
movq 0x220(%rbx), %rax
testq %rax, %rax
je 0x39b3
callq *%rax
jmp 0x39dc
leaq 0x46a7(%rip), %rdi      # 0x8045
leaq 0x4a88(%rip), %rsi      # 0x842d
leaq 0x4ae9(%rip), %rdx      # 0x8495
movl $0x172, %ecx            # imm = 0x172
jmp 0x39cd
leaq 0x468b(%rip), %rdi      # 0x8045
leaq 0x4a6c(%rip), %rsi      # 0x842d
leaq 0x4acd(%rip), %rdx      # 0x8495
movl $0x173, %ecx            # imm = 0x173
xorl %eax, %eax
callq 0x1030
movsd 0x4954(%rip), %xmm0     # 0x8330
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3a61
movslq %esi, %rax
movq 0x240(%rdi,%rax,8), %rsi
testq %rsi, %rsi
je 0x3a7d
cmpq $0x0, 0x58(%rsi)
je 0x3a99
testl %ecx, %ecx
jle 0x3a4f
movl %ecx, %eax
xorl %r8d, %r8d
movslq (%rdx,%r8,4), %r9
movq 0x240(%rdi,%r9,8), %r9
movq %r9, 0x60(%rsi,%r8,8)
incq %r8
cmpq %r8, %rax
jne 0x3a36
movl %ecx, 0xa0(%rsi)
movq 0x58(%rsi), %rax
testq %rax, %rax
je 0x3ab5
popq %rcx
jmpq *%rax
leaq 0x45dd(%rip), %rdi      # 0x8045
leaq 0x49be(%rip), %rsi      # 0x842d
leaq 0x4aec(%rip), %rdx      # 0x8562
movl $0x105, %ecx            # imm = 0x105
jmp 0x3acf
leaq 0x45c1(%rip), %rdi      # 0x8045
leaq 0x49a2(%rip), %rsi      # 0x842d
leaq 0x4ad0(%rip), %rdx      # 0x8562
movl $0x108, %ecx            # imm = 0x108
jmp 0x3acf
leaq 0x45a5(%rip), %rdi      # 0x8045
leaq 0x4986(%rip), %rsi      # 0x842d
leaq 0x4ab4(%rip), %rdx      # 0x8562
movl $0x10a, %ecx            # imm = 0x10A
jmp 0x3acf
leaq 0x4589(%rip), %rdi      # 0x8045
leaq 0x496a(%rip), %rsi      # 0x842d
leaq 0x4a98(%rip), %rdx      # 0x8562
movl $0x110, %ecx            # imm = 0x110
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3b65
leaq 0x44f8(%rip), %rdi      # 0x8045
leaq 0x48d9(%rip), %rsi      # 0x842d
leaq 0x4946(%rip), %rdx      # 0x84a1
movl $0x194, %ecx            # imm = 0x194
jmp 0x3c2e
movq 0x48(%rsp), %rbx
movq 0x40(%rsp), %r15
testq %r15, %r15
setne %al
testq %rbx, %rbx
setne %dl
testb %dl, %al
jne 0x3b9e
leaq 0x44bf(%rip), %rdi      # 0x8045
leaq 0x48a0(%rip), %rsi      # 0x842d
leaq 0x490d(%rip), %rdx      # 0x84a1
movl $0x195, %ecx            # imm = 0x195
jmp 0x3c2e
movq %rsi, %r12
movslq 0x210(%rdi), %rsi
movslq %ecx, %r14
movslq %r8d, %rcx
movslq %r9d, %r8
movq %r13, %rdi
movq %r14, %rdx
movl $0x1, %r9d
callq 0x1da4
testl %eax, %eax
je 0x3be2
leaq 0x4478(%rip), %rdi      # 0x8045
leaq 0x4859(%rip), %rsi      # 0x842d
leaq 0x48c6(%rip), %rdx      # 0x84a1
movl $0x19a, %ecx            # imm = 0x19A
jmp 0x3c2e
movl 0x38(%rsp), %eax
movl 0x30(%rsp), %ecx
movq (%r13), %rdx
movl $0x0, (%rdx)
movq 0x18(%r12), %rdx
movslq %ecx, %rcx
movslq %eax, %r8
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %r9d
callq 0x1da4
testl %eax, %eax
je 0x3c44
leaq 0x442a(%rip), %rdi      # 0x8045
leaq 0x480b(%rip), %rsi      # 0x842d
leaq 0x4878(%rip), %rdx      # 0x84a1
movl $0x1a0, %ecx            # imm = 0x1A0
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq (%r15), %rax
movl $0x1, (%rax)
movl $0x1, %esi
movl $0x1, %ecx
movl $0x1, %r8d
movq %rbx, %rdi
movq %r14, %rdx
movl $0x1, %r9d
callq 0x1da4
movq (%rbx), %rax
movl $0x2, (%rax)
xorl %eax, %eax
jmp 0x3c3a
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x5dc2
movq 0x8(%rsi), %rdx
addq $0x10, %rsi
movslq 0x210(%rdi), %rax
movslq 0x290(%rdx), %rcx
movslq 0x28c(%rdx), %r8
xorl %ebx, %ebx
movl $0x1, %edx
movq %rsi, %rdi
movq %rax, %rsi
xorl %r9d, %r9d
callq 0x1da4
movl $0x14, %ecx
testl %eax, %eax
jne 0x5dc7
jmp 0x5de8
movl $0xe, %ecx
leaq 0x2277(%rip), %rdi      # 0x8045
leaq 0x2a0d(%rip), %rsi      # 0x87e2
leaq 0x2a13(%rip), %rdx      # 0x87ef
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5e61
movq %rsi, %rbx
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x5e68
movl 0x18(%rcx), %edx
leaq 0x10(%rbx), %rax
imull 0x20(%rcx), %edx
movslq 0x210(%rdi), %rsi
imull 0x28(%rcx), %edx
movslq %edx, %rdx
movl $0x1, %ecx
movl $0x1, %r8d
movq %rax, %rdi
movl $0x1, %r9d
callq 0x1da4
movl $0x31, %ecx
testl %eax, %eax
jne 0x5e6d
movq 0x10(%rbx), %rdi
addq $0x28, %rbx
movq %rbx, %rsi
callq 0x219a
movl $0x34, %ecx
testl %eax, %eax
jne 0x5e6d
xorl %eax, %eax
jmp 0x5e8e
movl $0x2a, %ecx
jmp 0x5e6d
movl $0x2c, %ecx
leaq 0x21d1(%rip), %rdi      # 0x8045
leaq 0x2982(%rip), %rsi      # 0x87fd
leaq 0x298a(%rip), %rdx      # 0x880c
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
testq %rsi, %rsi
je 0x5fc8
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x5fcf
movq 0x10(%rsi), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, 0x20(%rsp)
testq %rcx, %rcx
je 0x5fc4
movq 0x8(%rdx), %rcx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rdi
movq 0x28(%rax), %r8
movq 0x28(%rdx), %r9
imulq 0x20(%rdx), %r9
movq 0x18(%rdx), %rax
imulq %r9, %rax
shlq $0x3, %rax
movq %rax, 0x18(%rsp)
shlq $0x3, %r9
movq %r8, %rax
imulq %rdi, %rax
movq %rax, %rdx
movq %rsi, %r11
imulq %rsi, %rdx
shlq $0x3, %rdx
movq %rdx, 0x10(%rsp)
shlq $0x3, %rax
movq %rax, 0x30(%rsp)
leaq (,%r8,8), %r14
movq %rdi, %r15
negq %r15
xorl %edx, %edx
movq %rdx, 0x28(%rsp)
testq %r11, %r11
je 0x5fa2
xorl %r13d, %r13d
movq 0x8(%rsp), %rsi
xorl %eax, %eax
testq %r8, %r8
je 0x5f95
movq %rsi, %rdx
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x5f89
movslq %eax, %r10
imulq %r9, %r10
addq %rcx, %r10
movq %rdx, %rbp
xorl %r12d, %r12d
movsd (%rbp), %xmm0
movsd %xmm0, (%r10)
addq %r9, %r10
decq %r12
addq %r14, %rbp
cmpq %r12, %r15
jne 0x5f6e
subl %r12d, %eax
incq %rbx
addq $0x8, %rdx
cmpq %r8, %rbx
jne 0x5f59
incq %r13
addq 0x30(%rsp), %rsi
cmpq %r11, %r13
jne 0x5f4f
movq 0x28(%rsp), %rdx
incq %rdx
addq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
addq %rax, 0x8(%rsp)
cmpq 0x20(%rsp), %rdx
jne 0x5f3b
xorl %eax, %eax
jmp 0x5ff5
movl $0x3b, %ecx
jmp 0x5fd4
movl $0x3e, %ecx
leaq 0x206a(%rip), %rdi      # 0x8045
leaq 0x281b(%rip), %rsi      # 0x87fd
leaq 0x2833(%rip), %rdx      # 0x881c
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x63cd
movq %rsi, %rbx
movq 0xa8(%rsi), %rax
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x63e9
movq 0x8(%rbx), %r14
leaq 0x10(%rbx), %rdx
movl 0x288(%r14), %ecx
leaq 0x18(%rbx), %r15
leaq 0x20(%rbx), %rax
movl $0x1, %r10d
movl $0x1, %r8d
movl $0x1, %r9d
pushq %rax
pushq %r15
pushq %r10
pushq %r10
callq 0x3b2a
addq $0x20, %rsp
movq 0x298(%r14), %rax
testq %rax, %rax
je 0x6405
movq (%r15), %rdi
callq *%rax
movq 0x2a0(%r14), %rax
testq %rax, %rax
je 0x6421
movq 0x20(%rbx), %rdi
callq *%rax
movq 0x18(%rbx), %rsi
movl $0x1, (%rsi)
leaq 0x24d8(%rip), %rdi      # 0x8862
callq 0x3d39
movq 0x10(%rbx), %rdi
leaq 0xf8(%rbx), %rsi
callq 0x219a
movq 0x10(%rbx), %rdi
leaq 0x28(%rbx), %rsi
callq 0x219a
movq 0x18(%rbx), %rdi
leaq 0x30(%rbx), %rsi
callq 0x219a
movq 0x20(%rbx), %rdi
addq $0x38, %rbx
movq %rbx, %rsi
callq 0x219a
xorl %eax, %eax
jmp 0x6447
leaq 0x1c71(%rip), %rdi      # 0x8045
leaq 0x2468(%rip), %rsi      # 0x8843
leaq 0x2470(%rip), %rdx      # 0x8852
movl $0x26, %ecx
jmp 0x643b
leaq 0x1c55(%rip), %rdi      # 0x8045
leaq 0x244c(%rip), %rsi      # 0x8843
leaq 0x2454(%rip), %rdx      # 0x8852
movl $0x29, %ecx
jmp 0x643b
leaq 0x1c39(%rip), %rdi      # 0x8045
leaq 0x2430(%rip), %rsi      # 0x8843
leaq 0x2438(%rip), %rdx      # 0x8852
movl $0x30, %ecx
jmp 0x643b
leaq 0x1c1d(%rip), %rdi      # 0x8045
leaq 0x2414(%rip), %rsi      # 0x8843
leaq 0x241c(%rip), %rdx      # 0x8852
movl $0x33, %ecx
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6a72
leaq 0x15eb(%rip), %rdi      # 0x8045
leaq 0x1e2f(%rip), %rsi      # 0x8890
leaq 0x1e35(%rip), %rdx      # 0x889d
movl $0x2e, %ecx
jmp 0x6b0d
movq %rax, %rcx
movq 0x20(%r8), %rax
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x6a9f
leaq 0x15bb(%rip), %rdi      # 0x8045
leaq 0x1dff(%rip), %rsi      # 0x8890
leaq 0x1e05(%rip), %rdx      # 0x889d
movl $0x2f, %ecx
jmp 0x6b0d
leaq 0x10(%rbx), %r9
movslq 0x210(%rdi), %rsi
movq 0x18(%r8), %rdx
movslq %ecx, %rcx
movslq %eax, %r8
movq %r9, %rdi
movl $0x1, %r9d
callq 0x1da4
testl %eax, %eax
je 0x6ae2
leaq 0x1578(%rip), %rdi      # 0x8045
leaq 0x1dbc(%rip), %rsi      # 0x8890
leaq 0x1dc2(%rip), %rdx      # 0x889d
movl $0x36, %ecx
jmp 0x6b0d
movq 0x10(%rbx), %rdi
leaq 0x28(%rbx), %rsi
callq 0x219a
testl %eax, %eax
je 0x6b21
leaq 0x154b(%rip), %rdi      # 0x8045
leaq 0x1d8f(%rip), %rsi      # 0x8890
leaq 0x1d95(%rip), %rdx      # 0x889d
movl $0x39, %ecx
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x28c(%r14), %eax
movl %eax, 0xec(%rbx)
xorl %eax, %eax
jmp 0x6b19
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
movl $0xa, %edi
callq 0x1030
movl $0x1, %edi
callq 0x1050
leaq 0xe66(%rip), %rdi       # 0x2004
movl $0x41, %esi
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x1060
leaq 0xe5b(%rip), %rbx       # 0x2011
xorl %r14d, %r14d
movq %rbx, %rdi
movl %r14d, %esi
xorl %eax, %eax
callq 0x1040
movl $0x1, %edi
callq 0x1070
incl %r14d
jmp 0x11b9