	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_sample_encryption_info
_mov_read_sample_encryption_info:       ## @mov_read_sample_encryption_info
	.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
	movq	%rdi, %r12
	movl	8(%rdx), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_av_encryption_info_clone
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movl	16(%rax), %esi
	movq	%r14, %rdi
	callq	_avio_read
	cmpq	(%rbx), %rax
	jne	LBB0_6
LBB0_8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.9:
	movq	%r14, %rdi
	callq	_avio_rb16
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	callq	_av_free
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r15), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_18
## %bb.10:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.11:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	shlq	$4, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_avio_rb16
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx,%r13)
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	(%r15), %rdi
	movq	8(%rdi), %rcx
	movl	%eax, (%rcx,%r13)
	addq	$16, %r13
	cmpq	%r13, %rbx
	jne	LBB0_12
LBB0_14:
	cmpq	$0, (%r14)
	je	LBB0_16
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movl	(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_2
LBB0_6:
	movl	(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	callq	_av_log
	movq	(%r15), %rdi
	callq	_av_encryption_info_free
	movq	$0, (%r15)
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	_av_encryption_info_free
	movq	$0, (%r15)
LBB0_19:
	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_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rdi)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing schm or tenc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to read the initialization vector\n"

L_.str.2:                               ## @.str.2
	.asciz	"hit EOF while reading sub-sample encryption info\n"

	.no_dead_strip	_mov_read_sample_encryption_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_sample_encryption_info
_mov_read_sample_encryption_info:       ; @mov_read_sample_encryption_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	w0, [x2, #8]
	cbz	w0, LBB0_12
; %bb.1:
	mov	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	bl	_av_encryption_info_clone
	str	x0, [x19]
	cbz	x0, LBB0_19
; %bb.2:
	ldr	x2, [x23]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w1, [x0, #16]
	mov	x0, x21
	bl	_avio_read
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_4:
	cbz	w22, LBB0_17
; %bb.5:
	mov	x0, x21
	bl	_avio_rb16
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_av_free
	mov	x0, x22
	mov	w1, #4
	bl	_av_mallocz_array
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_18
; %bb.6:
	cbz	w22, LBB0_10
; %bb.7:
	mov	x23, #0
	and	x8, x22, #0xffffffff
	lsl	x24, x8, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_avio_rb16
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x23
	str	x0, [x8, #8]
	mov	x0, x21
	bl	_avio_rb32
	mov	x8, x0
	ldr	x0, [x19]
	ldr	x9, [x0, #8]
	str	w8, [x9, x23]
	add	x23, x23, #16
	cmp	x24, x23
	b.ne	LBB0_8
LBB0_10:
	ldr	x8, [x21]
	cbz	x8, LBB0_20
LBB0_11:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.2@PAGE
Lloh4:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_15
LBB0_13:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	bl	_av_log
	ldr	x0, [x19]
	bl	_av_encryption_info_free
	str	xzr, [x19]
LBB0_15:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
LBB0_16:
	mov	x0, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w8, #0
	b	LBB0_16
LBB0_18:
	bl	_av_encryption_info_free
	str	xzr, [x19]
LBB0_19:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_20:
	str	w22, [x0]
	b	LBB0_16
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing schm or tenc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to read the initialization vector\n"

l_.str.2:                               ; @.str.2
	.asciz	"hit EOF while reading sub-sample encryption info\n"

	.no_dead_strip	_mov_read_sample_encryption_info
.subsections_via_symbols
