	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv10_decode_picture_header
_rv10_decode_picture_header:            ## @rv10_decode_picture_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	48(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movl	64(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_5:
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	movl	64(%r15), %edi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ff_dlog
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movl	64(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_7:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%r15), %rax
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	cmpl	$3, 16(%r15)
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	56(%r15), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	56(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	56(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	64(%r15), %edi
	movq	56(%r15), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	movq	16(%rax), %r8
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_ff_dlog
LBB0_12:
	movl	28(%r15), %ebx
	imull	24(%r15), %ebx
	addl	20(%r15), %ebx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_show_bits
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.14:
	cmpl	32(%r15), %ebx
	jge	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, 20(%r15)
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_bits
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
	movq	%rax, %rbx
	jmp	LBB0_17
LBB0_8:
	movl	64(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_16:
	movq	$0, 20(%r15)
	movl	36(%r15), %ebx
	imull	28(%r15), %ebx
LBB0_17:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_skip_bits
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 40(%r15)
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marker missing\n"

L_.str.1:                               ## @.str.1
	.asciz	"pict_type=%d pb_frame=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"PB-frame"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.3:                               ## @.str.3
	.asciz	"Invalid qscale value: 0\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.4:                               ## @.str.4
	.asciz	"DC:%d %d %d\n"

	.no_dead_strip	_rv10_decode_picture_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv10_decode_picture_header
_rv10_decode_picture_header:            ; @rv10_decode_picture_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, x0
	add	x20, x0, #48
	mov	x0, x20
	bl	_get_bits1
	mov	x21, x0
	mov	x0, x20
	bl	_get_bits1
Lloh0:
	adrp	x22, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x22, x8, eq
	ldr	x8, [x8]
	str	x8, [x19]
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	w0, [x19, #64]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_2:
	mov	x0, x20
	bl	_get_bits1
	mov	x21, x0
	ldr	w0, [x19, #64]
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_ff_dlog
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w0, [x19, #64]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_avpriv_request_sample
Lloh13:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_4:
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #16]
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x19, #56]
	str	x0, [x8]
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x19, #56]
	str	x0, [x8, #8]
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x19, #56]
	str	x0, [x8, #16]
	ldr	w0, [x19, #64]
	ldr	x8, [x19, #56]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	ldr	x8, [x8, #16]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ff_dlog
LBB0_8:
	ldp	w21, w22, [x19, #20]
	ldr	w23, [x19, #28]
	mov	x0, x20
	mov	w1, #12
	bl	_show_bits
	cbz	x0, LBB0_11
; %bb.9:
	madd	w8, w23, w22, w21
	cbz	w8, LBB0_13
; %bb.10:
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.ge	LBB0_13
LBB0_11:
	mov	x0, x20
	mov	w1, #6
	bl	_get_bits
	str	w0, [x19, #20]
	mov	x0, x20
	mov	w1, #6
	bl	_get_bits
	str	w0, [x19, #24]
	mov	x0, x20
	mov	w1, #12
	bl	_get_bits
	mov	x21, x0
	b	LBB0_14
LBB0_12:
	ldr	w0, [x19, #64]
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
Lloh23:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_13:
	stp	wzr, wzr, [x19, #20]
	ldr	w8, [x19, #28]
	ldr	w9, [x19, #36]
	mul	w21, w9, w8
LBB0_14:
	mov	x0, x20
	mov	w1, #3
	bl	_skip_bits
	movi.2s	v0, #1
	str	d0, [x19, #40]
LBB0_15:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marker missing\n"

l_.str.1:                               ; @.str.1
	.asciz	"pict_type=%d pb_frame=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"PB-frame"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.3:                               ; @.str.3
	.asciz	"Invalid qscale value: 0\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.4:                               ; @.str.4
	.asciz	"DC:%d %d %d\n"

	.no_dead_strip	_rv10_decode_picture_header
.subsections_via_symbols
