	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv10_decode_frame
_rv10_decode_frame:                     ## @rv10_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	movq	8(%rdi), %r15
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_ff_dlog
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_8:
	testl	%ecx, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jle	LBB0_23
## %bb.9:
	xorl	%r13d, %r13d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r15d
	movl	%r15d, %r13d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %r15d
	jge	LBB0_23
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_get_slice_offset
	cmpl	%eax, %r12d
	jbe	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	leal	1(%r13), %r15d
	movl	%r12d, %r14d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %r15d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_get_slice_offset
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	subl	%ebx, %r14d
	leal	2(%r13), %edx
	cmpl	%ecx, %edx
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_slice_offset
	movl	%eax, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	subl	%ebx, %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_FFMAX
	addl	%ebx, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_rv10_decode_packet
	testl	%eax, %eax
	js	LBB0_37
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	shll	$3, %r14d
	cmpl	%r14d, %eax
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r13d, %r15d
	jmp	LBB0_22
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_37
LBB0_4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	incl	%ecx
	je	LBB0_6
## %bb.5:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	decl	%edx
	leal	(,%rcx,8), %eax
	subl	%eax, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_6
## %bb.7:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	4(%rdx), %rsi
	addq	$20, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cltq
	leaq	(%rsi,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_23:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 24(%rbx)
	movq	-104(%rbp), %r12                ## 8-byte Reload
	je	LBB0_36
## %bb.24:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_36
## %bb.25:
	leaq	24(%rbx), %r14
	leaq	48(%rbx), %rdi
	callq	_ff_er_frame_end
	movq	%rbx, %rdi
	callq	_ff_mpv_frame_end
	movq	16(%rbx), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.26:
	cmpq	$0, 32(%rbx)
	je	LBB0_28
LBB0_27:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_av_frame_ref
	movq	%r14, %r15
	testl	%eax, %eax
	js	LBB0_37
LBB0_31:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_ff_print_debug_info
	movq	(%r15), %rdx
	movq	_FF_QSCALE_TYPE_MPEG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ff_mpv_export_qp_table
LBB0_32:
	cmpq	$0, 40(%rbx)
	jne	LBB0_34
## %bb.33:
	cmpq	$0, 32(%rbx)
	je	LBB0_35
LBB0_34:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
LBB0_35:
	movq	$0, (%r14)
LBB0_36:
	movl	(%r12), %eax
	jmp	LBB0_37
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_37:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.29:
	movl	(%rax), %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_37
## %bb.30:
	leaq	40(%rbx), %r15
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*****frame %d size=%d\n"

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

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.comm	_FF_QSCALE_TYPE_MPEG1,4,2       ## @FF_QSCALE_TYPE_MPEG1
	.no_dead_strip	_rv10_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv10_decode_frame
_rv10_decode_frame:                     ; @rv10_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x21, x2
	mov	x26, x1
	mov	x23, x0
	ldr	x19, [x3, #8]
	ldr	w24, [x3]
	ldr	x22, [x0, #8]
	ldr	w2, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x24
	bl	_ff_dlog
	cbz	w24, LBB0_14
; %bb.1:
	ldr	w25, [x23]
	cbz	w25, LBB0_15
; %bb.2:
	stp	x26, x22, [sp, #8]              ; 16-byte Folded Spill
	str	x21, [sp]                       ; 8-byte Folded Spill
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x26, #0
	cmp	w25, #1
	b.lt	LBB0_18
LBB0_3:
	mov	w27, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x26
	mov	x2, x27
	bl	_get_slice_offset
	cmp	w24, w0
	b.ls	LBB0_30
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	add	w28, w27, #1
	mov	x0, x24
	cmp	w28, w25
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x26
	mov	x2, x28
	bl	_get_slice_offset
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w22, w0, w20
	add	w2, w27, #2
	mov	x0, x24
	cmp	w2, w25
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_get_slice_offset
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #1
	b.lt	LBB0_30
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w21, w0, w20
	cmp	w21, #1
	b.lt	LBB0_30
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_FFMAX
	add	w8, w0, w20
	cmp	w8, w24
	b.hi	LBB0_30
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x19, w20, uxtw #2
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_rv10_decode_packet
	tbnz	w0, #31, LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, w22, lsl #3
	csel	w8, w28, w27, gt
	add	w27, w8, #1
	cmp	w27, w25
	b.lt	LBB0_4
	b	LBB0_18
LBB0_14:
	mov	w0, #0
	b	LBB0_31
LBB0_15:
	mov	x8, x19
	ldr	w9, [x8], #4
	adds	w25, w9, #1
	b.hs	LBB0_29
; %bb.16:
	sub	w10, w24, #1
	lsl	w9, w25, #3
	subs	w24, w10, w9
	b.le	LBB0_29
; %bb.17:
	stp	x26, x22, [sp, #8]              ; 16-byte Folded Spill
	str	x21, [sp]                       ; 8-byte Folded Spill
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	add	x26, x19, #20
	add	x19, x8, w9, sxtw #2
	cmp	w25, #1
	b.ge	LBB0_3
LBB0_18:
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	mov	x19, x22
	ldr	x8, [x19, #24]!
	cbz	x8, LBB0_28
; %bb.19:
	ldp	x8, x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_28
; %bb.20:
	add	x0, x22, #48
	bl	_ff_er_frame_end
	mov	x0, x22
	bl	_ff_mpv_frame_end
	ldr	x8, [x22, #16]
Lloh2:
	adrp	x9, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_32
LBB0_22:
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x23
	bl	_av_frame_ref
	mov	x20, x19
	tbnz	w0, #31, LBB0_31
LBB0_23:
	ldr	x1, [x20]
	mov	x0, x22
	mov	x2, x23
	bl	_ff_print_debug_info
	ldr	x2, [x20]
Lloh5:
	adrp	x8, _FF_QSCALE_TYPE_MPEG1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FF_QSCALE_TYPE_MPEG1@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_ff_mpv_export_qp_table
LBB0_24:
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_26
; %bb.25:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_27
LBB0_26:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_27:
	str	xzr, [x19]
LBB0_28:
	ldr	w0, [x21]
	b	LBB0_31
LBB0_29:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x3, x25
	bl	_av_log
LBB0_30:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_31:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
	mov	x20, x22
	ldr	x8, [x20, #40]!
	cbz	x8, LBB0_24
; %bb.33:
	ldr	w1, [x8]
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x23
	bl	_av_frame_ref
	tbz	w0, #31, LBB0_23
	b	LBB0_31
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*****frame %d size=%d\n"

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

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_FF_QSCALE_TYPE_MPEG1,4,2       ; @FF_QSCALE_TYPE_MPEG1
	.no_dead_strip	_rv10_decode_frame
.subsections_via_symbols
