	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_include
_read_include:                          ## @read_include
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-44(%rbp), %rsi
	callq	_read_cpp_header_name
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_expect_newline
	cmpb	$47, (%r12)
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_try_include
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_2
LBB0_3:
	cmpl	$0, -44(%rbp)
	je	LBB0_4
LBB0_8:
	movq	_std_include_path@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_vec_len
	testl	%eax, %eax
	jle	LBB0_2
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_vec_get
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_try_include
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	movl	(%r13), %edi
	callq	_vec_len
	cmpl	%eax, %ebx
	jl	LBB0_11
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_errort
	jmp	LBB0_12
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_strdup
	movl	%eax, %edi
	callq	_dirname
	movq	%rax, %rdi
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_try_include
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"."

	.comm	_std_include_path,4,2           ## @std_include_path
L_.str.2:                               ## @.str.2
	.asciz	"cannot find header file: %s"

	.no_dead_strip	_read_include
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_include
_read_include:                          ; @read_include
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_read_cpp_header_name
	mov	x20, x0
	bl	_expect_newline
	ldrb	w8, [x20]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_try_include
	cbnz	x0, LBB0_12
	b	LBB0_7
LBB0_2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
LBB0_3:
Lloh2:
	adrp	x23, _std_include_path@GOTPAGE
Lloh3:
	ldr	x23, [x23, _std_include_path@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_vec_len
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x22
	bl	_vec_get
	mov	x1, x20
	mov	x2, x21
	bl	_try_include
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	ldr	w0, [x23]
	bl	_vec_len
	cmp	w22, w0
	b.lt	LBB0_5
LBB0_7:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_errort
	b	LBB0_12
LBB0_8:
	ldr	x0, [x22]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_strdup
	bl	_dirname
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	mov	x1, x20
	mov	x2, x21
	bl	_try_include
	cbz	x0, LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"."

	.comm	_std_include_path,4,2           ; @std_include_path
l_.str.2:                               ; @.str.2
	.asciz	"cannot find header file: %s"

	.no_dead_strip	_read_include
.subsections_via_symbols
