// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]gh_cpp/Src/gh_cpp2.c
// Function: do_include
int
do_include(int ln, char *from)
{	FILE *tfd;
	char *p, *q, *s;

	if (misra_rules
	&&  ln == 0	/* check top level source file only */
	&&  sawcode)
		m_rule(19, 1, "#include preceded by code");

	skipwhite();
	sawcode = 0;

	if (*nowc == '"')
	{	nowc++;
		p = strchr(nowc, '"');
		if (!p) fatal_error("syntax error in directive");
		*p = '\0';

		if ((q = strrchr(filename, '/')) != NULL
		&&   strrchr(nowc, '/') == NULL)	/* new 3/24/05 */
		{	/* prepend directory to name in nowc */
			*q = '\0';
			s = (char *) emalloc(strlen(filename)+strlen(nowc)+1+1);
			sprintf(s, "%s/%s", filename, nowc);
			*q = '/';
		} else
			s = next_file(nowc);

		if ((tfd = fopen(s, "r")) != NULL)
		{	fclose(tfd);
			if (verbose>1) printf("/**** #include: %s ****/\n", s);
			do_file(from, lineno, s);
		} else
		{	if (q != NULL)
				s = next_file(nowc); /* revert */
			if (!search_sys(sysdirs, s))
			{	if (!not_printing[level])
				fprintf(stderr, "%s,%d: cannot find include file %s\n",
					filename, lineno, s);
				*p = '"';
				return -1;
		}	}
		*p = '"';
	} else if (*nowc == '<')
	{	nowc++;
		p = strchr(nowc, '>');
		if (!p) fatal_error("syntax error in directive");
		*p = '\0';
		if (!search_sys(sysdirs, nowc))
		{	if (!not_printing[level])
			fprintf(stderr, "%s,%d: cannot find include file %s\n",
				filename, lineno, nowc);
			*p = '>';
			return -1;
		}
		*p = '>';
	} else
		return 0;	/* passed to preprocessor */

	if (stack_depth <= 1 || !main_only)
		printf("# %d \"%s\"\n", lineno, from);
	return 1;		/* not passed to preprocessor */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xabfe(%rip), %rax      # 0x14f94
cmpl $0x0, (%rax)
je 0xa3c3
cmpl $0x0, -0x8(%rbp)
jne 0xa3c3
leaq 0xc048(%rip), %rax      # 0x163f0
cmpl $0x0, (%rax)
je 0xa3c3
movl $0x13, %edi
movl $0x1, %esi
leaq 0x6f83(%rip), %rdx      # 0x11341
callq 0xca50
callq 0x4690
leaq 0xc021(%rip), %rax      # 0x163f0
movl $0x0, (%rax)
leaq 0xabc4(%rip), %rax      # 0x14fa0
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x22, %eax
jne 0xa5eb
leaq 0xabae(%rip), %rax      # 0x14fa0
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0xaba0(%rip), %rax      # 0x14fa0
movq %rcx, (%rax)
leaq 0xab96(%rip), %rax      # 0x14fa0
movq (%rax), %rdi
movl $0x22, %esi
callq 0x4090
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xa42e
leaq 0x6f32(%rip), %rdi      # 0x1135b
callq 0x42b0
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
leaq 0x9cb4(%rip), %rax      # 0x140f0
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x40b0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0xa4e6
leaq 0xab42(%rip), %rax      # 0x14fa0
movq (%rax), %rdi
movl $0x2f, %esi
callq 0x40b0
cmpq $0x0, %rax
jne 0xa4e6
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
leaq 0x9c71(%rip), %rax      # 0x140f0
movq (%rax), %rdi
callq 0x4080
movq %rax, -0x38(%rbp)
leaq 0xab0e(%rip), %rax      # 0x14fa0
movq (%rax), %rdi
callq 0x4080
movq %rax, %rcx
movq -0x38(%rbp), %rax
addq %rcx, %rax
addq $0x1, %rax
addq $0x1, %rax
movl %eax, %edi
callq 0x4320
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x9c2e(%rip), %rax      # 0x140f0
movq (%rax), %rdx
leaq 0xaad4(%rip), %rax      # 0x14fa0
movq (%rax), %rcx
leaq 0x6e9f(%rip), %rsi      # 0x11375
movb $0x0, %al
callq 0x4170
movq -0x28(%rbp), %rax
movb $0x2f, (%rax)
jmp 0xa4f9
leaq 0xaab3(%rip), %rax      # 0x14fa0
movq (%rax), %rdi
callq 0xa230
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x4174(%rip), %rsi      # 0xe678
callq 0x4140
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0xa555
movq -0x18(%rbp), %rdi
callq 0x4070
leaq 0xba8d(%rip), %rax      # 0x15fb0
cmpl $0x1, (%rax)
jle 0xa53a
movq -0x30(%rbp), %rsi
leaq 0x6e48(%rip), %rdi      # 0x1137b
movb $0x0, %al
callq 0x40a0
movq -0x10(%rbp), %rdi
leaq 0xaa4b(%rip), %rax      # 0x14f90
movl (%rax), %esi
movq -0x30(%rbp), %rdx
callq 0xa720
jmp 0xa5df
cmpq $0x0, -0x28(%rbp)
je 0xa56f
leaq 0xaa3d(%rip), %rax      # 0x14fa0
movq (%rax), %rdi
callq 0xa230
movq %rax, -0x30(%rbp)
movq 0xcffa(%rip), %rdi      # 0x17570
movq -0x30(%rbp), %rsi
callq 0xaad0
cmpl $0x0, %eax
jne 0xa5dd
leaq 0xba29(%rip), %rax      # 0x15fb4
movslq (%rax), %rcx
leaq 0xba2b(%rip), %rax      # 0x15fc0
cmpl $0x0, (%rax,%rcx,4)
jne 0xa5ca
movq 0x9a56(%rip), %rax      # 0x13ff8
movq (%rax), %rdi
leaq 0x9b44(%rip), %rax      # 0x140f0
movq (%rax), %rdx
leaq 0xa9da(%rip), %rax      # 0x14f90
movl (%rax), %ecx
movq -0x30(%rbp), %r8
leaq 0x6dd2(%rip), %rsi      # 0x11395
movb $0x0, %al
callq 0x4110
movq -0x20(%rbp), %rax
movb $0x22, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xa70d
jmp 0xa5df
movq -0x20(%rbp), %rax
movb $0x22, (%rax)
jmp 0xa6d6
leaq 0xa9ae(%rip), %rax      # 0x14fa0
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x3c, %eax
jne 0xa6cb
leaq 0xa998(%rip), %rax      # 0x14fa0
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0xa98a(%rip), %rax      # 0x14fa0
movq %rcx, (%rax)
leaq 0xa980(%rip), %rax      # 0x14fa0
movq (%rax), %rdi
movl $0x3e, %esi
callq 0x4090
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0xa644
leaq 0x6d1c(%rip), %rdi      # 0x1135b
callq 0x42b0
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
movq 0xcf1e(%rip), %rdi      # 0x17570
leaq 0xa947(%rip), %rax      # 0x14fa0
movq (%rax), %rsi
callq 0xaad0
cmpl $0x0, %eax
jne 0xa6c2
leaq 0xb947(%rip), %rax      # 0x15fb4
movslq (%rax), %rcx
leaq 0xb949(%rip), %rax      # 0x15fc0
cmpl $0x0, (%rax,%rcx,4)
jne 0xa6b2
movq 0x9974(%rip), %rax      # 0x13ff8
movq (%rax), %rdi
leaq 0x9a62(%rip), %rax      # 0x140f0
movq (%rax), %rdx
leaq 0xa8f8(%rip), %rax      # 0x14f90
movl (%rax), %ecx
leaq 0xa8ff(%rip), %rax      # 0x14fa0
movq (%rax), %r8
leaq 0x6cea(%rip), %rsi      # 0x11395
movb $0x0, %al
callq 0x4110
movq -0x20(%rbp), %rax
movb $0x3e, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xa70d
movq -0x20(%rbp), %rax
movb $0x3e, (%rax)
jmp 0xa6d4
movl $0x0, -0x4(%rbp)
jmp 0xa70d
jmp 0xa6d6
cmpl $0x1, 0xdeaf(%rip)      # 0x1858c
jle 0xa6eb
leaq 0xbcf6(%rip), %rax      # 0x163dc
cmpl $0x0, (%rax)
jne 0xa706
leaq 0xa89e(%rip), %rax      # 0x14f90
movl (%rax), %esi
movq -0x10(%rbp), %rdx
leaq 0x6cba(%rip), %rdi      # 0x113b9
movb $0x0, %al
callq 0x40a0
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)