	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_open_dref
_mov_open_dref:                         ## @mov_open_dref
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$0, (%rcx)
	jle	LBB0_27
## %bb.1:
	cmpq	$0, 8(%rbx)
	jle	LBB0_27
## %bb.2:
	movq	%rdx, %r13
	movq	%rdx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%r13, %rcx
	movq	%rcx, -1112(%rbp)               ## 8-byte Spill
	movq	16(%rbx), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %r12d
	testl	%eax, %eax
	movq	%r14, -1096(%rbp)               ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	16(%rbx), %rcx
	movl	%r12d, %r12d
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%r12), %rdx
	testq	%r12, %r12
	movq	%rdx, %r12
	jle	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rcx,%r12)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edx
	decl	%edx
	cmpl	%edx, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%eax
	jmp	LBB0_8
LBB0_27:
	cmpq	$0, 8(%r14)
	movq	(%r14), %rdi
	je	LBB0_29
## %bb.28:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_av_log
	movq	(%r14), %rdi
	movq	16(%rbx), %rdx
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
LBB0_26:
	xorl	%r8d, %r8d
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_32
LBB0_29:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rcx
	leaq	L_.str.5(%rip), %rdx
LBB0_30:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_31
LBB0_9:
	movl	$-1, %r12d
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
LBB0_10:
	movl	(%rbx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_31
## %bb.11:
	movq	-1112(%rbp), %r14               ## 8-byte Reload
	subq	%r13, %r14
	cmpq	$1024, %r14                     ## imm = 0x400
	ja	LBB0_31
## %bb.12:
	movq	%r15, -1120(%rbp)               ## 8-byte Spill
	leaq	-1088(%rbp), %rdi
	movq	%r13, -1104(%rbp)               ## 8-byte Spill
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movb	$0, -1088(%rbp,%r14)
	cmpq	$2, 8(%rbx)
	jl	LBB0_15
## %bb.13:
	movl	$1, %r15d
	leaq	L_.str(%rip), %r13
	leaq	-1088(%rbp), %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1025, %edx                     ## imm = 0x401
	callq	_av_strlcat
	incq	%r15
	cmpq	%r15, 8(%rbx)
	jg	LBB0_14
LBB0_15:
	movq	16(%rbx), %rax
	movslq	%r12d, %r14
	leaq	(%rax,%r14), %rsi
	incq	%rsi
	leaq	-1088(%rbp), %rdi
	movl	$1025, %edx                     ## imm = 0x401
	callq	_av_strlcat
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_16
LBB0_24:
	leaq	-1088(%rbp), %rdi
	callq	_strlen
	cmpl	$1024, %eax                     ## imm = 0x400
	je	LBB0_31
## %bb.25:
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	leaq	-1088(%rbp), %rdx
	movq	-1120(%rbp), %rsi               ## 8-byte Reload
	jmp	LBB0_26
LBB0_16:
	leaq	-1088(%rbp), %rsi
	movq	-1104(%rbp), %rdi               ## 8-byte Reload
	callq	_test_same_origin
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %r13d
	movq	16(%rbx), %rax
	leaq	(%rax,%r14), %rdi
	incq	%rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_31
## %bb.19:
	movq	16(%rbx), %rax
	leaq	(%rax,%r14), %rdi
	incq	%rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_31
## %bb.20:
	cmpq	$2, 8(%rbx)
	jl	LBB0_22
## %bb.21:
	testl	%r13d, %r13d
	js	LBB0_31
LBB0_22:
	cmpb	$47, -1088(%rbp)
	jne	LBB0_24
## %bb.23:
	movq	-1112(%rbp), %rax               ## 8-byte Reload
	cmpq	-1104(%rbp), %rax               ## 8-byte Folded Reload
	jne	LBB0_24
LBB0_31:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.33:
	movl	%r12d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_30
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"../"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Reference with mismatching origin, %s not tried for security reasons, set demuxer option use_absolute_path to allow it anyway\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	".."

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

	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Using absolute path on user request, this is a possible security issue\n"

L_.str.5:                               ## @.str.5
	.asciz	"Absolute path %s not tried for security reasons, set demuxer option use_absolute_path to allow absolute paths\n"

	.no_dead_strip	_mov_open_dref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_open_dref
_mov_open_dref:                         ; @mov_open_dref
	.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
	sub	sp, sp, #1056
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x3]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x22, x2
	mov	x0, x2
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x24, x22, x0, eq
	ldr	x0, [x21, #16]
	bl	_strlen
	mov	w8, #0
	subs	w25, w0, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	x9, [x21, #16]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x10, x25, #1
	cmp	x25, #0
	mov	x25, x10
	b.le	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x25]
	cmp	w10, #47
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x21]
	sub	w10, w10, #1
	cmp	w8, w10
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, #1
	b	LBB0_4
