	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ac3_decode_transform_coeffs_ch
_ac3_decode_transform_coeffs_ch:        ## @ac3_decode_transform_coeffs_ch
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movslq	%esi, %rcx
	movq	(%rdi), %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rdx
	movslq	(%rax,%rcx,4), %rax
	movl	(%rdx,%rcx,4), %r13d
	movq	_CPL_CH@GOTPCREL(%rip), %rdx
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	cmpl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	56(%rdx), %rdx
	cmpq	$0, (%rdx,%rcx,8)
	setne	-41(%rbp)                       ## 1-byte Folded Spill
LBB0_2:
	cmpl	%r13d, %eax
	jge	LBB0_24
## %bb.3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rsi
	movq	32(%rbx), %rdi
	movq	(%rdx,%rcx,8), %rdx
	movq	(%rsi,%rcx,8), %rsi
	movq	(%rdi,%rcx,8), %rcx
	leaq	48(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	44(%rbx), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax,4), %r14
	leaq	(%rsi,%rax,4), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	subl	%eax, %r13d
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rbx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_b5_mantissas@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_get_bits
	movl	(%r14,%rax,4), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%r12,4), %ecx
	sarl	%cl, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	cmpl	%r12d, %r13d
	je	LBB0_24
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12,4), %ecx
	cmpq	$5, %rcx
	ja	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%rbx,%rcx,4), %rax
	addq	%rbx, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_lfg_get
	sarl	$8, %eax
	imull	$181, %eax, %eax
	sarl	$8, %eax
	addl	$-5931008, %eax                 ## imm = 0xFFA58000
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$16, %ecx
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	40(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	movl	$15, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_quantization_tab@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movslq	%ecx, %rbx
	movl	(%rax,%rbx,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_sbits
	movq	(%r14), %rdx
	movb	$24, %cl
	subb	(%rdx,%rbx,4), %cl
	shll	%cl, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	LJTI0_0(%rip), %rbx
	jmp	LBB0_6
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r15)
	movq	8(%r15), %rcx
	movl	-4(%rcx,%rax,4), %eax
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-1(%rax), %rcx
	movq	%rcx, 16(%r15)
	movq	24(%r15), %rcx
	movl	-4(%rcx,%rax,4), %eax
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_b3_mantissas@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$3, %esi
	callq	_get_bits
	movl	(%r14,%rax,4), %eax
	leaq	LJTI0_0(%rip), %rbx
	jmp	LBB0_5
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 32(%r15)
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 32(%r15)
	movl	36(%r15), %eax
	jmp	LBB0_6
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$5, %esi
	callq	_get_bits
	movq	_b1_mantissas@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %eax
	movl	8(%rcx), %edx
	movq	8(%r15), %rsi
	movl	%edx, 4(%rsi)
	movl	16(%rcx), %ecx
	movl	%ecx, (%rsi)
	movq	$2, (%r15)
	jmp	LBB0_6
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$7, %esi
	callq	_get_bits
	movq	_b2_mantissas@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %eax
	movl	8(%rcx), %edx
	movq	24(%r15), %rsi
	movl	%edx, 4(%rsi)
	movl	16(%rcx), %ecx
	movl	%ecx, (%rsi)
	movq	$2, 16(%r15)
	jmp	LBB0_6
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$7, %esi
	callq	_get_bits
	movq	_b4_mantissas@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %eax
	movl	8(%rcx), %ecx
	movl	%ecx, 36(%r15)
	movl	$1, 32(%r15)
	jmp	LBB0_6
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_CPL_CH,4,2                     ## @CPL_CH
	.comm	_b1_mantissas,8,3               ## @b1_mantissas
	.comm	_b2_mantissas,8,3               ## @b2_mantissas
	.comm	_b3_mantissas,8,3               ## @b3_mantissas
	.comm	_b4_mantissas,8,3               ## @b4_mantissas
	.comm	_b5_mantissas,8,3               ## @b5_mantissas
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bap %d is invalid in plain AC-3\n"

	.comm	_quantization_tab,8,3           ## @quantization_tab
	.no_dead_strip	_ac3_decode_transform_coeffs_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ac3_decode_transform_coeffs_ch
_ac3_decode_transform_coeffs_ch:        ; @ac3_decode_transform_coeffs_ch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	sbfiz	x9, x1, #2, #32
	ldp	x8, x10, [x0]
	ldrsw	x8, [x8, x9]
	ldr	w9, [x10, x9]
Lloh0:
	adrp	x10, _CPL_CH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CPL_CH@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #1
	b	LBB0_3
LBB0_2:
	sxtw	x10, w1
	ldr	x11, [x20, #56]
	ldr	x10, [x11, x10, lsl #3]
	cmp	x10, #0
	cset	w10, ne
LBB0_3:
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w8, w9
	b.ge	LBB0_25
; %bb.4:
	sbfiz	x10, x1, #3, #32
	ldp	x11, x12, [x20, #16]
	ldr	x11, [x11, x10]
	ldr	x13, [x20, #32]
	ldr	x12, [x12, x10]
	ldr	x10, [x13, x10]
	add	x21, x20, #48
	add	x13, x20, #44
	str	x13, [sp]                       ; 8-byte Folded Spill
	lsl	x13, x8, #2
	add	x25, x11, x13
	add	x26, x12, x13
	add	x27, x10, x13
	sub	w28, w9, w8
Lloh3:
	adrp	x22, lJTI0_0@PAGE
Lloh4:
	add	x22, x22, lJTI0_0@PAGEOFF
Lloh5:
	adrp	x24, _quantization_tab@GOTPAGE
Lloh6:
	ldr	x24, [x24, _quantization_tab@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh7:
	adrp	x8, _b3_mantissas@GOTPAGE
Lloh8:
	ldr	x8, [x8, _b3_mantissas@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	mov	x0, x21
	mov	w1, #3
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_get_bits
	ldr	w8, [x23, x0, lsl #2]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26], #4
	asr	w8, w8, w9
	str	w8, [x27], #4
	add	x25, x25, #4
	subs	w28, w28, #1
	b.eq	LBB0_25
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x25]
	cmp	w3, #5
	b.hi	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	adr	x8, LBB0_5
	ldrb	w9, [x22, x3]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_av_lfg_get
	asr	w8, w0, #8
	mov	w9, #181
	mul	w8, w8, w9
	asr	w8, w8, #8
	sub	w8, w8, #1448, lsl #12          ; =5931008
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w3, #16
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #40]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
	mov	w3, #15
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
	sbfiz	x23, x3, #2, #32
	ldr	w1, [x8, x23]
	mov	x0, x21
	bl	_get_sbits
	ldr	x8, [x24]
	ldr	w8, [x8, x23]
	mov	w9, #24
	sub	w8, w9, w8
	lsl	w8, w0, w8
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x8, x8, #1
	str	x8, [x19]
	ldr	x9, [x19, #8]
	ldr	w8, [x9, x8, lsl #2]
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x8, x8, #1
	str	x8, [x19, #16]
	ldr	x9, [x19, #24]
	ldr	w8, [x9, x8, lsl #2]
	b	LBB0_7
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x19, #32]
	ldr	w8, [x19, #36]
	b	LBB0_7
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh15:
	adrp	x8, _b5_mantissas@GOTPAGE
Lloh16:
	ldr	x8, [x8, _b5_mantissas@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x8]
	mov	x0, x21
	mov	w1, #4
	b	LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #5
	bl	_get_bits
Lloh18:
	adrp	x8, _b1_mantissas@GOTPAGE
Lloh19:
	ldr	x8, [x8, _b1_mantissas@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	x9, [x8, x9]
	ldr	w8, [x9]
	ldr	x10, [x19, #8]
	ldp	x11, x9, [x9, #8]
	stp	w9, w11, [x10]
	mov	w9, #2
	str	x9, [x19]
	b	LBB0_7
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #7
	bl	_get_bits
Lloh21:
	adrp	x8, _b2_mantissas@GOTPAGE
Lloh22:
	ldr	x8, [x8, _b2_mantissas@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	x9, [x8, x9]
	ldr	w8, [x9]
	ldr	x10, [x19, #24]
	ldp	x11, x9, [x9, #8]
	stp	w9, w11, [x10]
	mov	w9, #2
	str	x9, [x19, #16]
	b	LBB0_7
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #7
	bl	_get_bits
Lloh24:
	adrp	x8, _b4_mantissas@GOTPAGE
Lloh25:
	ldr	x8, [x8, _b4_mantissas@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	x9, [x8, x9]
	ldr	w8, [x9]
	ldr	x10, [x9, #8]
	mov	w9, #1
	stp	w9, w10, [x19, #32]
	b	LBB0_7
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
                                        ; -- End function
	.comm	_CPL_CH,4,2                     ; @CPL_CH
	.comm	_b1_mantissas,8,3               ; @b1_mantissas
	.comm	_b2_mantissas,8,3               ; @b2_mantissas
	.comm	_b3_mantissas,8,3               ; @b3_mantissas
	.comm	_b4_mantissas,8,3               ; @b4_mantissas
	.comm	_b5_mantissas,8,3               ; @b5_mantissas
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bap %d is invalid in plain AC-3\n"

	.comm	_quantization_tab,8,3           ; @quantization_tab
	.no_dead_strip	_ac3_decode_transform_coeffs_ch
.subsections_via_symbols
