	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv30_parse_slice_header
_rv30_parse_slice_header:               ## @rv30_parse_slice_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$1, %eax
	cmovnel	%eax, %r15d
	movl	%r15d, (%r12)
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, 32(%r12)
	movq	%r14, %rdi
	callq	_skip_bits1
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_get_bits
	movq	%rax, 24(%r12)
	movl	(%r13), %edi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%r14, %rdi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	cmpl	%eax, (%r13)
	jge	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	4(%r13), %xmm0                  ## xmm0 = mem[0],zero
	jmp	LBB0_8
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r8d
	leal	(%rax,%rax), %ecx
	addl	$8, %ecx
	cmpl	%ecx, %r8d
	jge	LBB0_6
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	addl	%eax, %eax
	movq	24(%r13), %rcx
	movq	8(%rcx), %rcx
	cltq
	movq	24(%rcx,%rax,4), %xmm0          ## xmm0 = mem[0],zero
	pslld	$2, %xmm0
LBB0_8:
	movd	%xmm0, 4(%r12)
	pextrd	$1, %xmm0, 8(%r12)
	movd	%xmm0, %eax
	pextrd	$1, %xmm0, %esi
	addl	$15, %eax
	sarl	$4, %eax
	addl	$15, %esi
	sarl	$4, %esi
	imull	%eax, %esi
	movq	%r14, %rdi
	callq	_ff_rv34_get_start_offset
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_get_bits
	movq	%rax, 16(%r12)
	movq	%r14, %rdi
	callq	_skip_bits1
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpr too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Insufficient extradata - need at least %d bytes, got %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rv30_parse_slice_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv30_parse_slice_header
_rv30_parse_slice_header:               ; @rv30_parse_slice_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x21, [x0, #24]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #1
	csel	w8, wzr, w0, eq
	str	w8, [x20]
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	str	x0, [x20, #32]
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	mov	w1, #13
	bl	_get_bits
	str	x0, [x20, #24]
	ldr	w0, [x22]
	bl	_av_log2
	add	w1, w0, #1
	mov	x0, x19
	bl	_get_bits
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x22]
	cmp	w8, w0
	b.ge	LBB0_8
; %bb.6:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_7:
	ldur	d0, [x22, #4]
	b	LBB0_11
LBB0_8:
	ldr	w8, [x21]
	lsl	w10, w0, #1
	add	w9, w10, #8
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.9:
Lloh8:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x10]
	stp	x9, x8, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_AVERROR
LBB0_10:
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	add	w9, w10, #6
	sbfiz	x9, x9, #2, #32
	ldr	d0, [x8, x9]
	shl.2s	v0, v0, #2
LBB0_11:
	stur	d0, [x20, #4]
	fmov	w8, s0
	add	w8, w8, #15
	asr	w8, w8, #4
	mov.s	w9, v0[1]
	add	w9, w9, #15
	asr	w9, w9, #4
	mul	w1, w8, w9
	mov	x0, x19
	bl	_ff_rv34_get_start_offset
	mov	x1, x0
	mov	x0, x19
	bl	_get_bits
	str	x0, [x20, #16]
	mov	x0, x19
	bl	_skip_bits1
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpr too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Insufficient extradata - need at least %d bytes, got %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rv30_parse_slice_header
.subsections_via_symbols
