	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_saio
_mov_read_saio:                         ## @mov_read_saio
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -64(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_get_current_encryption_info
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	callq	_av_log
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.5:
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_6:
	callq	_av_log
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_avio_rb24
	testb	$1, %al
	jne	LBB0_22
## %bb.10:
	movq	-56(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
LBB0_11:
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	%rax, %r12
	movl	%r12d, %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$3, %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	jae	LBB0_39
## %bb.12:
	testl	%r12d, %r12d
	je	LBB0_34
## %bb.13:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %r15
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_34
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_34
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	1(%r15), %r13
	movl	%r13d, %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_FFMAX
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rcx
	movq	16(%rcx), %rdi
	leal	(,%rax,8), %edx
	leaq	-64(%rbp), %rsi
	callq	_av_fast_realloc
	movq	-48(%rbp), %rdi
	addq	$16, %rdi
	testq	%rax, %rax
	je	LBB0_38
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, (%rdi)
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r14, %rdi
	callq	_avio_rb64
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r14, %rdi
	callq	_avio_rb32
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%r15,8)
	cmpq	$0, 16(%rbx)
	js	LBB0_14
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rbx), %rax
	movq	-48(%rbp), %rcx
	movq	16(%rcx), %rcx
	addq	%rax, (%rcx,%r15,8)
	jmp	LBB0_14
LBB0_22:
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	%rax, %r12
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:
	cmpl	%r13d, (%rax)
	jne	LBB0_33
## %bb.24:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.25:
	movl	(%rbx), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_3
LBB0_27:
	movl	$99, %edi
	movl	$101, %esi
	movl	$110, %edx
	movl	$99, %ecx
	callq	_MKBETAG
	cmpl	%r13d, %eax
	je	LBB0_30
## %bb.28:
	movl	$99, %edi
	movl	$101, %esi
	movl	$110, %edx
	movl	$115, %ecx
	callq	_MKBETAG
	cmpl	%r13d, %eax
	je	LBB0_30
## %bb.29:
	movl	$99, %edi
	movl	$98, %esi
	movl	$99, %edx
	movl	$49, %ecx
	callq	_MKBETAG
	cmpl	%r13d, %eax
	jne	LBB0_40
LBB0_30:
	xorl	%eax, %eax
LBB0_31:
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.32:
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_6
LBB0_33:
	movl	(%rbx), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_34:
	cmpq	$0, (%r14)
	je	LBB0_36
## %bb.35:
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	callq	_av_log
	movq	-48(%rbp), %rdi
	addq	$16, %rdi
	callq	_av_freep
	jmp	LBB0_7
LBB0_36:
	movq	-48(%rbp), %rcx
	movl	%r12d, (%rcx)
	cmpq	$0, 8(%rcx)
	je	LBB0_26
## %bb.37:
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_mov_parse_auxiliary_info
	jmp	LBB0_8
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_38:
	callq	_av_freep
LBB0_39:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_8
LBB0_40:
	movl	$99, %edi
	movl	$98, %esi
	movl	$99, %edx
	movl	$115, %ecx
	callq	_MKBETAG
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r13d, %ecx
	je	LBB0_31
	jmp	LBB0_8
	.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 saio\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Duplicate saio atom\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"Ignoring saio box with non-zero aux_info_type\n"

L_.str.3:                               ## @.str.3
	.asciz	"Ignoring saio box with non-zero aux_info_type_parameter\n"

L_.str.4:                               ## @.str.4
	.asciz	"Saw encrypted saio without schm/tenc\n"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Hit EOF while reading saio\n"

	.no_dead_strip	_mov_read_saio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_saio
_mov_read_saio:                         ; @mov_read_saio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_get_current_encryption_info
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_4
; %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
LBB0_3:
	bl	_av_log
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.5:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	bl	_av_log
LBB0_7:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_8:
	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
	add	sp, sp, #112
	ret
LBB0_9:
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb24
	tbnz	w0, #0, LBB0_22
; %bb.10:
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_30
LBB0_11:
	mov	x0, x20
	bl	_avio_rb32
	and	x24, x0, #0xffffffff
Lloh13:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	cmp	x24, x8, lsr #3
	b.hs	LBB0_37
; %bb.12:
	mov	x22, x0
	cbz	w22, LBB0_32
; %bb.13:
	mov	x25, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x25, x23
	cmp	x24, x23
	b.eq	LBB0_32
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x23, x25, #1
	mov	x0, x23
	mov	w1, #1024
	bl	_FFMAX
	mov	x1, x22
	bl	_FFMIN
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #16]
	lsl	w2, w0, #3
	add	x1, sp, #12
	mov	x0, x8
	bl	_av_fast_realloc
	mov	x8, x0
	ldr	x9, [sp, #24]
	add	x0, x9, #16
	cbz	x8, LBB0_36
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x8, [x0]
	mov	x0, x20
	cbz	w21, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_avio_rb64
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_avio_rb32
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #16]
	str	x0, [x8, x25, lsl #3]
	ldr	x8, [x19, #16]
	tbnz	x8, #63, LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #24]
	ldr	x9, [x9, #16]
	lsl	x10, x25, #3
	ldr	x11, [x9, x10]
	add	x8, x11, x8
	str	x8, [x9, x10]
	b	LBB0_14
LBB0_22:
	mov	x0, x20
	bl	_avio_rb32
	mov	x23, x0
	mov	x0, x20
	bl	_avio_rb32
	mov	x22, x0
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.23:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_31
; %bb.24:
	cbz	w22, LBB0_11
; %bb.25:
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_26:
	mov	w0, #99
	mov	w1, #101
	mov	w2, #110
	mov	w3, #99
	bl	_MKBETAG
	cmp	w0, w23
	b.eq	LBB0_29
; %bb.27:
	mov	w0, #99
	mov	w1, #101
	mov	w2, #110
	mov	w3, #115
	bl	_MKBETAG
	cmp	w0, w23
	b.eq	LBB0_29
; %bb.28:
	mov	w0, #99
	mov	w1, #98
	mov	w2, #99
	mov	w3, #49
	bl	_MKBETAG
	cmp	w0, w23
	b.ne	LBB0_38
LBB0_29:
	cbz	w22, LBB0_40
LBB0_30:
	mov	w0, #0
	b	LBB0_8
LBB0_31:
	ldr	w0, [x19]
Lloh21:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_32:
	ldr	x8, [x20]
	cbz	x8, LBB0_34
; %bb.33:
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
	ldr	x8, [sp, #24]
	add	x0, x8, #16
	bl	_av_freep
	b	LBB0_7
LBB0_34:
	ldr	x3, [sp, #24]
	str	w22, [x3]
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_30
; %bb.35:
	ldr	x1, [sp, #16]
	mov	x0, x19
	mov	x2, x20
	bl	_mov_parse_auxiliary_info
	b	LBB0_8
LBB0_36:
	bl	_av_freep
LBB0_37:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_8
LBB0_38:
	mov	w0, #99
	mov	w1, #98
	mov	w2, #99
	mov	w3, #115
	bl	_MKBETAG
	mov	x8, x0
	mov	w0, #0
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.39:
	cbnz	w22, LBB0_8
LBB0_40:
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.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 saio\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Duplicate saio atom\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"Ignoring saio box with non-zero aux_info_type\n"

l_.str.3:                               ; @.str.3
	.asciz	"Ignoring saio box with non-zero aux_info_type_parameter\n"

l_.str.4:                               ; @.str.4
	.asciz	"Saw encrypted saio without schm/tenc\n"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Hit EOF while reading saio\n"

	.no_dead_strip	_mov_read_saio
.subsections_via_symbols
