	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function relative_url
_relative_url:                          ## @relative_url
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_xstrdup
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r15
	movsbl	-1(%rax,%r12), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, -1(%r12,%r15)
	movq	-48(%rbp), %r12
LBB0_2:
	movq	%r12, %rdi
	callq	_url_is_local_not_ssh
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_is_absolute_path
	xorl	%r13d, %r13d
	movl	$0, %r15d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_starts_with_dot_slash
	movl	$1, %r15d
	movb	$1, %r13b
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_starts_with_dot_dot_slash
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_reset
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	%r12, %rdi
	callq	_free
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, -48(%rbp)
	jmp	LBB0_8
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.9:
	movq	%r14, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$3, %rbx
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_chop_last_dir
	orl	%eax, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_starts_with_dot_dot_slash
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_starts_with_dot_slash
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$2, %rbx
	jmp	LBB0_10
LBB0_14:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_reset
	movq	-48(%rbp), %rdx
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.16:
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %r14
	jmp	LBB0_19
LBB0_17:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_reset
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdx
	jmp	LBB0_18
LBB0_15:
	movq	%r12, %r14
LBB0_18:
	leaq	L_.str.3(%rip), %rcx
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ends_with
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rsi
	decq	%rsi
	leaq	-64(%rbp), %rdi
	callq	_strbuf_setlen
LBB0_21:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-64(%rbp), %rdi
	callq	_starts_with_dot_slash
	movq	-64(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	addq	$2, %rdi
LBB0_23:
	callq	_xstrdup
	movq	%rax, %rbx
	leaq	-64(%rbp), %rdi
	callq	_strbuf_reset
	testq	%r14, %r14
	sete	%al
	xorb	$1, %r13b
	orb	%al, %r13b
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, %rbx
LBB0_25:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"./%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s%s"

L_.str.2:                               ## @.str.2
	.asciz	":"

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

L_.str.4:                               ## @.str.4
	.asciz	"%s%s"

	.no_dead_strip	_relative_url
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function relative_url
_relative_url:                          ; @relative_url
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_xstrdup
	mov	x21, x0
	str	x0, [sp, #40]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	bl	_strlen
	sub	x22, x0, #1
	ldrsb	w0, [x21, x22]
	bl	_is_dir_sep
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x21, x22]
	ldr	x21, [sp, #40]
LBB0_2:
	mov	x0, x21
	bl	_url_is_local_not_ssh
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_is_absolute_path
	cbz	x0, LBB0_12
LBB0_4:
	mov	w21, #0
	cbz	x20, LBB0_16
LBB0_5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #3
	add	x0, sp, #40
	mov	x1, x21
	bl	_chop_last_dir
	orr	w22, w0, w22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_starts_with_dot_dot_slash
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_starts_with_dot_slash
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #2
	b	LBB0_7
LBB0_10:
	add	x0, sp, #16
	bl	_strbuf_reset
	ldr	x2, [sp, #40]
	cbz	w22, LBB0_17
; %bb.11:
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_12:
	mov	x0, x21
	bl	_starts_with_dot_slash
	cbnz	x0, LBB0_15
; %bb.13:
	mov	x0, x21
	bl	_starts_with_dot_dot_slash
	cbnz	x0, LBB0_15
; %bb.14:
	add	x0, sp, #16
	bl	_strbuf_reset
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	x2, x21
	bl	_strbuf_addf
	mov	x0, x21
	bl	_free
	add	x0, sp, #16
	mov	x1, #0
	bl	_strbuf_detach
	str	x0, [sp, #40]
LBB0_15:
	mov	w21, #1
	cbnz	x20, LBB0_5
LBB0_16:
	add	x0, sp, #16
	bl	_strbuf_reset
	ldr	x2, [sp, #40]
LBB0_17:
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_18:
	stp	x8, x20, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addf
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ends_with
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x8, [sp, #24]
	sub	x1, x8, #1
	add	x0, sp, #16
	bl	_strbuf_setlen
LBB0_20:
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [sp, #16]
	bl	_starts_with_dot_slash
	mov	x8, x0
	ldr	x0, [sp, #16]
	cbz	x8, LBB0_22
; %bb.21:
	add	x0, x0, #2
LBB0_22:
	bl	_xstrdup
	mov	x20, x0
	add	x0, sp, #16
	bl	_strbuf_reset
	cmp	x19, #0
	cset	w8, eq
	eor	w9, w21, #0x1
	orr	w8, w8, w9
	tbnz	w8, #0, LBB0_24
; %bb.23:
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #16
	mov	x2, x19
	bl	_strbuf_addf
	mov	x0, x20
	bl	_free
	add	x0, sp, #16
	mov	x1, #0
	bl	_strbuf_detach
	mov	x20, x0
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"./%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s%s"

l_.str.2:                               ; @.str.2
	.asciz	":"

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

l_.str.4:                               ; @.str.4
	.asciz	"%s%s"

	.no_dead_strip	_relative_url
.subsections_via_symbols
