	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_uri                      ## -- Begin function parse_uri
	.p2align	4, 0x90
_parse_uri:                             ## @parse_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_strlen
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_strncmp
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_33
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r13                ## 8-byte Reload
	leaq	(%r15,%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_33
## %bb.2:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, (%rax)
LBB0_4:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	%r13, %r14
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	$0, (%rcx)
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$-1, (%rax)
LBB0_8:
	leaq	(%r12,%r15), %rdi
	addq	$3, %rdi
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	$0, (%r14)
LBB0_10:
	callq	_xstrdup
	movq	%rax, %r12
	movq	%rax, -64(%rbp)
	movq	%rax, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%rax, %r15
	movb	$0, (%rax)
	movq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movb	$0, (%rax)
	movq	-64(%rbp), %r14
LBB0_13:
	movl	$-1, %ebx
	cmpb	$0, (%r14)
	je	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_urldecode
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %rcx
	incq	%r15
	movq	%r15, -64(%rbp)
	movq	%r13, %r14
	movq	%rax, %r15
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_30
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	leaq	-64(%rbp), %rdi
	leaq	-41(%rbp), %rsi
	callq	_hpdelim2
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_30
## %bb.19:
	cmpb	$0, (%rax)
	je	LBB0_30
## %bb.20:
	movq	%rax, %rdi
	callq	_cleanhostname
	movq	%rax, %rdi
	callq	_xstrdup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_valid_domain
	testl	%eax, %eax
	je	LBB0_44
## %bb.21:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15
	movl	$-1, %eax
	testq	%r15, %r15
	je	LBB0_34
## %bb.22:
	cmpb	$0, (%r15)
	je	LBB0_34
## %bb.23:
	movl	$-1, %ebx
	cmpb	$58, -41(%rbp)
	jne	LBB0_46
## %bb.24:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movb	$0, (%r14)
	movq	-64(%rbp), %r15
LBB0_26:
	movq	%r15, %rdi
	callq	_a2port
	testl	%eax, %eax
	jle	LBB0_49
## %bb.27:
	leaq	1(%r14), %r15
	testq	%r14, %r14
	cmovneq	%r15, %r14
	movq	%r14, -64(%rbp)
	je	LBB0_50
## %bb.28:
	cmpb	$0, (%r14)
	je	LBB0_50
## %bb.29:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r13, %r14
	jmp	LBB0_47
LBB0_30:
	xorl	%r13d, %r13d
LBB0_31:
	xorl	%r14d, %r14d
LBB0_32:
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_33:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	xorl	%edx, %edx
LBB0_35:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_36:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_38
## %bb.37:
	movq	%r15, (%rcx)
	xorl	%r15d, %r15d
LBB0_38:
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.39:
	movq	%r13, (%rcx)
	xorl	%r13d, %r13d
LBB0_40:
	testq	%rsi, %rsi
	je	LBB0_42
## %bb.41:
	movl	%eax, (%rsi)
LBB0_42:
	testq	%r14, %r14
	je	LBB0_45
## %bb.43:
	movq	%rdx, (%r14)
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_44:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_45:
	xorl	%ebx, %ebx
	movq	%rdx, %r14
	jmp	LBB0_32
LBB0_46:
	movl	$-1, -76(%rbp)                  ## 4-byte Folded Spill
LBB0_47:
	movq	%r15, %rdi
	callq	_urldecode
	movq	%rax, %rdx
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_36
	jmp	LBB0_31
LBB0_49:
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_50:
	xorl	%edx, %edx
	movq	%r13, %r14
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"://"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_uri                      ; -- Begin function parse_uri
	.p2align	2
_parse_uri:                             ; @parse_uri
	.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, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x25, x0
	bl	_strlen
	mov	x23, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x23
	bl	_strncmp
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, x19, x23
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_4
LBB0_2:
	mov	w21, #1
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	cbz	x24, LBB0_6
; %bb.5:
	str	xzr, [x24]
LBB0_6:
	add	x8, x23, x19
	cbz	x22, LBB0_8
; %bb.7:
	str	xzr, [x22]
LBB0_8:
	add	x0, x8, #3
	cbz	x21, LBB0_10
; %bb.9:
	mov	w8, #-1
	str	w8, [x21]
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	str	xzr, [x20]
LBB0_12:
	bl	_xstrdup
	mov	x19, x0
	str	x0, [sp, #8]
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.13:
	mov	x25, x0
	strb	wzr, [x0]
	ldr	x23, [sp, #8]
	mov	x0, x23
	mov	w1, #59
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.14:
	strb	wzr, [x0]
	ldr	x23, [sp, #8]
LBB0_15:
	ldrb	w8, [x23]
	cbz	w8, LBB0_31
; %bb.16:
	mov	x0, x23
	bl	_urldecode
	mov	x23, x0
	cbz	x0, LBB0_32
; %bb.17:
	add	x8, x25, #1
	str	x8, [sp, #8]
	b	LBB0_19
LBB0_18:
	mov	x23, #0
LBB0_19:
	add	x0, sp, #8
	add	x1, sp, #7
	bl	_hpdelim2
	cbz	x0, LBB0_32
; %bb.20:
	ldrb	w8, [x0]
	cbz	w8, LBB0_32
; %bb.21:
	bl	_cleanhostname
	bl	_xstrdup
	mov	x25, x0
	mov	w1, #0
	mov	x2, #0
	bl	_valid_domain
	cbz	w0, LBB0_33
; %bb.22:
	ldr	x26, [sp, #8]
	cbz	x26, LBB0_36
; %bb.23:
	ldrb	w8, [x26]
	cbz	w8, LBB0_37
; %bb.24:
	ldrb	w8, [sp, #7]
	cmp	w8, #58
	b.ne	LBB0_38
; %bb.25:
	mov	x0, x26
	mov	w1, #47
	bl	_strchr
	mov	x28, x0
	cbz	x0, LBB0_27
; %bb.26:
	strb	wzr, [x28]
	ldr	x26, [sp, #8]
LBB0_27:
	mov	x0, x26
	bl	_a2port
	cmp	w0, #1
	b.lt	LBB0_33
; %bb.28:
	mov	x27, x0
	cmp	x28, #0
	csinc	x8, xzr, x28, eq
	str	x8, [sp, #8]
	cbz	x28, LBB0_40
; %bb.29:
	ldrb	w8, [x8]
	cbz	w8, LBB0_40
; %bb.30:
	add	x26, x28, #1
	b	LBB0_39
LBB0_31:
	mov	x23, #0
LBB0_32:
	mov	x25, #0
LBB0_33:
	mov	x26, #0
LBB0_34:
	mov	w21, #-1
LBB0_35:
	mov	x0, x19
	bl	_free
	mov	x0, x23
	bl	_free
	mov	x0, x25
	bl	_free
	mov	x0, x26
	bl	_free
	b	LBB0_3
LBB0_36:
	mov	w27, #-1
	b	LBB0_41
LBB0_37:
	mov	x26, #0
	mov	w27, #-1
	b	LBB0_41
LBB0_38:
	mov	w27, #-1
LBB0_39:
	mov	x0, x26
	bl	_urldecode
	mov	x26, x0
	cbnz	x0, LBB0_41
	b	LBB0_34
LBB0_40:
	mov	x26, #0
LBB0_41:
	cbz	x24, LBB0_43
; %bb.42:
	str	x23, [x24]
	mov	x23, #0
LBB0_43:
	cbz	x22, LBB0_45
; %bb.44:
	str	x25, [x22]
	mov	x25, #0
LBB0_45:
	cbz	x21, LBB0_47
; %bb.46:
	str	w27, [x21]
LBB0_47:
	mov	w21, #0
	cbz	x20, LBB0_35
; %bb.48:
	str	x26, [x20]
	mov	x26, #0
	b	LBB0_35
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

.subsections_via_symbols
