	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_fileref
_valid_fileref:                         ## @valid_fileref
	.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	_FALSE@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rax
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	cmpb	$0, (%rdi)
	je	LBB0_10
## %bb.3:
	movq	_DIR_SEP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r15b
	movsbl	%r15b, %ebx
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$46, (%rax)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$46, 1(%rax)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	2(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	%cl, %r15b
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %r14
LBB0_10:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DIR_SEP,1,0                    ## @DIR_SEP
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.no_dead_strip	_valid_fileref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_fileref
_valid_fileref:                         ; @valid_fileref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _FALSE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.1:
	cbz	x1, LBB0_9
; %bb.2:
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.3:
Lloh2:
	adrp	x8, _DIR_SEP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIR_SEP@GOTPAGEOFF]
	ldrb	w21, [x8]
Lloh4:
	adrp	x20, _FALSE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	sxtb	w19, w21
Lloh6:
	adrp	x22, _TRUE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x1
	mov	x1, x19
	bl	_strchr
	mov	x1, x0
	cbz	x0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x1]
	cmp	w8, #46
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x1, #1]
	cmp	w8, #46
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x1, #2]
	cmp	w8, #0
	ccmp	w21, w8, #4, ne
	b.ne	LBB0_4
	b	LBB0_9
LBB0_8:
	mov	x20, x22
LBB0_9:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DIR_SEP,1,0                    ; @DIR_SEP
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.no_dead_strip	_valid_fileref
.subsections_via_symbols
