	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_uri_length
_calculate_uri_length:                  ## @calculate_uri_length
	.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	%rdi, %r14
	movq	56(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	_scheme_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_escaped_length
	movq	%rax, %r15
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movq	_host_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_escaped_length
	addq	%rax, %r15
	addq	$3, %r15
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	_userinfo_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_escaped_length
	addq	%rax, %r15
	incq	%r15
LBB0_8:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_port_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_escaped_length
	addq	%rax, %r15
	incq	%r15
	jmp	LBB0_10
LBB0_1:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlen                         ## TAILCALL
LBB0_5:
	incq	%r15
LBB0_10:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	_path_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_escaped_length
	addq	%rax, %r15
LBB0_12:
	movq	16(%r14), %r12
	testq	%r12, %r12
	je	LBB0_17
## %bb.13:
	movq	8(%r14), %rbx
	addq	$8, %rbx
	movq	_query_reserved_chars@GOTPCREL(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$16, %rbx
	testq	%r12, %r12
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	decq	%r12
	movq	(%rbx), %rdi
	movl	(%r13), %esi
	callq	_escaped_length
	addq	%rax, %r15
	incq	%r15
	movq	-8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %esi
	callq	_escaped_length
	addq	%rax, %r15
	incq	%r15
	jmp	LBB0_16
LBB0_17:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	movq	_fragment_reserved_chars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_escaped_length
	addq	%rax, %r15
	incq	%r15
	jmp	LBB0_19
LBB0_2:
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scheme_reserved_chars,4,2      ## @scheme_reserved_chars
	.comm	_host_reserved_chars,4,2        ## @host_reserved_chars
	.comm	_userinfo_reserved_chars,4,2    ## @userinfo_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	_calculate_uri_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_uri_length
_calculate_uri_length:                  ; @calculate_uri_length
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0, #56]
	cbz	x0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x8, _scheme_reserved_chars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scheme_reserved_chars@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_escaped_length
	mov	x20, x0
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_17
; %bb.2:
Lloh3:
	adrp	x8, _host_reserved_chars@GOTPAGE
Lloh4:
	ldr	x8, [x8, _host_reserved_chars@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_escaped_length
	add	x8, x20, x0
	add	x20, x8, #3
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _userinfo_reserved_chars@GOTPAGE
Lloh7:
	ldr	x8, [x8, _userinfo_reserved_chars@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_escaped_length
	add	x8, x20, x0
	add	x20, x8, #1
LBB0_4:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _port_reserved_chars@GOTPAGE
Lloh10:
	ldr	x8, [x8, _port_reserved_chars@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_escaped_length
	add	x8, x20, x0
	add	x20, x8, #1
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _path_reserved_chars@GOTPAGE
Lloh13:
	ldr	x8, [x8, _path_reserved_chars@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_escaped_length
	add	x20, x0, x20
LBB0_8:
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_13
; %bb.9:
	ldr	x8, [x19, #8]
	add	x22, x8, #8
Lloh15:
	adrp	x23, _query_reserved_chars@GOTPAGE
Lloh16:
	ldr	x23, [x23, _query_reserved_chars@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #16
	cbz	x21, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	x21, x21, #1
	ldr	x0, [x22]
	ldr	w1, [x23]
	bl	_escaped_length
	add	x8, x20, x0
	add	x20, x8, #1
	ldur	x0, [x22, #-8]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x23]
	bl	_escaped_length
	add	x8, x20, x0
	add	x20, x8, #1
	b	LBB0_10
LBB0_13:
	ldr	x0, [x19]
	cbz	x0, LBB0_19
; %bb.14:
Lloh17:
	adrp	x8, _fragment_reserved_chars@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fragment_reserved_chars@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_escaped_length
	add	x8, x20, x0
	add	x20, x8, #1
	b	LBB0_19
LBB0_15:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_strlen
LBB0_17:
	add	x20, x20, #1
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_18:
	mov	x20, #0
LBB0_19:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 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	_host_reserved_chars,4,2        ; @host_reserved_chars
	.comm	_userinfo_reserved_chars,4,2    ; @userinfo_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	_calculate_uri_length
.subsections_via_symbols
