	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_join_path                      ## -- Begin function join_path
	.p2align	4, 0x90
_join_path:                             ## @join_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_strlen
	movl	%eax, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	leal	(%r15,%rbx), %edi
	addl	$2, %edi
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	leal	(%r15,%rbx), %eax
	leal	-1(%rbx), %ecx
	incl	%eax
	cmpb	$47, (%r12,%rcx)
	sete	%r14b
	cmovel	%eax, %edi
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	callq	_xmalloc
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	testb	%r14b, %r14b
	jne	LBB0_5
## %bb.4:
	movslq	%ebx, %rax
	movb	$47, (%r13,%rax)
	incl	%ebx
LBB0_5:
	movslq	%ebx, %rax
	movq	%r13, %rdi
	addq	%rax, %rdi
	incl	%r15d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_join_path                      ; -- Begin function join_path
	.p2align	2
_join_path:                             ; @join_path
	.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	x19, x1
	mov	x22, x0
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	add	w8, w0, w20
	add	w0, w8, #2
	subs	w9, w20, #1
	b.lt	LBB0_2
; %bb.1:
	ldrb	w9, [x22, w9, uxtw]
	cmp	w9, #47
	cset	w24, eq
	csinc	w0, w0, w8, ne
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	bl	_xmalloc
	mov	x23, x0
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	tbnz	w24, #0, LBB0_5
; %bb.4:
	mov	w8, #47
	strb	w8, [x23, w20, sxtw]
	add	w20, w20, #1
LBB0_5:
	add	x0, x23, w20, sxtw
	add	w2, w21, #1
	mov	x1, x19
	bl	_memcpy
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
