	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv34_parse
_rv34_parse:                            ## @rv34_parse
	.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
	movl	%r9d, %ebx
	movq	%r8, %r15
	movq	%rsi, %r14
	movslq	(%r8), %rax
	shlq	$3, %rax
	leal	13(%rax), %esi
	cmpl	%r9d, %esi
	jg	LBB0_7
## %bb.1:
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	leaq	(%r15,%rax,4), %rdi
	addq	$36, %rdi
	callq	_AV_RB32
	movq	(%r14), %rcx
	movq	_AV_CODEC_ID_RV30@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	sarl	$7, %edi
	movl	%eax, %edx
	shrl	$6, %edx
	cmpq	(%rsi), %rcx
	setne	%cl
	cmovel	%edi, %edx
	addb	%cl, %cl
	addb	$27, %cl
	shrl	%cl, %eax
	andl	$3, %eax
	cmpl	$3, %eax
	jne	LBB0_2
## %bb.5:
	movq	(%r12), %rcx
	movl	8(%r12), %esi
	subl	%edx, %esi
	andl	$8191, %esi                     ## imm = 0x1FFF
	subq	%rsi, %rcx
	movq	%rcx, (%r13)
	jmp	LBB0_6
LBB0_2:
	movq	(%r13), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
## %bb.4:
	subl	8(%r12), %edx
	andl	$8191, %edx                     ## imm = 0x1FFF
	addq	(%r12), %rdx
	movq	%rdx, (%r13)
	jmp	LBB0_6
LBB0_3:
	andl	$8191, %edx                     ## imm = 0x1FFF
	movq	%rcx, (%r12)
	movl	%edx, 8(%r12)
LBB0_6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_rv_to_av_frame_type@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%eax, %eax
	movl	(%rsi,%rax,4), %eax
	movl	%eax, 8(%r13)
LBB0_7:
	movq	%r15, (%rdx)
	movl	%ebx, (%rcx)
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_RV30,8,3           ## @AV_CODEC_ID_RV30
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_rv_to_av_frame_type,8,3        ## @rv_to_av_frame_type
	.no_dead_strip	_rv34_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv34_parse
_rv34_parse:                            ; @rv34_parse
	.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	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	ldrsw	x8, [x4]
	lsl	x8, x8, #3
	add	w9, w8, #13
	cmp	w9, w5
	b.gt	LBB0_8
; %bb.1:
	mov	x24, x1
	mov	x23, x0
	ldr	x25, [x0, #16]
	add	x8, x21, x8, lsl #2
	add	x0, x8, #36
	bl	_AV_RB32
Lloh0:
	adrp	x8, _AV_CODEC_ID_RV30@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_RV30@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh2:
	ldr	x8, [x8]
	asr	w10, w0, #7
	lsr	w11, w0, #6
	cmp	x9, x8
	mov	w8, #29
	mov	w9, #27
	csel	w8, w9, w8, eq
	lsr	w8, w0, w8
	csel	w9, w10, w11, eq
	and	w8, w8, #0x3
	cmp	w8, #3
	b.ne	LBB0_3
; %bb.2:
	ldr	x10, [x25]
	ldr	w11, [x25, #8]
	sub	w9, w11, w9
	and	w9, w9, #0x1fff
	sub	x9, x10, x9
	b	LBB0_5
LBB0_3:
	ldr	x10, [x23]
Lloh3:
	adrp	x11, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.4:
	ldr	x10, [x25]
	ldr	w11, [x25, #8]
	sub	w9, w9, w11
	and	w9, w9, #0x1fff
	add	x9, x10, x9
LBB0_5:
	str	x9, [x23]
	b	LBB0_7
LBB0_6:
	and	w9, w9, #0x1fff
	str	x10, [x25]
	str	w9, [x25, #8]
LBB0_7:
Lloh6:
	adrp	x9, _rv_to_av_frame_type@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rv_to_av_frame_type@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [x23, #8]
LBB0_8:
	str	x21, [x22]
	str	w19, [x20]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_RV30,8,3           ; @AV_CODEC_ID_RV30
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_rv_to_av_frame_type,8,3        ; @rv_to_av_frame_type
	.no_dead_strip	_rv34_parse
.subsections_via_symbols
