	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shortpath
_shortpath:                             ## @shortpath
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_cwd_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movslq	%eax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_abspath
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %esi
	movsbl	%al, %edi
	callq	_IS_SAME_PATH_CHAR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	movzbl	1(%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_1
LBB0_3:
	movb	(%rbx), %al
	leaq	L_.str(%rip), %r14
	testb	%al, %al
	je	LBB0_30
## %bb.4:
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpb	$0, (%rbx)
	je	LBB0_30
## %bb.6:
	incq	%rbx
	movq	%rbx, %r14
	jmp	LBB0_30
LBB0_7:
	cmpb	$0, (%r12)
	je	LBB0_3
LBB0_8:
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.9:
	incq	%r12
	incq	%rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	-2(%r12), %edi
	callq	_IS_DIR_SEPARATOR
	decq	%r12
	decq	%rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_12:
	xorl	%r14d, %r14d
LBB0_13:
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_16
## %bb.14:
	incq	%r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	movzbl	(%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_15
LBB0_16:
	leal	(%r14,%r14,2), %r12d
	movq	%rbx, %rdi
	callq	_strlen
	addl	%r12d, %eax
	cmpl	%r13d, %eax
	jae	LBB0_29
## %bb.17:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r12
	testl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_21
## %bb.18:
	leaq	(%rdi,%r13), %rax
	movq	_DIR_SEPARATOR@GOTPCREL(%rip), %rsi
	movq	%r13, %rdx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	3(%rdx), %r12
	cmpq	%r12, %rax
	jbe	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movw	$11822, (%rdx)                  ## imm = 0x2E2E
	movzbl	(%rsi), %ecx
	movb	%cl, 2(%rdx)
	movq	%r12, %rdx
	decl	%r14d
	jne	LBB0_19
LBB0_21:
	movq	%r13, %rax
	addq	%rdi, %rax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rax
	jbe	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rbx), %ecx
	incq	%rbx
	movb	%cl, (%r12)
	incq	%r12
	testb	%cl, %cl
	jne	LBB0_22
## %bb.24:
	movsbl	-2(%r12), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movb	$0, -2(%r12)
LBB0_26:
	movq	%r13, %r14
	jmp	LBB0_30
LBB0_29:
	movq	%r15, %r14
LBB0_30:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cwd_buffer,8,3                 ## @cwd_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_DIR_SEPARATOR,4,2              ## @DIR_SEPARATOR
	.no_dead_strip	_shortpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shortpath
_shortpath:                             ; @shortpath
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cwd_buffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cwd_buffer@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x1
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	mov	x0, x19
	mov	x1, x20
	bl	_abspath
	mov	x21, x0
	mov	x0, x22
	bl	_xmalloc
	mov	x19, x0
	ldrb	w8, [x23]
	cbz	w8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w1, [x21]
	sxtb	w0, w8
	bl	_IS_SAME_PATH_CHAR
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x23, #1]!
	add	x21, x21, #1
	cbnz	w8, LBB0_1
	b	LBB0_4
LBB0_3:
	ldrb	w8, [x23]
	cbnz	w8, LBB0_7
LBB0_4:
	ldrb	w8, [x21]
	cbz	w8, LBB0_11
; %bb.5:
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_7
; %bb.6:
	ldrb	w8, [x21]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w8, #0
	csinc	x19, x9, x21, eq
	b	LBB0_26
LBB0_7:
	ldrb	w8, [x21]
	cbz	w8, LBB0_12
; %bb.8:
	add	x23, x23, #1
	add	x21, x21, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldursb	w0, [x23, #-2]
	bl	_IS_DIR_SEPARATOR
	sub	x23, x23, #1
	sub	x21, x21, #1
	cbz	x0, LBB0_9
; %bb.10:
	mov	w24, #1
	ldrb	w8, [x23]
	cbnz	w8, LBB0_13
	b	LBB0_15
LBB0_11:
Lloh5:
	adrp	x19, l_.str@PAGE
Lloh6:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_26
LBB0_12:
	mov	w24, #0
	ldrb	w8, [x23]
	cbz	w8, LBB0_15
LBB0_13:
	add	x23, x23, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cmp	x0, #0
	cinc	w24, w24, ne
	ldrb	w8, [x23], #1
	cbnz	w8, LBB0_14
LBB0_15:
	add	w23, w24, w24, lsl #1
	mov	x0, x21
	bl	_strlen
	add	w8, w0, w23
	cmp	w8, w22
	b.hs	LBB0_25
; %bb.16:
	mov	x23, x19
	cbz	w24, LBB0_20
; %bb.17:
	add	x8, x19, x22
	mov	w9, #11822
Lloh7:
	adrp	x10, _DIR_SEPARATOR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DIR_SEPARATOR@GOTPAGEOFF]
	mov	x11, x19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x23, x11, #3
	cmp	x8, x23
	b.ls	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	strh	w9, [x11]
	ldr	w12, [x10]
	strb	w12, [x11, #2]
	mov	x11, x23
	subs	w24, w24, #1
	b.ne	LBB0_18
LBB0_20:
	add	x8, x19, x22
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x23
	b.ls	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldrb	w9, [x21], #1
	strb	w9, [x23], #1
	cbnz	w9, LBB0_21
; %bb.23:
	ldursb	w0, [x23, #-2]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_26
; %bb.24:
	sturb	wzr, [x23, #-2]
	b	LBB0_26
LBB0_25:
	mov	x19, x20
LBB0_26:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cwd_buffer,8,3                 ; @cwd_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_DIR_SEPARATOR,4,2              ; @DIR_SEPARATOR
	.no_dead_strip	_shortpath
.subsections_via_symbols
