	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_hdlr
_mov_read_hdlr:                         ## @mov_read_hdlr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%rbx, %rdi
	callq	_avio_rb24
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movq	16(%r14), %r12
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_av_fourcc2str
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %r12
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movq	16(%r14), %rbx
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_av_fourcc2str
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %r15
	movl	%eax, %ecx
	callq	_av_log
	cmpq	$0, (%r14)
	js	LBB0_1
## %bb.3:
	movq	16(%r15), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	movq	-8(%rcx,%rax,8), %r13
	movl	$118, %edi
	movl	$105, %esi
	movl	$100, %edx
	movl	$101, %ecx
	callq	_MKTAG
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.4:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_1:
	movl	$109, %edi
	movl	$100, %esi
	movl	$116, %edx
	movl	$97, %ecx
	callq	_MKTAG
	movq	%r12, %rcx
	xorl	%r12d, %r12d
	cmpq	%rax, %rcx
	jne	LBB0_22
## %bb.2:
	movl	$1, 8(%r15)
	jmp	LBB0_22
LBB0_5:
	movl	$115, %edi
	movl	$111, %esi
	movl	$117, %edx
	movl	$110, %ecx
	callq	_MKTAG
	cmpq	%rax, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	$109, %edi
	movl	$49, %esi
	movl	$97, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpq	%rax, %r12
	jne	LBB0_9
## %bb.8:
	movq	_AV_CODEC_ID_MP2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_13
LBB0_9:
	movl	$115, %edi
	movl	$117, %esi
	movl	$98, %edx
	movl	$112, %ecx
	callq	_MKTAG
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.10:
	movl	$99, %edi
	movl	$108, %esi
	movl	$99, %edx
	movl	$112, %ecx
	callq	_MKTAG
	cmpq	%rax, %r12
	jne	LBB0_13
LBB0_11:
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
LBB0_13:
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	xorl	%r12d, %r12d
	cmpl	$25, %r14d
	jl	LBB0_22
## %bb.14:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leal	-24(%r14), %r13d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	callq	_FFMIN
	cmpl	%eax, %r13d
	jle	LBB0_16
## %bb.15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_22
LBB0_16:
	leal	-23(%r14), %edi
	callq	_av_malloc
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_ffio_read_size
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movl	%r13d, %eax
	movb	$0, (%r14,%rax)
	movq	-64(%rbp), %rdx
	movsbl	(%rdx), %eax
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	$-25, %ecx
	xorl	%eax, %ecx
	xorl	%eax, %eax
	orl	12(%r15), %ecx
	sete	%al
	addq	%rax, %rdx
	movq	_AV_DICT_DONT_OVERWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_dict_set
LBB0_21:
	leaq	-64(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_22
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_18:
	movl	%eax, %ebx
	leaq	-64(%rbp), %rdi
	callq	_av_freep
	movl	%ebx, %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctype=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"stype=%s\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_MP2,4,2            ## @AV_CODEC_ID_MP2
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"handler_name"

	.comm	_AV_DICT_DONT_OVERWRITE,4,2     ## @AV_DICT_DONT_OVERWRITE
	.no_dead_strip	_mov_read_hdlr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_hdlr
_mov_read_hdlr:                         ; @mov_read_hdlr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_rl32
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x23, x0
	ldr	x24, [x19, #16]
Lloh0:
	adrp	x26, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_LOG_TRACE@GOTPAGEOFF]
	ldr	w25, [x26]
	mov	x0, x22
	bl	_av_fourcc2str
	mov	x3, x0
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	bl	_av_log
	ldr	x22, [x19, #16]
	ldr	w24, [x26]
	mov	x0, x23
	bl	_av_fourcc2str
	mov	x3, x0
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x24
	bl	_av_log
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldur	x22, [x8, #-8]
	mov	w0, #118
	mov	w1, #105
	mov	w2, #100
	mov	w3, #101
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	mov	w0, #109
	mov	w1, #100
	mov	w2, #116
	mov	w3, #97
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_21
; %bb.4:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_22
LBB0_5:
	mov	w0, #115
	mov	w1, #111
	mov	w2, #117
	mov	w3, #110
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	mov	w0, #109
	mov	w1, #49
	mov	w2, #97
	mov	w3, #32
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _AV_CODEC_ID_MP2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_MP2@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9, #4]
	b	LBB0_13
LBB0_9:
	mov	w0, #115
	mov	w1, #117
	mov	w2, #98
	mov	w3, #112
	bl	_MKTAG
	cmp	x23, x0
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #99
	mov	w1, #108
	mov	w2, #99
	mov	w3, #112
	bl	_MKTAG
	cmp	x23, x0
	b.ne	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	str	w8, [x9]
LBB0_13:
	mov	x0, x20
	bl	_avio_rb32
	mov	x0, x20
	bl	_avio_rb32
	mov	x0, x20
	bl	_avio_rb32
	subs	w24, w21, #25
	b.lt	LBB0_21
; %bb.14:
Lloh15:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
	sub	w23, w21, #24
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sub	x1, x8, #1
	bl	_FFMIN
	cmp	w23, w0
	b.le	LBB0_16
; %bb.15:
Lloh21:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	b	LBB0_22
LBB0_16:
	sub	w0, w21, #23
	bl	_av_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_23
; %bb.17:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_ffio_read_size
	tbnz	w0, #31, LBB0_24
; %bb.18:
	strb	wzr, [x21, w23, uxtw]
	ldr	x8, [sp, #8]
	ldrsb	w9, [x8]
	cbz	w9, LBB0_20
; %bb.19:
	ldr	w10, [x19, #12]
	cmp	w10, #0
	ccmp	w24, w9, #0, eq
	cinc	x2, x8, eq
Lloh24:
	adrp	x8, _AV_DICT_DONT_OVERWRITE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_DICT_DONT_OVERWRITE@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_av_dict_set
LBB0_20:
	add	x0, sp, #8
	bl	_av_freep
LBB0_21:
	mov	w20, #0
LBB0_22:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_23:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_24:
	mov	x20, x0
	add	x0, sp, #8
	bl	_av_freep
	b	LBB0_22
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctype=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"stype=%s\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_MP2,4,2            ; @AV_CODEC_ID_MP2
	.comm	_AVMEDIA_TYPE_SUBTITLE,4,2      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"handler_name"

	.comm	_AV_DICT_DONT_OVERWRITE,4,2     ; @AV_DICT_DONT_OVERWRITE
	.no_dead_strip	_mov_read_hdlr
.subsections_via_symbols
