// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/pre-process.c
// Function: handle_include_path
static int handle_include_path(struct stream *stream, struct token **list, struct token *token, int how)
{
	const char *filename;
	struct token *next;
	const char **path;
	int expect;
	int flen;

	next = token->next;
	expect = '>';
	if (!match_op(next, '<')) {
		expand_list(&token->next);
		expect = 0;
		next = token;
		if (match_op(token->next, '<')) {
			next = token->next;
			expect = '>';
		}
	}

	token = next->next;
	filename = token_name_sequence(token, expect, token);
	flen = strlen(filename) + 1;

	/* Absolute path? */
	if (filename[0] == '/') {
		if (try_include(token->pos, "", filename, flen, list, includepath))
			return 0;
		goto out;
	}

	switch (how) {
	case 1:
		path = stream->next_path;
		break;
	case 2:
		includepath[0] = "";
		path = includepath;
		break;
	default:
		/* Dir of input file is first dir to search for quoted includes */
		set_stream_include_path(stream);
		path = expect ? angle_includepath : quote_includepath;
		break;
	}
	/* Check the standard include paths.. */
	if (do_include_path(path, list, token, filename, flen))
		return 0;
out:
	error_die(token->pos, "unable to open '%s'", filename);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x3e, -0x44(%rbp)
movq -0x38(%rbp), %rdi
movl $0x3c, %esi
callq 0x2c380
cmpl $0x0, %eax
jne 0x2e595
movq -0x20(%rbp), %rdi
addq $0x8, %rdi
callq 0x2e6d0
movl $0x0, -0x44(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movl $0x3c, %esi
callq 0x2c380
cmpl $0x0, %eax
je 0x2e593
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x3e, -0x44(%rbp)
jmp 0x2e595
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movl -0x44(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0x2e730
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x110c0
addq $0x1, %rax
movl %eax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0x2e60c
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rdx
movl -0x48(%rbp), %ecx
movq -0x18(%rbp), %r8
movq (%rax), %rdi
leaq 0x3423f(%rip), %rsi     # 0x62829
leaq 0x59e2f(%rip), %r9      # 0x88420
callq 0x2e830
cmpl $0x0, %eax
je 0x2e607
movl $0x0, -0x4(%rbp)
jmp 0x2e6bd
jmp 0x2e6a4
movl -0x24(%rbp), %eax
movl %eax, -0x4c(%rbp)
subl $0x1, %eax
je 0x2e623
jmp 0x2e619
movl -0x4c(%rbp), %eax
subl $0x2, %eax
je 0x2e631
jmp 0x2e64c
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x2e67b
leaq 0x341f1(%rip), %rax     # 0x62829
movq %rax, 0x59de1(%rip)     # 0x88420
leaq 0x59dda(%rip), %rax     # 0x88420
movq %rax, -0x40(%rbp)
jmp 0x2e67b
movq -0x10(%rbp), %rdi
callq 0x2e950
cmpl $0x0, -0x44(%rbp)
je 0x2e668
movq 0x5a9c6(%rip), %rax     # 0x89028
movq %rax, -0x58(%rbp)
jmp 0x2e673
movq 0x5a9c1(%rip), %rax     # 0x89030
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl -0x48(%rbp), %r8d
callq 0x2ea70
cmpl $0x0, %eax
je 0x2e6a2
movl $0x0, -0x4(%rbp)
jmp 0x2e6bd
jmp 0x2e6a4
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rdx
movq (%rax), %rdi
leaq 0x3946f(%rip), %rsi     # 0x67b25
movb $0x0, %al
callq 0x170e0
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)