	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_path
_fix_path:                              ## @fix_path
	.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
	movslq	(%rsi), %r12
	leaq	(%rdi,%r12), %rax
	movslq	%ecx, %r9
	xorl	%r11d, %r11d
	cmpb	$47, (%rdi)
	leaq	(%rax,%r9), %r10
	sete	%r11b
	subq	%r11, %r10
	leaq	(%rdi,%r11), %rcx
	movq	%r10, %r8
	subq	%rdi, %r8
	movq	_PAXPATHLEN@GOTPCREL(%rip), %rbx
	cmpl	%r8d, (%rbx)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
	movl	$-1, %eax
	jmp	LBB0_30
LBB0_2:
	movl	%r8d, (%rsi)
	cmpq	%rcx, %rax
	jb	LBB0_19
## %bb.3:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	leaq	(%rdi,%r12), %r14
	leaq	(%rdi,%r12), %r9
	decq	%r9
	leaq	(%rdi,%r11), %r13
	decq	%r13
	cmpq	%r13, %r9
	movq	%r13, %rbx
	cmovbq	%r9, %rbx
	movq	%r14, %rsi
	subq	%rbx, %rsi
	cmpq	$32, %rsi
	jae	LBB0_5
## %bb.4:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ebx
	decq	%rax
	movb	%bl, (%r10)
	decq	%r10
	cmpq	%rcx, %rax
	jae	LBB0_18
LBB0_19:
	leaq	(%rdx,%r9), %r11
	decq	%r11
	cmpq	%rdx, %r11
	jb	LBB0_29
## %bb.20:
	leaq	(%rdx,%r9), %rax
	movl	$1, %ecx
	subq	%rax, %rcx
	movq	%rdx, %r15
	negq	%r15
	cmpq	%r15, %rcx
	cmovaq	%rcx, %r15
	addq	%rax, %r15
	cmpq	$8, %r15
	jb	LBB0_21
## %bb.23:
	movq	%r10, %rcx
	notq	%rcx
	addq	%rcx, %rax
	cmpq	$32, %rax
	jae	LBB0_24
LBB0_21:
	movq	%r11, %rax
	movq	%r10, %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	movb	%cl, (%rbx)
	decq	%rbx
	decq	%rax
	cmpq	%rdx, %rax
	jae	LBB0_22
LBB0_29:
	movslq	%r8d, %rax
	movb	$0, (%rdi,%rax)
	xorl	%eax, %eax
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	subq	%r13, %r9
	cmovaeq	%r9, %r15
	movq	%r10, %rsi
	subq	%r15, %rsi
	cmpq	%r10, %rsi
	ja	LBB0_6
## %bb.7:
	movq	%rax, %rsi
	subq	%r15, %rsi
	cmpq	%rax, %rsi
	ja	LBB0_8
## %bb.9:
	subq	%r10, %r14
	cmpq	$32, %r14
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	jb	LBB0_18
## %bb.10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	andq	$-32, %r14
	leaq	-32(%r14), %rsi
	movq	%rsi, %r15
	shrq	$5, %r15
	incq	%r15
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.12:
	negq	%r11
	movq	%r15, %rsi
	andq	$-2, %rsi
	leaq	(%r12,%rdi), %rbx
	addq	$-15, %rbx
	addq	%r9, %r11
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx), %xmm0
	movups	(%rbx), %xmm1
	movups	%xmm1, (%rbx,%r11)
	movups	%xmm0, -16(%rbx,%r11)
	movups	-48(%rbx), %xmm0
	movups	-32(%rbx), %xmm1
	movups	%xmm1, -32(%rbx,%r11)
	movups	%xmm0, -48(%rbx,%r11)
	addq	$64, %r13
	addq	$-64, %rbx
	addq	$-2, %rsi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_24:
	cmpq	$32, %r15
	jae	LBB0_31
## %bb.25:
	xorl	%esi, %esi
	jmp	LBB0_26
LBB0_6:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_18
LBB0_8:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_18
LBB0_31:
	movq	%r15, %rsi
	andq	$-32, %rsi
	leaq	-32(%rsi), %rax
	movq	%rax, %r14
	shrq	$5, %r14
	incq	%r14
	testq	%rax, %rax
	je	LBB0_32
