	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_parse_auxiliary_info
_mov_parse_auxiliary_info:              ## @mov_parse_auxiliary_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -68(%rbp)
	xorl	%r13d, %r13d
	cmpq	$0, (%rcx)
	jne	LBB0_28
## %bb.1:
	movq	%rcx, %r15
	movq	%rdi, %r12
	cmpl	$1, 16(%rcx)
	jne	LBB0_2
## %bb.3:
	movq	8(%r15), %r13
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$3, %rax
	cmpq	%rax, %r13
	jae	LBB0_29
## %bb.4:
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_avio_tell
	movq	%rax, %r14
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.5:
	movq	24(%r15), %rax
	movq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_avio_seek
	movq	24(%r15), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	testq	%r13, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.10:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_8:
	movq	%rbx, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 8(%rbx)
	je	LBB0_26
## %bb.9:
	movl	(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_18:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_avio_seek
	testl	%r13d, %r13d
	jns	LBB0_28
	jmp	LBB0_23
LBB0_2:
	movl	(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_28
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_12:
	movl	(%r12), %edi
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	xorl	%r13d, %r13d
LBB0_27:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_avio_seek
LBB0_28:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_11:
	xorl	%r14d, %r14d
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%r14), %rbx
	movq	%rbx, %rdi
	movl	$1048576, %esi                  ## imm = 0x100000
	callq	_FFMAX
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	48(%r15), %rdi
	leal	(,%rax,8), %edx
	leaq	-68(%rbp), %rsi
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, 48(%r15)
	movq	32(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	40(%r15), %rcx
	movq	(%rcx,%r14,8), %rsi
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rax,%r14,8), %rcx
	xorl	%r8d, %r8d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rdx), %rsi
	seta	%r8b
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mov_read_sample_encryption_info
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	movq	%rbx, %r14
	je	LBB0_16
	jmp	LBB0_8
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_22:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_avio_seek
LBB0_23:
	testq	%r14, %r14
	je	LBB0_25
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rax
	movq	-8(%rax,%r14,8), %rdi
	callq	_av_encryption_info_free
	decq	%r14
	jne	LBB0_24
LBB0_25:
	addq	$48, %r15
	movq	%r15, %rdi
	callq	_av_freep
	jmp	LBB0_28
LBB0_14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Multiple auxiliary info chunks are not supported\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Failed to seek for auxiliary info, will only parse senc atoms for encryption info\n"

L_.str.2:                               ## @.str.2
	.asciz	"Hit EOF while reading auxiliary info\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_parse_auxiliary_info
_mov_parse_auxiliary_info:              ; @mov_parse_auxiliary_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w25, #0
	str	wzr, [sp, #12]
	ldr	x8, [x3]
	cbnz	x8, LBB0_15
; %bb.1:
	mov	x19, x3
	mov	x22, x0
	ldr	w8, [x3, #16]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.2:
	ldr	x23, [x19, #8]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	x23, x8, lsr #3
	b.hs	LBB0_12
; %bb.3:
	mov	x20, x2
	mov	x24, x1
	mov	x0, x2
	bl	_avio_tell
	mov	x21, x0
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x27, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x27, [x27, _SEEK_SET@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	x1, [x8]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_avio_seek
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.5:
	cbz	x23, LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_17
LBB0_7:
	mov	x24, #0
	mov	w25, #0
LBB0_8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.9:
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
LBB0_10:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_avio_seek
	tbz	w25, #31, LBB0_15
	b	LBB0_27
LBB0_11:
	ldr	w0, [x22]
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh21:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh23:
	ldr	w25, [x8]
	b	LBB0_15
LBB0_12:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_13:
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	w25, #0
LBB0_14:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_avio_seek
LBB0_15:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	str	x23, [x19]
	b	LBB0_14
LBB0_17:
	mov	x28, #0
	mov	w26, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	w1, #1048576
	bl	_FFMAX
	mov	x1, x23
	bl	_FFMIN
	ldr	x8, [x19, #48]
	lsl	w2, w0, #3
	add	x1, sp, #12
	mov	x0, x8
	bl	_av_fast_realloc
	cbz	x0, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	str	x0, [x19, #48]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x28]
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x3, x0, x28
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w4, hi
	mov	x0, x22
	mov	x1, x20
	mov	x2, x24
	bl	_mov_read_sample_encryption_info
	mov	x25, x0
	tbnz	w0, #31, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	x23, x26
	b.eq	LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20, #8]
	add	x26, x26, #1
	add	x28, x28, #8
	cbz	x8, LBB0_18
; %bb.24:
	sub	x24, x26, #1
	b	LBB0_8
LBB0_25:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
	sub	x24, x26, #1
	b	LBB0_10
LBB0_26:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_avio_seek
	sub	x24, x26, #1
LBB0_27:
	cbz	x24, LBB0_30
; %bb.28:
	sub	x20, x24, #1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x20, lsl #3]
	bl	_av_encryption_info_free
	sub	x20, x20, #1
	cmn	x20, #1
	b.ne	LBB0_29
LBB0_30:
	add	x0, x19, #48
	bl	_av_freep
	b	LBB0_15
LBB0_31:
	mov	x24, x23
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Multiple auxiliary info chunks are not supported\n"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Failed to seek for auxiliary info, will only parse senc atoms for encryption info\n"

l_.str.2:                               ; @.str.2
	.asciz	"Hit EOF while reading auxiliary info\n"

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