	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_from_string
_proxy_from_string:                     ## @proxy_from_string
	.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
	movb	(%rdi), %al
	xorl	%r15d, %r15d
	testb	%al, %al
	je	LBB0_23
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, 1(%rdi)
	je	LBB0_23
## %bb.2:
	cmpb	$0, 2(%rbx)
	je	LBB0_23
## %bb.3:
	cmpb	$0, 3(%rbx)
	je	LBB0_23
## %bb.4:
	cmpb	$0, 4(%rbx)
	je	LBB0_23
## %bb.5:
	movq	%rdx, %r12
	movsbl	5(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_23
## %bb.6:
	movq	%r9, %r13
	movq	%r8, %r14
	xorl	%r15d, %r15d
	cmpb	$104, %al
	je	LBB0_11
## %bb.7:
	cmpb	$115, %al
	jne	LBB0_22
## %bb.8:
	movl	$6, %edi
	xorl	%r15d, %r15d
	cmpl	$53, %edx
	je	LBB0_20
## %bb.9:
	cmpl	$52, %edx
	jne	LBB0_23
## %bb.10:
	movl	$1, %r8d
	movb	$1, %r15b
	jmp	LBB0_12
LBB0_11:
	movl	$2, %r8d
	movl	$4, %edi
LBB0_12:
	xorl	%edx, %edx
	cmpb	$58, (%rbx,%rdi)
	jne	LBB0_22
LBB0_13:
	movq	%rdi, %rax
	orq	$1, %rax
	cmpb	$47, (%rbx,%rax)
	jne	LBB0_22
## %bb.14:
	cmpb	$47, 2(%rdi,%rbx)
	jne	LBB0_22
## %bb.15:
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	3(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$64, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_24
## %bb.16:
	testb	%r15b, %r15b
	jne	LBB0_22
## %bb.25:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_22
## %bb.26:
	movq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r15
	jae	LBB0_22
## %bb.27:
	movq	%r15, %rcx
	subq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	incq	%r15
	subq	%r15, %rax
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_30
## %bb.28:
	cmpq	$255, %rcx
	ja	LBB0_22
## %bb.29:
	cmpq	$255, %rax
	ja	LBB0_22
LBB0_30:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, %rdx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_memcpy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%r14,%rax)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	movb	$0, (%r13,%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	addq	%r14, %rax
	addq	$5, %rax
	jmp	LBB0_31
LBB0_20:
	movb	$1, %dl
	xorl	%r8d, %r8d
	cmpb	$58, (%rbx,%rdi)
	je	LBB0_13
LBB0_22:
	xorl	%r15d, %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movb	$0, (%r14)
	movb	$0, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_31:
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_22
## %bb.32:
	movq	%rax, %r14
	movq	%rax, %r13
	subq	%rbx, %r13
	movl	$0, %r15d
	cmpq	$255, %r13
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	ja	LBB0_23
## %bb.33:
	movq	%r12, %rdi
	movq	%rax, %r15
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%rcx, %rbx
	callq	_memcpy
	movb	$0, (%r12,%r13)
	incq	%r14
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, (%rbx)
	leaq	l_reltable.proxy_from_string(%rip), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %rsi
	addq	%rax, %rsi
	movq	%r15, %rdi
	callq	_strcpy
	movl	$1, %r15d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socks4"

L_.str.1:                               ## @.str.1
	.asciz	"socks5"

L_.str.2:                               ## @.str.2
	.asciz	"http"

	.no_dead_strip	_proxy_from_string
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.proxy_from_string
l_reltable.proxy_from_string:
	.long	L_.str.1-l_reltable.proxy_from_string
	.long	L_.str-l_reltable.proxy_from_string
	.long	L_.str.2-l_reltable.proxy_from_string

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_from_string
_proxy_from_string:                     ; @proxy_from_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldrb	w8, [x0]
	cbz	w8, LBB0_28
; %bb.1:
	mov	x22, x0
	ldrb	w9, [x0, #1]
	cbz	w9, LBB0_28
; %bb.2:
	ldrb	w9, [x22, #2]
	cbz	w9, LBB0_28
; %bb.3:
	ldrb	w9, [x22, #3]
	cbz	w9, LBB0_28
; %bb.4:
	ldrb	w9, [x22, #4]
	cbz	w9, LBB0_28
; %bb.5:
	ldrsb	w9, [x22, #5]
	cbz	w9, LBB0_28
; %bb.6:
	mov	x23, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	cmp	w8, #104
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #0
	cmp	w8, #115
	b.ne	LBB0_29
; %bb.8:
	cmp	w9, #53
	b.eq	LBB0_12
; %bb.9:
	mov	w0, #0
	cmp	w9, #52
	b.ne	LBB0_29
; %bb.10:
	mov	w25, #0
	mov	w9, #129
	mov	w28, #1
	b	LBB0_13
LBB0_11:
	mov	w28, #0
	mov	w25, #0
	mov	w9, #130
	mov	w26, #4
	b	LBB0_14
LBB0_12:
	mov	w28, #0
	mov	w9, #128
	mov	w25, #1
LBB0_13:
	mov	w26, #6
LBB0_14:
	ldrb	w8, [x22, x26]
	cmp	w8, #58
	b.ne	LBB0_28
; %bb.15:
	orr	x8, x26, #0x1
	ldrb	w8, [x22, x8]
	cmp	w8, #47
	b.ne	LBB0_28
; %bb.16:
	add	x8, x26, x22
	ldrb	w8, [x8, #2]
	cmp	w8, #47
	b.ne	LBB0_28
; %bb.17:
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	add	x27, x26, #3
	add	x0, x22, x27
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	w1, #64
	bl	_strrchr
	cbz	x0, LBB0_25
; %bb.18:
	tbnz	w28, #0, LBB0_28
; %bb.19:
	mov	x27, x0
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x28
	mov	w1, #58
	bl	_strchr
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_29
; %bb.20:
	cmp	x8, x27
	b.hs	LBB0_29
; %bb.21:
	sub	x9, x8, x28
	add	x8, x8, #1
	sub	x27, x27, x8
	cbz	w25, LBB0_24
; %bb.22:
	mov	w0, #0
	cmp	x9, #255
	b.hi	LBB0_29
; %bb.23:
	cmp	x27, #255
	b.hi	LBB0_29
LBB0_24:
	mov	x0, x24
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x28
	mov	x25, x9
	mov	x2, x9
	bl	_memcpy
	strb	wzr, [x24, x25]
	mov	x0, x23
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x27
	bl	_memcpy
	strb	wzr, [x23, x27]
	add	x8, x26, x25
	add	x8, x8, x27
	add	x27, x8, #5
	b	LBB0_26
LBB0_25:
	strb	wzr, [x24]
	strb	wzr, [x23]
LBB0_26:
	add	x22, x22, x27
	mov	x0, x22
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_29
; %bb.27:
	mov	x23, x0
	sub	x24, x0, x22
	cmp	x24, #255
	b.ls	LBB0_30
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_30:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	strb	wzr, [x21, x24]
	add	x0, x23, #1
	bl	_atoi
	str	w0, [x20]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	and	w8, w8, #0x3
	cmp	w8, #2
	b.eq	LBB0_34
; %bb.31:
	cmp	w8, #1
	b.eq	LBB0_35
; %bb.32:
	mov	w0, #0
	cbnz	w8, LBB0_29
; %bb.33:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_36
LBB0_34:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_36
LBB0_35:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_36:
	mov	x0, x19
	bl	_strcpy
	mov	w0, #1
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socks4"

l_.str.1:                               ; @.str.1
	.asciz	"socks5"

l_.str.2:                               ; @.str.2
	.asciz	"http"

	.no_dead_strip	_proxy_from_string
.subsections_via_symbols
