	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_parse_frame_data
_seq_parse_frame_data:                  ## @seq_parse_frame_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SEQ_FRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	48(%rdi), %eax
	addl	(%rcx), %eax
	movq	%rsi, %rbx
	movl	%eax, 48(%rdi)
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_avio_seek
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, 40(%r14)
	movq	_SEQ_AUDIO_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	movl	%ecx, (%r14)
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	movl	$768, %eax                      ## imm = 0x300
	cmovel	%r15d, %eax
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_r8
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r12
	movl	%r12d, -64(%rbp)
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r13
	movl	%r13d, -60(%rbp)
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, %r15
	movl	%r15d, -56(%rbp)
	movq	%rbx, %rdi
	callq	_avio_rl16
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	orq	$2, %rax
	testl	%r13d, %r13d
	movl	$1, %ecx
	cmoveq	%rax, %rcx
	movl	-64(%rbp,%rcx,4), %r8d
	subl	%r12d, %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_seq_fill_buffer
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	movl	-56(%rbp,%rax,4), %r8d
	subl	%r13d, %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_seq_fill_buffer
	testl	%eax, %eax
	jne	LBB0_12
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	subl	%r15d, %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_seq_fill_buffer
	testl	%eax, %eax
	jne	LBB0_12
LBB0_6:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$255, %ecx
	jne	LBB0_7
## %bb.10:
	movq	$0, 16(%r14)
	movl	$0, 8(%r14)
	jmp	LBB0_11
LBB0_7:
	movq	_SEQ_NUM_FRAME_BUFFERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jae	LBB0_8
## %bb.9:
	movq	24(%r14), %rax
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdx
	movq	%rdx, 16(%r14)
	movl	8(%rax,%rcx), %edx
	movl	%edx, 8(%r14)
	movq	$0, (%rax,%rcx)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEQ_FRAME_SIZE,8,3             ## @SEQ_FRAME_SIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEQ_AUDIO_BUFFER_SIZE,4,2      ## @SEQ_AUDIO_BUFFER_SIZE
	.comm	_SEQ_NUM_FRAME_BUFFERS,4,2      ## @SEQ_NUM_FRAME_BUFFERS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_seq_parse_frame_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_parse_frame_data
_seq_parse_frame_data:                  ; @seq_parse_frame_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _SEQ_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEQ_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #48]
	add	w1, w9, w8
	str	w1, [x0, #48]
Lloh6:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_avio_seek
	mov	x0, x20
	bl	_avio_rl16
Lloh9:
	adrp	x8, _SEQ_AUDIO_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEQ_AUDIO_BUFFER_SIZE@GOTPAGEOFF]
	str	x0, [x19, #40]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	str	w8, [x19]
	mov	x0, x20
	bl	_avio_rl16
	str	x0, [x19, #32]
	cmp	x0, #0
	mov	w8, #768
	csel	w8, wzr, w8, eq
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_r8
	mov	x27, x0
	mov	x0, x20
	bl	_avio_r8
	mov	x23, x0
	mov	x0, x20
	bl	_avio_r8
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rl16
	mov	x28, x0
	str	w28, [sp, #8]
	mov	x0, x20
	bl	_avio_rl16
	mov	x25, x0
	str	w25, [sp, #12]
	mov	x0, x20
	bl	_avio_rl16
	mov	x24, x0
	str	w24, [sp, #16]
	mov	x0, x20
	bl	_avio_rl16
	mov	x26, x0
	str	w26, [sp, #20]
	cbz	w28, LBB0_2
; %bb.1:
	cmp	w24, #0
	mov	w8, #2
	cinc	x8, x8, eq
	cmp	w25, #0
	csinc	x8, x8, xzr, eq
	add	x9, sp, #8
	ldr	w8, [x9, x8, lsl #2]
	sub	w4, w8, w28
	mov	x0, x19
	mov	x1, x20
	mov	x2, x27
	mov	x3, x28
	bl	_seq_fill_buffer
	cbnz	w0, LBB0_11
LBB0_2:
	cbz	w25, LBB0_4
; %bb.3:
	cmp	w24, #0
	mov	w8, #8
	mov	w9, #12
	csel	x8, x9, x8, eq
	add	x9, sp, #8
	ldr	w8, [x9, x8]
	sub	w4, w8, w25
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x25
	bl	_seq_fill_buffer
	cbnz	w0, LBB0_11
LBB0_4:
	cbz	w24, LBB0_6
; %bb.5:
	sub	w4, w26, w24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	bl	_seq_fill_buffer
	cbnz	w0, LBB0_11
LBB0_6:
	cmp	w21, #255
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	str	xzr, [x19, #16]
	str	wzr, [x19, #8]
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _SEQ_NUM_FRAME_BUFFERS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEQ_NUM_FRAME_BUFFERS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w8
	b.hs	LBB0_10
; %bb.9:
	mov	w0, #0
	ldr	x8, [x19, #24]
	add	x8, x8, w21, uxtw #4
	ldr	x9, [x8]
	str	x9, [x19, #16]
	ldr	w9, [x8, #8]
	str	w9, [x19, #8]
	str	xzr, [x8]
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_11:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SEQ_FRAME_SIZE,8,3             ; @SEQ_FRAME_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEQ_AUDIO_BUFFER_SIZE,4,2      ; @SEQ_AUDIO_BUFFER_SIZE
	.comm	_SEQ_NUM_FRAME_BUFFERS,4,2      ; @SEQ_NUM_FRAME_BUFFERS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_seq_parse_frame_data
.subsections_via_symbols
