	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_set_channel_layout      ## -- Begin function ff_dca_set_channel_layout
	.p2align	4, 0x90
_ff_dca_set_channel_layout:             ## @ff_dca_set_channel_layout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_AV_CH_LAYOUT_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	_DCA_SPEAKER_COUNT@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	xorl	%eax, %eax
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	cmpl	%r9d, %ecx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %edx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %r9
	incl	%eax
	movl	%ecx, (%rsi,%r9,4)
	movl	(%r8), %r9d
	jmp	LBB0_5
LBB0_6:
	movl	%edx, 4(%rdi)
	jmp	LBB0_19
LBB0_7:
	movq	_DCA_SPEAKER_LAYOUT_7POINT0_WIDE@GOTPCREL(%rip), %rax
	movq	_DCA_SPEAKER_LAYOUT_7POINT1_WIDE@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	leaq	_ff_dca_set_channel_layout.dca2wav_wide(%rip), %rcx
	leaq	_ff_dca_set_channel_layout.dca2wav_norm(%rip), %r9
	cmoveq	%rcx, %r9
	cmpl	%edx, (%rax)
	cmoveq	%rcx, %r9
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rax
	cmpq	$28, %rax
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	btl	%eax, %edx
	jae	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	(%r9,%rax,4), %rcx
	movl	$1, %r10d
	shll	%cl, %r10d
	btl	%ecx, %r8d
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, -80(%rbp,%rcx,4)
	orl	%r10d, %r8d
	jmp	LBB0_11
LBB0_12:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdx
	movq	%rdx, %rcx
	cmpq	$18, %rdx
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %r8d
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-80(%rbp,%rcx,4), %r9d
	movslq	%eax, %rdx
	incl	%eax
	movl	%r9d, (%rsi,%rdx,4)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	1(%rcx), %rdx
	btl	%edx, %r8d
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-76(%rbp,%rcx,4), %r9d
	movslq	%eax, %rcx
	incl	%eax
	movl	%r9d, (%rsi,%rcx,4)
	jmp	LBB0_17
LBB0_18:
	movl	%r8d, 4(%rdi)
LBB0_19:
	movl	%eax, 8(%rdi)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ff_dca_set_channel_layout.dca2wav_norm
_ff_dca_set_channel_layout.dca2wav_norm:
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	3                               ## 0x3
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	12                              ## 0xc
	.long	13                              ## 0xd
	.long	14                              ## 0xe
	.long	3                               ## 0x3
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	11                              ## 0xb
	.long	12                              ## 0xc
	.long	14                              ## 0xe
	.long	16                              ## 0x10
	.long	15                              ## 0xf
	.long	17                              ## 0x11
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	5                               ## 0x5

	.p2align	4                               ## @ff_dca_set_channel_layout.dca2wav_wide
_ff_dca_set_channel_layout.dca2wav_wide:
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	3                               ## 0x3
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	12                              ## 0xc
	.long	13                              ## 0xd
	.long	14                              ## 0xe
	.long	3                               ## 0x3
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	11                              ## 0xb
	.long	12                              ## 0xc
	.long	14                              ## 0xe
	.long	16                              ## 0x10
	.long	15                              ## 0xf
	.long	17                              ## 0x11
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	5                               ## 0x5

	.comm	_AV_CH_LAYOUT_NATIVE,4,2        ## @AV_CH_LAYOUT_NATIVE
	.comm	_DCA_SPEAKER_COUNT,4,2          ## @DCA_SPEAKER_COUNT
	.comm	_DCA_SPEAKER_LAYOUT_7POINT0_WIDE,4,2 ## @DCA_SPEAKER_LAYOUT_7POINT0_WIDE
	.comm	_DCA_SPEAKER_LAYOUT_7POINT1_WIDE,4,2 ## @DCA_SPEAKER_LAYOUT_7POINT1_WIDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_set_channel_layout      ; -- Begin function ff_dca_set_channel_layout
	.p2align	2
