	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	%rcx, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	8(%rcx), %edi
	movl	(%rbx), %eax
	movl	%edi, %ecx
	orl	%eax, %ecx
	jne	LBB0_2
## %bb.1:
	movl	$0, (%rdx)
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_2:
	movq	%rsi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %esi
	subl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %r14d
	movl	(%rbx), %edx
	movl	8(%rbx), %eax
	leal	(%rax,%r14), %ecx
	addl	%edx, %ecx
	cmpl	4(%rbx), %ecx
	jle	LBB0_4
## %bb.3:
	cltq
	movq	40(%rbx), %rdi
	leaq	(%rdi,%rax,4), %rsi
	callq	_memmove
	movl	$0, 8(%rbx)
	xorl	%eax, %eax
LBB0_4:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movslq	(%rbx), %rcx
	movslq	%eax, %rdi
	addq	%rcx, %rdi
	shlq	$2, %rdi
	addq	40(%rbx), %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movl	8(%rbx), %eax
LBB0_6:
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	40(%rbx), %rsi
	movl	(%rbx), %r15d
	addl	%r14d, %r15d
	movl	%r15d, (%rbx)
	cmpl	4(%rbx), %r15d
	jge	LBB0_9
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_24
LBB0_9:
	leaq	48(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movl	12(%rbx), %eax
	cltd
	idivl	(%r12)
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_18
## %bb.11:
	movl	16(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_decode_block
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movl	(%r12), %eax
	imull	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %edi
	movzbl	32(%rbx), %ecx
	sarl	%cl, %edi
	movl	%edi, (%rax,%rsi,4)
	incq	%rsi
	movslq	(%r13), %rcx
	movslq	(%r12), %rdi
	imulq	%rcx, %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_get_bits_count
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	subl	%ecx, %r12d
	movl	%r12d, 16(%rbx)
	movq	%r13, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%r15d, %ecx
	jle	LBB0_20
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.17:
	movl	$0, (%rbx)
	movl	$0, 8(%rbx)
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_24
LBB0_18:
	movl	%eax, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	addl	%ecx, 8(%rbx)
	subl	%ecx, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_24
LBB0_23:
	movl	%ecx, %r14d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x25, x0
	ldr	x20, [x0, #8]
	mov	x22, x20
	ldr	w8, [x22], #48
	ldr	w0, [x3, #8]
	orr	w9, w0, w8
	cbnz	w9, LBB0_2
; %bb.1:
	mov	w19, #0
	str	wzr, [x23]
	b	LBB0_19
LBB0_2:
	mov	x21, x3
	mov	x24, x1
	ldr	w9, [x20, #4]
	sub	w1, w9, w8
	bl	_FFMIN
	mov	x19, x0
	ldp	w9, w8, [x20, #4]
	ldr	w2, [x20]
	add	w10, w8, w0
	add	w10, w10, w2
	cmp	w10, w9
	b.le	LBB0_4
; %bb.3:
	sxtw	x8, w8
	ldr	x0, [x20, #40]
	add	x1, x0, x8, lsl #2
	bl	_memmove
	mov	w8, #0
	str	wzr, [x20, #8]
LBB0_4:
	ldr	x1, [x21]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	x9, [x20, #40]
	ldr	w10, [x20]
	add	w8, w10, w8
	add	x0, x9, w8, sxtw #2
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x20, #8]
LBB0_6:
	ldr	x9, [x20, #40]
	ldp	w10, w11, [x20]
	add	w26, w10, w19
	cmp	w26, w11
	str	w26, [x20]
	b.ge	LBB0_9
; %bb.7:
	ldr	x10, [x21]
	cbz	x10, LBB0_9
; %bb.8:
	str	wzr, [x23]
	b	LBB0_19
LBB0_9:
	add	x1, x9, w8, sxtw #2
	mov	x0, x22
	mov	x2, x26
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_18
; %bb.10:
	ldr	w8, [x20, #12]
	ldr	w9, [x25]
	sdiv	w8, w8, w9
	str	w8, [x24]
	mov	x0, x25
	mov	x1, x24
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_18
; %bb.11:
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_skip_bits
	mov	x0, x20
	bl	_decode_block
	tbnz	w0, #31, LBB0_18
; %bb.12:
	ldr	w8, [x24]
	ldr	w9, [x25]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x8, #0
	ldr	x9, [x24, #8]
	ldr	x9, [x9]
	ldr	x10, [x20, #24]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x10, x11]
	ldr	w13, [x20, #32]
	asr	w12, w12, w13
	str	w12, [x9, x11]
	add	x8, x8, #1
	ldrsw	x11, [x24]
	ldrsw	x12, [x25]
	mul	x11, x12, x11
	cmp	x8, x11
	b.lt	LBB0_14
LBB0_15:
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x22
	bl	_get_bits_count
	mov	x23, x0
	mov	x0, x22
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	and	w8, w8, #0xfffffff8
	sub	w8, w23, w8
	str	w8, [x20, #16]
	mov	x0, x22
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	cmp	w8, w26
	b.le	LBB0_20
; %bb.16:
	ldr	x9, [x21]
	cbz	x9, LBB0_20
; %bb.17:
	str	wzr, [x20]
	str	wzr, [x20, #8]
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_19
LBB0_18:
	mov	x19, x0
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	w9, [x20]
	cbz	w9, LBB0_22
; %bb.21:
	ldr	w10, [x20, #8]
	add	w10, w10, w8
	str	w10, [x20, #8]
	sub	w8, w9, w8
	str	w8, [x20]
	b	LBB0_19
LBB0_22:
	mov	x19, x8
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_frame
.subsections_via_symbols
