	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_uri
_build_uri:                             ## @build_uri
	.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, %r15
	movq	%rdi, %r14
	movq	56(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	_scheme_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_escape_string
	cltq
	leaq	(%r15,%rax), %r12
	incq	%r12
	movb	$58, (%r15,%rax)
	cmpq	$0, 40(%r14)
	je	LBB0_8
## %bb.4:
	movw	$12079, (%r12)                  ## imm = 0x2F2F
	addq	$2, %r12
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_userinfo_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_escape_string
	cltq
	movb	$64, (%r12,%rax)
	addq	%rax, %r12
	incq	%r12
LBB0_6:
	movq	%r12, %r15
	movq	40(%r14), %rdi
	movq	_host_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_escape_string
	movslq	%eax, %r12
	addq	%r15, %r12
	cmpq	$0, 32(%r14)
	je	LBB0_8
## %bb.7:
	leaq	1(%r12), %rsi
	movb	$58, (%r12)
	movq	32(%r14), %rdi
	movq	_port_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_escape_string
	cltq
	addq	%rax, %r12
	incq	%r12
LBB0_8:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_path_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_escape_string
	cltq
	addq	%rax, %r12
LBB0_10:
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.11:
	movq	8(%r14), %r15
	movb	$63, (%r12)
	decq	%rbx
	movq	_query_reserved_chars@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%r12), %rsi
	movq	8(%r15), %rdi
	movl	(%r13), %edx
	callq	_escape_string
	cltq
	addq	%rax, %r12
	incq	%r12
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	1(%r12), %rsi
	movb	$61, (%r12)
	movq	(%r15), %rdi
	movl	(%r13), %edx
	callq	_escape_string
	cltq
	addq	%rax, %r12
	incq	%r12
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	subq	$1, %rbx
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	$38, (%r12)
	addq	$16, %r15
	jmp	LBB0_12
LBB0_16:
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.17:
	leaq	1(%r12), %rsi
	movb	$35, (%r12)
	movq	(%r14), %rdi
	movq	_fragment_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_escape_string
	cltq
	addq	%rax, %r12
	incq	%r12
LBB0_18:
	movb	$0, (%r12)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.20:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strncpy                        ## TAILCALL
LBB0_2:
	movb	$0, (%r15)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_scheme_reserved_chars,4,2      ## @scheme_reserved_chars
	.comm	_userinfo_reserved_chars,4,2    ## @userinfo_reserved_chars
	.comm	_host_reserved_chars,4,2        ## @host_reserved_chars
	.comm	_port_reserved_chars,4,2        ## @port_reserved_chars
	.comm	_path_reserved_chars,4,2        ## @path_reserved_chars
	.comm	_query_reserved_chars,4,2       ## @query_reserved_chars
	.comm	_fragment_reserved_chars,4,2    ## @fragment_reserved_chars
	.no_dead_strip	_build_uri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_uri
_build_uri:                             ; @build_uri
	.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
	ldr	x0, [x0, #56]
	cbz	x0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _scheme_reserved_chars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scheme_reserved_chars@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
	mov	w8, #58
	strb	w8, [x20], #1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.2:
	mov	w8, #12079
	strh	w8, [x20], #2
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _userinfo_reserved_chars@GOTPAGE
Lloh4:
	ldr	x8, [x8, _userinfo_reserved_chars@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
	mov	w8, #64
	strb	w8, [x20], #1
LBB0_4:
	ldr	x0, [x19, #40]
Lloh6:
	adrp	x8, _host_reserved_chars@GOTPAGE
Lloh7:
	ldr	x8, [x8, _host_reserved_chars@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w8, #58
	strb	w8, [x20], #1
	ldr	x0, [x19, #32]
Lloh9:
	adrp	x8, _port_reserved_chars@GOTPAGE
Lloh10:
	ldr	x8, [x8, _port_reserved_chars@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _path_reserved_chars@GOTPAGE
Lloh13:
	ldr	x8, [x8, _path_reserved_chars@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x21, [x19, #8]
	mov	w9, #63
	strb	w9, [x20]
	sub	x22, x8, #1
Lloh15:
	adrp	x23, _query_reserved_chars@GOTPAGE
Lloh16:
	ldr	x23, [x23, _query_reserved_chars@GOTPAGEOFF]
	mov	w24, #38
	mov	w25, #61
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	ldr	x0, [x21, #8]
	ldr	w2, [x23]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	strb	w25, [x20], #1
	ldr	x0, [x21]
	ldr	w2, [x23]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	x22, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	strb	w24, [x20]
	add	x21, x21, #16
	sub	x22, x22, #1
	b	LBB0_10
LBB0_14:
	ldr	x8, [x19]
	cbz	x8, LBB0_18
; %bb.15:
	mov	w8, #35
	strb	w8, [x20], #1
	ldr	x0, [x19]
Lloh17:
	adrp	x8, _fragment_reserved_chars@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fragment_reserved_chars@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_escape_string
	add	x20, x20, w0, sxtw
	b	LBB0_18
LBB0_16:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_18
; %bb.17:
	mov	x0, x20
	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	_strncpy
LBB0_18:
	strb	wzr, [x20]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_scheme_reserved_chars,4,2      ; @scheme_reserved_chars
	.comm	_userinfo_reserved_chars,4,2    ; @userinfo_reserved_chars
	.comm	_host_reserved_chars,4,2        ; @host_reserved_chars
	.comm	_port_reserved_chars,4,2        ; @port_reserved_chars
	.comm	_path_reserved_chars,4,2        ; @path_reserved_chars
	.comm	_query_reserved_chars,4,2       ; @query_reserved_chars
	.comm	_fragment_reserved_chars,4,2    ; @fragment_reserved_chars
	.no_dead_strip	_build_uri
.subsections_via_symbols
