	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function old_codec1
_old_codec1:                            ## @old_codec1
	.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
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.1:
	movslq	%edx, %rax
	shlq	$2, %rax
	addq	24(%rdi), %rax
	movslq	(%rdi), %rcx
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %r12
	xorl	%eax, %eax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1, %eax
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_bytestream2_tell
	movl	%eax, %ebx
	addl	%r14d, %ebx
	movq	%r12, %rdi
	callq	_bytestream2_tell
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	jge	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	%ebx, %r13d
                                        ## kill: def $r13d killed $r13d killed $r13
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	callq	_bytestream2_tell
	movl	%r13d, %ebx
	cmpl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_20
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1, %eax
	jle	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	callq	_bytestream2_get_byteu
	movl	%eax, %r14d
	sarl	%r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	(%r14,%rbx), %r13d
	incl	%r13d
	cmpl	-68(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%eax, %r15d
	movq	%r12, %rdi
	testb	$1, %r15b
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	callq	_bytestream2_get_bytes_left
	cmpl	%r14d, %eax
	jle	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	testl	%r15d, %r15d
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	testl	%r14d, %r14d
	movl	$0, %eax
	cmovlel	%eax, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movslq	%r13d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	incq	%r14
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=3
	incq	%rbx
	cmpl	%ebx, %r14d
	je	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r12, %rdi
	callq	_bytestream2_get_byteu
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	movl	%eax, (%r15,%rbx,4)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	callq	_bytestream2_get_byteu
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	incl	%r14d
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_memset
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_21:
	movq	$0, 8(%rdi)
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_old_codec1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function old_codec1
_old_codec1:                            ; @old_codec1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w4, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x20, x3
	mov	w25, #0
	ldr	x8, [x19, #24]
	add	x8, x8, w2, sxtw #2
	ldr	w9, [x19]
	mul	w9, w9, w1
	add	x26, x8, w9, sxtw #2
	add	x22, x19, #16
	str	x19, [sp]                       ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	ldrsw	x8, [x19]
	add	x26, x26, x8, lsl #2
	add	w25, w25, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.eq	LBB0_20
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.le	LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_bytestream2_get_le16u
	mov	x23, x0
	mov	x0, x22
	bl	_bytestream2_tell
	add	w27, w0, w23
	mov	x0, x22
	bl	_bytestream2_tell
	cmp	w0, w27
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x19
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_bytestream2_tell
	mov	x19, x28
	cmp	w0, w27
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.le	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_bytestream2_get_byteu
	asr	w21, w0, #1
	add	w23, w21, #1
	add	w28, w23, w19
	cmp	w28, w20
	b.gt	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x24, x0
	tbnz	w0, #0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_bytestream2_get_bytes_left
	cmp	w0, w21
	b.le	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	tbnz	w24, #31, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w21, #0
	csel	w8, w21, wzr, gt
	add	x23, x26, w19, sxtw #2
	add	w24, w8, #1
	mov	x28, x19
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	add	x23, x23, #4
	add	w28, w28, #1
	subs	w24, w24, #1
	b.eq	LBB0_7
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x22
	bl	_bytestream2_get_byteu
	cbz	w0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	str	w0, [x23]
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_bytestream2_get_byteu
	cbz	w0, LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x1, x0
	add	x0, x26, w19, sxtw #2
	mov	x2, x23
	bl	_memset
	b	LBB0_7
LBB0_19:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_20:
	mov	w0, #0
	str	xzr, [x19, #8]
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_old_codec1
.subsections_via_symbols
