	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_relative_path
_make_relative_path:                    ## @make_relative_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
	movq	%rsi, %r14
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_14
## %bb.1:
	movq	%rdx, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rdi, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movl	%r12d, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r12), %r15
	movzbl	(%r14,%r12), %eax
	testb	%al, %al
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%r12)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %edi
	callq	_IS_DIR_SEP
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	(%rbx,%r12), %edi
	callq	_IS_DIR_SEP
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%r15), %eax
	cmpb	(%rbx,%r12), %al
	movq	%r13, %rdi
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_strlen
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	subl	%eax, %r15d
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strlcpy
	movq	%r13, %rdi
	callq	_trim_directory
	movq	%r13, %rdi
	callq	_canonicalize_path
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movl	%eax, %r12d
	addl	%r15d, %r12d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.11:
	leal	-1(%r12), %eax
	movsbl	(%r13,%rax), %edi
	callq	_IS_DIR_SEP
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	%r12d, %r12d
	addq	%rdi, %r12
	movslq	%r15d, %r15
	addq	%r15, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dir_strcmp
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rbx
	movq	%r14, %rsi
	callq	_strlcpy
LBB0_15:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_canonicalize_path              ## TAILCALL
LBB0_13:
	movb	$0, (%r12)
	movq	%rdi, %rbx
	callq	_trim_trailing_separator
	addq	%r15, %r14
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_join_path_components
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.no_dead_strip	_make_relative_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_relative_path
_make_relative_path:                    ; @make_relative_path
	.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	x20, x1
	mov	x19, x0
	ldrb	w8, [x1]
Lloh0:
	adrp	x23, _MAXPGPATH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAXPGPATH@GOTPAGEOFF]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x25, #0
	mov	w24, #0
	mov	x26, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	mov	x24, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x20, x25
	ldrb	w8, [x26]
	cbz	w8, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x25]
	cbz	w9, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w0, w8
	bl	_IS_DIR_SEP
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsb	w0, [x21, x25]
	bl	_IS_DIR_SEP
	cbnz	x0, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x26]
	ldrb	w9, [x21, x25]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	b	LBB0_3
LBB0_9:
	cbz	w24, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_strlen
	sub	w25, w24, w0
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_strlcpy
	mov	x0, x19
	bl	_trim_directory
	mov	x0, x19
	bl	_canonicalize_path
	mov	x0, x19
	bl	_strlen
	add	w22, w0, w25
	subs	w8, w22, #1
	b.lt	LBB0_13
; %bb.11:
	ldrsb	w0, [x19, w8, uxtw]
	bl	_IS_DIR_SEP
	cbz	x0, LBB0_13
; %bb.12:
	add	x22, x19, w22, uxtw
	sxtw	x24, w24
	add	x1, x21, x24
	mov	x0, x22
	bl	_dir_strcmp
	cbz	x0, LBB0_15
LBB0_13:
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_strlcpy
LBB0_14:
	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	_canonicalize_path
LBB0_15:
	strb	wzr, [x22]
	mov	x0, x19
	bl	_trim_trailing_separator
	add	x2, x20, x24
	mov	x0, x19
	mov	x1, x19
	bl	_join_path_components
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.no_dead_strip	_make_relative_path
.subsections_via_symbols
