	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_open_cnx
_http_open_cnx:                         ## @http_open_cnx
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movl	48(%r15), %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movq	16(%r15), %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_http_open_cnx_internal
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_20
## %bb.1:
	leaq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ffurl_closep
	movl	48(%r15), %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movq	16(%r15), %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_http_open_cnx_internal
	movl	%eax, %r13d
	incl	%r12d
	testl	%eax, %eax
	js	LBB0_20
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %ecx
	cmpl	$401, %ecx                      ## imm = 0x191
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$407, %ecx                      ## imm = 0x197
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_HTTP_AUTH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, 40(%r15)
	je	LBB0_27
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	cmpq	%rax, 32(%r15)
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$3, %r12d
	jb	LBB0_3
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_HTTP_AUTH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, 24(%r15)
	je	LBB0_27
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$2, %r12d
	jbe	LBB0_3
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-301(%rcx), %eax
	cmpl	$3, %eax
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r13d
	je	LBB0_18
	jmp	LBB0_29
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$307, %ecx                      ## imm = 0x133
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r13d
	jne	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ffurl_closep
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_MAX_REDIRECTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_28
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	48(%r15), %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movq	16(%r15), %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_http_open_cnx_internal
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_2
LBB0_20:
	movb	$1, %bl
LBB0_21:
	cmpq	$0, 8(%r15)
	je	LBB0_23
LBB0_22:
	leaq	8(%r15), %rdi
	callq	_ffurl_closep
LBB0_23:
	movl	%r13d, %eax
	testb	%bl, %bl
	je	LBB0_25
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	(%r15), %ebx
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_http_averror                ## TAILCALL
LBB0_27:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_22
	jmp	LBB0_23
LBB0_28:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_29:
	xorl	%eax, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_AUTH_NONE,8,3             ## @HTTP_AUTH_NONE
	.comm	_MAX_REDIRECTS,4,2              ## @MAX_REDIRECTS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_http_open_cnx
.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
_http_open_cnx:                         ; @http_open_cnx
	.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	x19, x1
	mov	x20, x0
	ldr	x24, [x0]
	ldr	w1, [x24, #48]
	mov	x0, x19
	mov	w2, #0
	bl	_av_dict_copy
	mov	x21, x24
	ldr	x28, [x21, #16]!
	mov	x0, x20
	mov	x1, x19
	bl	_http_open_cnx_internal
	mov	x22, x0
	tbnz	w0, #31, LBB0_17
; %bb.1:
	mov	w25, #0
	add	x23, x24, #8
Lloh0:
	adrp	x26, _HTTP_AUTH_NONE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HTTP_AUTH_NONE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	w27, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [x21]
	cmp	x9, x8
	ccmp	w27, #2, #2, ne
	b.hi	LBB0_18
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x23
	bl	_ffurl_closep
	ldr	w1, [x24, #48]
	mov	x0, x19
	mov	w2, #0
	bl	_av_dict_copy
	ldr	x28, [x24, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_http_open_cnx_internal
	mov	x22, x0
	add	w27, w27, #1
	tbnz	w0, #31, LBB0_17
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	cmp	w8, #401
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w8, #407
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x26]
	cmp	x28, x8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [x24, #40]
	cbz	x9, LBB0_18
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [x24, #32]
	cmp	x9, x8
	ccmp	w27, #3, #2, ne
	b.lo	LBB0_4
	b	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x26]
	cmp	x28, x8
	b.eq	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [x24, #24]
	cbnz	x9, LBB0_3
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w8, #301
	cmp	w9, #3
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #1
	b.eq	LBB0_15
	b	LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #307
	ccmp	w22, #1, #0, eq
	b.ne	LBB0_24
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_ffurl_closep
Lloh2:
	adrp	x8, _MAX_REDIRECTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_REDIRECTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w1, [x24, #48]
	mov	x0, x19
	mov	w2, #0
	bl	_av_dict_copy
	ldr	x28, [x24, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_http_open_cnx_internal
	mov	x22, x0
	tbz	w0, #31, LBB0_2
LBB0_17:
	mov	w19, #1
	b	LBB0_19
LBB0_18:
	mov	w19, #0
LBB0_19:
	mov	x0, x24
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_21
; %bb.20:
	bl	_ffurl_closep
LBB0_21:
	tbz	w19, #0, LBB0_23
LBB0_22:
	mov	x0, x22
	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_23:
	ldr	w19, [x24]
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x1, x0
	mov	x0, x19
	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
	b	_ff_http_averror
LBB0_24:
	mov	w22, #0
	b	LBB0_22
LBB0_25:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_AUTH_NONE,8,3             ; @HTTP_AUTH_NONE
	.comm	_MAX_REDIRECTS,4,2              ; @MAX_REDIRECTS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_http_open_cnx
.subsections_via_symbols
