// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, 0x1c(%rsp)
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, 0x10(%rsp)
movq 0x8(%rdx), %rax
movl (%rax), %ecx
andl $0x3f, %ecx
cmpl $0x12, %ecx
jne 0x20ce4
cmpl $0x3c, 0x10(%rax)
je 0x20d0e
leaq 0x8(%r15), %r12
movq %r12, %rdi
callq 0x20f7a
movq (%r12), %rax
movl (%rax), %ecx
andl $0x3f, %ecx
movl $0x0, 0xc(%rsp)
movb $0x1, %dl
cmpl $0x12, %ecx
jne 0x20d1b
cmpl $0x3c, 0x10(%rax)
jne 0x20d1b
movl $0x3e, 0xc(%rsp)
xorl %edx, %edx
movq %rax, %r15
movl %edx, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq 0x8(%r15), %rbp
leaq 0x49641(%rip), %r12     # 0x6a370
cmpq 0x401a2(%rip), %rbp     # 0x60ed8
je 0x20d99
leaq 0x668a1(%rip), %rbx     # 0x875e0
movq %rbp, %r15
movq (%r15), %rax
andl $0x3f, %eax
cmpq $0x12, %rax
jne 0x20d58
movl 0xc(%rsp), %ecx
cmpl %ecx, 0x10(%r15)
je 0x20d9c
cmpl $0x10, %eax
jne 0x20d67
movq 0x10(%r15), %r13
addq $0x4, %r13
jmp 0x20d72
movq %r15, %rdi
callq 0x2e5c0
movq %rax, %r13
movq %r13, %rdi
callq 0xe0d0
movslq %eax, %r14
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0xe1e0
addq %r14, %r12
movq 0x8(%r15), %r15
cmpq %rbx, %r15
jne 0x20d42
jmp 0x20d9c
movq %rbp, %r15
movb $0x0, (%r12)
cmpb $0x0, 0x18(%rsp)
jne 0x20dcf
movl (%r15), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x20dbd
movl 0xc(%rsp), %eax
cmpl %eax, 0x10(%r15)
je 0x20dcf
movq (%rbp), %rdi
leaq 0x264fa(%rip), %rsi     # 0x472c2
xorl %eax, %eax
callq 0x11a38
leaq 0x4959a(%rip), %rdi     # 0x6a370
callq 0xe0d0
movq %rax, %r15
incl %r15d
cmpb $0x2f, 0x49588(%rip)    # 0x6a370
movq 0x20(%rsp), %rbx
jne 0x20e19
movq (%rbp), %rdi
leaq 0x20ad3(%rip), %rsi     # 0x418cd
leaq 0x435af(%rip), %r8      # 0x643b0
movl %r15d, %edx
movq %rbx, %rcx
callq 0x20fdc
testl %eax, %eax
jne 0x20f52
jmp 0x20f61
movl 0x1c(%rsp), %eax
cmpl $0x2, %eax
je 0x20e35
cmpl $0x1, %eax
jne 0x20e4f
movq 0x10(%rsp), %rax
movq 0x18(%rax), %r14
jmp 0x20f23
leaq 0x20a91(%rip), %rax     # 0x418cd
movq %rax, 0x4356d(%rip)     # 0x643b0
leaq 0x43566(%rip), %r14     # 0x643b0
jmp 0x20f23
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r12
testq %r12, %r12
jne 0x20f02
movq 0x8(%rax), %r14
movq %r14, %rdi
movl $0x2f, %esi
callq 0xe110
testq %rax, %rax
je 0x20ef2
movq %rax, %r13
subl %r14d, %r13d
shlq $0x20, %r13
movabsq $0x200000000, %rdi      # imm = 0x200000000
addq %r13, %rdi
sarq $0x20, %rdi
callq 0xe200
movq %rax, %r12
movq %r14, %rsi
movabsq $0x100000000, %r14      # imm = 0x100000000
addq %r13, %r14
sarq $0x20, %r14
movq %rax, %rdi
movq %r14, %rdx
callq 0xe1e0
movb $0x0, (%r12,%r14)
cmpb $0x2e, (%r12)
jne 0x20ef9
cmpb $0x2f, 0x1(%r12)
movq 0x10(%rsp), %rcx
jne 0x20efe
incq %r12
movzbl 0x1(%r12), %eax
incq %r12
cmpl $0x2f, %eax
je 0x20ed5
cmpl $0x2e, %eax
jne 0x20efe
cmpb $0x2f, 0x1(%r12)
je 0x20ed2
jmp 0x20efe
leaq 0x209d4(%rip), %r12     # 0x418cd
movq 0x10(%rsp), %rcx
movq %r12, 0x10(%rcx)
movq %r12, 0x434a7(%rip)     # 0x643b0
leaq 0x43e08(%rip), %rax     # 0x64d18
leaq 0x43e09(%rip), %rcx     # 0x64d20
cmpb $0x0, 0x18(%rsp)
cmoveq %rax, %rcx
movq (%rcx), %r14
addq $0x8, %r14
movq -0x8(%r14), %r12
testq %r12, %r12
je 0x20f61
movq (%rbp), %rdi
movq %r12, %rsi
movl %r15d, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0x20fdc
addq $0x8, %r14
testl %eax, %eax
je 0x20f27
testq %r12, %r12
je 0x20f61
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbp), %rdi
leaq 0x2622d(%rip), %rsi     # 0x47199
leaq 0x493fd(%rip), %rdx     # 0x6a370
xorl %eax, %eax
callq 0x11b54