_ff_dca_set_channel_layout:             ; @ff_dca_set_channel_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _AV_CH_LAYOUT_NATIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CH_LAYOUT_NATIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh6:
	adrp	x9, _DCA_SPEAKER_COUNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCA_SPEAKER_COUNT@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_16
; %bb.2:
	mov	w8, #0
	mov	w11, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w11, #1
	cmp	w11, w10
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w2, w11
	tbz	w12, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w11, [x1, w8, sxtw #2]
	add	w8, w8, #1
	ldr	w10, [x9]
	b	LBB0_3
LBB0_6:
	mov	x8, #0
	mov	w9, #0
Lloh8:
	adrp	x10, _DCA_SPEAKER_LAYOUT_7POINT0_WIDE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DCA_SPEAKER_LAYOUT_7POINT0_WIDE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _DCA_SPEAKER_LAYOUT_7POINT1_WIDE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DCA_SPEAKER_LAYOUT_7POINT1_WIDE@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	cmp	w11, w2
Lloh14:
	adrp	x11, _ff_dca_set_channel_layout.dca2wav_norm@PAGE
Lloh15:
	add	x11, x11, _ff_dca_set_channel_layout.dca2wav_norm@PAGEOFF
	ccmp	w10, w2, #4, ne
Lloh16:
	adrp	x10, _ff_dca_set_channel_layout.dca2wav_wide@PAGE
Lloh17:
	add	x10, x10, _ff_dca_set_channel_layout.dca2wav_wide@PAGEOFF
	csel	x10, x10, x11, eq
	mov	w11, #1
	mov	x12, sp
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	cmp	x8, #28
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w13, w2, w8
	tbz	w13, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w13, [x10, x8, lsl #2]
	lsl	w14, w11, w13
	tst	w14, w9
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x13, w13
	str	w8, [x12, x13, lsl #2]
	orr	w9, w14, w9
	b	LBB0_7
LBB0_11:
	mov	x10, #0
	mov	w8, #0
	mov	x11, sp
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #1
	cmp	x10, #18
	b.eq	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w9, w10
	tbz	w12, #0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w12, [x11, x10, lsl #2]
	str	w12, [x1, w8, sxtw #2]
	add	w8, w8, #1
	b	LBB0_12
LBB0_15:
	str	w9, [x0, #4]
	b	LBB0_18
LBB0_16:
	mov	w8, #0
LBB0_17:
	str	w2, [x0, #4]
LBB0_18:
	str	w8, [x0, #8]
	ldur	x9, [x29, #-8]
Lloh18:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ff_dca_set_channel_layout.dca2wav_norm
_ff_dca_set_channel_layout.dca2wav_norm:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	3                               ; 0x3
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	12                              ; 0xc
	.long	13                              ; 0xd
	.long	14                              ; 0xe
	.long	3                               ; 0x3
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	14                              ; 0xe
	.long	16                              ; 0x10
	.long	15                              ; 0xf
	.long	17                              ; 0x11
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	5                               ; 0x5

	.p2align	2                               ; @ff_dca_set_channel_layout.dca2wav_wide
_ff_dca_set_channel_layout.dca2wav_wide:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	3                               ; 0x3
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	12                              ; 0xc
	.long	13                              ; 0xd
	.long	14                              ; 0xe
	.long	3                               ; 0x3
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	14                              ; 0xe
	.long	16                              ; 0x10
	.long	15                              ; 0xf
	.long	17                              ; 0x11
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	5                               ; 0x5

	.comm	_AV_CH_LAYOUT_NATIVE,4,2        ; @AV_CH_LAYOUT_NATIVE
	.comm	_DCA_SPEAKER_COUNT,4,2          ; @DCA_SPEAKER_COUNT
	.comm	_DCA_SPEAKER_LAYOUT_7POINT0_WIDE,4,2 ; @DCA_SPEAKER_LAYOUT_7POINT0_WIDE
	.comm	_DCA_SPEAKER_LAYOUT_7POINT1_WIDE,4,2 ; @DCA_SPEAKER_LAYOUT_7POINT1_WIDE
.subsections_via_symbols
