	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seqvideo_decode
_seqvideo_decode:                       ## @seqvideo_decode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	1(%rsi), %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movzbl	(%rsi), %ecx
	testb	$1, %cl
	je	LBB0_5
## %bb.1:
	cmpl	$769, %edx                      ## imm = 0x301
	jl	LBB0_17
## %bb.2:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r14
	xorl	%ebx, %ebx
	leaq	-43(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12), %eax
	leal	(,%rax,4), %ecx
	shrb	$4, %al
	orb	%cl, %al
	movb	%al, -43(%rbp)
	movzbl	1(%r12), %eax
	leal	(,%rax,4), %ecx
	shrb	$4, %al
	orb	%cl, %al
	movb	%al, -42(%rbp)
	movzbl	2(%r12), %eax
	leal	(,%rax,4), %ecx
	shrb	$4, %al
	orb	%cl, %al
	movb	%al, -41(%rbp)
	addq	$3, %r12
	movq	%r13, %rdi
	callq	_AV_RB24
	orl	$-16777216, %eax                ## imm = 0xFF000000
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movl	$1, 8(%rax)
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
LBB0_5:
	xorl	%eax, %eax
	testb	$2, %cl
	je	LBB0_19
## %bb.6:
	movslq	%edx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	subq	%r12, %rax
	cmpq	$127, %rax
	jg	LBB0_7
LBB0_17:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-68(%rbp), %rdi
	movq	%r12, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_init_get_bits
	subq	$-128, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	8(%r13), %ecx
	xorl	%eax, %eax
	cmpl	$120, %r13d
	movl	%ecx, %r13d
	jae	LBB0_19
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	$-8, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_seq_decode_op3
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	addl	$8, %r14d
	cmpl	$247, %r14d
	ja	LBB0_18
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movl	(%rax), %eax
	imull	%r13d, %eax
	addl	%r14d, %eax
	addl	$8, %eax
	movslq	%eax, %rbx
	addq	(%rcx), %rbx
	leaq	-68(%rbp), %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$3, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$2, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_seq_decode_op1
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_seq_decode_op2
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_seqvideo_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seqvideo_decode
_seqvideo_decode:                       ; @seqvideo_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x21, x1
	ldrb	w23, [x21], #1
	tbz	w23, #0, LBB0_5
; %bb.1:
	cmp	w20, #769
	b.lt	LBB0_8
; %bb.2:
	mov	x24, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x25, [x8, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	lsl	w9, w8, #2
	orr	w8, w9, w8, lsr #4
	strb	w8, [sp, #9]
	ldrb	w8, [x21, #1]
	lsl	w9, w8, #2
	orr	w8, w9, w8, lsr #4
	strb	w8, [sp, #10]
	ldrb	w8, [x21, #2]
	lsl	w9, w8, #2
	orr	w8, w9, w8, lsr #4
	strb	w8, [sp, #11]
	add	x21, x21, #3
	add	x0, sp, #9
	bl	_AV_RB24
	orr	w8, w0, #0xff000000
	str	w8, [x25, x24]
	add	x24, x24, #4
	cmp	x24, #1024
	b.ne	LBB0_3
; %bb.4:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, #8]
LBB0_5:
	tbnz	w23, #1, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	add	x20, x22, w20, sxtw
	sub	x8, x20, x21
	cmp	x8, #127
	b.gt	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	add	x0, sp, #12
	mov	x1, x21
	mov	w2, #1024
	bl	_init_get_bits
	mov	w23, #0
	add	x21, x21, #128
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #0
	add	w8, w23, #8
	cmp	w23, #120
	mov	x23, x8
	b.hs	LBB0_9
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mov	w24, #-8
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_seq_decode_op3
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x21, x0
	cbz	x0, LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w24, w24, #8
	cmp	w24, #247
	b.hi	LBB0_11
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	madd	w8, w23, w8, w24
	add	w8, w8, #8
	add	x22, x9, w8, sxtw
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #3
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w0, #2
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_seq_decode_op1
	b	LBB0_14
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_seq_decode_op2
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_seqvideo_decode
.subsections_via_symbols
