	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3_quantize_mantissas      ## -- Begin function ff_ac3_quantize_mantissas
	.p2align	4, 0x90
_ff_ac3_quantize_mantissas:             ## @ff_ac3_quantize_mantissas
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	xorl	%r15d, %r15d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	32(%rbx), %rdx
	movl	$0, -56(%rbp)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r15,2), %rax
	shlq	$4, %rax
	xorl	%esi, %esi
	cmpl	$0, 40(%rdx,%rax)
	leaq	(%rdx,%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	sete	%sil
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	leaq	(%rdx,%rax), %r12
	addq	$32, %r12
	movl	$1, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	leal	1(%rcx), %r14d
	movl	4(%rbx), %eax
	cmpl	%eax, %ecx
	jge	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$2, %r14d
	jl	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r12), %rcx
	leal	-1(%r14), %eax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_CPL_CH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-8(%r12), %rax
	movslq	%r14d, %r13
	movl	(%rax,%r13,4), %esi
	movq	32(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdi
	movq	(%rcx,%r13,8), %rcx
	movq	(%rcx,%r15,8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movq	16(%rax,%rcx), %rax
	movl	(%rax,%r13,4), %edx
	movq	24(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%r15,4), %ecx
	movq	-24(%r12), %rax
	movl	(%rax,%r13,4), %r8d
	movl	(%rdi,%r13,4), %r9d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rdi
	callq	_quantize_mantissas_blk_ch
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	_CPL_CH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ecx
	jmp	LBB0_11
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPL_CH,4,2                     ## @CPL_CH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3_quantize_mantissas      ; -- Begin function ff_ac3_quantize_mantissas
	.p2align	2
_ff_ac3_quantize_mantissas:             ; @ff_ac3_quantize_mantissas
	.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
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	w21, #0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x23, _CPL_CH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CPL_CH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x10, [x19, #32]
	str	wzr, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #48
	madd	x24, x20, x8, x10
	ldr	w8, [x24, #40]
	cmp	w8, #0
	cset	w22, eq
	add	x25, x24, #32
	add	x26, x24, #24
	add	x27, x24, #8
	mov	w28, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w28, [x23]
	mov	w22, #1
	mov	x21, x8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x26]
	sbfiz	x9, x28, #2, #32
	ldr	w1, [x8, x9]
	sbfiz	x8, x28, #3, #32
	ldp	x10, x11, [x19, #8]
	ldr	x10, [x10, x8]
	ldr	x10, [x10, x20, lsl #3]
	ldp	x13, x12, [x19, #24]
	mov	w14, #48
	madd	x10, x10, x14, x12
	ldr	x10, [x10, #16]
	ldr	w2, [x10, x9]
	ldr	x8, [x13, x8]
	ldr	w3, [x8, x20, lsl #2]
	ldr	x8, [x27]
	ldr	w4, [x8, x9]
	ldr	w5, [x11, x9]
	ldr	x8, [x24]
	ldr	w6, [x8, x9]
	add	x0, sp, #8
	bl	_quantize_mantissas_blk_ch
	ldr	w8, [x23]
	cmp	w28, w8
	csel	w9, w21, w28, eq
	add	w28, w9, #1
	ldr	w8, [x19, #4]
	cmp	w9, w8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w22, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w28, #2
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x25]
	sub	w8, w28, #1
	ldr	x9, [x9, w8, uxtw #3]
	cbnz	x9, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w22, #0
	b	LBB0_7
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CPL_CH,4,2                     ; @CPL_CH
.subsections_via_symbols
