	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relative_path                  ## -- Begin function relative_path
	.p2align	4, 0x90
_relative_path:                         ## @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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r12
	callq	_strlen
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_strlen
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.7:
	testl	%eax, %eax
	je	LBB0_50
## %bb.8:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_have_same_root
	testq	%rax, %rax
	je	LBB0_50
## %bb.9:
	movq	%r12, %rdi
	callq	_has_dos_drive_prefix
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %eax
	setl	%bl
	xorl	%r14d, %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %eax
	movq	%r15, %rcx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jge	LBB0_10
## %bb.11:
	cmpl	%esi, %eax
	jge	LBB0_10
## %bb.12:
	xorl	%r13d, %r13d
	movl	%eax, %ecx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movslq	%ecx, %rbx
	movb	(%r15,%rbx), %dl
	movslq	%eax, %r15
	cmpb	(%r12,%r15), %dl
	jne	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movsbl	%dl, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	decl	%r12d
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	%r12d, %r13d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_is_dir_sep
	incl	%r13d
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	leal	-1(%r15), %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	%r12, %r15
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r15), %edi
	callq	_is_dir_sep
	incl	%r14d
	incq	%r15
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r13d, %ecx
	movl	%r14d, %eax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r12d, %ecx
	incl	%ecx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %eax
	setl	%bl
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%esi, %eax
	jl	LBB0_13
	jmp	LBB0_23
LBB0_4:
	leaq	L_.str(%rip), %r12
	testq	%r15, %r15
	je	LBB0_50
## %bb.5:
	movq	%r15, %rdi
	callq	_strlen
	jmp	LBB0_50
LBB0_6:
	testl	%eax, %eax
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %r12
	jmp	LBB0_50
LBB0_3:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_50
LBB0_10:
	xorl	%r13d, %r13d
	movl	%eax, %ecx
LBB0_23:
	cmpl	%edi, %ecx
	jl	LBB0_32
## %bb.24:
	cmpl	%edi, %r13d
	jge	LBB0_32
## %bb.25:
	movl	%esi, %r12d
	movl	%ecx, %r15d
	testb	%bl, %bl
	jne	LBB0_28
	jmp	LBB0_39
LBB0_26:
	cmpl	%edi, %ecx
	jl	LBB0_32
## %bb.27:
	cmpl	%edi, %r13d
	jge	LBB0_32
LBB0_28:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%rbx), %edi
	callq	_is_dir_sep
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %r12d
	movl	%r13d, %r15d
	testq	%rax, %rax
	je	LBB0_39
## %bb.29:
	leal	-1(%rbx), %r12d
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_is_dir_sep
	incl	%r12d
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_30
## %bb.31:
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_39
LBB0_32:
	cmpl	%esi, %eax
	jl	LBB0_33
## %bb.34:
	cmpl	%esi, %r14d
	jge	LBB0_33
## %bb.35:
	movslq	%ecx, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%rbx), %edi
	movl	%ecx, %r15d
	callq	_is_dir_sep
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %r12d
	testq	%rax, %rax
	je	LBB0_39
## %bb.36:
	leal	-1(%rbx), %r15d
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_is_dir_sep
	incl	%r15d
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_37
## %bb.38:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_39
LBB0_33:
	movl	%r14d, %r12d
	movl	%ecx, %r15d
LBB0_39:
	movslq	%r12d, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	%rax, %rbx
	cmpl	%edi, %r15d
	jge	LBB0_40
## %bb.41:
	subl	%r12d, %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%esi, %r14d
	callq	_strbuf_reset
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_strbuf_grow
	leaq	L_.str.1(%rip), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_42 Depth=1
	incl	%r15d
LBB0_46:                                ##   in Loop: Header=BB0_42 Depth=1
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_47
LBB0_42:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_44 Depth 2
	movslq	%r15d, %rbx
	movsbl	(%r12,%rbx), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addstr
	leal	-1(%rbx), %r15d
	addq	%r12, %rbx
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_42 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_is_dir_sep
	incl	%r15d
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_44
	jmp	LBB0_46
LBB0_40:
	cmpl	%r12d, %esi
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rbx
	movq	%rbx, %r12
	jmp	LBB0_50
LBB0_47:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movsbl	-1(%rax,%rcx), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_49
## %bb.48:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strbuf_addstr
LBB0_49:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_addstr
	movq	(%r13), %r12
LBB0_50:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"./"

L_.str.1:                               ## @.str.1
	.asciz	"../"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_relative_path                  ; -- Begin function relative_path
	.p2align	2
_relative_path:                         ; @relative_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	cbz	x0, LBB0_18
; %bb.1:
	mov	x23, x2
	mov	x22, x0
	bl	_strlen
	mov	x19, x0
	cbz	x20, LBB0_21
