	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_major_sync
_read_major_sync:                       ## @read_major_sync
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	leaq	-112(%rbp), %rsi
	callq	_ff_mlp_read_major_sync
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	-112(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	%eax, -108(%rbp)
	jle	LBB0_5
## %bb.3:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_12
LBB0_4:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_12
LBB0_5:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.7:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_8:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	movq	_MAX_SAMPLERATE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	jle	LBB0_16
## %bb.10:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_20
LBB0_11:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_12:
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-88(%rbp), %rcx
	movq	_MAX_BLOCKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	jle	LBB0_18
## %bb.17:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_20
LBB0_18:
	movq	-80(%rbp), %rax
	movq	_MAX_BLOCKSIZE_POW2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cmpq	%r8, %rax
	jle	LBB0_21
## %bb.19:
	movq	48(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%rax, %rcx
LBB0_20:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_21:
	movl	-72(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.22:
	movq	48(%rbx), %rdi
	movq	(%rdi), %rsi
	movq	_AV_CODEC_ID_MLP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rsi
	jne	LBB0_25
## %bb.23:
	cmpl	$3, %edx
	jl	LBB0_25
## %bb.24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_12
LBB0_25:
	movq	_MAX_SUBSTREAMS@GOTPCREL(%rip), %r14
	cmpl	(%r14), %edx
	jle	LBB0_28
## %bb.26:
	leaq	L_.str.8(%rip), %rsi
LBB0_27:
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_28:
	movl	-28(%rbp), %esi
	movl	%esi, 72(%rbx)
	movq	%rcx, (%rbx)
	movq	%rax, 8(%rbx)
	movl	%edx, 16(%rbx)
	decl	%edx
	movl	%edx, %edi
	movl	$2, %esi
	callq	_FFMIN
	movq	%rax, 24(%rbx)
	movq	48(%rbx), %rcx
	movups	-96(%rbp), %xmm0
	movups	%xmm0, 8(%rcx)
	movl	-112(%rbp), %edx
	movl	%edx, 24(%rcx)
	movq	_AV_SAMPLE_FMT_S32@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	movq	%r8, %r9
	cmpl	$17, %edx
	jge	LBB0_30
## %bb.29:
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
LBB0_30:
	movq	%r9, 32(%rcx)
	movq	40(%rbx), %rcx
	leaq	(%rax,%rax,4), %rax
	movl	32(%rcx,%rax,8), %edi
	movl	24(%rcx,%rax,8), %edx
	movl	28(%rcx,%rax,8), %esi
	xorl	%ecx, %ecx
	cmpq	%r8, %r9
	sete	%cl
	callq	*56(%rbx)
	movl	%eax, 64(%rbx)
	movl	$1, 32(%rbx)
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_38
## %bb.31:
	movq	40(%rbx), %rax
	leaq	-1(%rdx), %rsi
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_33
## %bb.32:
	xorl	%esi, %esi
	jmp	LBB0_35
LBB0_33:
	andl	$-4, %edx
	leaq	136(%rax), %rdi
	xorl	%esi, %esi
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -120(%rdi)
	movq	$0, -80(%rdi)
	movq	$0, -40(%rdi)
	movq	$0, (%rdi)
	addq	$4, %rsi
	addq	$160, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_34
LBB0_35:
	testq	%rcx, %rcx
	je	LBB0_38
## %bb.36:
	leaq	(%rsi,%rsi,4), %rdx
	leaq	(%rax,%rdx,8), %rax
	addq	$16, %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	xorl	%edx, %edx
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rdx)
	addq	$40, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_37
LBB0_38:
	movq	48(%rbx), %rdi
	movq	(%rdi), %rax
	movl	-68(%rbp), %edx
	cmpq	(%r15), %rax
	jne	LBB0_42
## %bb.39:
	cmpl	$187, %edx
	jne	LBB0_48
## %bb.40:
	movl	-72(%rbp), %eax
	cmpl	$1, %eax
	jle	LBB0_50
## %bb.41:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	40(%rbx), %rcx
	movl	%edx, (%rcx)
	jmp	LBB0_51
LBB0_42:
	cmpl	$186, %edx
	jne	LBB0_49
## %bb.43:
	movl	-72(%rbp), %eax
	cmpl	$1, %eax
	jle	LBB0_66
## %bb.44:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	40(%rbx), %rcx
	movl	%edx, (%rcx)
	cmpl	$2, %eax
	je	LBB0_67
## %bb.45:
	movl	-60(%rbp), %edx
	testl	%edx, %edx
	jne	LBB0_47
## %bb.46:
	movl	-56(%rbp), %edx
LBB0_47:
	movl	%edx, 80(%rcx)
	jmp	LBB0_67
LBB0_48:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_27
LBB0_49:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_27
LBB0_50:
	movq	40(%rbx), %rcx
LBB0_51:
	xorl	%edx, %edx
	cmpl	$2, %eax
	setge	%dl
	movl	-64(%rbp), %eax
	leaq	(%rdx,%rdx,4), %rdx
	movl	%eax, (%rcx,%rdx,8)
LBB0_52:
	movl	-52(%rbp), %eax
	addl	$-18, %eax
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	setb	%cl
	movl	%ecx, 36(%rbx)
	movl	(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_60
## %bb.53:
	movq	40(%rbx), %r8
	leaq	-1(%r10), %rax
	movl	%r10d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rax
	jae	LBB0_55
## %bb.54:
	xorl	%esi, %esi
	jmp	LBB0_57
LBB0_55:
	andl	$-4, %r10d
	leaq	128(%r8), %rax
	xorl	%esi, %esi
	movq	_AV_MATRIX_ENCODING_NONE@GOTPCREL(%rip), %rcx
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	movq	%rdx, -120(%rax)
	movq	(%rcx), %rdx
	movq	%rdx, -80(%rax)
	movq	(%rcx), %rdx
	movq	%rdx, -40(%rax)
	movq	(%rcx), %rdx
	movq	%rdx, (%rax)
	addq	$4, %rsi
	addq	$160, %rax
	cmpq	%rsi, %r10
	jne	LBB0_56
LBB0_57:
	testq	%r9, %r9
	je	LBB0_60
## %bb.58:
	leaq	(%rsi,%rsi,4), %rax
	leaq	(%r8,%rax,8), %rax
	addq	$8, %rax
	shlq	$3, %r9
	leaq	(%r9,%r9,4), %rcx
	xorl	%edx, %edx
	movq	_AV_MATRIX_ENCODING_NONE@GOTPCREL(%rip), %r8
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rsi
	movq	%rsi, (%rax,%rdx)
	addq	$40, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_59
LBB0_60:
	movq	(%rdi), %rcx
	movq	_AV_CODEC_ID_TRUEHD@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.61:
	movl	-72(%rbp), %ecx
	cmpl	$3, %ecx
	jl	LBB0_72
## %bb.62:
	movl	-60(%rbp), %edx
	movq	_AV_CH_SIDE_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %ecx
	je	LBB0_74
## %bb.63:
	movq	_AV_CH_SIDE_RIGHT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_74
## %bb.64:
	movq	-48(%rbp), %rdx
	movq	_THD_CH_MODIFIER_SURROUNDEX@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_74
## %bb.65:
	movq	_AV_MATRIX_ENCODING_DOLBYEX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	40(%rbx), %rsi
	movq	%rdx, 88(%rsi)
	jmp	LBB0_74
LBB0_66:
	movq	40(%rbx), %rcx
LBB0_67:
	xorl	%edx, %edx
	cmpl	$2, %eax
	setge	%dl
	movslq	-56(%rbp), %rax
	leaq	(%rdx,%rdx,4), %rdx
	movl	%eax, (%rcx,%rdx,8)
	cmpl	$2, 40(%rdi)
	jg	LBB0_52
## %bb.68:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_52
## %bb.69:
	cmpq	$1, 24(%rbx)
	jne	LBB0_52
## %bb.70:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	$0, 24(%rbx)
	movq	48(%rbx), %rdi
	cmpl	$2, 40(%rdi)
	jne	LBB0_52
## %bb.71:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rdi)
	jmp	LBB0_52
LBB0_72:
	cmpl	$2, %ecx
	jne	LBB0_78
## %bb.73:
	movq	_AV_CH_SIDE_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_74:
	movl	-56(%rbp), %edx
	testl	%edx, %ecx
	je	LBB0_79
## %bb.75:
	movq	_AV_CH_SIDE_RIGHT@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_79
## %bb.76:
	movq	-40(%rbp), %rcx
	movq	_THD_CH_MODIFIER_SURROUNDEX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_79
## %bb.77:
	movq	_AV_MATRIX_ENCODING_DOLBYEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	40(%rbx), %rdx
	movq	%rcx, 48(%rdx)
	jmp	LBB0_79
LBB0_78:
	testl	%ecx, %ecx
	jle	LBB0_15
LBB0_79:
	movl	-32(%rbp), %ecx
	cmpl	$129, %ecx
	je	LBB0_82
## %bb.80:
	cmpl	$128, %ecx
	jne	LBB0_15
## %bb.81:
	movq	_AV_MATRIX_ENCODING_DOLBY@GOTPCREL(%rip), %rcx
	jmp	LBB0_83
LBB0_82:
	movq	_AV_MATRIX_ENCODING_DOLBYHEADPHONE@GOTPCREL(%rip), %rcx
LBB0_83:
	movq	(%rcx), %rcx
	movq	40(%rbx), %rdx
	movq	%rcx, 8(%rdx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid/unknown bits per sample\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Channel group 2 cannot have more bits per sample than group 1.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Channel groups with differing sample rates are not currently supported.\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid/unknown sampling rate\n"

	.comm	_MAX_SAMPLERATE,8,3             ## @MAX_SAMPLERATE
L_.str.4:                               ## @.str.4
	.asciz	"Sampling rate %d is greater than the supported maximum (%d).\n"

	.comm	_MAX_BLOCKSIZE,8,3              ## @MAX_BLOCKSIZE
L_.str.5:                               ## @.str.5
	.asciz	"Block size %d is greater than the supported maximum (%d).\n"

	.comm	_MAX_BLOCKSIZE_POW2,8,3         ## @MAX_BLOCKSIZE_POW2
L_.str.6:                               ## @.str.6
	.asciz	"Block size pow2 %d is greater than the supported maximum (%d).\n"

	.comm	_AV_CODEC_ID_MLP,8,3            ## @AV_CODEC_ID_MLP
L_.str.7:                               ## @.str.7
	.asciz	"MLP only supports up to 2 substreams.\n"

	.comm	_MAX_SUBSTREAMS,4,2             ## @MAX_SUBSTREAMS
L_.str.8:                               ## @.str.8
	.asciz	"%d substreams (more than the maximum supported by the decoder)"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_SAMPLE_FMT_S32,8,3          ## @AV_SAMPLE_FMT_S32
	.comm	_AV_SAMPLE_FMT_S16,8,3          ## @AV_SAMPLE_FMT_S16
L_.str.9:                               ## @.str.9
	.asciz	"unexpected stream_type %X in MLP"

	.comm	_AV_CH_LAYOUT_STEREO,8,3        ## @AV_CH_LAYOUT_STEREO
L_.str.10:                              ## @.str.10
	.asciz	"unexpected stream_type %X in !MLP"

	.comm	_AV_CH_LAYOUT_MONO,8,3          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.11:                              ## @.str.11
	.asciz	"Mono stream with 2 substreams, ignoring 2nd\n"

	.comm	_AV_MATRIX_ENCODING_NONE,8,3    ## @AV_MATRIX_ENCODING_NONE
	.comm	_AV_CODEC_ID_TRUEHD,8,3         ## @AV_CODEC_ID_TRUEHD
	.comm	_AV_CH_SIDE_LEFT,4,2            ## @AV_CH_SIDE_LEFT
	.comm	_AV_CH_SIDE_RIGHT,4,2           ## @AV_CH_SIDE_RIGHT
	.comm	_THD_CH_MODIFIER_SURROUNDEX,8,3 ## @THD_CH_MODIFIER_SURROUNDEX
	.comm	_AV_MATRIX_ENCODING_DOLBYEX,8,3 ## @AV_MATRIX_ENCODING_DOLBYEX
	.comm	_AV_MATRIX_ENCODING_DOLBY,8,3   ## @AV_MATRIX_ENCODING_DOLBY
	.comm	_AV_MATRIX_ENCODING_DOLBYHEADPHONE,8,3 ## @AV_MATRIX_ENCODING_DOLBYHEADPHONE
	.no_dead_strip	_read_major_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_major_sync
_read_major_sync:                       ; @read_major_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x2, x1
	mov	x19, x0
	ldr	x0, [x0, #48]
	add	x1, sp, #24
	bl	_ff_mlp_read_major_sync
	cbnz	w0, LBB0_23
; %bb.1:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w9, [sp, #28]
	cmp	w9, w8
	b.le	LBB0_5
; %bb.3:
	ldr	x0, [x19, #48]
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_20
LBB0_4:
	ldr	x0, [x19, #48]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_20
LBB0_5:
	ldp	x9, x8, [sp, #32]
	cbz	x9, LBB0_8
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x19, #48]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_8:
	cbz	x8, LBB0_11
; %bb.9:
Lloh15:
	adrp	x9, _MAX_SAMPLERATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX_SAMPLERATE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_12
; %bb.10:
	ldr	x0, [x19, #48]
Lloh18:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_11:
	ldr	x0, [x19, #48]
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_12:
	ldr	x8, [sp, #48]
Lloh28:
	adrp	x9, _MAX_BLOCKSIZE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MAX_BLOCKSIZE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_14
; %bb.13:
	ldr	x0, [x19, #48]
Lloh31:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
Lloh34:
	adrp	x2, l_.str.5@PAGE
Lloh35:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_14:
	ldr	x9, [sp, #56]
Lloh36:
	adrp	x10, _MAX_BLOCKSIZE_POW2@GOTPAGE
Lloh37:
	ldr	x10, [x10, _MAX_BLOCKSIZE_POW2@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_16
; %bb.15:
	ldr	x0, [x19, #48]
Lloh39:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	stp	x9, x10, [sp]
Lloh42:
	adrp	x2, l_.str.6@PAGE
Lloh43:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_16:
	ldr	w2, [sp, #64]
	cbz	w2, LBB0_21
; %bb.17:
	ldr	x0, [x19, #48]
	ldr	x10, [x0]
Lloh44:
	adrp	x21, _AV_CODEC_ID_MLP@GOTPAGE
Lloh45:
	ldr	x21, [x21, _AV_CODEC_ID_MLP@GOTPAGEOFF]
	ldr	x11, [x21]
	cmp	x10, x11
	b.ne	LBB0_24
; %bb.18:
	cmp	w2, #3
	b.lt	LBB0_24
; %bb.19:
Lloh46:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x2, l_.str.7@PAGE
Lloh50:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_20:
	bl	_av_log
LBB0_21:
Lloh51:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
LBB0_23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_24:
Lloh53:
	adrp	x20, _MAX_SUBSTREAMS@GOTPAGE
Lloh54:
	ldr	x20, [x20, _MAX_SUBSTREAMS@GOTPAGEOFF]
	ldr	w10, [x20]
	cmp	w2, w10
	b.le	LBB0_27
; %bb.25:
Lloh55:
	adrp	x1, l_.str.8@PAGE
Lloh56:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_26:
	bl	_avpriv_request_sample
Lloh57:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_22
LBB0_27:
	ldr	w10, [sp, #108]
	str	w10, [x19, #72]
	stp	x8, x9, [x19]
	str	w2, [x19, #16]
	sub	w0, w2, #1
	mov	w1, #2
	bl	_FFMIN
	str	x0, [x19, #24]
	ldr	x8, [x19, #48]
	ldur	q0, [sp, #40]
	stur	q0, [x8, #8]
	ldr	w9, [sp, #24]
	str	w9, [x8, #24]
Lloh59:
	adrp	x10, _AV_SAMPLE_FMT_S32@GOTPAGE
Lloh60:
	ldr	x10, [x10, _AV_SAMPLE_FMT_S32@GOTPAGEOFF]
Lloh61:
	ldr	x10, [x10]
Lloh62:
	adrp	x11, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh63:
	ldr	x11, [x11, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh64:
	ldr	x11, [x11]
	cmp	w9, #16
	csel	x9, x10, x11, gt
	str	x9, [x8, #32]
	ldr	x8, [x19, #56]
	ldr	x11, [x19, #40]
	mov	w12, #40
	madd	x11, x0, x12, x11
	ldp	w1, w0, [x11, #28]
	ldr	w2, [x11, #24]
	cmp	x9, x10
	cset	w3, eq
	blr	x8
	str	w0, [x19, #64]
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.28:
	ldr	x9, [x19, #40]
	cmp	w8, #4
	b.hs	LBB0_30
; %bb.29:
	mov	x10, #0
	b	LBB0_33
LBB0_30:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #96
	mov	x12, x10
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x11, #-80]
	stur	xzr, [x11, #-40]
	str	xzr, [x11]
	str	xzr, [x11, #40]
	add	x11, x11, #160
	subs	x12, x12, #4
	b.ne	LBB0_31
; %bb.32:
	cmp	x10, x8
	b.eq	LBB0_35
LBB0_33:
	mov	w11, #40
	madd	x9, x10, x11, x9
	add	x9, x9, #16
	sub	x8, x8, x10
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #40
	subs	x8, x8, #1
	b.ne	LBB0_34
LBB0_35:
	ldr	x0, [x19, #48]
	ldr	x8, [x0]
	ldr	x9, [x21]
	ldr	w2, [sp, #68]
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.36:
	cmp	w2, #187
	b.ne	LBB0_45
; %bb.37:
	ldr	w8, [sp, #64]
	cmp	w8, #1
	b.le	LBB0_47
; %bb.38:
Lloh65:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh66:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh67:
	ldr	x10, [x9]
	ldr	x9, [x19, #40]
	str	w10, [x9]
	b	LBB0_48
LBB0_39:
	cmp	w2, #186
	b.ne	LBB0_46
; %bb.40:
	ldr	w8, [sp, #64]
	cmp	w8, #1
	b.le	LBB0_49
; %bb.41:
Lloh68:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh69:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh70:
	ldr	x10, [x9]
	ldr	x9, [x19, #40]
	str	w10, [x9]
	cmp	w8, #2
	b.eq	LBB0_50
; %bb.42:
	ldr	w10, [sp, #76]
	cbnz	w10, LBB0_44
; %bb.43:
	ldr	w10, [sp, #80]
LBB0_44:
	str	w10, [x9, #80]
	b	LBB0_50
LBB0_45:
Lloh71:
	adrp	x1, l_.str.9@PAGE
Lloh72:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_26
LBB0_46:
Lloh73:
	adrp	x1, l_.str.10@PAGE
Lloh74:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_26
LBB0_47:
	ldr	x9, [x19, #40]
LBB0_48:
	cmp	w8, #1
	cset	w8, gt
	ldr	w10, [sp, #72]
	mov	w11, #40
	umull	x8, w8, w11
	str	w10, [x9, x8]
	b	LBB0_54
LBB0_49:
	ldr	x9, [x19, #40]
LBB0_50:
	cmp	w8, #1
	cset	w8, gt
	ldrsw	x10, [sp, #80]
	mov	w11, #40
	umull	x8, w8, w11
	str	w10, [x9, x8]
	ldr	w8, [x0, #40]
Lloh75:
	adrp	x9, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh76:
	ldr	x9, [x9, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	cmp	w8, #2
	ccmp	x9, x10, #0, le
	b.ne	LBB0_54
; %bb.51:
	ldr	x8, [x19, #24]
	cmp	x8, #1
	b.ne	LBB0_54
; %bb.52:
Lloh78:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x2, l_.str.11@PAGE
Lloh82:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_av_log
	str	xzr, [x19, #24]
	ldr	x0, [x19, #48]
	ldr	w8, [x0, #40]
	cmp	w8, #2
	b.ne	LBB0_54
; %bb.53:
Lloh83:
	adrp	x8, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
	str	x8, [x0, #48]
LBB0_54:
	ldr	w8, [sp, #84]
	sub	w8, w8, #18
	cmp	w8, #3
	cset	w8, lo
	str	w8, [x19, #36]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_57
; %bb.55:
	ldr	x9, [x19, #40]
	add	x9, x9, #8
Lloh86:
	adrp	x10, _AV_MATRIX_ENCODING_NONE@GOTPAGE
Lloh87:
	ldr	x10, [x10, _AV_MATRIX_ENCODING_NONE@GOTPAGEOFF]
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	str	x11, [x9], #40
	subs	x8, x8, #1
	b.ne	LBB0_56
LBB0_57:
	ldr	x8, [x0]
Lloh88:
	adrp	x9, _AV_CODEC_ID_TRUEHD@GOTPAGE
Lloh89:
	ldr	x9, [x9, _AV_CODEC_ID_TRUEHD@GOTPAGEOFF]
Lloh90:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_73
; %bb.58:
	ldr	w8, [sp, #64]
	cmp	w8, #3
	b.lt	LBB0_63
; %bb.59:
	ldr	w9, [sp, #76]
Lloh91:
	adrp	x8, _AV_CH_SIDE_LEFT@GOTPAGE
Lloh92:
	ldr	x8, [x8, _AV_CH_SIDE_LEFT@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_65
; %bb.60:
Lloh94:
	adrp	x10, _AV_CH_SIDE_RIGHT@GOTPAGE
Lloh95:
	ldr	x10, [x10, _AV_CH_SIDE_RIGHT@GOTPAGEOFF]
Lloh96:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_65
; %bb.61:
	ldr	x9, [sp, #88]
Lloh97:
	adrp	x10, _THD_CH_MODIFIER_SURROUNDEX@GOTPAGE
Lloh98:
	ldr	x10, [x10, _THD_CH_MODIFIER_SURROUNDEX@GOTPAGEOFF]
Lloh99:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_65
; %bb.62:
Lloh100:
	adrp	x9, _AV_MATRIX_ENCODING_DOLBYEX@GOTPAGE
Lloh101:
	ldr	x9, [x9, _AV_MATRIX_ENCODING_DOLBYEX@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	ldr	x10, [x19, #40]
	str	x9, [x10, #88]
	b	LBB0_65
LBB0_63:
	cmp	w8, #2
	b.ne	LBB0_69
; %bb.64:
Lloh103:
	adrp	x8, _AV_CH_SIDE_LEFT@GOTPAGE
Lloh104:
	ldr	x8, [x8, _AV_CH_SIDE_LEFT@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
LBB0_65:
	ldr	w9, [sp, #80]
	tst	w8, w9
	b.eq	LBB0_70
; %bb.66:
Lloh106:
	adrp	x8, _AV_CH_SIDE_RIGHT@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AV_CH_SIDE_RIGHT@GOTPAGEOFF]
Lloh108:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_70
; %bb.67:
	ldr	x8, [sp, #96]
Lloh109:
	adrp	x9, _THD_CH_MODIFIER_SURROUNDEX@GOTPAGE
Lloh110:
	ldr	x9, [x9, _THD_CH_MODIFIER_SURROUNDEX@GOTPAGEOFF]
Lloh111:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_70
; %bb.68:
Lloh112:
	adrp	x8, _AV_MATRIX_ENCODING_DOLBYEX@GOTPAGE
Lloh113:
	ldr	x8, [x8, _AV_MATRIX_ENCODING_DOLBYEX@GOTPAGEOFF]
Lloh114:
	ldr	x8, [x8]
	ldr	x9, [x19, #40]
	str	x8, [x9, #48]
	b	LBB0_70
LBB0_69:
	cmp	w8, #1
	b.lt	LBB0_73
LBB0_70:
	ldr	w8, [sp, #104]
	cmp	w8, #129
	b.eq	LBB0_74
; %bb.71:
	cmp	w8, #128
	b.ne	LBB0_73
; %bb.72:
	mov	w0, #0
Lloh115:
	adrp	x8, _AV_MATRIX_ENCODING_DOLBY@GOTPAGE
Lloh116:
	ldr	x8, [x8, _AV_MATRIX_ENCODING_DOLBY@GOTPAGEOFF]
	b	LBB0_75
LBB0_73:
	mov	w0, #0
	b	LBB0_23
LBB0_74:
	mov	w0, #0
Lloh117:
	adrp	x8, _AV_MATRIX_ENCODING_DOLBYHEADPHONE@GOTPAGE
Lloh118:
	ldr	x8, [x8, _AV_MATRIX_ENCODING_DOLBYHEADPHONE@GOTPAGEOFF]
LBB0_75:
	ldr	x8, [x8]
	ldr	x9, [x19, #40]
	str	x8, [x9, #8]
	b	LBB0_23
	.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 AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh117, Lloh118
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid/unknown bits per sample\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Channel group 2 cannot have more bits per sample than group 1.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Channel groups with differing sample rates are not currently supported.\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid/unknown sampling rate\n"

	.comm	_MAX_SAMPLERATE,8,3             ; @MAX_SAMPLERATE
l_.str.4:                               ; @.str.4
	.asciz	"Sampling rate %d is greater than the supported maximum (%d).\n"

	.comm	_MAX_BLOCKSIZE,8,3              ; @MAX_BLOCKSIZE
l_.str.5:                               ; @.str.5
	.asciz	"Block size %d is greater than the supported maximum (%d).\n"

	.comm	_MAX_BLOCKSIZE_POW2,8,3         ; @MAX_BLOCKSIZE_POW2
l_.str.6:                               ; @.str.6
	.asciz	"Block size pow2 %d is greater than the supported maximum (%d).\n"

	.comm	_AV_CODEC_ID_MLP,8,3            ; @AV_CODEC_ID_MLP
l_.str.7:                               ; @.str.7
	.asciz	"MLP only supports up to 2 substreams.\n"

	.comm	_MAX_SUBSTREAMS,4,2             ; @MAX_SUBSTREAMS
l_.str.8:                               ; @.str.8
	.asciz	"%d substreams (more than the maximum supported by the decoder)"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_SAMPLE_FMT_S32,8,3          ; @AV_SAMPLE_FMT_S32
	.comm	_AV_SAMPLE_FMT_S16,8,3          ; @AV_SAMPLE_FMT_S16
l_.str.9:                               ; @.str.9
	.asciz	"unexpected stream_type %X in MLP"

	.comm	_AV_CH_LAYOUT_STEREO,8,3        ; @AV_CH_LAYOUT_STEREO
l_.str.10:                              ; @.str.10
	.asciz	"unexpected stream_type %X in !MLP"

	.comm	_AV_CH_LAYOUT_MONO,8,3          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.11:                              ; @.str.11
	.asciz	"Mono stream with 2 substreams, ignoring 2nd\n"

	.comm	_AV_MATRIX_ENCODING_NONE,8,3    ; @AV_MATRIX_ENCODING_NONE
	.comm	_AV_CODEC_ID_TRUEHD,8,3         ; @AV_CODEC_ID_TRUEHD
	.comm	_AV_CH_SIDE_LEFT,4,2            ; @AV_CH_SIDE_LEFT
	.comm	_AV_CH_SIDE_RIGHT,4,2           ; @AV_CH_SIDE_RIGHT
	.comm	_THD_CH_MODIFIER_SURROUNDEX,8,3 ; @THD_CH_MODIFIER_SURROUNDEX
	.comm	_AV_MATRIX_ENCODING_DOLBYEX,8,3 ; @AV_MATRIX_ENCODING_DOLBYEX
	.comm	_AV_MATRIX_ENCODING_DOLBY,8,3   ; @AV_MATRIX_ENCODING_DOLBY
	.comm	_AV_MATRIX_ENCODING_DOLBYHEADPHONE,8,3 ; @AV_MATRIX_ENCODING_DOLBYHEADPHONE
	.no_dead_strip	_read_major_sync
.subsections_via_symbols
