	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quote_ref_url
_quote_ref_url:                         ## @quote_ref_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_end_url_with_slash
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_6
## %bb.1:
	incq	%rbx
	leaq	-40(%rbp), %r14
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	-1(%rbx), %esi
	movq	%r14, %rdi
	callq	_strbuf_addch
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %r12d
	movl	%r12d, %edi
	callq	_needs_quote
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_strbuf_addf
	jmp	LBB0_5
LBB0_6:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%%%02x"

	.no_dead_strip	_quote_ref_url
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quote_ref_url
_quote_ref_url:                         ; @quote_ref_url
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_end_url_with_slash
	ldrb	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	add	x21, x19, #1
Lloh3:
	adrp	x19, l_.str@PAGE
Lloh4:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldursb	w1, [x21, #-1]
	add	x0, sp, #8
	bl	_strbuf_addch
	ldrb	w8, [x21], #1
	cbz	w8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w20, w8
	mov	x0, x20
	bl	_needs_quote
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_strbuf_addf
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_3
LBB0_5:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%%%02x"

	.no_dead_strip	_quote_ref_url
.subsections_via_symbols