; %bb.2:
	mov	x0, x20
	bl	_strlen
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cbz	w19, LBB0_22
; %bb.3:
	mov	x21, x0
	cbz	w0, LBB0_51
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_have_same_root
	cbz	x0, LBB0_51
; %bb.5:
	mov	x0, x22
	bl	_has_dos_drive_prefix
	mov	x24, x0
	mov	w26, #0
	cmp	w0, w19
	cset	w8, lt
	cmp	w0, w21
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b.ge	LBB0_23
; %bb.6:
	cmp	w24, w19
	b.ge	LBB0_23
; %bb.7:
	mov	w28, #0
	mov	w26, #0
	mov	x25, x24
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	sxtw	x27, w25
	ldrb	w8, [x20, x27]
	sxtw	x23, w24
	ldrb	w9, [x22, x23]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtb	w0, w8
	bl	_is_dir_sep
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w28, w25, #1
	add	x25, x20, x27
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x25], #1
	bl	_is_dir_sep
	add	w28, w28, #1
	cbnz	x0, LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w26, w24, #1
	add	x23, x22, x23
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x23], #1
	bl	_is_dir_sep
	add	w26, w26, #1
	cbnz	x0, LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x28
	mov	x24, x26
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w25, w25, #1
	add	w24, w24, #1
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, w19
	cset	w8, lt
	cmp	w25, w21
	b.ge	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, w19
	b.lt	LBB0_8
	b	LBB0_24
LBB0_18:
	cbz	x20, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_strlen
LBB0_20:
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_51
LBB0_21:
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
	cmp	w19, #0
	csel	x22, x8, x22, eq
	b	LBB0_51
LBB0_22:
	mov	x22, x8
	b	LBB0_51
LBB0_23:
	mov	x28, x26
	mov	x25, x24
LBB0_24:
	cmp	w25, w21
	b.lt	LBB0_32
; %bb.25:
	cmp	w28, w21
	b.ge	LBB0_32
; %bb.26:
	mov	x23, x19
	mov	x27, x25
	cbnz	w8, LBB0_29
	b	LBB0_40
LBB0_27:
	cmp	w25, w21
	b.lt	LBB0_32
; %bb.28:
	cmp	w28, w21
	b.ge	LBB0_32
LBB0_29:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x24, w24
	ldrsb	w0, [x22, x24]
	bl	_is_dir_sep
	mov	x23, x26
	mov	x27, x28
	cbz	x0, LBB0_40
; %bb.30:
	sub	w23, w24, #1
	add	x24, x22, x24
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x24], #1
	bl	_is_dir_sep
	add	w23, w23, #1
	cbnz	x0, LBB0_31
	b	LBB0_39
LBB0_32:
	cmp	w24, w19
	b.lt	LBB0_38
; %bb.33:
	cmp	w26, w19
	b.ge	LBB0_38
; %bb.34:
	mov	x8, x25
	sxtw	x23, w8
	ldrsb	w0, [x20, x23]
	bl	_is_dir_sep
	cbz	x0, LBB0_38
; %bb.35:
	sub	w27, w25, #1
	add	x23, x20, x23
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23], #1
	bl	_is_dir_sep
	add	w27, w27, #1
	cbnz	x0, LBB0_36
; %bb.37:
	mov	x23, x19
	b	LBB0_40
LBB0_38:
	mov	x23, x26
LBB0_39:
	mov	x27, x25
LBB0_40:
	add	x22, x22, w23, sxtw
	cmp	w27, w21
	b.ge	LBB0_47
; %bb.41:
	sub	w23, w19, w23
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x24
	bl	_strbuf_reset
	mov	x0, x24
	mov	x1, x23
	bl	_strbuf_grow
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=1
	add	w27, w19, #1
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	cmp	w27, w21
	b.ge	LBB0_48
LBB0_44:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_46 Depth 2
	sxtw	x19, w27
	ldrsb	w0, [x20, x19]
	bl	_is_dir_sep
	cbz	x0, LBB0_42
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_strbuf_addstr
	sub	w27, w19, #1
	add	x19, x20, x19
LBB0_46:                                ;   Parent Loop BB0_44 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x19], #1
	bl	_is_dir_sep
	add	w27, w27, #1
	cbnz	x0, LBB0_46
	b	LBB0_43
LBB0_47:
	cmp	w19, w23
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	csel	x22, x8, x22, eq
	b	LBB0_51
LBB0_48:
	add	x8, x20, w21, sxtw
	ldursb	w0, [x8, #-1]
	bl	_is_dir_sep
	cbnz	x0, LBB0_50
; %bb.49:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strbuf_addstr
LBB0_50:
	mov	x0, x24
	mov	x1, x22
	bl	_strbuf_addstr
	ldr	x22, [x24]
LBB0_51:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"./"

l_.str.1:                               ; @.str.1
	.asciz	"../"

.subsections_via_symbols
