	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_core_filter_frame       ## -- Begin function ff_dca_core_filter_frame
	.p2align	4, 0x90
_ff_dca_core_filter_frame:              ## @ff_dca_core_filter_frame
	.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
	pushq	%rax
	.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
	movq	56(%rdi), %r15
	movq	16(%r15), %r12
	movq	(%r12), %rdx
	movq	_DCA_SPEAKER_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_DCA_AMODE_MONO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.2:
	cmpq	$0, 48(%rbx)
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_DCA_DMIX_TYPE_LoRo@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_DCA_DMIX_TYPE_LtRt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_5:
	movq	24(%rbx), %rdx
LBB0_6:
	movq	16(%r12), %r13
	movq	%rdx, 32(%rbx)
	movl	40(%rbx), %esi
	movq	%r15, %rdi
	callq	_ff_dca_set_channel_layout
	testl	%eax, %eax
	je	LBB0_28
## %bb.7:
	movq	_AV_CODEC_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_8
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_filter_frame_fixed
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_27
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movq	_DCA_PACKET_EXSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_11
## %bb.9:
	movq	_DCA_EXSS_XLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_10
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_filter_frame_float
	testl	%eax, %eax
	js	LBB0_27
LBB0_13:
	movl	16(%rbx), %eax
	movq	_DCA_EXSS_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.20:
	movq	_FF_PROFILE_DTS_HD_HRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_21
LBB0_14:
	movq	_DCA_CSS_XXCH@GOTPCREL(%rip), %rdx
	movq	_DCA_CSS_XCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_DCA_CSS_X96@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	jne	LBB0_15
## %bb.16:
	movq	_FF_PROFILE_DTS@GOTPCREL(%rip), %rdx
	testl	%eax, %ecx
	jne	LBB0_18
	jmp	LBB0_19
LBB0_15:
	movq	_FF_PROFILE_DTS_96_24@GOTPCREL(%rip), %rdx
	testl	%eax, %ecx
	je	LBB0_19
LBB0_18:
	movq	_FF_PROFILE_DTS_ES@GOTPCREL(%rip), %rdx
LBB0_19:
	movl	(%rdx), %eax
	movl	%eax, 8(%r15)
	movl	20(%rbx), %eax
	cmpl	$4, %eax
	jge	LBB0_22
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	movl	%eax, 4(%r15)
	movq	(%rbx), %rcx
	movq	_DCA_AMODE_STEREO_TOTAL@GOTPCREL(%rip), %rdx
	movq	_AV_MATRIX_ENCODING_DOLBY@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_26
## %bb.23:
	movq	32(%rbx), %rcx
	cmpq	24(%rbx), %rcx
	je	LBB0_25
## %bb.24:
	movq	8(%rbx), %rcx
	movq	_DCA_DMIX_TYPE_LtRt@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_26
LBB0_25:
	movq	_AV_MATRIX_ENCODING_NONE@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ff_side_data_update_matrix_encoding
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_SPEAKER_LAYOUT_STEREO,8,3  ## @DCA_SPEAKER_LAYOUT_STEREO
	.comm	_DCA_AMODE_MONO,8,3             ## @DCA_AMODE_MONO
	.comm	_DCA_DMIX_TYPE_LoRo,8,3         ## @DCA_DMIX_TYPE_LoRo
	.comm	_DCA_DMIX_TYPE_LtRt,8,3         ## @DCA_DMIX_TYPE_LtRt
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ## @AV_CODEC_FLAG_BITEXACT
	.comm	_DCA_PACKET_EXSS,4,2            ## @DCA_PACKET_EXSS
	.comm	_DCA_EXSS_XLL,4,2               ## @DCA_EXSS_XLL
	.comm	_DCA_EXSS_MASK,4,2              ## @DCA_EXSS_MASK
	.comm	_FF_PROFILE_DTS_HD_HRA,4,2      ## @FF_PROFILE_DTS_HD_HRA
	.comm	_DCA_CSS_XXCH,4,2               ## @DCA_CSS_XXCH
	.comm	_DCA_CSS_XCH,4,2                ## @DCA_CSS_XCH
	.comm	_FF_PROFILE_DTS_ES,4,2          ## @FF_PROFILE_DTS_ES
	.comm	_DCA_CSS_X96,4,2                ## @DCA_CSS_X96
	.comm	_FF_PROFILE_DTS_96_24,4,2       ## @FF_PROFILE_DTS_96_24
	.comm	_FF_PROFILE_DTS,4,2             ## @FF_PROFILE_DTS
	.comm	_DCA_AMODE_STEREO_TOTAL,8,3     ## @DCA_AMODE_STEREO_TOTAL
	.comm	_AV_MATRIX_ENCODING_DOLBY,4,2   ## @AV_MATRIX_ENCODING_DOLBY
	.comm	_AV_MATRIX_ENCODING_NONE,4,2    ## @AV_MATRIX_ENCODING_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_core_filter_frame       ; -- Begin function ff_dca_core_filter_frame
	.p2align	2
