	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filename_check                 ## -- Begin function filename_check
	.p2align	4, 0x90
_filename_check:                        ## @filename_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%rbx, %r15
	movzbl	(%r15), %edi
	callq	_isalnum
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movb	1(%r15), %al
	xorl	%r14d, %r14d
	testb	%al, %al
	je	LBB0_8
## %bb.2:
	leaq	2(%r15), %rbx
	movq	_good_chars@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	movzbl	-1(%rbx), %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	cmpb	$0, -1(%rbx)
	je	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	$553, %edi                      ## imm = 0x229
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_lreply
	leaq	L_.str.1(%rip), %rsi
	movl	$553, %edi                      ## imm = 0x229
	xorl	%eax, %eax
	callq	_lreply
	movq	_good_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$553, %edi                      ## imm = 0x229
	callq	_reply
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_good_chars,4,2                 ## @good_chars
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s\" is not an acceptable filename."

L_.str.1:                               ## @.str.1
	.asciz	"The filename must start with an alphanumeric character and must only"

L_.str.2:                               ## @.str.2
	.asciz	"consist of alphanumeric characters or any of the following: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filename_check                 ; -- Begin function filename_check
	.p2align	2
_filename_check:                        ; @filename_check
	.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, x0
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x19, x19, x0, eq
	ldrb	w0, [x19]
	bl	_isalnum
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x19
	ldrb	w8, [x20, #1]!
	cbz	w8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x21, _good_chars@GOTPAGE
Lloh1:
	ldr	x21, [x21, _good_chars@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x20, #1]!
	cbz	w8, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isalnum
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	ldrb	w1, [x20]
	bl	_strchr
	cbnz	x0, LBB0_3
; %bb.6:
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
LBB0_7:
	str	x19, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #553
	bl	_lreply
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #553
	bl	_lreply
Lloh6:
	adrp	x8, _good_chars@GOTPAGE
Lloh7:
	ldr	x8, [x8, _good_chars@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #553
	bl	_reply
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_good_chars,4,2                 ; @good_chars
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s\" is not an acceptable filename."

l_.str.1:                               ; @.str.1
	.asciz	"The filename must start with an alphanumeric character and must only"

l_.str.2:                               ; @.str.2
	.asciz	"consist of alphanumeric characters or any of the following: %s"

.subsections_via_symbols
