	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_get_proxy
_ftp_get_proxy:                         ## @ftp_get_proxy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movl	$100, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movl	16(%rbx), %edi
	callq	_fetch_no_proxy_match
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.10:
	movq	%rax, %rdi
	callq	_fetchParseURL
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movq	%rax, %rbx
	movq	(%rax), %r14
	cmpl	$0, (%r14)
	jne	LBB0_18
## %bb.12:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_SCHEME_HTTP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_SCHEME_FTP@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcpy
LBB0_18:
	cmpq	$0, 8(%rbx)
	jne	LBB0_20
## %bb.19:
	movq	(%rbx), %rdi
	callq	_fetch_default_proxy_port
	movq	%rax, 8(%rbx)
LBB0_20:
	movq	(%rbx), %rdi
	movq	_SCHEME_FTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.21:
	movq	(%rbx), %rdi
	movq	_SCHEME_HTTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.22:
	movq	%rbx, %rdi
	callq	_fetchFreeURL
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FTP_PROXY"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"http_proxy"

	.comm	_SCHEME_FTP,4,2                 ## @SCHEME_FTP
	.comm	_SCHEME_HTTP,4,2                ## @SCHEME_HTTP
	.no_dead_strip	_ftp_get_proxy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_get_proxy
_ftp_get_proxy:                         ; @ftp_get_proxy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #100
	bl	_strchr
	cbnz	x0, LBB0_3
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_fetch_no_proxy_match
	cbz	x0, LBB0_5
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_9
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_9
; %bb.7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_9
; %bb.8:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
LBB0_9:
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.10:
	bl	_fetchParseURL
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.11:
	ldr	x20, [x19]
	ldr	w8, [x20]
	cbnz	w8, LBB0_15
; %bb.12:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh10:
	adrp	x21, _SCHEME_FTP@GOTPAGE
Lloh11:
	ldr	x21, [x21, _SCHEME_FTP@GOTPAGEOFF]
	cbnz	x0, LBB0_14
; %bb.13:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh14:
	adrp	x8, _SCHEME_HTTP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCHEME_HTTP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
LBB0_14:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_strcpy
LBB0_15:
Lloh16:
	adrp	x20, _SCHEME_FTP@GOTPAGE
Lloh17:
	ldr	x20, [x20, _SCHEME_FTP@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_17
; %bb.16:
	ldr	x0, [x19]
	bl	_fetch_default_proxy_port
	str	x0, [x19, #8]
LBB0_17:
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.18:
	ldr	x0, [x19]
Lloh18:
	adrp	x8, _SCHEME_HTTP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCHEME_HTTP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.19:
	mov	x0, x19
	bl	_fetchFreeURL
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FTP_PROXY"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"http_proxy"

	.comm	_SCHEME_FTP,4,2                 ; @SCHEME_FTP
	.comm	_SCHEME_HTTP,4,2                ; @SCHEME_HTTP
	.no_dead_strip	_ftp_get_proxy
.subsections_via_symbols
