	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srcfile_relative_open          ## -- Begin function srcfile_relative_open
	.p2align	4, 0x90
_srcfile_relative_open:                 ## @srcfile_relative_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_streq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	_xstrdup
	movq	%rax, %r15
	jmp	LBB0_4
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_fopen_any_on_path
	movq	%rax, %r15
	cmpq	$0, -32(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_die
LBB0_4:
	movq	_depfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%r15, (%r14)
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_free
LBB0_9:
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_stdin,8,3                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"<stdin>"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't open \"%s\": %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_depfile,8,3                    ## @depfile
L_.str.3:                               ## @.str.3
	.asciz	" %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srcfile_relative_open          ; -- Begin function srcfile_relative_open
	.p2align	2
_srcfile_relative_open:                 ; @srcfile_relative_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_streq
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stdin@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xstrdup
	mov	x20, x0
	b	LBB0_4
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_fopen_any_on_path
	mov	x20, x0
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_die
LBB0_4:
Lloh12:
	adrp	x8, _depfile@GOTPAGE
Lloh13:
	ldr	x8, [x8, _depfile@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	str	x20, [x19]
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_free
LBB0_9:
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_stdin,8,3                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"<stdin>"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't open \"%s\": %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_depfile,8,3                    ; @depfile
l_.str.3:                               ; @.str.3
	.asciz	" %s"

.subsections_via_symbols
