	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_prm_ch_to_spkr
_map_prm_ch_to_spkr:                    ## @map_prm_ch_to_spkr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ff_dca_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rax
	movl	(%rcx,%rax,4), %ecx
	cmpl	%esi, %ecx
	jle	LBB0_7
## %bb.1:
	movq	_prm_ch_to_spkr_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_DCA_CSS_XXCH@GOTPCREL(%rip), %rcx
	movq	_DCA_EXSS_XXCH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 8(%rdi)
	je	LBB0_19
## %bb.2:
	movl	12(%rdi), %ecx
	btl	%eax, %ecx
	jae	LBB0_3
LBB0_19:
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rdi), %r9d
	movq	_DCA_CSS_XCH@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_10
## %bb.8:
	cmpl	%esi, %ecx
	jne	LBB0_10
## %bb.9:
	movq	_DCA_SPEAKER_Cs@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_10:
	movq	_DCA_CSS_XXCH@GOTPCREL(%rip), %r8
	movq	_DCA_EXSS_XXCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r8), %edx
	movl	$-1, %eax
	testl	%r9d, %edx
	je	LBB0_19
## %bb.11:
	movq	_DCA_SPEAKER_Cs@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	16(%rdi), %r8d
	cmpl	%r8d, %edx
	jge	LBB0_19
## %bb.12:
	movl	20(%rdi), %edi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%edx
	cmpl	%edx, %r8d
	je	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	btl	%edx, %edi
	jae	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%esi, %ecx
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ecx
	jmp	LBB0_13
LBB0_3:
	movq	_DCA_SPEAKER_Ls@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_17
## %bb.4:
	movq	_DCA_SPEAKER_MASK_Lss@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_17
## %bb.5:
	movq	_DCA_SPEAKER_Lss@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_17:
	movq	_DCA_SPEAKER_Rs@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	movl	$-1, %eax
	jne	LBB0_19
## %bb.18:
	movq	_DCA_SPEAKER_MASK_Rss@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	_DCA_SPEAKER_Rss@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	sbbl	%eax, %eax
	orl	(%rdx), %eax
	popq	%rbp
	retq
LBB0_20:
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_channels,8,3            ## @ff_dca_channels
	.comm	_prm_ch_to_spkr_map,8,3         ## @prm_ch_to_spkr_map
	.comm	_DCA_CSS_XXCH,4,2               ## @DCA_CSS_XXCH
	.comm	_DCA_EXSS_XXCH,4,2              ## @DCA_EXSS_XXCH
	.comm	_DCA_SPEAKER_Ls,4,2             ## @DCA_SPEAKER_Ls
	.comm	_DCA_SPEAKER_MASK_Lss,4,2       ## @DCA_SPEAKER_MASK_Lss
	.comm	_DCA_SPEAKER_Lss,4,2            ## @DCA_SPEAKER_Lss
	.comm	_DCA_SPEAKER_Rs,4,2             ## @DCA_SPEAKER_Rs
	.comm	_DCA_SPEAKER_MASK_Rss,4,2       ## @DCA_SPEAKER_MASK_Rss
	.comm	_DCA_SPEAKER_Rss,4,2            ## @DCA_SPEAKER_Rss
	.comm	_DCA_CSS_XCH,4,2                ## @DCA_CSS_XCH
	.comm	_DCA_SPEAKER_Cs,4,2             ## @DCA_SPEAKER_Cs
	.no_dead_strip	_map_prm_ch_to_spkr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_prm_ch_to_spkr