## %bb.33:
	movq	%r14, %rax
	andq	$-2, %rax
	leaq	(%r9,%rdx), %rcx
	addq	$-16, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rbx), %xmm0
	movups	(%rcx,%rbx), %xmm1
	movups	%xmm1, -15(%r10,%rbx)
	movups	%xmm0, -31(%r10,%rbx)
	movups	-48(%rcx,%rbx), %xmm0
	movups	-32(%rcx,%rbx), %xmm1
	movups	%xmm1, -47(%r10,%rbx)
	movups	%xmm0, -63(%r10,%rbx)
	addq	$-64, %rbx
	addq	$-2, %rax
	jne	LBB0_34
## %bb.35:
	negq	%rbx
	jmp	LBB0_36
LBB0_32:
	xorl	%ebx, %ebx
LBB0_36:
	testb	$1, %r14b
	je	LBB0_38
## %bb.37:
	movq	%r11, %rax
	subq	%rbx, %rax
	movq	%r10, %rcx
	subq	%rbx, %rcx
	movups	-31(%rax), %xmm0
	movups	-15(%rax), %xmm1
	movups	%xmm1, -15(%rcx)
	movups	%xmm0, -31(%rcx)
LBB0_38:
	cmpq	%rsi, %r15
	je	LBB0_29
## %bb.39:
	testb	$24, %r15b
	je	LBB0_40
LBB0_26:
	movq	%r15, %r9
	andq	$-8, %r9
	movq	%r9, %r14
	negq	%r14
	movq	%r11, %rax
	subq	%r9, %rax
	movq	%r10, %rbx
	subq	%r9, %rbx
	negq	%rsi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	-7(%r11,%rsi), %rcx
	movq	%rcx, -7(%r10,%rsi)
	addq	$-8, %rsi
	cmpq	%rsi, %r14
	jne	LBB0_27
## %bb.28:
	cmpq	%r9, %r15
	jne	LBB0_22
	jmp	LBB0_29
LBB0_11:
	xorl	%r13d, %r13d
LBB0_14:
	testb	$1, %r15b
	je	LBB0_16
## %bb.15:
	movq	%r10, %rsi
	subq	%r13, %rsi
	movq	%rax, %rbx
	subq	%r13, %rbx
	movups	-31(%rbx), %xmm0
	movups	-15(%rbx), %xmm1
	movups	%xmm1, -15(%rsi)
	movups	%xmm0, -31(%rsi)
LBB0_16:
	subq	%r14, %r10
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_19
## %bb.17:
	subq	%r14, %rax
	jmp	LBB0_18
LBB0_40:
	subq	%rsi, %r10
	subq	%rsi, %r11
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_PAXPATHLEN,4,2                 ## @PAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File name %s/%s, too long"

	.no_dead_strip	_fix_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_path
_fix_path:                              ; @fix_path
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w3 killed $w3 def $x3
	ldrsw	x9, [x1]
	sxtw	x8, w3
	add	x11, x0, x9
	add	x9, x11, x8
	mov	x10, x0
	ldrb	w12, [x10], #1
	cmp	w12, #47
	cset	w13, eq
	csetm	x12, eq
	csel	x3, x0, x10, ne
	sub	x10, x9, x13
	sub	x9, x10, x0
Lloh0:
	adrp	x13, _PAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x13, [x13, _PAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x13]
	cmp	w13, w9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
	mov	w8, #-1
	b	LBB0_9
LBB0_2:
	str	w9, [x1]
	cmp	x11, x3
	b.lo	LBB0_6
; %bb.3:
	add	x10, x12, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #1
	ldrb	w14, [x11]
	strb	w14, [x11, x10]
	mov	x11, x13
	cmp	x13, x3
	b.hs	LBB0_4
; %bb.5:
	add	x10, x12, x8
	add	x10, x13, x10
LBB0_6:
	add	x8, x2, x8
	sub	x8, x8, #1
	cmp	x8, x2
	b.lo	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8], #-1
	strb	w11, [x10], #-1
	cmp	x8, x2
	b.hs	LBB0_7
LBB0_8:
	mov	w8, #0
	strb	wzr, [x0, w9, sxtw]
LBB0_9:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAXPATHLEN,4,2                 ; @PAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File name %s/%s, too long"

	.no_dead_strip	_fix_path
.subsections_via_symbols
