	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_url
_open_url:                              ## @open_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rcx, -80(%rbp)
	movq	8(%rdi), %r15
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_av_dict_copy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_av_strstart
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movb	6(%r14), %al
	cmpb	$58, %al
	je	LBB0_3
## %bb.2:
	cmpb	$43, %al
	jne	LBB0_4
LBB0_3:
	leaq	7(%r14), %rdi
	callq	_avio_find_protocol_name
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_avio_find_protocol_name
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_av_strstart
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_av_match_ext
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_av_log
	jmp	LBB0_5
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_av_strstart
	testl	%eax, %eax
	je	LBB0_5
LBB0_11:
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$58, (%r14,%rax)
	je	LBB0_18
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_av_strstart
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	leaq	7(%r14), %rbx
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$58, 7(%rax,%r14)
	je	LBB0_18
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
LBB0_18:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_av_freep
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r15), %ecx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_avio_open2
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_22
## %bb.19:
	movq	$0, -64(%rbp)
	movq	_AVFMT_FLAG_CUSTOM_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_22
## %bb.20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_OPT_SEARCH_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	leaq	-64(%rbp), %rcx
	callq	_av_opt_get
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.21:
	movq	_AV_DICT_DONT_STRDUP_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_av_dict_set
LBB0_22:
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	testq	%r14, %r14
	je	LBB0_24
## %bb.23:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_av_strstart
	movl	%eax, (%r14)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crypto"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"file"

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

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Filename extension of '%s' is not a common multimedia extension, blocked for security reasons.\nIf you wish to override this adjust allowed_extensions, you can set it to 'ALL' to allow all\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"file,"

	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_AVFMT_FLAG_CUSTOM_IO,4,2       ## @AVFMT_FLAG_CUSTOM_IO
L_.str.6:                               ## @.str.6
	.asciz	"cookies"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ## @AV_OPT_SEARCH_CHILDREN
	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ## @AV_DICT_DONT_STRDUP_VAL
	.no_dead_strip	_open_url
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_url
_open_url:                              ; @open_url
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x23, x4
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, x3, [sp, #16]
	ldr	x25, [x0, #8]
	add	x0, sp, #16
	mov	x1, x3
	mov	w2, #0
	bl	_av_dict_copy
	add	x0, sp, #16
	mov	x1, x23
	mov	w2, #0
	bl	_av_dict_copy
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_av_strstart
	cbz	w0, LBB0_4
; %bb.1:
	ldrb	w8, [x22, #6]
	cmp	w8, #58
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #43
	b.ne	LBB0_4
LBB0_3:
	add	x0, x22, #7
	bl	_avio_find_protocol_name
	mov	x23, x0
	cbnz	x0, LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_avio_find_protocol_name
	mov	x23, x0
	cbz	x0, LBB0_16
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_av_strstart
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x0, [x25]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x1, [x25]
	mov	x0, x22
	bl	_av_match_ext
	cbnz	w0, LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	bl	_av_log
	b	LBB0_16
LBB0_9:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_av_strstart
	cbz	w0, LBB0_16
LBB0_10:
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_strncmp
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_strlen
	ldrb	w8, [x22, w0, sxtw]
	cmp	w8, #58
	b.eq	LBB0_19
LBB0_12:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_av_strstart
	cbz	w0, LBB0_15
; %bb.13:
	add	x24, x22, #7
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_strncmp
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_strlen
	add	x8, x22, w0, sxtw
	ldrb	w8, [x8, #7]
	cmp	w8, #58
	b.eq	LBB0_19
LBB0_15:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	x0, LBB0_18
LBB0_16:
Lloh17:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	w2, #5
	bl	_strncmp
	cbz	w0, LBB0_16
LBB0_19:
	mov	x0, x20
	bl	_av_freep
Lloh22:
	adrp	x8, _AVIO_FLAG_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	ldr	w3, [x25, #8]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x22
	bl	_avio_open2
	mov	x22, x0
	tbnz	w0, #31, LBB0_23
; %bb.20:
	str	xzr, [sp, #8]
	ldr	w8, [x21]
Lloh25:
	adrp	x9, _AVFMT_FLAG_CUSTOM_IO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AVFMT_FLAG_CUSTOM_IO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_23
; %bb.21:
	ldr	x0, [x20]
Lloh28:
	adrp	x8, _AV_OPT_SEARCH_CHILDREN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_OPT_SEARCH_CHILDREN@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x3, sp, #8
	bl	_av_opt_get
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_23
; %bb.22:
Lloh33:
	adrp	x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_DICT_DONT_STRDUP_VAL@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #24
	bl	_av_dict_set
LBB0_23:
	add	x0, sp, #16
	bl	_av_dict_free
	cbz	x19, LBB0_17
; %bb.24:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	bl	_av_strstart
	str	w0, [x19]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crypto"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"file"

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

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Filename extension of '%s' is not a common multimedia extension, blocked for security reasons.\nIf you wish to override this adjust allowed_extensions, you can set it to 'ALL' to allow all\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"file,"

	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_AVFMT_FLAG_CUSTOM_IO,4,2       ; @AVFMT_FLAG_CUSTOM_IO
l_.str.6:                               ; @.str.6
	.asciz	"cookies"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ; @AV_OPT_SEARCH_CHILDREN
	.comm	_AV_DICT_DONT_STRDUP_VAL,4,2    ; @AV_DICT_DONT_STRDUP_VAL
	.no_dead_strip	_open_url
.subsections_via_symbols
