	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function old_codec37
_old_codec37:                           ## @old_codec37
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movslq	(%rdi), %r13
	leaq	20(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_bytestream2_skip
	movl	%r14d, %edx
	movl	4(%r12), %ebx
	imull	%r13d, %ebx
	movq	%r13, %rax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	imull	%r13d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	subl	%eax, %ebx
	cmpl	%ebx, %r14d
	jle	LBB0_2
## %bb.1:
	movl	16(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	%ebx, %edx
LBB0_2:
	movq	$0, 48(%r12)
	testb	$1, -96(%rbp)                   ## 1-byte Folded Reload
	movq	%r12, %r13
	jne	LBB0_5
## %bb.3:
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movq	-112(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_7
## %bb.4:
	testl	$-3, %r12d
	je	LBB0_7
	jmp	LBB0_6
LBB0_5:
	movq	-112(%rbp), %r12                ## 8-byte Reload
	testl	$-3, %r12d
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_7
LBB0_6:
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%edx, %r14d
	callq	_rotate_bufs
	movl	%r14d, %edx
LBB0_7:
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$3, %ecx
	jl	LBB0_9
## %bb.8:
	movl	16(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_9:
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	shlq	$2, %rax
	movq	40(%r13), %rdi
	addq	%rax, %rdi
	movslq	%r15d, %rsi
	leaq	(%rdi,%rsi,4), %r14
	leal	-3(%r12), %edi
	cmpl	$2, %edi
	jb	LBB0_16
## %bb.10:
	cmpl	$2, %r12d
	movq	-136(%rbp), %r15                ## 8-byte Reload
	je	LBB0_34
## %bb.11:
	testl	%r12d, %r12d
	jne	LBB0_36
## %bb.12:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	testl	%ebx, %ebx
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	jle	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_bytestream2_get_buffer
	addq	%r13, %r14
	decl	%ebx
	jne	LBB0_14
LBB0_15:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	32(%rbx), %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	imull	4(%rbx), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_memset
	movq	24(%rbx), %rdi
	movl	4(%rbx), %edx
	imull	%r14d, %edx
	jmp	LBB0_66
LBB0_16:
	addq	24(%r13), %rax
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testb	$4, -88(%rbp)                   ## 1-byte Folded Reload
	movq	-136(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_39
## %bb.17:
	testl	%ebx, %ebx
	jle	LBB0_67
## %bb.18:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(%r14,%rcx,4), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	addl	$4, %eax
	xorl	%r12d, %r12d
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_38
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=2
	decl	%r13d
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$4, %r8d
	callq	_copy_block4
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	addl	$4, %ebx
	cmpl	%r12d, %ebx
	jge	LBB0_19
LBB0_24:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r13d, %r13d
	jne	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$255, %eax
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$16, %eax
	jl	LBB0_35
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %rsi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	jmp	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=2
	cmpl	$4, -112(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	testl	%eax, %eax
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %r13d
	incl	%r13d
	addl	$-4, %ebx
	jmp	LBB0_23
LBB0_32:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	_c37_mv@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	-128(%rbp), %eax                ## 4-byte Folded Reload
	leal	(%rax,%rax), %edx
	movslq	%edx, %rdx
	movslq	(%rcx,%rdx,4), %r8
	addl	%eax, %eax
	incl	%eax
	cltq
	movl	(%rcx,%rax,4), %r9d
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	leaq	(%rax,%r8,4), %rax
	movl	%r9d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imull	%ecx, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %rsi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edx
	addl	%ebx, %r8d
	addl	-72(%rbp), %r9d                 ## 4-byte Folded Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_codec37_mv
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_34:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_rle_decode
	testl	%eax, %eax
	je	LBB0_65
LBB0_35:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_36:
	movl	16(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %r12d
LBB0_38:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	testl	%ebx, %ebx
	jle	LBB0_67
## %bb.40:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%r14,%rcx,4), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	addl	$4, %eax
	xorl	%r12d, %r12d
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_38
LBB0_42:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_41
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_46 Depth=2
	decl	%ebx
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$4, %r8d
	callq	_copy_block4
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=2
	addl	$4, %r12d
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_41
LBB0_46:                                ##   Parent Loop BB0_42 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%ebx, %ebx
	jne	LBB0_44
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_35
## %bb.48:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$253, %eax
	je	LBB0_53
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpl	$254, %eax
	je	LBB0_55
## %bb.50:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpl	$255, %eax
	jne	LBB0_58
## %bb.51:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$16, %eax
	jl	LBB0_35
## %bb.52:                              ##   in Loop: Header=BB0_46 Depth=2
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_bytestream2_get_bufferu
	jmp	LBB0_63
LBB0_53:                                ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_35
## %bb.54:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %r13d
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$4, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rdi
	movl	%r13d, %esi
	movl	$4, %edx
	callq	_memset
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rdi
	movl	%r13d, %esi
	movl	$4, %edx
	callq	_memset
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rdi
	movl	%r13d, %esi
	jmp	LBB0_57
LBB0_55:                                ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$4, %eax
	jl	LBB0_35
## %bb.56:                              ##   in Loop: Header=BB0_46 Depth=2
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %r13
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memset
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %r13
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memset
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movq	%rbx, %rdi
	movl	%eax, %esi
LBB0_57:                                ##   in Loop: Header=BB0_46 Depth=2
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_63
LBB0_58:                                ##   in Loop: Header=BB0_46 Depth=2
	cmpl	$4, -112(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_62
## %bb.59:                              ##   in Loop: Header=BB0_46 Depth=2
	testl	%eax, %eax
	jne	LBB0_62
## %bb.60:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_35
## %bb.61:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %ebx
	incl	%ebx
	addl	$-4, %r12d
	jmp	LBB0_45
LBB0_62:                                ##   in Loop: Header=BB0_46 Depth=2
	movq	_c37_mv@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	-120(%rbp), %eax                ## 4-byte Folded Reload
	leal	(%rax,%rax), %edx
	movslq	%edx, %rdx
	movslq	(%rcx,%rdx,4), %rbx
	addl	%eax, %eax
	incl	%eax
	cltq
	movl	(%rcx,%rax,4), %r9d
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	leaq	(%rax,%rbx,4), %rax
	movl	%r9d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imull	%ecx, %edx
	movslq	%edx, %rdx
	leaq	(%rax,%rdx,4), %rsi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edx
	leal	(%rbx,%r12), %r8d
	addl	-88(%rbp), %r9d                 ## 4-byte Folded Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_codec37_mv
	.p2align	4, 0x90
LBB0_63:                                ##   in Loop: Header=BB0_46 Depth=2
	xorl	%ebx, %ebx
	jmp	LBB0_45
LBB0_67:
	xorl	%r12d, %r12d
	jmp	LBB0_38
LBB0_65:
	movq	32(%r13), %rdi
	movl	8(%r13), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_memset
	movq	24(%r13), %rdi
	movl	12(%r13), %edx
LBB0_66:
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoded size is too large.\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid motion base value %d.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_c37_mv,8,3                     ## @c37_mv
L_.str.2:                               ## @.str.2
	.asciz	"Subcodec 37 compression %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_old_codec37
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function old_codec37
_old_codec37:                           ; @old_codec37
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x4
	mov	x22, x3
	mov	x25, x2
	mov	x19, x1
	mov	x27, x0
	ldrsw	x20, [x0]
	add	x23, x0, #20
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	mov	x0, x23
	bl	_bytestream2_get_byte
	mov	x26, x0
	mov	x0, x23
	bl	_bytestream2_get_le16
	mov	x24, x0
	mov	x0, x23
	bl	_bytestream2_get_le32
	mov	x28, x0
	mov	x0, x23
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_byte
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	mov	x0, x23
	mov	w1, #3
	bl	_bytestream2_skip
	mov	x11, x27
	ldr	w8, [x27, #4]
	mul	w19, w20, w19
	add	w9, w19, w25
	neg	w9, w9
	madd	w27, w8, w20, w9
	cmp	w28, w27
	b.le	LBB0_2
; %bb.1:
	mov	x28, x11
	ldr	w0, [x11, #16]
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	x11, x28
	mov	x28, x27
LBB0_2:
	str	xzr, [x11, #48]
	tbnz	w24, #0, LBB0_4
; %bb.3:
	ldr	w27, [sp, #60]                  ; 4-byte Folded Reload
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	tbz	w8, #0, LBB0_5
	b	LBB0_6
LBB0_4:
	ldr	w27, [sp, #60]                  ; 4-byte Folded Reload
LBB0_5:
	orr	w8, w27, #0x2
	cmp	w8, #2
	b.ne	LBB0_10
LBB0_6:
	cmp	w26, #3
	b.lt	LBB0_11
LBB0_7:
	ldr	w0, [x11, #16]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	x26, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_8:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	b	LBB0_43
LBB0_10:
	mov	x24, x11
	mov	x0, x11
	mov	w1, #1
	bl	_rotate_bufs
	mov	x11, x24
	cmp	w26, #3
	b.ge	LBB0_7
LBB0_11:
	ldr	x10, [x11, #40]
	sbfiz	x8, x25, #2, #32
	sbfiz	x9, x19, #2, #32
	add	x10, x10, x8
	add	x25, x10, x9
	sub	w10, w27, #3
	cmp	w10, #2
	b.lo	LBB0_18
; %bb.12:
	cmp	w27, #2
	b.eq	LBB0_36
; %bb.13:
	cbnz	w27, LBB0_39
; %bb.14:
	mov	x24, x11
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.15:
	lsl	x19, x20, #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_bytestream2_get_buffer
	add	x25, x25, x19
	subs	w21, w21, #1
	b.ne	LBB0_16
LBB0_17:
	ldr	x0, [x24, #32]
	ldr	w8, [x24, #4]
	mul	w2, w8, w20
	mov	w1, #0
	bl	_memset
	ldr	x0, [x24, #24]
	ldr	w8, [x24, #4]
	mul	w2, w8, w20
	b	LBB0_38
LBB0_18:
	ldr	x10, [x11, #24]
	add	x8, x10, x8
	add	x27, x8, x9
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	tbnz	w8, #2, LBB0_40
; %bb.19:
	cmp	w21, #1
	b.lt	LBB0_42
; %bb.20:
	mov	w24, #0
	mov	w19, #0
	lsl	w8, w26, #8
	sub	w8, w8, w26
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	lsl	x8, x20, #2
	lsl	x28, x20, #1
	add	x9, x28, x20
	stp	x11, x9, [sp, #40]              ; 16-byte Folded Spill
	lsl	x8, x8, #2
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w0, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	add	x27, x27, x8
	add	w24, w24, #4
	cmp	w24, w21
	b.ge	LBB0_43
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	cmp	w22, #1
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w26, #0
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=2
	sub	w19, w19, #1
	mov	x8, x26
	sbfiz	x8, x8, #2, #32
	add	x0, x25, x8
	add	x1, x27, x8
	mov	x2, x20
	mov	x3, x20
	mov	w4, #4
	bl	_copy_block4
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	w26, w26, #4
	cmp	w26, w22
	b.ge	LBB0_21
LBB0_26:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w19, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_byte
	cmp	w0, #255
	b.ne	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #16
	b.lt	LBB0_8
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=2
	add	x19, x25, w26, sxtw #2
	mov	x0, x23
	mov	x1, x19
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	add	x1, x19, x20, lsl #2
	mov	x0, x23
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	add	x1, x19, x28, lsl #2
	mov	x0, x23
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x1, x19, x8, lsl #2
	mov	x0, x23
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	b	LBB0_35
LBB0_30:                                ;   in Loop: Header=BB0_26 Depth=2
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w8, #4
	b.ne	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=2
	cbnz	w0, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_8
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	add	w19, w0, #1
	sub	w26, w26, #4
	b	LBB0_25
LBB0_34:                                ;   in Loop: Header=BB0_26 Depth=2
Lloh12:
	adrp	x8, _c37_mv@GOTPAGE
Lloh13:
	ldr	x8, [x8, _c37_mv@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	add	w9, w0, w9
	lsl	w10, w9, #1
	ldrsw	x10, [x8, w10, sxtw #2]
	add	x8, x8, w9, sxtw #3
	ldr	w8, [x8, #4]
	sbfiz	x9, x26, #2, #32
	add	x0, x25, x9
	add	x9, x27, x9
	add	x9, x9, x10, lsl #2
	mul	w11, w8, w20
	add	x1, x9, w11, sxtw #2
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w2, [x9, #4]
	add	w4, w10, w26
	add	w5, w8, w24
	mov	x3, x20
	bl	_codec37_mv
LBB0_35:                                ;   in Loop: Header=BB0_26 Depth=2
	mov	w19, #0
	b	LBB0_25
LBB0_36:
	mov	x19, x11
	mov	x0, x11
	mov	x1, x25
	mov	x2, x28
	bl	_rle_decode
	cbnz	w0, LBB0_8
; %bb.37:
	ldr	x0, [x19, #32]
	ldr	w2, [x19, #8]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #24]
	ldr	w2, [x19, #12]
LBB0_38:
	mov	w1, #0
	bl	_memset
	b	LBB0_42
LBB0_39:
	ldr	w0, [x11, #16]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x27
	bl	_avpriv_report_missing_feature
Lloh17:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_9
LBB0_40:
	cmp	w21, #1
	b.lt	LBB0_42
; %bb.41:
	mov	w28, #0
	mov	w19, #0
	lsl	w8, w26, #8
	sub	w8, w8, w26
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	lsl	x8, x20, #2
	lsl	x9, x20, #1
	stp	x11, x9, [sp, #40]              ; 16-byte Folded Spill
	add	x9, x9, x20
	lsl	x8, x8, #2
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	b	LBB0_45
LBB0_42:
	mov	w0, #0
LBB0_43:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	mov	w0, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	add	x27, x27, x8
	add	w28, w28, #4
	cmp	w28, w21
	b.ge	LBB0_43
LBB0_45:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_49 Depth 2
	cmp	w22, #1
	b.lt	LBB0_44
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	mov	w26, #0
	b	LBB0_49
LBB0_47:                                ;   in Loop: Header=BB0_49 Depth=2
	sub	w19, w19, #1
	mov	x8, x26
	sbfiz	x8, x8, #2, #32
	add	x0, x25, x8
	add	x1, x27, x8
	mov	x2, x20
	mov	x3, x20
	mov	w4, #4
	bl	_copy_block4
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=2
	add	w26, w26, #4
	cmp	w26, w22
	b.ge	LBB0_44
LBB0_49:                                ;   Parent Loop BB0_45 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w19, LBB0_47
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_8
; %bb.51:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	cmp	w0, #253
	b.eq	LBB0_56
; %bb.52:                               ;   in Loop: Header=BB0_49 Depth=2
	cmp	w0, #254
	b.eq	LBB0_58
; %bb.53:                               ;   in Loop: Header=BB0_49 Depth=2
	cmp	w0, #255
	b.ne	LBB0_61
; %bb.54:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #16
	b.lt	LBB0_8
; %bb.55:                               ;   in Loop: Header=BB0_49 Depth=2
	add	x19, x25, w26, sxtw #2
	mov	x0, x23
	mov	x1, x19
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	add	x1, x19, x20, lsl #2
	mov	x0, x23
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x1, x19, x8, lsl #2
	mov	x0, x23
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x1, x19, x8, lsl #2
	mov	x0, x23
	mov	w2, #4
	bl	_bytestream2_get_bufferu
	b	LBB0_66
LBB0_56:                                ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_8
; %bb.57:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x19, x0
	add	x24, x25, w26, sxtw #2
	mov	x0, x24
	mov	x1, x19
	mov	w2, #4
	bl	_memset
	add	x0, x24, x20, lsl #2
	mov	x1, x19
	mov	w2, #4
	bl	_memset
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x0, x24, x8, lsl #2
	mov	x1, x19
	mov	w2, #4
	bl	_memset
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x0, x24, x8, lsl #2
	mov	x1, x19
	b	LBB0_60
LBB0_58:                                ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #4
	b.lt	LBB0_8
; %bb.59:                               ;   in Loop: Header=BB0_49 Depth=2
	add	x19, x25, w26, sxtw #2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_memset
	add	x24, x19, x20, lsl #2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x1, x0
	mov	x0, x24
	mov	w2, #4
	bl	_memset
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x24, x19, x8, lsl #2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x1, x0
	mov	x0, x24
	mov	w2, #4
	bl	_memset
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x19, x19, x8, lsl #2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x1, x0
	mov	x0, x19
LBB0_60:                                ;   in Loop: Header=BB0_49 Depth=2
	mov	w2, #4
	bl	_memset
	b	LBB0_66
LBB0_61:                                ;   in Loop: Header=BB0_49 Depth=2
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w8, #4
	b.ne	LBB0_65
; %bb.62:                               ;   in Loop: Header=BB0_49 Depth=2
	cbnz	w0, LBB0_65
; %bb.63:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_8
; %bb.64:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	x0, x23
	bl	_bytestream2_get_byteu
	add	w19, w0, #1
	sub	w26, w26, #4
	b	LBB0_48
LBB0_65:                                ;   in Loop: Header=BB0_49 Depth=2
Lloh19:
	adrp	x8, _c37_mv@GOTPAGE
Lloh20:
	ldr	x8, [x8, _c37_mv@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	add	w9, w0, w9
	lsl	w10, w9, #1
	ldrsw	x10, [x8, w10, sxtw #2]
	add	x8, x8, w9, sxtw #3
	ldr	w8, [x8, #4]
	sbfiz	x9, x26, #2, #32
	add	x0, x25, x9
	add	x9, x27, x9
	add	x9, x9, x10, lsl #2
	mul	w11, w8, w20
	add	x1, x9, w11, sxtw #2
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w2, [x9, #4]
	add	w4, w10, w26
	add	w5, w8, w28
	mov	x3, x20
	bl	_codec37_mv
LBB0_66:                                ;   in Loop: Header=BB0_49 Depth=2
	mov	w19, #0
	b	LBB0_48
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoded size is too large.\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid motion base value %d.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_c37_mv,8,3                     ; @c37_mv
l_.str.2:                               ; @.str.2
	.asciz	"Subcodec 37 compression %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_old_codec37
.subsections_via_symbols
