	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_filename                 ## -- Begin function check_filename
	.p2align	4, 0x90
_check_filename:                        ## @check_filename
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	%rsi, -16(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdx
	movq	%rax, %rdi
	callq	_skip_prefix
	movq	-16(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%rcx)
	je	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	movq	%rcx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	-16(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	-16(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_9
LBB0_6:
	movq	-16(%rbp), %rcx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	callq	_prefix_filename
	movq	%rax, %rcx
	movq	%rax, -16(%rbp)
	movq	%rax, %rbx
LBB0_11:
	leaq	-24(%rbp), %rsi
	movq	%rcx, %rdi
	callq	_lstat
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_is_missing_file_error
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_16
LBB0_14:
	movq	%rbx, %rdi
	callq	_free
	movl	$1, %eax
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-16(%rbp), %rsi
	movl	%eax, %edi
	callq	_die_errno
                                        ## implicit-def: $eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":/"

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

L_.str.2:                               ## @.str.2
	.asciz	":^"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"failed to stat '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_filename                 ; -- Begin function check_filename
	.p2align	2
_check_filename:                        ; @check_filename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x8
	bl	_skip_prefix
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w9, [x8]
	cbz	w9, LBB0_12
; %bb.2:
	mov	x19, #0
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x8
	bl	_skip_prefix
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_12
LBB0_6:
	ldr	x8, [sp, #8]
	cbz	x19, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x8
	bl	_prefix_filename
	mov	x8, x0
	str	x0, [sp, #8]
	mov	x19, x0
LBB0_8:
	mov	x1, sp
	mov	x0, x8
	bl	_lstat
	cbz	w0, LBB0_11
; %bb.9:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_is_missing_file_error
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_free
LBB0_12:
	mov	w0, #1
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x1, [sp, #8]
	bl	_die_errno
                                        ; implicit-def: $w0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":/"

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

l_.str.2:                               ; @.str.2
	.asciz	":^"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"failed to stat '%s'"

.subsections_via_symbols
