	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_exponents
_encode_exponents:                      ## @encode_exponents
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movl	64(%rdi), %eax
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	cmpl	%edx, %ecx
	jge	LBB0_1
LBB0_16:
	movq	$0, 32(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r8d, %r8d
	testl	%eax, %eax
	sete	%r8b
	movl	16(%rbx), %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r8), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %r8
	movq	%rdx, %r8
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	_CPL_CH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %r8
	sete	%dl
	testl	%eax, %eax
	jle	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rbx), %rcx
	movq	(%rcx,%r8,8), %r14
	movb	%dl, %sil
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rcx
	movq	48(%rbx), %rdx
	movq	16(%rdx), %rsi
	movslq	(%rcx,%r8,4), %rcx
	shlq	$3, %rcx
	addq	(%rsi,%r8,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movslq	%ecx, %rdi
	leaq	(%rdi,%rdi,2), %rsi
	cmpq	-72(%rbp), %r8                  ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 8(%rdx,%rsi,8)
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rdx,%rsi,8), %rax
	movl	(%rax,%r8,4), %esi
	movq	8(%rbx), %rax
	movq	24(%rbx), %rdx
	subl	(%rax,%r8,4), %esi
	movq	(%rdx,%r8,8), %rdx
	movl	%edi, (%rdx,%rdi,4)
	leal	1(%rdi), %r15d
	cmpl	16(%rbx), %r15d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_EXP_REUSE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	%r15d, %r15
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rsi, (%r14,%r15,8)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	%ecx, (%rdx,%r15,4)
	incq	%r15
	movslq	16(%rbx), %rdi
	cmpq	%rdi, %r15
	jl	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r15d, %r12d
	subl	%ecx, %r12d
	leal	-1(%r12), %esi
	movslq	(%rax,%r8,4), %rax
	shlq	$3, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	subq	%rax, %rdi
	movq	_AC3_MAX_COEFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*40(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%r14,%rax,8), %rdx
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_encode_exponents_blk_ch
	movq	_AC3_MAX_COEFS@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movl	16(%rbx), %eax
	movl	%r15d, %ecx
	cmpl	%eax, %ecx
	jge	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r12d, %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx,8), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %rdx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_AC3_MAX_COEFS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	incl	%ecx
	cmpl	%eax, %ecx
	jl	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_CPL_CH,4,2                     ## @CPL_CH
	.comm	_AC3_MAX_COEFS,4,2              ## @AC3_MAX_COEFS
	.comm	_EXP_REUSE,8,3                  ## @EXP_REUSE
	.no_dead_strip	_encode_exponents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_exponents
_encode_exponents:                      ; @encode_exponents
	.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, x0
	ldr	w9, [x0, #64]
	cmp	w9, #0
	cset	w10, eq
	ldr	w8, [x0]
	cmp	w8, w10
	b.ge	LBB0_2
LBB0_1:
	str	xzr, [x19, #32]
	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
LBB0_2:
	cmp	w9, #0
	cset	w23, eq
	ldr	w9, [x19, #16]
Lloh0:
	adrp	x20, _AC3_MAX_COEFS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AC3_MAX_COEFS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x23, w8, sxtw
	add	x23, x23, #1
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
Lloh2:
	adrp	x10, _CPL_CH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CPL_CH@GOTPAGEOFF]
Lloh4:
	ldr	w28, [x10]
	cmp	x23, x28
	cset	w10, eq
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	ldp	x10, x11, [x19, #48]
	ldr	x24, [x11, x23, lsl #3]
	ldr	x11, [x10, #16]
	ldr	x11, [x11, x23, lsl #3]
	ldr	x12, [x19, #8]
	ldrsw	x12, [x12, x23, lsl #2]
	add	x21, x11, x12, lsl #3
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	sxtw	x27, w8
	cmp	x23, x28
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w11, #24
	madd	x11, x27, x11, x10
	ldr	w11, [x11, #8]
	cbz	w11, LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w9, #24
	mul	x9, x27, x9
	ldr	x9, [x10, x9]
	lsl	x10, x23, #2
	ldr	w11, [x9, x10]
	ldr	x9, [x19, #8]
	ldr	w12, [x9, x10]
	ldr	x10, [x19, #24]
	ldr	x10, [x10, x23, lsl #3]
	sub	w22, w11, w12
	str	w8, [x10, x27, lsl #2]
	add	w25, w8, #1
	ldr	w11, [x19, #16]
	cmp	w25, w11
	b.ge	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
Lloh5:
	adrp	x11, _EXP_REUSE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _EXP_REUSE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x25, w25
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x12, [x24, x25, lsl #3]
	cmp	x12, x11
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	str	w8, [x10, x25, lsl #2]
	add	x25, x25, #1
	ldrsw	x12, [x19, #16]
	cmp	x25, x12
	b.lt	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w26, w25, w8
	sub	w1, w26, #1
	ldr	x8, [x19, #40]
	ldrsw	x9, [x9, x23, lsl #2]
	sub	x0, x21, x9, lsl #3
	ldr	w2, [x20]
	blr	x8
	ldr	x2, [x24, x27, lsl #3]
	mov	x0, x21
	mov	x1, x22
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_encode_exponents_blk_ch
	ldr	w8, [x20]
	mul	w10, w8, w26
	ldr	w9, [x19, #16]
	mov	x8, x25
	cmp	w8, w9
	b.ge	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, w10, sxtw #3
	ldr	x10, [x19, #48]
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
Lloh8:
	adrp	x10, _AC3_MAX_COEFS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AC3_MAX_COEFS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	add	w8, w8, #1
	cmp	w8, w9
	b.lt	LBB0_14
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CPL_CH,4,2                     ; @CPL_CH
	.comm	_AC3_MAX_COEFS,4,2              ; @AC3_MAX_COEFS
	.comm	_EXP_REUSE,8,3                  ; @EXP_REUSE
	.no_dead_strip	_encode_exponents
.subsections_via_symbols
