	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cenc_filter
_cenc_filter:                           ## @cenc_filter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	addq	$16, %rdi
	movl	16(%rbx), %eax
	movl	(%rsi), %edx
	movl	%eax, %esi
	callq	_get_frag_stream_info
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	xorl	%r13d, %r13d
	cmpl	$1, 12(%rbx)
	jne	LBB0_23
## %bb.2:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	subl	(%rax), %r12d
	jmp	LBB0_4
LBB0_8:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_4:
	cmpq	$0, 24(%rcx)
	je	LBB0_10
## %bb.5:
	cmpl	$0, (%rcx)
	je	LBB0_6
LBB0_10:
	cmpq	$0, 16(%rcx)
	movl	(%rcx), %eax
	je	LBB0_13
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_7
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_13:
	testl	%eax, %eax
	je	LBB0_14
LBB0_15:
	testl	%r12d, %r12d
	js	LBB0_24
## %bb.16:
	cmpl	%eax, %r12d
	jge	LBB0_24
## %bb.17:
	movl	%r12d, %eax
	shlq	$3, %rax
	addq	8(%rcx), %rax
	jmp	LBB0_18
LBB0_24:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_7:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r15, %rax
LBB0_18:
	movq	(%rax), %rdx
	cmpq	$0, (%rbx)
	je	LBB0_19
## %bb.25:
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cenc_decrypt                   ## TAILCALL
LBB0_19:
	leaq	-48(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_av_encryption_info_add_side_data
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %rbx
	movq	_AV_PKT_DATA_ENCRYPTION_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_av_packet_add_side_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_av_free
	jmp	LBB0_23
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saiz atom found without saio\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"saio atom found without saiz\n"

L_.str.2:                               ## @.str.2
	.asciz	"Incorrect number of samples in encryption info\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PKT_DATA_ENCRYPTION_INFO,4,2 ## @AV_PKT_DATA_ENCRYPTION_INFO
	.no_dead_strip	_cenc_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cenc_filter
_cenc_filter:                           ; @cenc_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	ldr	w8, [x0, #16]!
	ldr	w2, [x1]
	mov	x1, x8
	bl	_get_frag_stream_info
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w9, [x0]
	sub	w22, w22, w9
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
LBB0_5:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w9, [x8]
	cbz	w9, LBB0_16
LBB0_7:
	ldr	x10, [x8, #16]
	ldr	w9, [x8]
	cbz	x10, LBB0_11
; %bb.8:
	cbnz	w9, LBB0_12
; %bb.9:
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_10:
	mov	w19, #0
	b	LBB0_18
LBB0_11:
	cbz	w9, LBB0_19
LBB0_12:
	tbnz	w22, #31, LBB0_15
; %bb.13:
	cmp	w22, w9
	b.ge	LBB0_15
; %bb.14:
	ldr	x8, [x8, #8]
	add	x8, x8, w22, uxtw #3
	b	LBB0_20
LBB0_15:
	ldr	w0, [x20, #8]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	w0, [x20, #8]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
LBB0_17:
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
LBB0_18:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_19:
	mov	x8, x21
LBB0_20:
	ldr	x2, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_22
; %bb.21:
	ldp	w4, w3, [x19]
	mov	x0, x20
	mov	x1, x21
	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
	add	sp, sp, #64
	b	_cenc_decrypt
LBB0_22:
	add	x1, sp, #8
	mov	x0, x2
	bl	_av_encryption_info_add_side_data
	cbz	x0, LBB0_25
; %bb.23:
	mov	x20, x0
Lloh18:
	adrp	x8, _AV_PKT_DATA_ENCRYPTION_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_PKT_DATA_ENCRYPTION_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_av_packet_add_side_data
	mov	x19, x0
	tbz	w0, #31, LBB0_18
; %bb.24:
	mov	x0, x20
	bl	_av_free
	b	LBB0_18
LBB0_25:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_18
	.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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saiz atom found without saio\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"saio atom found without saiz\n"

l_.str.2:                               ; @.str.2
	.asciz	"Incorrect number of samples in encryption info\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PKT_DATA_ENCRYPTION_INFO,4,2 ; @AV_PKT_DATA_ENCRYPTION_INFO
	.no_dead_strip	_cenc_filter
.subsections_via_symbols
