	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interleave_new_audio_packet
_interleave_new_audio_packet:           ## @interleave_new_audio_packet
	.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
	movl	%ecx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	movq	(%r15), %rax
	movl	8(%r15), %ebx
	imull	(%rax), %ebx
	movl	32(%r15), %edi
	callq	_av_fifo_size
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_FFMIN
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %r12d
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movl	32(%r15), %edi
	callq	_av_fifo_size
	cmpl	%eax, %r12d
	je	LBB0_10
LBB0_3:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	32(%r15), %edi
	movl	20(%r14), %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	movl	(%r14), %edx
	subl	%r12d, %edx
	jle	LBB0_7
## %bb.6:
	movl	20(%r14), %edi
	addl	%r12d, %edi
	xorl	%esi, %esi
	callq	_memset
LBB0_7:
	movl	24(%r15), %eax
	movl	%eax, 12(%r14)
	movl	%eax, 16(%r14)
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	28(%r15), %edx
	callq	_av_rescale_q
	movl	%eax, 8(%r14)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%r14)
	addl	%eax, 24(%r15)
	movq	(%r15), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, (%r15)
	cmpl	$0, 4(%rax)
	jne	LBB0_9
## %bb.8:
	movq	16(%r15), %rax
	movq	%rax, (%r15)
LBB0_9:
	movl	(%r14), %r13d
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_interleave_new_audio_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interleave_new_audio_packet
_interleave_new_audio_packet:           ; @interleave_new_audio_packet
	.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	x23, x3
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x25, [x8, w2, sxtw #3]
	ldr	x24, [x25, #8]
	ldr	x8, [x24]
	ldr	w8, [x8]
	ldr	w9, [x24, #8]
	mul	w22, w9, w8
	ldr	w0, [x24, #32]
	bl	_av_fifo_size
	mov	x1, x22
	bl	_FFMIN
	cbz	w0, LBB0_10
; %bb.1:
	mov	x21, x0
	cbnz	w23, LBB0_4
; %bb.2:
	ldr	w0, [x24, #32]
	bl	_av_fifo_size
	cmp	w21, w0
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w0, [x24, #32]
	ldr	w1, [x19, #20]
	mov	x2, x21
	mov	x3, #0
	bl	_av_fifo_generic_read
	ldr	w8, [x19]
	subs	w2, w8, w21
	b.le	LBB0_7
; %bb.6:
	ldr	w8, [x19, #20]
	add	w0, w8, w21
	mov	w1, #0
	bl	_memset
LBB0_7:
	ldp	w8, w2, [x24, #24]
	stp	w8, w8, [x19, #12]
	ldr	x8, [x24]
	ldr	w0, [x8]
	ldr	w1, [x25]
	bl	_av_rescale_q
	stp	w20, w0, [x19, #4]
	ldr	w8, [x24, #24]
	add	w8, w8, w0
	str	w8, [x24, #24]
	ldr	x8, [x24]
	ldr	w9, [x8, #4]!
	str	x8, [x24]
	cbnz	w9, LBB0_9
; %bb.8:
	ldr	x8, [x24, #16]
	str	x8, [x24]
LBB0_9:
	ldr	w0, [x19]
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_interleave_new_audio_packet
.subsections_via_symbols
