	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function truehd_core_filter
LCPI0_0:
	.long	32768                           ## 0x8000
	.long	16384                           ## 0x4000
	.long	8192                            ## 0x2000
	.long	4096                            ## 0x1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_truehd_core_filter:                    ## @truehd_core_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
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	_MAX_SUBSTREAMS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$3, (%rbx)
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_AV_RB16
	addl	%eax, %eax
	andl	$8190, %eax                     ## imm = 0x1FFE
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.5:
	movl	(%rbx), %edx
	cmpl	%edx, %eax
	jg	LBB0_3
## %bb.6:
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	movq	8(%rbx), %rsi
	addq	$16, %rsi
	addl	$-4, %edx
	leaq	-168(%rbp), %rdi
	callq	_init_get_bits8
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_30
## %bb.7:
	leaq	-168(%rbp), %rdi
	movl	$32, %esi
	movl	%ecx, %ebx
	callq	_show_bits_long
	movl	%ebx, %ecx
	xorl	%edx, %edx
	movl	%eax, -208(%rbp)                ## 4-byte Spill
	cmpl	$-126718022, %eax               ## imm = 0xF8726FBA
	jne	LBB0_9
## %bb.8:
	leaq	-168(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ff_mlp_read_major_sync
	movl	%eax, %ecx
	movl	$28, %edx
	testl	%eax, %eax
	js	LBB0_30
LBB0_9:
	movl	(%r12), %eax
	cmpl	(%r14), %eax
	jle	LBB0_10
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_29:
	testl	%ecx, %ecx
	jns	LBB0_31
LBB0_30:
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	movl	%ecx, %ebx
	callq	_av_packet_unref
	movl	%ebx, %ecx
	jmp	LBB0_31
LBB0_1:
	movl	%eax, %ecx
LBB0_31:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%ecx, -164(%rbp)                ## 4-byte Spill
	movq	%r12, -216(%rbp)                ## 8-byte Spill
	testl	%eax, %eax
	movq	%r13, -232(%rbp)                ## 8-byte Spill
	movl	%edx, -204(%rbp)                ## 4-byte Spill
	jle	LBB0_11
## %bb.12:
	movq	-200(%rbp), %rax                ## 8-byte Reload
	leaq	12(%rax), %rbx
	xorl	%r13d, %r13d
	leaq	-168(%rbp), %r14
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r13
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$16, %rbx
	movl	%r12d, %edx
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -224(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_get_bits1
	movq	-12(%rbx), %r15
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
	movq	%rax, %rcx
	movl	%ecx, -4(%rbx)
	addl	%ecx, %ecx
	movq	-176(%rbp), %rax                ## 8-byte Reload
	leal	2(%rax), %r12d
	cmpq	$3, %r13
	cmovael	%eax, %r12d
	cmovael	-224(%rbp), %ecx                ## 4-byte Folded Reload
	cmpl	$0, (%r15)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	movl	$16, %esi
	movq	%rcx, %r15
	callq	_get_bits
	movq	%r15, %rcx
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	leal	4(%rdx), %r12d
	cmpq	$3, %r13
	movl	%eax, (%rbx)
	cmovael	%edx, %r12d
	jmp	LBB0_15
LBB0_16:
	addl	$4, %ecx
	movq	-232(%rbp), %r13                ## 8-byte Reload
	movl	-204(%rbp), %r14d               ## 4-byte Reload
	movq	%rcx, %rbx
	jmp	LBB0_17
LBB0_11:
	movl	%edx, %r14d
	movl	$4, %ebx
	xorl	%r12d, %r12d
LBB0_17:
	leaq	-168(%rbp), %rdi
	callq	_get_bits_count
	movl	%eax, %r15d
	sarl	$3, %r15d
	addl	%r15d, %ebx
	cmpl	-180(%rbp), %ebx                ## 4-byte Folded Reload
	movl	-164(%rbp), %ecx                ## 4-byte Reload
	jge	LBB0_29
## %bb.18:
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	addl	%r14d, %r12d
	subl	%r12d, %r15d
	movl	%r15d, %ebx
	notl	%ebx
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movq	8(%r14), %rdi
	addq	$8, %rdi
	callq	_AV_RB16
	movl	%eax, %r12d
	andl	$1, %ebx
	xorl	%edi, %edi
	testl	%r15d, %r15d
	cmovnsl	%ebx, %edi
	callq	_av_assert1
	cmpl	$-126718022, -208(%rbp)         ## 4-byte Folded Reload
                                        ## imm = 0xF8726FBA
	jne	LBB0_20
## %bb.19:
	movq	8(%r14), %rsi
	addq	$16, %rsi
	movl	%r12d, %r14d
	leaq	-160(%rbp), %r12
	movq	%r12, %rdi
	movl	$28, %edx
	callq	_memcpy
	movl	-96(%rbp), %ebx
	andl	$12, %ebx
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FFMIN
	shll	$4, %eax
	orl	%ebx, %eax
	movl	%eax, -96(%rbp)
	andl	$127, -92(%rbp)
	andl	$254, -60(%rbp)
	movq	%r13, %rbx
	leaq	-56(%rbp), %r13
	movq	%r12, %rdi
	movl	%r14d, %r12d
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movl	$26, %esi
	callq	_ff_mlp_checksum16
	movq	%r13, %rdi
	movq	%rbx, %r13
	movl	%eax, %esi
	callq	_AV_WL16
LBB0_20:
	movslq	%r15d, %rax
	shlq	$2, %rax
	addq	%rax, 8(%r14)
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	subl	%r15d, %ebx
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	callq	_av_packet_make_writable
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_29
## %bb.21:
	movl	%ecx, -164(%rbp)                ## 4-byte Spill
	movq	8(%r14), %rdi
	addq	$8, %rdi
	movl	%r12d, %esi
	callq	_AV_WB16
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	xorl	%eax, %r12d
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_22
## %bb.23:
	movl	-204(%rbp), %edx                ## 4-byte Reload
	movq	-200(%rbp), %rax                ## 8-byte Reload
	addq	$12, %rax
	xorl	%r15d, %r15d
	shlq	$2, %rdx
	movl	%r12d, %r14d
	xorl	%r12d, %r12d
	movq	%rdx, -224(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r15
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FFMIN
	cltq
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	addq	$16, %rcx
	movl	%r13d, %r14d
	movl	%ebx, %r12d
	cmpq	%rax, %r15
	movq	%rcx, %rax
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	jge	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	-12(%rax), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	movdqu	(%rcx), %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %r13d
	orl	-4(%rax), %r13d
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	addq	%rdx, %rax
	movslq	%r12d, %rbx
	leaq	(%rax,%rbx,4), %rdi
	addq	$16, %rdi
	movl	%r13d, %esi
	callq	_AV_WB16
	xorl	%r14d, %r13d
	addl	$2, %ebx
	movq	-176(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	addq	-224(%rbp), %rax                ## 8-byte Folded Reload
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$16, %rdi
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_AV_WB16
	xorl	%r14d, %r13d
	addl	$4, %r12d
	movl	%r12d, %ebx
	jmp	LBB0_26
LBB0_22:
	movl	%r12d, %r13d
LBB0_27:
	movl	%r13d, %eax
	sarl	$8, %eax
	xorl	%r13d, %eax
	movl	%eax, %ecx
	shrl	$4, %ecx
	xorl	%eax, %ecx
	shll	$12, %ecx
	movzwl	%cx, %eax
	movl	-180(%rbp), %esi                ## 4-byte Reload
	andl	$4095, %esi                     ## imm = 0xFFF
	orl	%eax, %esi
	xorl	$61440, %esi                    ## imm = 0xF000
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_AV_WB16
	cmpl	$-126718022, -208(%rbp)         ## 4-byte Folded Reload
                                        ## imm = 0xF8726FBA
	movq	-232(%rbp), %r13                ## 8-byte Reload
	movl	-164(%rbp), %ecx                ## 4-byte Reload
	jne	LBB0_29
## %bb.28:
	movq	8(%rbx), %rdi
	addq	$16, %rdi
	leaq	-160(%rbp), %rsi
	movl	$28, %edx
	callq	_memcpy
	movl	-164(%rbp), %ecx                ## 4-byte Reload
	jmp	LBB0_29
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SUBSTREAMS,4,2             ## @MAX_SUBSTREAMS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_truehd_core_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function truehd_core_filter
lCPI0_0:
	.long	15                              ; 0xf
	.long	14                              ; 0xe
	.long	13                              ; 0xd
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_truehd_core_filter:                    ; @truehd_core_filter
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #192
	mov	x19, x1
	mov	x23, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x20, [x0]
Lloh3:
	adrp	x28, _MAX_SUBSTREAMS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAX_SUBSTREAMS@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x8
	mov	sp, x25
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #3
	b.le	LBB0_11
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_AV_RB16
	ubfiz	w27, w0, #1, #12
	cmp	w27, #4
	b.lo	LBB0_11
; %bb.3:
	ldr	w8, [x19]
	cmp	w27, w8
	b.gt	LBB0_11
; %bb.4:
	ldr	x9, [x19, #8]
	add	x1, x9, #16
	sub	w2, w8, #4
	sub	x0, x29, #212
	bl	_init_get_bits8
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
; %bb.5:
	sub	x0, x29, #212
	mov	w1, #32
	bl	_show_bits_long
	mov	x21, x0
	mov	w8, #28602
	movk	w8, #63602, lsl #16
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.6:
	sub	x2, x29, #212
	mov	x0, x23
	mov	x1, x20
	bl	_ff_mlp_read_major_sync
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	w26, #28
	b	LBB0_10
LBB0_8:
	mov	x22, x0
	b	LBB0_14
LBB0_9:
	mov	w26, #0
LBB0_10:
	ldr	w8, [x20]
	ldr	w9, [x28]
	cmp	w8, w9
	b.le	LBB0_16
LBB0_11:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
LBB0_12:
	tbz	w22, #31, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_14:
	mov	sp, x24
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.15:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	sub	x9, x29, #8
	stur	w21, [x9, #-256]                ; 4-byte Folded Spill
	cmp	w8, #1
	stur	x20, [x29, #-224]               ; 8-byte Folded Spill
	sub	x8, x29, #4
	stur	w26, [x8, #-256]                ; 4-byte Folded Spill
	b.lt	LBB0_23
; %bb.17:
	mov	x26, #0
	mov	w28, #0
	mov	w23, #0
	add	x21, x25, #8
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	x0, x29, #212
	mov	w1, #16
	bl	_get_bits
	str	w0, [x21, #4]
	add	w8, w23, #4
	cmp	x26, #3
	csel	w23, w8, w23, lo
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	add	x26, x26, #1
	ldrsw	x8, [x8]
	add	x21, x21, #16
	cmp	x26, x8
	b.ge	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #212
	bl	_get_bits1
	ldur	x20, [x21, #-8]
	str	w0, [x20]
	sub	x0, x29, #212
	bl	_get_bits1
	str	w0, [x20, #4]
	sub	x0, x29, #212
	bl	_get_bits1
	str	w0, [x20, #8]
	sub	x0, x29, #212
	bl	_get_bits1
	str	w0, [x20, #12]
	sub	x0, x29, #212
	mov	w1, #12
	bl	_get_bits
	str	w0, [x21]
	lsl	w9, w0, #1
	add	w8, w23, #2
	cmp	x26, #3
	csel	w8, w8, w23, lo
	csel	w28, w9, w28, lo
	ldr	w9, [x20]
	cbnz	w9, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x23, x8
	b	LBB0_19
LBB0_22:
	add	w21, w28, #4
	sub	x8, x29, #4
	ldur	w26, [x8, #-256]                ; 4-byte Folded Reload
	b	LBB0_24
LBB0_23:
	mov	w23, #0
	mov	w21, #4
LBB0_24:
	sub	x0, x29, #212
	bl	_get_bits_count
	asr	w8, w0, #3
	add	w21, w21, w8
	cmp	w21, w27
	b.ge	LBB0_12
; %bb.25:
	add	w9, w23, w26
	sub	w26, w8, w9
	mvn	w20, w26
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_AV_RB16
	mov	x23, x0
	and	w8, w20, #0x1
	cmp	w26, #0
	csel	w0, wzr, w8, lt
	bl	_av_assert1
	mov	w8, #28602
	movk	w8, #63602, lsl #16
	sub	x9, x29, #8
	ldur	w9, [x9, #-256]                 ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_27
; %bb.26:
	ldr	x8, [x19, #8]
	add	x1, x8, #16
	sub	x20, x29, #208
	sub	x0, x29, #208
	mov	w2, #28
	bl	_memcpy
	ldur	w8, [x29, #-144]
	and	w22, w8, #0xc
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FFMIN
	bfi	w22, w0, #4, #28
	ldur	w8, [x29, #-140]
	ldur	w9, [x29, #-108]
	and	w8, w8, #0x7f
	stp	w22, w8, [x29, #-144]
	and	w8, w9, #0xfe
	stur	w8, [x29, #-108]
	add	x22, x20, #104
	sub	x0, x29, #208
	mov	w1, #26
	bl	_ff_mlp_checksum16
	mov	x1, x0
	mov	x0, x22
	bl	_AV_WL16
LBB0_27:
	ldr	x8, [x19, #8]
	add	x8, x8, w26, sxtw #2
	str	x8, [x19, #8]
	sub	w21, w21, w26
	str	w21, [x19]
	mov	x0, x19
	bl	_av_packet_make_writable
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.28:
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	mov	x1, x23
	bl	_AV_WB16
	cmp	w21, #0
	cinc	w8, w21, lt
	asr	w8, w8, #1
	sub	x9, x29, #12
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
	eor	w8, w23, w8
	stur	w8, [x29, #-228]                ; 4-byte Folded Spill
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_34
; %bb.29:
	mov	x27, #0
	mov	w26, #0
	add	x21, x25, #8
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x29, #-256]                ; 16-byte Folded Spill
	sub	x8, x29, #4
	ldur	w8, [x8, #-256]                 ; 4-byte Folded Reload
	mov	w28, w8
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x28, lsl #2
	add	x8, x9, x8, lsl #2
	add	x0, x8, #16
	ldr	w23, [x21, #4]
	mov	x1, x23
	mov	x20, x10
	bl	_AV_WB16
	eor	w20, w23, w20
	stur	w20, [x29, #-228]               ; 4-byte Folded Spill
	add	w26, w26, #4
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	ldur	x8, [x29, #-224]                ; 8-byte Folded Reload
	add	x27, x27, #1
	ldr	w0, [x8]
	mov	w1, #3
	bl	_FFMIN
	add	x21, x21, #16
	cmp	x27, w0, sxtw
	b.ge	LBB0_34
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldur	x20, [x21, #-8]
	ldr	q0, [x20]
	ldur	q1, [x29, #-256]                ; 16-byte Folded Reload
	ushl.4s	v0, v0, v1
	ldr	w8, [x21]
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w9, w10, w9
	orr	w23, w9, w8
	ldr	x8, [x19, #8]
	add	x8, x8, x28, lsl #2
	add	x8, x8, w26, sxtw #2
	sxtw	x25, w26
	add	x0, x8, #16
	mov	x1, x23
	bl	_AV_WB16
	ldur	w10, [x29, #-228]               ; 4-byte Folded Reload
	eor	w10, w23, w10
	add	x8, x25, #2
	ldr	w9, [x20]
	cbnz	w9, LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	stur	w10, [x29, #-228]               ; 4-byte Folded Spill
	mov	x26, x8
	b	LBB0_31
LBB0_34:
	ldur	w8, [x29, #-228]                ; 4-byte Folded Reload
	eor	w8, w8, w8, asr #8
	eor	w8, w8, w8, lsr #4
	sub	x9, x29, #12
	ldur	w9, [x9, #-256]                 ; 4-byte Folded Reload
	and	w9, w9, #0xfff
	bfi	w9, w8, #12, #4
	eor	w1, w9, #0xf000
	ldr	x0, [x19, #8]
	bl	_AV_WB16
	mov	w8, #28602
	movk	w8, #63602, lsl #16
	sub	x9, x29, #8
	ldur	w9, [x9, #-256]                 ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.35:
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	sub	x1, x29, #208
	mov	w2, #28
	bl	_memcpy
	b	LBB0_12
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SUBSTREAMS,4,2             ; @MAX_SUBSTREAMS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_truehd_core_filter
.subsections_via_symbols