_map_prm_ch_to_spkr:                    ; @map_prm_ch_to_spkr
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _ff_dca_channels@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_dca_channels@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x0]
	ldr	w9, [x9, x10, lsl #2]
	cmp	w9, w1
	b.le	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _prm_ch_to_spkr_map@GOTPAGE
Lloh4:
	ldr	x9, [x9, _prm_ch_to_spkr_map@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w0, [x9, w1, sxtw #2]
	ldr	w9, [x8, #8]
Lloh6:
	adrp	x10, _DCA_CSS_XXCH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DCA_CSS_XXCH@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _DCA_EXSS_XXCH@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DCA_EXSS_XXCH@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x8, #12]
	lsr	w9, w8, w0
	tbz	w9, #0, LBB0_13
LBB0_3:
	ret
LBB0_4:
	ldr	w10, [x8, #8]
Lloh12:
	adrp	x11, _DCA_CSS_XCH@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DCA_CSS_XCH@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	and	w11, w11, w10
	cmp	w11, #0
	ccmp	w9, w1, #0, ne
	b.eq	LBB0_12
; %bb.5:
Lloh15:
	adrp	x11, _DCA_CSS_XXCH@GOTPAGE
Lloh16:
	ldr	x11, [x11, _DCA_CSS_XXCH@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
Lloh18:
	adrp	x12, _DCA_EXSS_XXCH@GOTPAGE
Lloh19:
	ldr	x12, [x12, _DCA_EXSS_XXCH@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w10
	b.eq	LBB0_18
; %bb.6:
Lloh21:
	adrp	x10, _DCA_SPEAKER_Cs@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DCA_SPEAKER_Cs@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x10]
	ldr	w10, [x8, #16]
	cmp	w0, w10
	b.ge	LBB0_18
; %bb.7:
	ldr	w8, [x8, #20]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w0, w0, #1
	cmp	w10, w0
	b.eq	LBB0_18
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w8, w0
	tbz	w11, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, w1
	b.eq	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w9, w9, #1
	b	LBB0_8
LBB0_12:
Lloh24:
	adrp	x8, _DCA_SPEAKER_Cs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DCA_SPEAKER_Cs@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ret
LBB0_13:
Lloh27:
	adrp	x9, _DCA_SPEAKER_Ls@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DCA_SPEAKER_Ls@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_16
; %bb.14:
Lloh30:
	adrp	x9, _DCA_SPEAKER_MASK_Lss@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DCA_SPEAKER_MASK_Lss@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _DCA_SPEAKER_Lss@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DCA_SPEAKER_Lss@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ret
LBB0_16:
Lloh36:
	adrp	x9, _DCA_SPEAKER_Rs@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DCA_SPEAKER_Rs@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_18
; %bb.17:
Lloh39:
	adrp	x9, _DCA_SPEAKER_MASK_Rss@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DCA_SPEAKER_MASK_Rss@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _DCA_SPEAKER_Rss@GOTPAGE
Lloh43:
	ldr	x10, [x10, _DCA_SPEAKER_Rss@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	tst	w9, w8
	csinv	w0, w10, wzr, ne
	ret
LBB0_18:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_channels,8,3            ; @ff_dca_channels
	.comm	_prm_ch_to_spkr_map,8,3         ; @prm_ch_to_spkr_map
	.comm	_DCA_CSS_XXCH,4,2               ; @DCA_CSS_XXCH
	.comm	_DCA_EXSS_XXCH,4,2              ; @DCA_EXSS_XXCH
	.comm	_DCA_SPEAKER_Ls,4,2             ; @DCA_SPEAKER_Ls
	.comm	_DCA_SPEAKER_MASK_Lss,4,2       ; @DCA_SPEAKER_MASK_Lss
	.comm	_DCA_SPEAKER_Lss,4,2            ; @DCA_SPEAKER_Lss
	.comm	_DCA_SPEAKER_Rs,4,2             ; @DCA_SPEAKER_Rs
	.comm	_DCA_SPEAKER_MASK_Rss,4,2       ; @DCA_SPEAKER_MASK_Rss
	.comm	_DCA_SPEAKER_Rss,4,2            ; @DCA_SPEAKER_Rss
	.comm	_DCA_CSS_XCH,4,2                ; @DCA_CSS_XCH
	.comm	_DCA_SPEAKER_Cs,4,2             ; @DCA_SPEAKER_Cs
	.no_dead_strip	_map_prm_ch_to_spkr
.subsections_via_symbols
