	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function coupling_strategy
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_coupling_strategy:                     ## @coupling_strategy
	.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	%rdx, %rax
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	96(%rdi), %r15
	movl	(%rdi), %r12d
	movl	4(%rdi), %r13d
	movq	_AC3_MAX_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$3, %esi
	callq	_memset
	cmpl	$0, 56(%r14)
	je	LBB0_2
## %bb.1:
	movslq	%ebx, %rcx
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_get_bits1
	movq	88(%r14), %rdx
	movslq	%ebx, %rcx
	movq	%rax, (%rdx,%rcx,8)
LBB0_3:
	movq	88(%r14), %rax
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.21:
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_24
## %bb.22:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_23
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_20
## %bb.5:
	movq	8(%r14), %rax
	movq	40(%r14), %rcx
	movl	$1, %edx
	cmpq	$8, %r12
	jb	LBB0_16
## %bb.6:
	movq	%rcx, %rsi
	subq	%rax, %rsi
	cmpq	$32, %rsi
	jb	LBB0_16
## %bb.7:
	movl	%r12d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %ebx
	andl	$3, %ebx
	cmpq	$24, %rdi
	jae	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_24:
	cmpl	$0, 56(%r14)
	je	LBB0_30
## %bb.25:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	76(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_41
LBB0_27:
	cmpl	$0, 56(%r14)
	je	LBB0_30
## %bb.28:
	movl	4(%r14), %eax
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
## %bb.29:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 4(%rax)
	jmp	LBB0_33
LBB0_30:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_33
## %bb.31:
	incl	%r12d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_get_bits1
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_32
LBB0_33:
	movq	_AC3_CHMODE_STEREO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_35
## %bb.34:
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 48(%r14)
LBB0_35:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r12d
	cmpq	$0, 80(%r14)
	je	LBB0_37
## %bb.36:
	movl	16(%r14), %eax
	addl	$-37, %eax
	cltq
	imulq	$715827883, %rax, %r9           ## imm = 0x2AAAAAAB
	movq	%r9, %rax
	shrq	$63, %rax
	sarq	$33, %r9
	addl	%eax, %r9d
	cmpl	%r9d, %r12d
	jge	LBB0_39
LBB0_40:
	leal	(%r12,%r12,2), %eax
	leal	37(,%rax,4), %eax
	movq	24(%r14), %rcx
	movq	_CPL_CH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	leal	(%r9,%r9,2), %eax
	leal	37(,%rax,4), %eax
	movq	32(%r14), %rcx
	movl	%eax, (%rcx,%rdx,4)
	movq	_ff_eac3_default_cpl_band_struct@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leaq	72(%r14), %r11
	movl	68(%r14), %r13d
	movl	56(%r14), %edx
	movl	64(%r14), %eax
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	$4
	pushq	%rax
	pushq	%r13
	pushq	%r11
	pushq	%r10
	callq	_decode_band_structure
	addq	$48, %rsp
	jmp	LBB0_41
LBB0_37:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r9d
	addl	$3, %r9d
	cmpl	%r9d, %r12d
	jl	LBB0_40
LBB0_39:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r9d, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_23:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_41
LBB0_9:
	andq	$-4, %rsi
	xorl	%edi, %edi
	xorps	%xmm0, %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, 4(%rax,%rdi,4)
	movups	%xmm0, 20(%rax,%rdi,4)
	movups	%xmm1, 4(%rcx,%rdi,4)
	movups	%xmm1, 20(%rcx,%rdi,4)
	movups	%xmm0, 36(%rax,%rdi,4)
	movups	%xmm0, 52(%rax,%rdi,4)
	movups	%xmm1, 36(%rcx,%rdi,4)
	movups	%xmm1, 52(%rcx,%rdi,4)
	movups	%xmm0, 68(%rax,%rdi,4)
	movups	%xmm0, 84(%rax,%rdi,4)
	movups	%xmm1, 68(%rcx,%rdi,4)
	movups	%xmm1, 84(%rcx,%rdi,4)
	movups	%xmm0, 100(%rax,%rdi,4)
	movups	%xmm0, 116(%rax,%rdi,4)
	movups	%xmm1, 100(%rcx,%rdi,4)
	movups	%xmm1, 116(%rcx,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_10
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:
	xorps	%xmm0, %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rdi,4), %rsi
	orq	$4, %rsi
	movups	%xmm0, (%rax,%rsi)
	movups	%xmm0, 16(%rax,%rsi)
	movups	%xmm1, (%rcx,%rsi)
	movups	%xmm1, 16(%rcx,%rsi)
	addq	$8, %rdi
	decq	%rbx
	jne	LBB0_13
LBB0_14:
	cmpq	%rdx, %r12
	je	LBB0_20
## %bb.15:
	orq	$1, %rdx
