	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_pssh
_mov_read_pssh:                         ## @mov_read_pssh
	.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
	movl	$0, -44(%rbp)
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_avio_r8
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_avio_rb24
	movl	$16, %edi
	xorl	%esi, %esi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_av_encryption_init_info_alloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r12
	movq	32(%rax), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_avio_read
	cmpl	$16, %eax
	jne	LBB0_14
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.4:
	movq	%rbx, %rdi
	callq	_avio_rb32
	movl	%eax, %r15d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$3, %rax
	cmpq	%r15, %rax
	jbe	LBB0_13
## %bb.5:
	xorl	%r14d, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	%r14, %r15
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r14), %r13
	movl	%r13d, %edi
	movq	%r12, %rbx
	movq	%r15, %r12
	movl	$1024, %esi                     ## imm = 0x400
	callq	_FFMAX
	movl	%eax, %edi
	movl	%r12d, %esi
	movq	%rbx, %r12
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movq	24(%rbx), %rdi
	leal	(,%rax,8), %edx
	leaq	-44(%rbp), %rsi
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 24(%r12)
	movl	$16, %edi
	callq	_av_mallocz
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, (%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_avio_read
	movq	%r13, %r14
	cmpl	$16, %eax
	je	LBB0_6
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_15
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_14:
	movq	(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_15:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_18:
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_15
LBB0_20:
	movq	%rbx, %rdi
	callq	_avio_rb32
	movl	%eax, %r14d
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mov_try_read_block
	testl	%eax, %eax
	js	LBB0_30
## %bb.21:
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_av_freep
	movq	-88(%rbp), %rax
	movq	%rax, 16(%r12)
	movl	%r14d, 4(%r12)
	movq	_AV_PKT_DATA_ENCRYPTION_INIT_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_stream_get_side_data
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:
	movq	%r12, %r14
	movl	-48(%rbp), %esi
	movq	%rax, %rdi
	callq	_av_encryption_init_info_get_side_data
	testq	%rax, %rax
	je	LBB0_31
## %bb.23:
	movq	%rax, %r12
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_24
## %bb.25:
	movq	%r14, 8(%rax)
LBB0_26:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_av_encryption_init_info_add_side_data
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	movq	%rax, %r14
	movl	(%rbx), %esi
	movq	-80(%rbp), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_av_stream_add_side_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.28:
	movq	%r14, %rdi
	callq	_av_free
	jmp	LBB0_16
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_30:
	movl	%eax, %ebx
LBB0_16:
	movq	%r12, %rdi
	callq	_av_encryption_init_info_free
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movq	%r14, %r12
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read the system id\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read the key id\n"

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

	.comm	_AV_PKT_DATA_ENCRYPTION_INIT_INFO,4,2 ## @AV_PKT_DATA_ENCRYPTION_INIT_INFO
	.no_dead_strip	_mov_read_pssh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_pssh
_mov_read_pssh:                         ; @mov_read_pssh
	.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
	str	wzr, [sp, #8]
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x8, #8]
	ldr	x20, [x8, w9, uxtw #3]
	mov	x0, x1
	bl	_avio_r8
	mov	x23, x0
	mov	x0, x21
	bl	_avio_rb24
	mov	w0, #16
	mov	w1, #0
	mov	w2, #16
	mov	w3, #0
	bl	_av_encryption_init_info_alloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x19, x0
	ldr	x1, [x0, #32]
	mov	x0, x21
	mov	w2, #16
	bl	_avio_read
	cmp	w0, #16
	b.ne	LBB0_14
; %bb.3:
	cbz	w23, LBB0_18
; %bb.4:
	mov	x0, x21
	bl	_avio_rb32
	mov	w23, w0
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_13
; %bb.5:
	mov	x25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x23, x25
	b.eq	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x8, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x25, #1
	mov	x0, x24
	mov	w1, #1024
	bl	_FFMAX
	mov	x1, x23
	bl	_FFMIN
	ldr	x8, [x19, #24]
	lsl	w2, w0, #3
	add	x1, sp, #8
	mov	x0, x8
	bl	_av_fast_realloc
	cbz	x0, LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x19, #24]
	mov	w0, #16
	bl	_av_mallocz
	ldr	x8, [x19, #24]
	lsl	x9, x25, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #24]
	ldr	x1, [x8, x9]
	cbz	x1, LBB0_24
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w24, [x19]
	mov	x0, x21
	mov	w2, #16
	bl	_avio_read
	add	x25, x25, #1
	cmp	w0, #16
	b.eq	LBB0_6
; %bb.11:
	ldr	x0, [x22]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	w21, #0
	b	LBB0_33
LBB0_13:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	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
	add	sp, sp, #112
	b	_AVERROR
LBB0_14:
	ldr	x0, [x22]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
LBB0_15:
	bl	_av_log
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	b	LBB0_32
LBB0_16:
	cbz	x8, LBB0_18
LBB0_17:
	ldr	x0, [x22]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_18:
	mov	x0, x21
	bl	_avio_rb32
	mov	x22, x0
	add	x2, sp, #24
	mov	x0, x21
	mov	x1, x22
	bl	_mov_try_read_block
	tbnz	w0, #31, LBB0_25
; %bb.19:
	add	x0, x19, #16
	bl	_av_freep
	ldr	x8, [sp, #24]
	str	x8, [x19, #16]
	str	w22, [x19, #4]
Lloh24:
	adrp	x21, _AV_PKT_DATA_ENCRYPTION_INIT_INFO@GOTPAGE
Lloh25:
	ldr	x21, [x21, _AV_PKT_DATA_ENCRYPTION_INIT_INFO@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_av_stream_get_side_data
	cbz	x0, LBB0_26
; %bb.20:
	ldr	w1, [sp, #12]
	bl	_av_encryption_init_info_get_side_data
	cbz	x0, LBB0_24
; %bb.21:
	mov	x22, x0
	mov	x9, x0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_22
; %bb.23:
	str	x19, [x8, #8]
	b	LBB0_27
LBB0_24:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_25:
	mov	x21, x0
	b	LBB0_32
LBB0_26:
	mov	x22, x19
LBB0_27:
	add	x1, sp, #16
	mov	x0, x22
	bl	_av_encryption_init_info_add_side_data
	cbz	x0, LBB0_30
; %bb.28:
	mov	x19, x0
	ldr	w1, [x21]
	ldr	x3, [sp, #16]
	mov	x0, x20
	mov	x2, x19
	bl	_av_stream_add_side_data
	mov	x21, x0
	tbz	w0, #31, LBB0_31
; %bb.29:
	mov	x0, x19
	bl	_av_free
	b	LBB0_31
LBB0_30:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_31:
	mov	x19, x22
LBB0_32:
	mov	x0, x19
	bl	_av_encryption_init_info_free
LBB0_33:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read the system id\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read the key id\n"

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

	.comm	_AV_PKT_DATA_ENCRYPTION_INIT_INFO,4,2 ; @AV_PKT_DATA_ENCRYPTION_INIT_INFO
	.no_dead_strip	_mov_read_pssh
.subsections_via_symbols
