	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_fill_buffer
_seq_fill_buffer:                       ## @seq_fill_buffer
	.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	_SEQ_NUM_FRAME_BUFFERS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	%r8d, %ebx
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.3:
	movq	8(%rdi), %r13
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %r12
	movslq	%ebx, %rdx
	movq	(%r13,%r12,8), %rax
	addq	%rdx, %rax
	cmpq	8(%r13,%r12,8), %rax
	jg	LBB0_1
## %bb.4:
	movq	%rsi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%r12,8), %r15
	addq	%r13, %r15
	movl	%ecx, %esi
	addq	(%rdi), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_avio_seek
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	addq	16(%r13,%r12,8), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	jne	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEQ_NUM_FRAME_BUFFERS,4,2      ## @SEQ_NUM_FRAME_BUFFERS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_seq_fill_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_fill_buffer
_seq_fill_buffer:                       ; @seq_fill_buffer
	.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
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _SEQ_NUM_FRAME_BUFFERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEQ_NUM_FRAME_BUFFERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.le	LBB0_5
; %bb.1:
	mov	x19, x4
	cmp	w4, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x23, [x0, #8]
	mov	w8, #24
	smaddl	x21, w2, w8, x23
	sxtw	x22, w19
	ldp	x8, x9, [x21]
	add	x8, x8, x22
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.3:
	mov	x20, x1
	sxtw	x24, w2
	ldr	x8, [x0]
	add	x1, x8, w3, uxtw
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_avio_seek
	mov	w8, #24
	madd	x8, x24, x8, x23
	ldr	x8, [x8, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x19
	bl	_avio_read
	cmp	w0, w19
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #0
	ldr	x8, [x21]
	add	x8, x8, x22
	str	x8, [x21]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_6:
	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_7:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SEQ_NUM_FRAME_BUFFERS,4,2      ; @SEQ_NUM_FRAME_BUFFERS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_seq_fill_buffer
.subsections_via_symbols
