	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_vsnpath
_perf_vsnpath:                          ## @perf_vsnpath
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_get_perf_dir
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	leaq	1(%rax), %r12
	cmpq	%r13, %r12
	ja	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movsbl	-1(%rbx,%r15), %edi
	callq	_is_dir_sep
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %r12
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_5:
	movb	$47, (%r14,%rbx)
LBB0_6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r14,%r12), %rdi
	movq	%r13, %rsi
	subq	%r12, %rsi
	callq	_vsnprintf
	addq	%r12, %rax
	cmpq	%r13, %rax
	jae	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cleanup_path                   ## TAILCALL
LBB0_7:
	movq	_bad_path@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_strlcpy
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bad_path,4,2                   ## @bad_path
	.no_dead_strip	_perf_vsnpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_vsnpath
_perf_vsnpath:                          ; @perf_vsnpath
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_get_perf_dir
	mov	x24, x0
	bl	_strlen
	add	x25, x0, #1
	cmp	x25, x20
	b.hi	LBB0_6
; %bb.1:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	cbz	x23, LBB0_4
; %bb.2:
	add	x8, x23, x24
	ldursb	w0, [x8, #-1]
	bl	_is_dir_sep
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w8, #47
	strb	w8, [x19, x23]
	mov	x23, x25
LBB0_4:
	add	x0, x19, x23
	sub	x1, x20, x23
	mov	x2, x22
	mov	x3, x21
	bl	_vsnprintf
	add	x8, x0, x23
	cmp	x8, x20
	b.hs	LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_cleanup_path
LBB0_6:
Lloh0:
	adrp	x8, _bad_path@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bad_path@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_strlcpy
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bad_path,4,2                   ; @bad_path
	.no_dead_strip	_perf_vsnpath
.subsections_via_symbols