LBB0_16:
	incq	%r12
	movl	%r12d, %edi
	subl	%edx, %edi
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r12, %rsi
	andq	$3, %rdi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rax,%rdx,4)
	movl	$1, (%rcx,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_17
LBB0_18:
	cmpq	$3, %rsi
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rax,%rdx,4)
	movl	$1, (%rcx,%rdx,4)
	movl	$0, 4(%rax,%rdx,4)
	movl	$1, 4(%rcx,%rdx,4)
	movl	$0, 8(%rax,%rdx,4)
	movl	$1, 8(%rcx,%rdx,4)
	movl	$0, 12(%rax,%rdx,4)
	movl	$1, 12(%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r12
	jne	LBB0_19
LBB0_20:
	movl	56(%r14), %eax
	movl	%eax, 60(%r14)
	movq	$0, 48(%r14)
	xorl	%ebx, %ebx
LBB0_41:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_MAX_CHANNELS,4,2           ## @AC3_MAX_CHANNELS
	.comm	_AC3_CHMODE_STEREO,4,2          ## @AC3_CHMODE_STEREO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coupling not allowed in mono or dual-mono\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Enhanced coupling"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.2:                               ## @.str.2
	.asciz	"invalid coupling range (%d >= %d)\n"

	.comm	_CPL_CH,8,3                     ## @CPL_CH
	.comm	_ff_eac3_default_cpl_band_struct,4,2 ## @ff_eac3_default_cpl_band_struct
	.no_dead_strip	_coupling_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coupling_strategy
_coupling_strategy:                     ; @coupling_strategy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #96
	ldp	w22, w23, [x0]
Lloh0:
	adrp	x9, _AC3_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC3_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	mov	w1, #3
	bl	_memset
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_2
; %bb.1:
	sxtw	x8, w20
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_get_bits1
	ldr	x9, [x19, #88]
	mov	x8, x20
	sxtw	x8, w8
	str	x0, [x9, w20, sxtw #3]
LBB0_3:
	ldr	x9, [x19, #88]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x24, _AC3_CHMODE_STEREO@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AC3_CHMODE_STEREO@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w23, w8
	b.ge	LBB0_12
; %bb.5:
	ldr	w0, [x19, #76]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_28
LBB0_6:
	cmp	w22, #1
	b.lt	LBB0_32
; %bb.7:
	ldr	x9, [x19, #8]
	ldr	x10, [x19, #40]
	mov	w8, #1
	cmp	x22, #16
	b.lo	LBB0_29
; %bb.8:
	sub	x12, x10, x9
	mov	w11, #1
	cmp	x12, #64
	b.lo	LBB0_30
; %bb.9:
	and	x12, x22, #0xfffffff0
	orr	x11, x12, #0x1
	add	x13, x10, #36
	add	x14, x9, #36
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #1
	mov	x15, x12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x14, #-32]
	stp	q0, q0, [x14], #64
	stp	q1, q1, [x13, #-32]
	stp	q1, q1, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_10
; %bb.11:
	cmp	x22, x12
	b.ne	LBB0_30
	b	LBB0_32
LBB0_12:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_18
; %bb.13:
	mov	x0, x21
	bl	_get_bits1
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w0, [x19, #76]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_avpriv_request_sample
Lloh12:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_33
LBB0_15:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_18
; %bb.16:
	ldr	w8, [x19, #4]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
	ldr	x8, [x19, #8]
	movi.2s	v0, #1
	stur	d0, [x8, #4]
	b	LBB0_21
LBB0_18:
	cmp	w22, #1
	b.lt	LBB0_21
; %bb.19:
	add	w8, w22, #1
	lsl	x22, x8, #2
	mov	w25, #4
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_bits1
	ldr	x8, [x19, #8]
	str	w0, [x8, x25]
	add	x25, x25, #4
	cmp	x22, x25
	b.ne	LBB0_20
LBB0_21:
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_get_bits1
	str	x0, [x19, #48]
LBB0_23:
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	mov	x22, x0
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	w8, [x19, #16]
	sub	w8, w8, #37
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w5, w8, w9
	cmp	w22, w5
	b.ge	LBB0_27
LBB0_25:
	mov	w8, #12
	mul	w9, w22, w8
	add	w9, w9, #37
Lloh15:
	adrp	x10, _CPL_CH@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CPL_CH@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldp	x11, x12, [x19, #24]
	str	w9, [x11, x10]
	mul	w8, w5, w8
	add	w8, w8, #37
	str	w8, [x12, x10]
	ldr	w2, [x19, #56]
Lloh18:
	adrp	x8, _ff_eac3_default_cpl_band_struct@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ff_eac3_default_cpl_band_struct@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
	add	x7, x19, #72
	ldp	w9, w8, [x19, #64]
	mov	w10, #4
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	mov	x4, x22
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_decode_band_structure
	mov	w0, #0
	b	LBB0_33
LBB0_26:
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	add	w5, w0, #3
	cmp	w22, w5
	b.lt	LBB0_25
LBB0_27:
	ldr	w0, [x19, #76]
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	stp	x22, x5, [sp]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_28:
	bl	_av_log
Lloh26:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_33
LBB0_29:
	mov	w11, #1
LBB0_30:
	add	x12, x22, #1
	lsl	x13, x11, #2
	add	x10, x10, x13
	add	x9, x9, x13
	sub	x11, x12, x11
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x9], #4
	str	w8, [x10], #4
	subs	x11, x11, #1
	b.ne	LBB0_31
LBB0_32:
	mov	w0, #0
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	str	xzr, [x19, #48]
LBB0_33:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_MAX_CHANNELS,4,2           ; @AC3_MAX_CHANNELS
	.comm	_AC3_CHMODE_STEREO,4,2          ; @AC3_CHMODE_STEREO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coupling not allowed in mono or dual-mono\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Enhanced coupling"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.2:                               ; @.str.2
	.asciz	"invalid coupling range (%d >= %d)\n"

	.comm	_CPL_CH,8,3                     ; @CPL_CH
	.comm	_ff_eac3_default_cpl_band_struct,4,2 ; @ff_eac3_default_cpl_band_struct
	.no_dead_strip	_coupling_strategy
.subsections_via_symbols
