	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_transform_coeffs_ch
_decode_transform_coeffs_ch:            ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	40(%rdi), %rax
	movslq	%edx, %r12
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	jne	LBB0_4
## %bb.2:
	movq	_CONFIG_EAC3_DECODER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_ff_eac3_decode_transform_coeffs_aht_ch
LBB0_4:
	movq	(%r15), %rax
	movq	8(%r15), %r8
	movslq	(%rax,%r12,4), %rdx
	cmpl	(%r8,%r12,4), %edx
	jge	LBB0_7
## %bb.5:
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rcx,%r12,8), %r9
	movslq	%r14d, %rdi
	movq	32(%r15), %rcx
	movq	(%rcx,%r12,8), %rbx
	movq	(%rax,%r12,8), %rax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx,8), %rcx
	movl	(%rcx,%rdi,4), %esi
	movzbl	(%rbx,%rdx,4), %ecx
	sarl	%cl, %esi
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%r8,%r12,4), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movl	%edx, %esi
	movq	%rcx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ac3_decode_transform_coeffs_ch ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_EAC3_DECODER,8,3        ## @CONFIG_EAC3_DECODER
	.no_dead_strip	_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 decode_transform_coeffs_ch
_decode_transform_coeffs_ch:            ; @decode_transform_coeffs_ch
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w8, [x8, w2, sxtw #2]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x1
	sxtw	x21, w2
	cbnz	w1, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _CONFIG_EAC3_DECODER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_EAC3_DECODER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x2
	bl	_ff_eac3_decode_transform_coeffs_aht_ch
LBB0_4:
	lsl	x10, x21, #2
	ldp	x9, x8, [x19]
	ldrsw	x9, [x9, x10]
	ldr	w10, [x8, x10]
	cmp	w9, w10
	b.ge	LBB0_7
; %bb.5:
	lsl	x13, x21, #3
	ldp	x14, x10, [x19, #16]
	ldr	x10, [x10, x13]
	sxtw	x11, w20
	ldr	x12, [x19, #32]
	ldr	x12, [x12, x13]
	ldr	x13, [x14, x13]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x10, x9, lsl #3]
	ldr	w14, [x14, x11, lsl #2]
	lsl	x15, x9, #2
	ldr	w16, [x12, x15]
	asr	w14, w14, w16
	str	w14, [x13, x15]
	add	x9, x9, #1
	ldrsw	x14, [x8, x21, lsl #2]
	cmp	x9, x14
	b.lt	LBB0_6
LBB0_7:
	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_8:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	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
	b	_ac3_decode_transform_coeffs_ch
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_EAC3_DECODER,8,3        ; @CONFIG_EAC3_DECODER
	.no_dead_strip	_decode_transform_coeffs_ch
.subsections_via_symbols
