	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_encode_tns_info         ## -- Begin function ff_aac_encode_tns_info
	.p2align	4, 0x90
_ff_aac_encode_tns_info:                ## @ff_aac_encode_tns_info
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	48(%rsi), %rax
	movq	(%rax), %rax
	movq	_EIGHT_SHORT_SEQUENCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_1
## %bb.2:
	movq	_TNS_Q_BITS_IS8@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_TNS_Q_BITS@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$4, %edx
	sete	%sil
	cmpl	$0, 40(%r15)
	je	LBB0_15
## %bb.4:
	cmpl	$0, 56(%r15)
	jle	LBB0_15
## %bb.5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movb	%sil, %dil
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	cmpl	$4, %edx
	sete	%sil
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	sete	%dl
	movl	$2, %eax
	subl	%edx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	%edx, %edx
	movl	$5, %eax
	subl	%edx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	$6, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	addl	$3, %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	56(%r15), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_put_bits
	movq	(%r15), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_put_bits
	movq	(%r15), %rax
	cmpl	$0, (%rax,%rbx,4)
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r12
	movq	(%r15), %rax
	movslq	(%rax,%rbx,4), %rcx
	cmpq	%rcx, %r12
	movq	%rsi, %r14
	jge	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r14, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_put_bits
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_put_bits
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	cmpl	$0, (%rax,%r12,4)
	movq	%r14, %rsi
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r12,4), %edx
	movq	%rsi, %r13
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_put_bits
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx,%r12,8), %rdi
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r12,4), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_compress_coeffs
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_put_bits
	movq	%r13, %rsi
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	%r14d, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r13, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_put_bits
	movq	%r13, %rsi
	incq	%r14
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movslq	(%rax,%r12,4), %rax
	cmpq	%rax, %r14
	jl	LBB0_12
	jmp	LBB0_13
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ## @EIGHT_SHORT_SEQUENCE
	.comm	_TNS_Q_BITS_IS8,4,2             ## @TNS_Q_BITS_IS8
	.comm	_TNS_Q_BITS,4,2                 ## @TNS_Q_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_encode_tns_info         ; -- Begin function ff_aac_encode_tns_info
	.p2align	2
_ff_aac_encode_tns_info:                ; @ff_aac_encode_tns_info
	.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	x8, [x1, #48]
Lloh0:
	adrp	x10, _EIGHT_SHORT_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EIGHT_SHORT_SEQUENCE@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x8, _TNS_Q_BITS_IS8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TNS_Q_BITS_IS8@GOTPAGEOFF]
Lloh5:
	adrp	x11, _TNS_Q_BITS@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TNS_Q_BITS@GOTPAGEOFF]
	cmp	x9, x10
	csel	x8, x8, x11, eq
	ldr	w8, [x8]
	cmp	w8, #4
	cset	w21, eq
	ldr	w11, [x1, #40]
	cbz	w11, LBB0_13
; %bb.1:
	mov	x19, x1
	ldr	w11, [x1, #56]
	cmp	w11, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x20, x0
	mov	x26, #0
	cmp	x9, x10
	cset	w9, eq
	mov	w10, #1
	cinc	w25, w10, ne
	lsl	w9, w9, #1
	mov	w10, #6
	sub	w23, w10, w9
	mov	w10, #5
	sub	w24, w10, w9
	cmp	w8, #4
	mov	w8, #3
	cinc	w8, w8, eq
	stp	w25, w8, [sp, #8]               ; 8-byte Folded Spill
	ldr	x8, [x19]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x9, [x19, #56]
	cmp	x26, x9
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	lsl	x22, x26, #2
	ldr	w2, [x8, x22]
	mov	x0, x20
	mov	x1, x25
	bl	_put_bits
	ldr	x8, [x19]
	ldr	w9, [x8, x22]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_put_bits
	ldr	x8, [x19]
	ldr	w9, [x8, x26, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x28, x28, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8, x26, lsl #2]
	cmp	x28, x9
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x8, [x19, #8]
	lsl	x22, x26, #3
	ldr	x8, [x8, x22]
	lsl	x27, x28, #2
	ldr	w2, [x8, x27]
	mov	x0, x20
	mov	x1, x23
	bl	_put_bits
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22]
	ldr	w2, [x8, x27]
	mov	x0, x20
	mov	x1, x24
	bl	_put_bits
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22]
	ldr	w8, [x8, x27]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22]
	ldr	w2, [x8, x27]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22]
	ldr	x0, [x8, x28, lsl #3]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22]
	ldr	w1, [x8, x27]
	mov	x2, x21
	bl	_compress_coeffs
	mov	x25, x0
	mov	x0, x20
	mov	w1, #1
	mov	x2, x25
	bl	_put_bits
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22]
	ldr	w8, [x8, x27]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x27, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w25, w8, w25
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w2, [x8, x27, lsl #2]
	mov	x0, x20
	mov	x1, x25
	bl	_put_bits
	add	x27, x27, #1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22]
	ldrsw	x8, [x8, x28, lsl #2]
	cmp	x27, x8
	b.lt	LBB0_12
	b	LBB0_8
LBB0_13:
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ; @EIGHT_SHORT_SEQUENCE
	.comm	_TNS_Q_BITS_IS8,4,2             ; @TNS_Q_BITS_IS8
	.comm	_TNS_Q_BITS,4,2                 ; @TNS_Q_BITS
.subsections_via_symbols
