	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_connect_url
_parse_connect_url:                     ## @parse_connect_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_PROTO_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_is_url
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_url_decode
	jmp	LBB0_3
LBB0_2:
	callq	_xstrdup
LBB0_3:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strstr
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movb	$0, (%rax)
	movq	%r12, %rdi
	callq	_get_protocol
	addq	$3, -48(%rbp)
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_5:
	movq	%r12, -48(%rbp)
	movq	%r12, %rdi
	callq	_url_is_local_not_ssh
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movl	$47, -52(%rbp)                  ## 4-byte Folded Spill
	xorl	%ebx, %ebx
LBB0_8:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_host_end
	movq	%rax, %r14
	movq	_PROTO_LOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_19
## %bb.9:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_PROTO_FILE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %r13d
	jne	LBB0_15
## %bb.10:
	movq	-48(%rbp), %rdi
	cmpb	$47, (%rdi)
	je	LBB0_15
## %bb.11:
	callq	_has_dos_drive_prefix
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movq	-48(%rbp), %rdi
	addq	$-2, %rdi
	callq	_offset_1st_component
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.13:
	movq	-48(%rbp), %r14
	addq	$-2, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_15:
	cmpl	(%r15), %r13d
	jne	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_has_dos_drive_prefix
	testq	%rax, %rax
	jne	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_strchr
	movq	%rax, %r14
LBB0_18:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_19:
	testq	%r14, %r14
	je	LBB0_20
LBB0_14:
	cmpb	$0, (%r14)
	jne	LBB0_22
	jmp	LBB0_21
LBB0_20:
	xorl	%r14d, %r14d
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_22:
	addq	%r14, %rbx
	movq	_PROTO_GIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_24
## %bb.23:
	movq	_PROTO_SSH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_25
LBB0_24:
	leaq	1(%rbx), %rax
	cmpb	$126, 1(%rbx)
	cmoveq	%rax, %rbx
LBB0_25:
	movq	%rbx, %rdi
	callq	_xstrdup
	movq	%rax, %rbx
	movb	$0, (%r14)
	movq	-48(%rbp), %rdi
	callq	_xstrdup
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, (%r15)
	movq	%r12, %rdi
	callq	_free
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_PROTO_SSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$58, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$1, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_LOCAL,4,2                ## @PROTO_LOCAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"://"

	.comm	_PROTO_SSH,4,2                  ## @PROTO_SSH
	.comm	_PROTO_FILE,4,2                 ## @PROTO_FILE
L_.str.1:                               ## @.str.1
	.asciz	"no path specified; see 'git help pull' for valid url syntax"

	.comm	_PROTO_GIT,4,2                  ## @PROTO_GIT
	.no_dead_strip	_parse_connect_url
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_connect_url
_parse_connect_url:                     ; @parse_connect_url
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x27, _PROTO_LOCAL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PROTO_LOCAL@GOTPAGEOFF]
	ldr	w21, [x27]
	bl	_is_url
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_url_decode
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_xstrdup
LBB0_3:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
	str	x0, [sp, #8]
Lloh4:
	adrp	x25, _PROTO_SSH@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PROTO_SSH@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	strb	wzr, [x0]
	mov	x0, x22
	bl	_get_protocol
	mov	x21, x0
	mov	x26, #0
	ldr	x8, [sp, #8]
	add	x8, x8, #3
	str	x8, [sp, #8]
	mov	w24, #47
	b	LBB0_8
LBB0_5:
	str	x22, [sp, #8]
	mov	x0, x22
	bl	_url_is_local_not_ssh
	cbz	w0, LBB0_7
; %bb.6:
	mov	x26, #0
	mov	w24, #47
	b	LBB0_8
LBB0_7:
	ldr	w21, [x25]
	mov	w24, #58
	mov	w26, #1
LBB0_8:
	add	x0, sp, #8
	mov	w1, #0
	bl	_host_end
	mov	x23, x0
	ldr	w8, [x27]
	cmp	w21, w8
	b.eq	LBB0_17
; %bb.9:
Lloh6:
	adrp	x27, _PROTO_FILE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PROTO_FILE@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.10:
	ldr	x0, [sp, #8]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_14
; %bb.11:
	bl	_has_dos_drive_prefix
	cbnz	x0, LBB0_14
; %bb.12:
	ldr	x8, [sp, #8]
	sub	x0, x8, #2
	bl	_offset_1st_component
	cmp	w0, #2
	b.lt	LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]
	sub	x23, x8, #2
	b	LBB0_18
LBB0_14:
	ldr	w8, [x27]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x23
	bl	_has_dos_drive_prefix
	cbnz	x0, LBB0_17
LBB0_16:
	mov	x0, x23
	mov	x1, x24
	bl	_strchr
	mov	x23, x0
LBB0_17:
	cbz	x23, LBB0_19
LBB0_18:
	ldrb	w8, [x23]
	cbnz	w8, LBB0_20
LBB0_19:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_20:
	add	x0, x23, x26
Lloh10:
	adrp	x8, _PROTO_GIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROTO_GIT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w8, [x25]
	cmp	w21, w8
	b.ne	LBB0_23
LBB0_22:
	mov	x8, x0
	ldrb	w9, [x8, #1]!
	cmp	w9, #126
	csel	x0, x8, x0, eq
LBB0_23:
	bl	_xstrdup
	mov	x24, x0
	strb	wzr, [x23]
	ldr	x0, [sp, #8]
	bl	_xstrdup
	str	x0, [x20]
	str	x24, [x19]
	mov	x0, x22
	bl	_free
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_LOCAL,4,2                ; @PROTO_LOCAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

	.comm	_PROTO_SSH,4,2                  ; @PROTO_SSH
	.comm	_PROTO_FILE,4,2                 ; @PROTO_FILE
l_.str.1:                               ; @.str.1
	.asciz	"no path specified; see 'git help pull' for valid url syntax"

	.comm	_PROTO_GIT,4,2                  ; @PROTO_GIT
	.no_dead_strip	_parse_connect_url
.subsections_via_symbols
