	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv40_parse_slice_header
_rv40_parse_slice_header:               ## @rv40_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	movl	%r13d, -48(%rbp)
	movl	4(%rdi), %r14d
	movl	%r14d, -44(%rbp)
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$1, %eax
	movl	$0, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%r15)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, 40(%r15)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, 32(%r15)
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_get_bits
	movq	%rax, 24(%r15)
	cmpl	$0, (%r15)
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rv40_parse_picture_size
	movl	-48(%rbp), %r12d
	movl	-44(%rbp), %r13d
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_av_image_check_size
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	-48(%rbp), %eax
	movl	%eax, 4(%r15)
	movl	-44(%rbp), %esi
	movl	%esi, 8(%r15)
	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(%r15)
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_rv40_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 rv40_parse_slice_header
_rv40_parse_slice_header:               ; @rv40_parse_slice_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w22, w23, [x0]
	stp	w23, w22, [sp, #8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x20
	bl	_get_bits1
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #1
	csel	w8, wzr, w0, eq
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	str	x0, [x19, #40]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	str	x0, [x19, #32]
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	mov	w1, #13
	bl	_get_bits
	str	x0, [x19, #24]
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_get_bits1
	cbnz	x0, LBB0_7
LBB0_6:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_rv40_parse_picture_size
	ldp	w23, w22, [sp, #8]
LBB0_7:
	ldr	w3, [x21, #8]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_av_image_check_size
	tbnz	w0, #31, LBB0_3
; %bb.8:
	ldp	w9, w8, [sp, #8]
	stp	w8, w9, [x19, #4]
	add	w8, w8, #15
	asr	w8, w8, #4
	add	w9, w9, #15
	asr	w9, w9, #4
	mul	w1, w9, w8
	mov	x0, x20
	bl	_ff_rv34_get_start_offset
	mov	x1, x0
	mov	x0, x20
	bl	_get_bits
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_rv40_parse_slice_header
.subsections_via_symbols
