	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g722_encode_frame
_g722_encode_frame:                     ## @g722_encode_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	incl	%edx
	sarl	%edx
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movslq	(%r14), %r15
	movq	%r15, %r13
	andq	$-2, %r13
	movl	4(%r12), %esi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdx
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_g722_encode_trellis
	cmpl	(%r14), %r13d
	jge	LBB0_6
LBB0_5:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r13,4), %eax
	movl	%eax, -56(%rbp)
	movl	(%rcx,%r13,4), %eax
	movl	%eax, -52(%rbp)
	sarl	%r15d
	movslq	%r15d, %rsi
	shlq	$2, %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_encode_byte
LBB0_6:
	movq	8(%r14), %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.7:
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_ff_samples_to_time_base
	subq	%rax, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
LBB0_8:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%r13d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_g722_encode_no_trellis
	cmpl	(%r14), %r13d
	jl	LBB0_5
	jmp	LBB0_6
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_g722_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g722_encode_frame
_g722_encode_frame:                     ; @g722_encode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x23, [x0, #8]
	ldr	x8, [x2, #16]
	ldr	x24, [x8]
	ldr	w8, [x2]
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w2, w8, #1
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w26, [x22]
	and	w25, w26, #0xfffffffe
	ldr	w1, [x21, #4]
	ldr	x2, [x20, #8]
	mov	x0, x23
	cbz	w1, LBB0_3
; %bb.2:
	mov	x3, x25
	mov	x4, x24
	bl	_g722_encode_trellis
	b	LBB0_4
LBB0_3:
	mov	x1, x2
	mov	x2, x25
	mov	x3, x24
	bl	_g722_encode_no_trellis
LBB0_4:
	ldr	w8, [x22]
	cmp	w25, w8
	b.ge	LBB0_6
; %bb.5:
	sbfiz	x8, x25, #2, #32
	ldr	w9, [x24, x8]
	str	w9, [sp]
	ldr	w8, [x24, x8]
	str	w8, [sp, #4]
	ldr	x8, [x20, #8]
	asr	w9, w26, #1
	add	x1, x8, w9, sxtw #2
	mov	x2, sp
	mov	x0, x23
	bl	_encode_byte
LBB0_6:
	ldr	x22, [x22, #8]
Lloh3:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x21
	bl	_ff_samples_to_time_base
	sub	x8, x22, x0
	str	x8, [x20]
LBB0_8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_g722_encode_frame
.subsections_via_symbols
