	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_senc
_mov_read_senc:                         ## @mov_read_senc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -60(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_get_current_encryption_info
	movl	%eax, %r15d
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.1:
	movq	-48(%rbp), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_avio_r8
	movq	%r14, %rdi
	callq	_avio_rb24
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_avio_rb32
	movl	%eax, %ebx
	movl	%eax, %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shrq	$3, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_19
## %bb.4:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.5:
	andl	$2, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r14), %r13d
	movl	%r13d, %edi
	movl	$1048576, %esi                  ## imm = 0x100000
	callq	_FFMAX
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rdi
	leal	(,%rax,8), %edx
	leaq	-60(%rbp), %rsi
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	-88(%rbp), %rdx
	addq	%r12, %rax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rax, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_mov_read_sample_encryption_info
	movl	%eax, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r15d, %r15d
	js	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$8, %r12
	movl	%r13d, %r14d
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r13d
	jb	LBB0_6
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_16:
	movq	-48(%rbp), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_17
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	-8(%rax,%r12), %rdi
	callq	_av_encryption_info_free
	addq	$-8, %r12
	jne	LBB0_13
LBB0_14:
	movq	-48(%rbp), %rdi
	addq	$8, %rdi
	callq	_av_freep
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring duplicate encryption info in senc\n"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Hit EOF while reading senc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mov_read_senc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_senc
_mov_read_senc:                         ; @mov_read_senc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_get_current_encryption_info
	mov	x25, x0
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w25, #0
	b	LBB0_18
LBB0_3:
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rb24
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rb32
	mov	w8, w0
Lloh5:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsr #3
	b.hs	LBB0_14
; %bb.4:
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.5:
	mov	w27, #0
	and	w22, w22, #0x2
	mov	x26, #-8
Lloh8:
	adrp	x28, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x28, [x28, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w27, #1
	mov	x0, x24
	mov	w1, #1048576
	bl	_FFMAX
	mov	x1, x21
	bl	_FFMIN
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	lsl	w2, w0, #3
	add	x1, sp, #12
	mov	x0, x8
	bl	_av_fast_realloc
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x2, x8, [sp, #16]
	str	x0, [x8, #8]
	add	x8, x0, x26
	add	x3, x8, #8
	mov	x0, x19
	mov	x1, x20
	mov	x4, x22
	bl	_mov_read_sample_encryption_info
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_av_log
	ldr	w25, [x28]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w25, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #8
	mov	x27, x24
	cmp	w24, w21
	b.lo	LBB0_6
LBB0_13:
	mov	w25, #0
	ldr	x8, [sp, #24]
	str	w21, [x8]
	b	LBB0_18
LBB0_14:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
	b	LBB0_18
LBB0_15:
	cbz	w27, LBB0_17
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, x26]
	bl	_av_encryption_info_free
	sub	x26, x26, #8
	cmn	x26, #8
	b.ne	LBB0_16
LBB0_17:
	ldr	x8, [sp, #24]
	add	x0, x8, #8
	bl	_av_freep
LBB0_18:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring duplicate encryption info in senc\n"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Hit EOF while reading senc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mov_read_senc
.subsections_via_symbols
