	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_read_packet
_seq_read_packet:                       ## @seq_read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_12:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.13:
	addq	16(%rbx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	movl	48(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movl	44(%rbx), %eax
	movl	%eax, 8(%r14)
	incl	40(%rbx)
	movl	$0, (%rbx)
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_seq_parse_frame_data
	testl	%eax, %eax
	je	LBB0_2
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movslq	4(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%rcx, %rdx
	addq	%rax, %rdx
	je	LBB0_12
## %bb.3:
	leaq	(%rax,%rcx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	(%r14), %rax
	movl	$0, (%rax)
	cmpl	$0, 4(%rbx)
	je	LBB0_9
## %bb.7:
	movl	$1, (%rax)
	movq	24(%rbx), %rsi
	addq	16(%rbx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_avio_seek
	movq	(%r14), %rsi
	addq	$4, %rsi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_avio_read
	cmpl	4(%rbx), %eax
	jne	LBB0_8
LBB0_9:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	orl	$2, (%rax)
	movslq	4(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$4, %rdi
	movl	56(%rbx), %esi
	callq	_memcpy
LBB0_11:
	movl	52(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	40(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	$1, (%rbx)
	jmp	LBB0_15
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_seq_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_read_packet
_seq_read_packet:                       ; @seq_read_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	ldp	x21, x19, [x0]
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_14
; %bb.2:
	ldr	x9, [x19, #16]
	add	x1, x9, x8
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	ldr	w2, [x19, #48]
	mov	x0, x21
	mov	x1, x20
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	w0, #0
	ldp	w9, w8, [x19, #40]
	str	w8, [x20, #8]
	add	w8, w9, #1
	str	w8, [x19, #40]
	str	wzr, [x19]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_seq_parse_frame_data
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldrsw	x8, [x19, #4]
	ldr	x9, [x19, #8]
	cmn	x9, x8
	b.eq	LBB0_1
; %bb.7:
	add	x8, x8, x9
	add	x1, x8, #1
	mov	x0, x20
	bl	_av_new_packet
	cbz	x0, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
	ldr	x8, [x20]
	str	wzr, [x8]
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_11
; %bb.10:
	mov	w9, #1
	str	w9, [x8]
	ldp	x8, x9, [x19, #16]
	add	x1, x9, x8
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	ldr	x8, [x20]
	add	x1, x8, #4
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_avio_read
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ne	LBB0_14
LBB0_11:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_13
; %bb.12:
	ldr	x8, [x20]
	ldr	w9, [x8]
	orr	w9, w9, #0x2
	str	w9, [x8]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #4
	ldr	w1, [x19, #56]
	bl	_memcpy
LBB0_13:
	mov	w0, #0
	ldr	w8, [x19, #52]
	ldr	w9, [x19, #40]
	stp	w8, w9, [x20, #8]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_14:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_seq_read_packet
.subsections_via_symbols
