	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cinepak_decode_strip
_cinepak_decode_strip:                  ## @cinepak_decode_strip
	.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	(%rsi), %rax
	cmpq	(%rdi), %rax
	jg	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rsi
	cmpq	8(%rdi), %rsi
	jg	LBB0_14
## %bb.2:
	cmpq	%rax, 16(%r15)
	jge	LBB0_14
## %bb.3:
	cmpq	%rsi, 24(%r15)
	jge	LBB0_14
## %bb.4:
	cmpl	$4, %ecx
	jge	LBB0_5
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rdx), %r13
	leaq	32(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	36(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %r12d
	addq	$4, %rdx
	movq	%rdx, %rdi
	callq	_AV_RB24
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$3, %eax
	jle	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	$-4, %eax
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rbx
	subq	%r13, %rbx
	sarq	$2, %rbx
	cmpq	%rdx, %rcx
	cmovbeq	%rax, %rbx
	cmpl	$50, %r12d
	ja	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %eax
	movabsq	$219043332096, %rcx             ## imm = 0x3300000000
	btq	%rax, %rcx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$876173328384, %rcx             ## imm = 0xCC00000000
	btq	%rax, %rcx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jae	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_cinepak_decode_codebook
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	leaq	16(%r13,%rax,4), %r13
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	jbe	LBB0_6
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$1970324836974592, %rcx         ## imm = 0x7000000000000
	btq	%rax, %rcx
	jae	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movq	%r13, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cinepak_decode_vectors         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_cinepak_decode_strip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cinepak_decode_strip
_cinepak_decode_strip:                  ; @cinepak_decode_strip
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x9, [x1, #8]
	ldr	x10, [x0, #8]
	cmp	x9, x10
	b.gt	LBB0_5
; %bb.2:
	ldr	x10, [x19, #16]
	cmp	x10, x8
	b.ge	LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	cmp	w3, #4
	b.ge	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x21, x2, #16
	add	x24, x19, #32
	add	x25, x19, #36
	mov	w26, #1
	mov	x27, #219043332096
	add	x28, x2, w3, sxtw #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x2], #4
	mov	x0, x2
	bl	_AV_RB24
	cmp	w0, #3
	b.le	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w0, #4
	add	x9, x21, w8, uxtw #2
	sub	x10, x28, x21
	asr	x10, x10, #2
	cmp	x9, x28
	csel	x23, x10, x8, hi
	cmp	w22, #50
	b.hi	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x9, x26, x22
	mov	x8, x25
	tst	x9, x27
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	lsl	x9, x26, x22
	mov	x8, x24
	mov	x10, #876173328384
	tst	x9, x10
	b.eq	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_cinepak_decode_codebook
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x8, x23, #32
	add	x2, x21, x8, asr #30
	add	x21, x2, #16
	cmp	x21, x28
	b.ls	LBB0_7
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	x8, x26, x22
	tst	x8, #0x7000000000000
	b.eq	LBB0_12
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_cinepak_decode_vectors
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_cinepak_decode_strip
.subsections_via_symbols
