	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfr_fix_anchor
_pfr_fix_anchor:                        ## @pfr_fix_anchor
	.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, %r15
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpb	$47, (%rdi)
	jne	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, 1(%r15,%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdx
	subq	%rbx, %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r15, %rdi
	callq	_memmove
	leaq	(%r15,%r12), %rdi
	subq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
LBB0_4:
	movl	$-1, %r14d
	cmpb	$0, -1(%r12,%r15)
	jne	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %r12
	jbe	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r15,%rax)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	cmpq	%rax, %r12
	ja	LBB0_6
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,8,3                 ## @MAXPATHLEN
	.no_dead_strip	_pfr_fix_anchor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfr_fix_anchor
_pfr_fix_anchor:                        ; @pfr_fix_anchor
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x20
	ldrb	w8, [x8, #1]
	add	x20, x20, #1
	cmp	w8, #47
	b.eq	LBB0_2
; %bb.3:
	sub	x2, x21, x20
	add	x1, x19, x20
	mov	x0, x19
	bl	_memmove
	add	x8, x19, x21
	sub	x0, x8, x20
	mov	w1, #0
	mov	x2, x20
	bl	_memset
LBB0_4:
	add	x8, x21, x19
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_6
LBB0_5:
	mov	w0, #-1
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x21, x8
	b.ls	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	cbnz	w9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x21, x8
	b.hi	LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,8,3                 ; @MAXPATHLEN
	.no_dead_strip	_pfr_fix_anchor
.subsections_via_symbols
