	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_credential_from_url            ## -- Begin function credential_from_url
	.p2align	4, 0x90
_credential_from_url:                   ## @credential_from_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_credential_clear
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	3(%rax), %r13
	movq	%r13, %rdi
	movl	$64, %esi
	callq	_strchr
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strchrnul
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	cmpq	%r15, %rbx
	jbe	LBB0_8
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rax, %r15
	jbe	LBB0_5
## %bb.6:
	movl	%eax, %esi
	subl	%r13d, %esi
	movq	%r13, %rdi
	movq	%rax, %r13
	callq	_url_decode_mem
	movq	%rax, 32(%r14)
	incq	%r13
	movl	%r15d, %esi
	subl	%r13d, %esi
	movq	%r13, %rdi
	callq	_url_decode_mem
	movq	%rax, 24(%r14)
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %esi
	subl	%r13d, %esi
	movq	%r13, %rdi
	callq	_url_decode_mem
	movq	%rax, 32(%r14)
LBB0_7:
	incq	%r15
	movq	%r15, %r13
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	subq	%rdi, %r12
	testq	%r12, %r12
	jle	LBB0_10
## %bb.9:
	movl	%r12d, %esi
	callq	_xmemdupz
	movl	%eax, 16(%r14)
LBB0_10:
	movq	%rbx, %rsi
	subq	%r13, %rsi
	testq	%rsi, %rsi
	jle	LBB0_12
## %bb.11:
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_url_decode_mem
	movq	%rax, 8(%r14)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$47, %al
	je	LBB0_19
## %bb.13:
	testb	%al, %al
	jne	LBB0_14
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, %rdi
	callq	_url_decode
	movq	%rax, %rbx
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_strlen
	cltq
	addq	%rbx, %rax
	decq	%rax
	cmpq	(%r14), %rax
	jbe	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rax)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movb	$0, (%rax)
	decq	%rax
	cmpq	(%r14), %rax
	ja	LBB0_16
	jmp	LBB0_18
	.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	_credential_from_url            ; -- Begin function credential_from_url
	.p2align	2
_credential_from_url:                   ; @credential_from_url
	.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	x21, x1
	mov	x19, x0
	bl	_credential_clear
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	add	x23, x0, #3
	mov	x0, x23
	mov	w1, #64
	bl	_strchr
	mov	x24, x0
	mov	x0, x23
	mov	w1, #58
	bl	_strchr
	mov	x25, x0
	mov	x0, x23
	mov	w1, #47
	bl	_strchrnul
	mov	x20, x0
	cbz	x24, LBB0_8
; %bb.2:
	cmp	x20, x24
	b.ls	LBB0_8
; %bb.3:
	cbz	x25, LBB0_6
; %bb.4:
	cmp	x24, x25
	b.ls	LBB0_6
; %bb.5:
	sub	w1, w25, w23
	mov	x0, x23
	bl	_url_decode_mem
	str	x0, [x19, #32]
	add	x0, x25, #1
	sub	w1, w24, w0
	bl	_url_decode_mem
	str	x0, [x19, #24]
	b	LBB0_7
LBB0_6:
	sub	w1, w24, w23
	mov	x0, x23
	bl	_url_decode_mem
	str	x0, [x19, #32]
LBB0_7:
	add	x23, x24, #1
LBB0_8:
	sub	x1, x22, x21
	cmp	x1, #1
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_xmemdupz
	str	w0, [x19, #16]
LBB0_10:
	sub	x1, x20, x23
	cmp	x1, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_url_decode_mem
	str	x0, [x19, #8]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #47
	b.eq	LBB0_12
; %bb.14:
	cbnz	w8, LBB0_16
LBB0_15:
	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
LBB0_16:
	mov	x0, x20
	bl	_url_decode
	mov	x20, x0
	str	x0, [x19]
	bl	_strlen
	add	x8, x20, w0, sxtw
	sub	x8, x8, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	cmp	x8, x9
	b.ls	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w9, [x8]
	cmp	w9, #47
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	strb	wzr, [x8], #-1
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

.subsections_via_symbols
