	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_open_cnx_internal
_http_open_cnx_internal:                ## @http_open_cnx_internal
	.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
	pushq	%rax
	movl	$5208, %eax                     ## imm = 0x1458
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -5216(%rbp)               ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-4160(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	movq	%rsp, -5240(%rbp)               ## 8-byte Spill
	movq	_MAX_URL_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%r14), %eax
	movq	%rax, -5224(%rbp)               ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -5232(%rbp)               ## 8-byte Spill
	movl	$0, -5192(%rbp)
	movq	%rbx, -5208(%rbp)               ## 8-byte Spill
	movq	16(%rbx), %rbx
	leaq	-5188(%rbp), %rax
	leaq	-2106(%rbp), %rdi
	leaq	-3136(%rbp), %rdx
	leaq	-1072(%rbp), %r14
	movl	$10, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	movq	%r14, %r8
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	(%rbx)
	pushq	%r15
	pushq	%r13
	pushq	%rax
	callq	_av_url_split
	addq	$32, %rsp
	movl	-5188(%rbp), %r9d
	subq	$8, %rsp
	xorl	%r12d, %r12d
	leaq	-2096(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	xorl	%eax, %eax
	pushq	$0
	callq	_ff_url_join
	addq	$16, %rsp
	movq	%rbx, -5200(%rbp)               ## 8-byte Spill
	movq	8(%rbx), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	leaq	-1072(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ff_http_match_no_proxy
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_av_strstart
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_5:
	movl	$1886680168, %eax               ## imm = 0x70747468
	xorl	-2106(%rbp), %eax
	movzwl	-2102(%rbp), %ecx
	xorl	$115, %ecx
	orl	%eax, %ecx
	movl	-5188(%rbp), %r9d
	je	LBB0_6
## %bb.9:
	testl	%r9d, %r9d
	jns	LBB0_11
## %bb.10:
	movl	$80, -5188(%rbp)
	movl	$80, %r9d
LBB0_11:
	cmpb	$0, (%r13)
	leaq	L_.str.6(%rip), %rax
	movq	%r13, %r15
	cmoveq	%rax, %r15
	leaq	L_.str(%rip), %rdx
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.13:
	leaq	L_.str.7(%rip), %r10
	leaq	-2106(%rbp), %rdx
	leaq	-1072(%rbp), %r12
	movq	-5232(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-5224(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	xorl	%eax, %eax
	pushq	%r13
	pushq	%r10
	callq	_ff_url_join
	addq	$16, %rsp
	leaq	-4160(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	movq	%r12, %r8
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	%r14
	pushq	$0
	pushq	$0
	leaq	-5188(%rbp), %rax
	pushq	%rax
	callq	_av_url_split
	leaq	L_.str(%rip), %rdx
	addq	$32, %rsp
	movl	-5188(%rbp), %r9d
	movq	%rbx, %r13
	jmp	LBB0_14
LBB0_6:
	testl	%r9d, %r9d
	jns	LBB0_8
## %bb.7:
	movl	$443, -5188(%rbp)               ## imm = 0x1BB
	movl	$443, %r9d                      ## imm = 0x1BB
LBB0_8:
	cmpb	$0, (%r13)
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %r13
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %r15
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %r13
LBB0_14:
	movq	-5208(%rbp), %r14               ## 8-byte Reload
	movq	-5200(%rbp), %rbx               ## 8-byte Reload
	subq	$8, %rsp
	leaq	-5184(%rbp), %rdi
	leaq	-1072(%rbp), %r8
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	pushq	$0
	callq	_ff_url_join
	addq	$16, %rsp
	cmpl	$0, 16(%rbx)
	jne	LBB0_16
## %bb.15:
	addq	$16, %rbx
	movq	_AVIO_FLAG_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r14), %rcx
	movl	(%r14), %eax
	movl	4(%r14), %r9d
	leaq	-5184(%rbp), %rsi
	movq	%rbx, %rdi
	movq	-5216(%rbp), %r8                ## 8-byte Reload
	pushq	%r14
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_18
LBB0_16:
	subq	$8, %rsp
	leaq	-5192(%rbp), %rax
	leaq	-2096(%rbp), %rcx
	leaq	-3136(%rbp), %r8
	leaq	-4160(%rbp), %r9
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	pushq	%rax
	callq	_http_connect
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:
	movl	-5192(%rbp), %eax
LBB0_18:
	movq	-5240(%rbp), %rsp               ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

	.comm	_MAX_URL_SIZE,4,2               ## @MAX_URL_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"http_proxy"

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

L_.str.3:                               ## @.str.3
	.asciz	"http://"

L_.str.4:                               ## @.str.4
	.asciz	"https"

L_.str.5:                               ## @.str.5
	.asciz	"tls"

L_.str.6:                               ## @.str.6
	.asciz	"/"

L_.str.7:                               ## @.str.7
	.asciz	"%s"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ## @AVIO_FLAG_READ_WRITE
	.no_dead_strip	_http_open_cnx_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_open_cnx_internal
_http_open_cnx_internal:                ; @http_open_cnx_internal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #5168
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #1072
	mov	x19, sp
	mov	x21, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, x19, #1046
	mov	w1, #1024
	bl	_bzero
	mov	x28, sp
Lloh5:
	adrp	x12, _MAX_URL_SIZE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MAX_URL_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x24, x9, x10
	mov	sp, x24
	ldr	w25, [x12]
	mov	x9, x25
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x25, #15
	and	x10, x10, #0x1fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	str	wzr, [x19, #12]
	ldr	x23, [x20, #16]
	ldr	x9, [x23]
	sub	sp, sp, #16
	str	x9, [sp, #8]
	str	w8, [sp]
	add	x0, x19, #3094
	add	x2, x19, #2070
	add	x4, x19, #1, lsl #12            ; =4096
	add	x4, x4, #32
	add	x6, x19, #16
	mov	w1, #10
	mov	w3, #1024
	mov	x7, x24
	mov	w5, #1024
	bl	_av_url_split
	add	sp, sp, #16
	ldr	w5, [x19, #16]
	add	x0, x19, #3104
	add	x4, x19, #1, lsl #12            ; =4096
	add	x4, x4, #32
	mov	w1, #1024
	mov	x2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_ff_url_join
	ldr	x27, [x23, #8]
	cbnz	x27, LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x27, x0
LBB0_2:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	add	x1, x19, #1, lsl #12            ; =4096
	add	x1, x1, #32
	bl	_ff_http_match_no_proxy
	mov	w8, #0
	cbnz	w0, LBB0_5
; %bb.3:
	cbz	x27, LBB0_5
; %bb.4:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x27
	mov	x2, #0
	bl	_av_strstart
	cmp	x0, #0
	cset	w8, ne
LBB0_5:
	add	x9, x19, #2839
	ldur	w9, [x9, #255]
	mov	w10, #29800
	movk	w10, #28788, lsl #16
	eor	w9, w9, w10
	ldrh	w10, [x19, #3098]
	mov	w11, #115
	eor	w10, w10, w11
	ldr	w5, [x19, #16]
	orr	w9, w9, w10
	cbz	w9, LBB0_10
; %bb.6:
	tbz	w5, #31, LBB0_8
; %bb.7:
	mov	w5, #80
	str	w5, [x19, #16]
LBB0_8:
	ldrb	w9, [x24]
Lloh17:
	adrp	x10, l_.str.6@PAGE
Lloh18:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	w9, #0
	csel	x26, x10, x24, eq
	cbz	w8, LBB0_13
; %bb.9:
	str	x24, [sp, #-16]!
Lloh19:
	adrp	x6, l_.str.7@PAGE
Lloh20:
	add	x6, x6, l_.str.7@PAGEOFF
	add	x2, x19, #3094
	add	x4, x19, #1, lsl #12            ; =4096
	add	x4, x4, #32
	mov	x0, x22
	mov	x1, x25
	mov	x3, #0
	bl	_ff_url_join
	add	sp, sp, #16
	sub	sp, sp, #16
	str	x27, [sp, #8]
	str	wzr, [sp]
	add	x2, x19, #1046
	add	x4, x19, #1, lsl #12            ; =4096
	add	x4, x4, #32
	add	x6, x19, #16
	mov	x0, #0
	mov	w1, #0
	mov	w3, #1024
	mov	w5, #1024
	mov	x7, #0
	bl	_av_url_split
	add	sp, sp, #16
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	ldr	w5, [x19, #16]
	b	LBB0_15
LBB0_10:
	tbz	w5, #31, LBB0_12
; %bb.11:
	mov	w5, #443
	str	w5, [x19, #16]
LBB0_12:
Lloh23:
	adrp	x8, l_.str.6@PAGE
Lloh24:
	add	x8, x8, l_.str.6@PAGEOFF
	ldrb	w9, [x24]
	cmp	w9, #0
	csel	x26, x8, x24, eq
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
LBB0_14:
	mov	x22, x26
LBB0_15:
	add	x0, x19, #22
	add	x4, x19, #1, lsl #12            ; =4096
	add	x4, x4, #32
	mov	w1, #1024
	mov	x3, #0
	mov	x6, #0
	bl	_ff_url_join
	ldr	w8, [x23, #16]!
	cbnz	w8, LBB0_17
; %bb.16:
Lloh29:
	adrp	x8, _AVIO_FLAG_READ_WRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVIO_FLAG_READ_WRITE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, x20, #8
	ldp	w6, w5, [x20]
	add	x1, x19, #22
	mov	x0, x23
	mov	x4, x21
	mov	x7, x20
	bl	_ffurl_open_whitelist
	tbnz	w0, #31, LBB0_18
LBB0_17:
	add	x3, x19, #3104
	add	x4, x19, #2070
	add	x5, x19, #1046
	add	x6, x19, #12
	mov	x0, x20
	mov	x1, x22
	mov	x2, x26
	bl	_http_connect
	ldr	w8, [x19, #12]
	cmp	w0, #0
	csel	w0, w0, w8, lt
LBB0_18:
	mov	sp, x28
	ldur	x8, [x29, #-96]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

	.comm	_MAX_URL_SIZE,4,2               ; @MAX_URL_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"http_proxy"

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

l_.str.3:                               ; @.str.3
	.asciz	"http://"

l_.str.4:                               ; @.str.4
	.asciz	"https"

l_.str.5:                               ; @.str.5
	.asciz	"tls"

l_.str.6:                               ; @.str.6
	.asciz	"/"

l_.str.7:                               ; @.str.7
	.asciz	"%s"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ; @AVIO_FLAG_READ_WRITE
	.no_dead_strip	_http_open_cnx_internal
.subsections_via_symbols