_ff_dca_core_filter_frame:              ; @ff_dca_core_filter_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #56]
	ldr	x22, [x21, #16]
	ldr	x2, [x22]
Lloh0:
	adrp	x8, _DCA_SPEAKER_LAYOUT_STEREO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCA_SPEAKER_LAYOUT_STEREO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _DCA_AMODE_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DCA_AMODE_MONO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _DCA_DMIX_TYPE_LoRo@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCA_DMIX_TYPE_LoRo@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _DCA_DMIX_TYPE_LtRt@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DCA_DMIX_TYPE_LtRt@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
LBB0_4:
	ldr	x2, [x20, #24]
LBB0_5:
	ldr	x23, [x22, #16]
	str	x2, [x20, #32]
	ldr	w1, [x20, #40]
	mov	x0, x21
	bl	_ff_dca_set_channel_layout
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_filter_frame_fixed
	tbz	w0, #31, LBB0_12
	b	LBB0_22
LBB0_8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
	ldr	w8, [x22, #8]
Lloh18:
	adrp	x9, _DCA_PACKET_EXSS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DCA_PACKET_EXSS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x23]
Lloh21:
	adrp	x9, _DCA_EXSS_XLL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DCA_EXSS_XLL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_filter_frame_float
	tbnz	w0, #31, LBB0_22
LBB0_12:
	ldr	w8, [x20, #16]
Lloh24:
	adrp	x9, _DCA_EXSS_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DCA_EXSS_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh27:
	adrp	x8, _FF_PROFILE_DTS_HD_HRA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FF_PROFILE_DTS_HD_HRA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	b	LBB0_15
LBB0_14:
Lloh30:
	adrp	x9, _DCA_CSS_XXCH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DCA_CSS_XXCH@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _DCA_CSS_XCH@GOTPAGE
Lloh34:
	ldr	x10, [x10, _DCA_CSS_XCH@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh36:
	adrp	x10, _DCA_CSS_X96@GOTPAGE
Lloh37:
	ldr	x10, [x10, _DCA_CSS_X96@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
Lloh39:
	adrp	x11, _FF_PROFILE_DTS@GOTPAGE
Lloh40:
	ldr	x11, [x11, _FF_PROFILE_DTS@GOTPAGEOFF]
Lloh41:
	adrp	x12, _FF_PROFILE_DTS_96_24@GOTPAGE
Lloh42:
	ldr	x12, [x12, _FF_PROFILE_DTS_96_24@GOTPAGEOFF]
	tst	w10, w8
	csel	x10, x11, x12, eq
Lloh43:
	adrp	x11, _FF_PROFILE_DTS_ES@GOTPAGE
Lloh44:
	ldr	x11, [x11, _FF_PROFILE_DTS_ES@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	w8, [x20, #20]
	cmp	w8, #4
	b.ge	LBB0_16
LBB0_15:
	mov	w8, #0
LBB0_16:
	str	w8, [x21, #4]
	ldr	x8, [x20]
Lloh45:
	adrp	x9, _DCA_AMODE_STEREO_TOTAL@GOTPAGE
Lloh46:
	ldr	x9, [x9, _DCA_AMODE_STEREO_TOTAL@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.17:
	ldp	x9, x8, [x20, #24]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.18:
	ldr	x8, [x20, #8]
Lloh48:
	adrp	x9, _DCA_DMIX_TYPE_LtRt@GOTPAGE
Lloh49:
	ldr	x9, [x9, _DCA_DMIX_TYPE_LtRt@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
LBB0_19:
Lloh51:
	adrp	x8, _AV_MATRIX_ENCODING_DOLBY@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AV_MATRIX_ENCODING_DOLBY@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh53:
	adrp	x8, _AV_MATRIX_ENCODING_NONE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AV_MATRIX_ENCODING_NONE@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ff_side_data_update_matrix_encoding
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_SPEAKER_LAYOUT_STEREO,8,3  ; @DCA_SPEAKER_LAYOUT_STEREO
	.comm	_DCA_AMODE_MONO,8,3             ; @DCA_AMODE_MONO
	.comm	_DCA_DMIX_TYPE_LoRo,8,3         ; @DCA_DMIX_TYPE_LoRo
	.comm	_DCA_DMIX_TYPE_LtRt,8,3         ; @DCA_DMIX_TYPE_LtRt
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ; @AV_CODEC_FLAG_BITEXACT
	.comm	_DCA_PACKET_EXSS,4,2            ; @DCA_PACKET_EXSS
	.comm	_DCA_EXSS_XLL,4,2               ; @DCA_EXSS_XLL
	.comm	_DCA_EXSS_MASK,4,2              ; @DCA_EXSS_MASK
	.comm	_FF_PROFILE_DTS_HD_HRA,4,2      ; @FF_PROFILE_DTS_HD_HRA
	.comm	_DCA_CSS_XXCH,4,2               ; @DCA_CSS_XXCH
	.comm	_DCA_CSS_XCH,4,2                ; @DCA_CSS_XCH
	.comm	_FF_PROFILE_DTS_ES,4,2          ; @FF_PROFILE_DTS_ES
	.comm	_DCA_CSS_X96,4,2                ; @DCA_CSS_X96
	.comm	_FF_PROFILE_DTS_96_24,4,2       ; @FF_PROFILE_DTS_96_24
	.comm	_FF_PROFILE_DTS,4,2             ; @FF_PROFILE_DTS
	.comm	_DCA_AMODE_STEREO_TOTAL,8,3     ; @DCA_AMODE_STEREO_TOTAL
	.comm	_AV_MATRIX_ENCODING_DOLBY,4,2   ; @AV_MATRIX_ENCODING_DOLBY
	.comm	_AV_MATRIX_ENCODING_NONE,4,2    ; @AV_MATRIX_ENCODING_NONE
.subsections_via_symbols
