	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_eac3_set_cpl_states         ## -- Begin function ff_eac3_set_cpl_states
	.p2align	4, 0x90
_ff_eac3_set_cpl_states:                ## @ff_eac3_set_cpl_states
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_AC3_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	leaq	4(%r15), %rdi
	leaq	(,%rbx,4), %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
LBB0_2:
	movl	4(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.3:
	movq	8(%r14), %r8
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %edx
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	movslq	%edx, %rax
	cmpq	%rax, %rcx
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rsi
	shlq	$5, %rsi
	leaq	(%r8,%rsi), %rdx
	movq	24(%r8,%rsi), %rsi
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	$1, 4(%r15,%rdi,4)
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movslq	%ebx, %rax
	incq	%rdi
	cmpq	%rax, %rdi
	jge	LBB0_15
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 8(%rsi,%rdi,8)
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, 4(%r15,%rdi,4)
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rdx), %rbx
	movl	$2, 4(%rbx,%rdi,4)
	movl	$0, 4(%r15,%rdi,4)
	movl	(%r14), %ebx
	jmp	LBB0_14
LBB0_9:
	testl	%edx, %edx
	jle	LBB0_18
## %bb.10:
	movq	8(%r14), %rax
	movl	%edx, %ecx
	shlq	$5, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rax,%rdx)
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$32, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_11
	jmp	LBB0_18
LBB0_12:
	movl	$2, 8(%rax,%rdx)
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_MAX_CHANNELS,4,2           ## @AC3_MAX_CHANNELS
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_eac3_set_cpl_states         ; -- Begin function ff_eac3_set_cpl_states
	.p2align	2
_ff_eac3_set_cpl_states:                ; @ff_eac3_set_cpl_states
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _AC3_MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC3_MAX_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w21, [x0]
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.1:
	add	x0, x20, #4
	lsl	x2, x21, #2
Lloh8:
	adrp	x1, l_.memset_pattern@PAGE
Lloh9:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_2:
	ldr	w12, [x19, #4]
	cmp	w12, #1
	b.lt	LBB0_18
; %bb.3:
	mov	x8, #0
	ldr	x9, [x19, #8]
	mov	w10, #1
	mov	w11, #2
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w12, [x19, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	cmp	x8, w12, sxtw
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x9, x8, lsl #5
	ldr	x13, [x12, #24]
	mov	w14, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	w10, [x20, x14, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	cmp	x14, w21, sxtw
	add	x14, x14, #1
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13, x14, lsl #3]
	cbz	x15, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w15, [x20, x14, lsl #2]
	cbz	w15, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x15, [x12]
	lsl	x16, x14, #2
	str	w11, [x15, x16]
	str	wzr, [x20, x16]
	ldr	w21, [x19]
	b	LBB0_9
LBB0_13:
	cmp	w12, #1
	b.lt	LBB0_18
; %bb.14:
	ldr	x8, [x19, #8]
	mov	w9, w12
	add	x8, x8, #16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbnz	x10, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, #32
	subs	x9, x9, #1
	b.ne	LBB0_15
	b	LBB0_18
LBB0_17:
	mov	w9, #2
	stur	w9, [x8, #-8]
LBB0_18:
	ldur	x8, [x29, #-40]
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_20
; %bb.19:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_MAX_CHANNELS,4,2           ; @AC3_MAX_CHANNELS
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
