	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtp_send_amr                ## -- Begin function ff_rtp_send_amr
	.p2align	4, 0x90
_ff_rtp_send_amr:                       ## @ff_rtp_send_amr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	16(%rdi), %rbx
	movslq	(%rbx), %rax
	leaq	1(%rax), %r13
	movl	24(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rbx), %rsi
	cmpl	%eax, %edx
	jne	LBB0_3
## %bb.2:
	movl	%eax, %edx
	jmp	LBB0_6
LBB0_3:
	movq	8(%rbx), %rax
	subq	%rsi, %rax
	shrq	$2, %rax
	addl	%r12d, %eax
	decl	%eax
	cmpl	28(%rbx), %eax
	jg	LBB0_6
## %bb.4:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	32(%rbx), %rdi
	subq	40(%rbx), %rdi
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_av_compare_ts
	movl	24(%rbx), %edx
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movq	16(%rbx), %rsi
LBB0_6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%r13,4), %rax
	movl	%edx, %ecx
	notl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r13
	cmpq	%rsi, %r13
	je	LBB0_8
## %bb.7:
	incl	%edx
	movq	%r13, %rdi
	callq	_memmove
LBB0_8:
	movq	8(%rbx), %rdx
	subq	%r13, %rdx
	shrq	$2, %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$1, %ecx
	callq	_ff_rtp_send_data
	movl	$0, 24(%rbx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	movq	16(%rbx), %rax
	movl	$240, (%rax)
	movslq	%r13d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	%rdi, 8(%rbx)
	movq	32(%rbx), %rcx
	movq	%rcx, 40(%rbx)
	decl	%r12d
LBB0_12:
	movl	(%r14), %ecx
	andl	$124, %ecx
	movslq	24(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movl	%esi, 24(%rbx)
	movl	%ecx, 4(%rax,%rdx,4)
	addq	$4, %r14
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movslq	%r12d, %rax
	shlq	$2, %rax
	addq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%edx, %edx
	je	LBB0_10
## %bb.11:
	decl	%r12d
	movslq	%edx, %rcx
	movq	16(%rbx), %rax
	orl	$128, (%rax,%rcx,4)
	movq	8(%rbx), %rdi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtp_send_amr                ; -- Begin function ff_rtp_send_amr
	.p2align	2
_ff_rtp_send_amr:                       ; @ff_rtp_send_amr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x23, [x0, #16]
	ldr	w8, [x23]
	add	w24, w8, #1
	ldr	w9, [x23, #24]
	cbz	w9, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x1, [x23, #16]
	cmp	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x23, #8]
	sub	x8, x8, x1
	lsr	x8, x8, #2
	sub	w22, w20, #1
	ldr	w10, [x23, #28]
	add	w8, w22, w8
	cmp	w8, w10
	mov	x8, x9
	b.gt	LBB0_5
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldp	x9, x10, [x23, #32]
	sub	x0, x9, x10
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh0:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_av_compare_ts
	ldr	w8, [x23, #24]
	tbnz	x0, #63, LBB0_10
; %bb.4:
	ldr	x1, [x23, #16]
LBB0_5:
	add	x9, x1, w24, sxtw #2
	mvn	w10, w8
	add	x22, x9, w10, sxtw #2
	cmp	x22, x1
	b.eq	LBB0_7
; %bb.6:
	add	w2, w8, #1
	mov	x0, x22
	bl	_memmove
LBB0_7:
	ldr	x8, [x23, #8]
	sub	x8, x8, x22
	lsr	x2, x8, #2
	mov	x0, x21
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #1
	bl	_ff_rtp_send_data
	str	wzr, [x23, #24]
LBB0_8:
	ldr	x8, [x23, #16]
	mov	w9, #240
	str	w9, [x8]
	add	x0, x8, w24, sxtw #2
	str	x0, [x23, #8]
	ldr	x9, [x23, #32]
	str	x9, [x23, #40]
	sub	w22, w20, #1
LBB0_9:
	ldr	w9, [x19], #4
	and	w9, w9, #0x7c
	ldrsw	x10, [x23, #24]
	add	x10, x10, #1
	str	w10, [x23, #24]
	str	w9, [x8, x10, lsl #2]
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x23, #8]
	add	x8, x8, w22, sxtw #2
	str	x8, [x23, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	cbz	w8, LBB0_8
; %bb.11:
	sxtw	x8, w8
	lsl	x9, x8, #2
	ldp	x0, x8, [x23, #8]
	ldr	w10, [x8, x9]
	orr	w10, w10, #0x80
	str	w10, [x8, x9]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
.subsections_via_symbols
