	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_decode_tf_changes
_celt_decode_tf_changes:                ## @celt_decode_tf_changes
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	sete	%al
	leal	(%rax,%rax), %ebx
	addl	$2, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_opus_rc_tell
                                        ## kill: def $eax killed $eax def $rax
	xorl	%esi, %esi
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	leal	(%rbx,%rax), %ecx
	cmpl	16(%r15), %ecx
	setl	%cl
	jmp	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	movzbl	%cl, %edx
	movslq	20(%r15), %r14
	movl	24(%r15), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_8
## %bb.4:
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r15), %rcx
	movl	%r12d, (%rcx,%r14,4)
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	sete	%bl
	orl	$4, %ebx
	incq	%r14
	movslq	24(%r15), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rdx), %ecx
	addl	%ebx, %ecx
	cmpl	16(%r15), %ecx
	jg	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movq	%rdx, %rbx
	callq	_ff_opus_rc_dec_log
	xorl	%eax, %r12d
	movq	%r13, %rdi
	callq	_opus_rc_tell
	movq	%rbx, %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	orl	%r12d, %esi
	jmp	LBB0_5
LBB0_8:
	testl	%edx, %edx
	je	LBB0_11
## %bb.9:
	movq	_ff_celt_tf_select@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rdx
	movq	(%rax,%rdx,8), %rax
	movslq	(%r15), %rdx
	movq	(%rax,%rdx,8), %rax
	movslq	%esi, %rdx
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	movl	(%rsi,%rdx,4), %esi
	cmpl	(%rax,%rdx,4), %esi
	jne	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_ff_opus_rc_dec_log
	cltq
	movl	24(%r15), %ecx
LBB0_13:
	movslq	20(%r15), %rdx
	cmpl	%ecx, %edx
	jge	LBB0_16
## %bb.14:
	movq	_ff_celt_tf_select@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	8(%r15), %rdi
	movq	32(%r15), %rcx
	movq	(%rsi,%rdi,8), %rsi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rdi
	movq	(%rsi,%rdi,8), %rdi
	movq	(%rdi,%rax,8), %rdi
	movslq	(%rcx,%rdx,4), %rbx
	movl	(%rdi,%rbx,4), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	24(%r15), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_tf_select,8,3          ## @ff_celt_tf_select
	.no_dead_strip	_celt_decode_tf_changes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_decode_tf_changes
_celt_decode_tf_changes:                ; @celt_decode_tf_changes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #2
	mov	w10, #4
	cmp	w8, #0
	csel	w21, w10, w9, eq
	mov	x0, x1
	bl	_opus_rc_tell
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
	add	w9, w21, w0
	cmp	w9, w8
	cset	w22, lt
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldp	w24, w8, [x19, #20]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	cmp	w24, w8
	b.ge	LBB0_8
; %bb.4:
	mov	w23, #0
	mov	w25, #0
	mov	w26, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #32]
	str	w25, [x8, x24, lsl #2]
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w21, w26, eq
	add	x24, x24, #1
	ldrsw	x8, [x19, #24]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w0, w22
	add	w8, w8, w21
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ff_opus_rc_dec_log
	eor	w25, w0, w25
	mov	x0, x20
	bl	_opus_rc_tell
	orr	w23, w25, w23
	b	LBB0_5
LBB0_8:
	mov	w23, #0
LBB0_9:
Lloh0:
	adrp	x21, _ff_celt_tf_select@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ff_celt_tf_select@GOTPAGEOFF]
	cbz	w22, LBB0_11
; %bb.10:
	ldr	x9, [x21]
	ldr	x10, [x19, #8]
	ldr	x9, [x9, x10, lsl #3]
	ldrsw	x10, [x19]
	ldr	x9, [x9, x10, lsl #3]
	sbfiz	x10, x23, #2, #32
	ldp	x11, x9, [x9]
	ldr	w11, [x11, x10]
	ldr	w9, [x9, x10]
	cmp	w11, w9
	b.ne	LBB0_12
LBB0_11:
	mov	x9, #0
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	mov	w1, #1
	bl	_ff_opus_rc_dec_log
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
	ldr	w8, [x19, #24]
LBB0_13:
	ldrsw	x10, [x19, #20]
	cmp	w10, w8
	b.ge	LBB0_16
; %bb.14:
	ldr	x8, [x21]
	ldr	x11, [x19, #8]
	ldr	x8, [x8, x11, lsl #3]
	ldr	x11, [x19, #32]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x19]
	ldr	x12, [x8, x12, lsl #3]
	ldr	x12, [x12, x9, lsl #3]
	lsl	x13, x10, #2
	ldrsw	x14, [x11, x13]
	ldr	w12, [x12, x14, lsl #2]
	str	w12, [x11, x13]
	add	x10, x10, #1
	ldrsw	x12, [x19, #24]
	cmp	x10, x12
	b.lt	LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_tf_select,8,3          ; @ff_celt_tf_select
	.no_dead_strip	_celt_decode_tf_changes
.subsections_via_symbols