LBB0_8:
	ldp	x0, x8, [x20]
	cbz	x8, LBB0_12
; %bb.9:
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x2, [x21, #16]
Lloh8:
	adrp	x9, _AVIO_FLAG_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
LBB0_10:
	mov	x1, x19
	mov	x4, #0
	blr	x8
	cbnz	w0, LBB0_30
	b	LBB0_31
LBB0_11:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	b	LBB0_15
LBB0_12:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x21, #16]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_13:
	bl	_av_log
	b	LBB0_30
LBB0_14:
	mov	w25, #-1
LBB0_15:
	ldr	w9, [x21]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.16:
	sub	x23, x24, x22
	cmp	x23, #1024
	b.hi	LBB0_30
; %bb.17:
	add	x26, sp, #23
	add	x0, sp, #23
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	strb	wzr, [x26, x23]
	ldr	x8, [x21, #8]
	cmp	x8, #2
	b.lt	LBB0_20
; %bb.18:
	mov	w26, #1
Lloh16:
	adrp	x23, l_.str@PAGE
Lloh17:
	add	x23, x23, l_.str@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #23
	mov	x1, x23
	mov	w2, #1025
	bl	_av_strlcat
	add	x26, x26, #1
	ldr	x8, [x21, #8]
	cmp	x8, x26
	b.gt	LBB0_19
LBB0_20:
	ldr	x8, [x21, #16]
	sxtw	x25, w25
	add	x8, x8, x25
	add	x1, x8, #1
	add	x0, sp, #23
	mov	w2, #1025
	bl	_av_strlcat
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_23
LBB0_21:
	add	x0, sp, #23
	bl	_strlen
	cmp	w0, #1024
	b.eq	LBB0_30
; %bb.22:
	ldr	x0, [x20]
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _AVIO_FLAG_READ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x9]
	add	x2, sp, #23
	b	LBB0_10
LBB0_23:
	add	x1, sp, #23
	mov	x0, x22
	bl	_test_same_origin
	cbz	w0, LBB0_33
; %bb.24:
	mov	x23, x0
	ldr	x8, [x21, #16]
	add	x8, x8, x25
	add	x0, x8, #1
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_30
; %bb.25:
	ldr	x8, [x21, #16]
	add	x8, x8, x25
	add	x0, x8, #1
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_30
; %bb.26:
	ldr	x8, [x21, #8]
	cmp	x8, #2
	b.lt	LBB0_28
; %bb.27:
	tbnz	w23, #31, LBB0_30
LBB0_28:
	ldrb	w8, [sp, #23]
	cmp	w8, #47
	b.ne	LBB0_21
; %bb.29:
	cmp	x24, x22
	b.ne	LBB0_21
LBB0_30:
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_31:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.32:
	add	sp, sp, #1056
	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_33:
	ldr	x0, [x20]
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	x8, [x21, #16]
	str	x8, [sp]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"../"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Reference with mismatching origin, %s not tried for security reasons, set demuxer option use_absolute_path to allow it anyway\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	".."

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

	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Using absolute path on user request, this is a possible security issue\n"

l_.str.5:                               ; @.str.5
	.asciz	"Absolute path %s not tried for security reasons, set demuxer option use_absolute_path to allow absolute paths\n"

	.no_dead_strip	_mov_open_dref
.subsections_via_symbols
