	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_audio_fifo_peek_at          ## -- Begin function av_audio_fifo_peek_at
	.p2align	4, 0x90
_av_audio_fifo_peek_at:                 ## @av_audio_fifo_peek_at
	.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
	testl	%ecx, %ecx
	js	LBB0_13
## %bb.1:
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %esi
	cmpl	%ecx, %esi
	jle	LBB0_13
## %bb.2:
	testl	%edx, %edx
	js	LBB0_13
## %bb.3:
	movl	%edx, %edi
	callq	_FFMIN
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %ecx
	subl	%eax, %ecx
	cmpl	%ebx, %ecx
	jge	LBB0_6
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	cmpl	$0, 8(%r15)
	jle	LBB0_12
## %bb.7:
	movl	4(%r15), %ecx
	imull	%ecx, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	imull	%ecx, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r12,4), %edi
	movq	(%r14,%r12,8), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_av_fifo_generic_peek_at
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	8(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_8
## %bb.10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_11:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_audio_fifo_peek_at          ; -- Begin function av_audio_fifo_peek_at
	.p2align	2
_av_audio_fifo_peek_at:                 ; @av_audio_fifo_peek_at
	.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
	tbnz	w3, #31, LBB0_5
; %bb.1:
	mov	x22, x3
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
	cmp	w1, w3
	b.le	LBB0_5
; %bb.2:
	tbnz	w2, #31, LBB0_5
; %bb.3:
	mov	x0, x2
	bl	_FFMIN
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.4:
	ldr	w8, [x20]
	sub	w8, w8, w21
	cmp	w8, w22
	b.ge	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_6:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x24, #0
	ldr	w8, [x20, #4]
	mul	w22, w8, w22
	mul	w23, w8, w21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x24, lsl #2]
	ldr	x1, [x19, x24, lsl #3]
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	bl	_av_fifo_generic_peek_at
	tbnz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20, #8]
	cmp	x24, x8
	b.lt	LBB0_8
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
.subsections_via_symbols
