	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp5_parse_header
_vp5_parse_header:                      ## @vp5_parse_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	%rdi, %r14
	leaq	24(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ff_vp56_init_range_decoder
	testl	%eax, %eax
	js	LBB0_21
## %bb.1:
	movq	%rbx, %rdi
	callq	_vp56_rac_get
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	16(%r14), %rax
	movq	_VP56_FRAME_CURRENT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	(%rax,%rdx,8), %rax
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_vp56_rac_get
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_vp56_rac_gets
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_vp56_init_dequant
	movq	16(%r14), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.2:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_vp56_rac_gets
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_vp56_rac_gets
	cmpl	$6, %eax
	jge	LBB0_19
## %bb.3:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_vp56_rac_gets
	movq	%rbx, %rdi
	callq	_vp56_rac_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	je	LBB0_19
	jmp	LBB0_21
LBB0_5:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_vp56_rac_gets
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_vp56_rac_gets
	movl	%eax, %r12d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_vp56_rac_gets
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_vp56_rac_gets
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	cmpl	%r12d, %eax
	jg	LBB0_19
## %bb.10:
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.11:
	cmpl	%r15d, %r13d
	jg	LBB0_19
## %bb.12:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_vp56_rac_gets
	cmpl	$0, (%r14)
	je	LBB0_13
## %bb.14:
	shll	$4, %r12d
	movq	8(%r14), %rdi
	cmpl	(%rdi), %r12d
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %ecx
	shll	$4, %ecx
	xorl	%eax, %eax
	cmpl	4(%rdi), %ecx
	je	LBB0_21
	jmp	LBB0_16
LBB0_7:
	movq	8(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %r12d
	shll	$4, %r15d
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_av_log
LBB0_19:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	8(%r14), %rdi
	shll	$4, %r12d
LBB0_16:
	shll	$4, %r15d
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_21
## %bb.17:
	movq	_VP56_SIZE_CHANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_VP56_FRAME_CURRENT,8,3         ## @VP56_FRAME_CURRENT
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interlacing"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid size %dx%d\n"

	.comm	_VP56_SIZE_CHANGE,4,2           ## @VP56_SIZE_CHANGE
	.no_dead_strip	_vp5_parse_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp5_parse_header
_vp5_parse_header:                      ; @vp5_parse_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_ff_vp56_init_range_decoder
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_vp56_rac_get
	cmp	x0, #0
	cset	w8, eq
	ldr	x9, [x19, #16]
Lloh0:
	adrp	x21, _VP56_FRAME_CURRENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VP56_FRAME_CURRENT@GOTPAGEOFF]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
	str	w8, [x9]
	mov	x0, x20
	bl	_vp56_rac_get
	mov	x0, x20
	mov	w1, #6
	bl	_vp56_rac_gets
	mov	x1, x0
	mov	x0, x19
	bl	_ff_vp56_init_dequant
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #8
	bl	_vp56_rac_gets
	mov	x0, x20
	mov	w1, #5
	bl	_vp56_rac_gets
	cmp	w0, #6
	b.lt	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, wzr, eq
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	w1, #2
	bl	_vp56_rac_gets
	mov	x0, x20
	bl	_vp56_rac_get
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh9:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	mov	w1, #8
	bl	_vp56_rac_gets
	mov	x21, x0
	mov	x0, x20
	mov	w1, #8
	bl	_vp56_rac_gets
	mov	x22, x0
	cbz	w21, LBB0_19
; %bb.10:
	cbz	w22, LBB0_19
; %bb.11:
	mov	x0, x20
	mov	w1, #8
	bl	_vp56_rac_gets
	mov	x23, x0
	mov	x0, x20
	mov	w1, #8
	bl	_vp56_rac_gets
	cbz	w0, LBB0_3
; %bb.12:
	cmp	w0, w22
	b.gt	LBB0_3
; %bb.13:
	cbz	w23, LBB0_3
; %bb.14:
	cmp	w23, w21
	b.gt	LBB0_3
; %bb.15:
	mov	x0, x20
	mov	w1, #2
	bl	_vp56_rac_gets
	ldr	w8, [x19]
	cbz	w8, LBB0_20
; %bb.16:
	lsl	w1, w22, #4
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	cmp	w1, w8
	b.ne	LBB0_21
; %bb.17:
	ldr	w8, [x0, #4]
	cmp	w8, w21, lsl #4
	b.ne	LBB0_21
; %bb.18:
	mov	w0, #0
	b	LBB0_8
LBB0_19:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	lsl	w3, w22, #4
	lsl	w4, w21, #4
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	b	LBB0_3
LBB0_20:
	ldr	x0, [x19, #8]
	lsl	w1, w22, #4
LBB0_21:
	lsl	w2, w21, #4
	bl	_ff_set_dimensions
Lloh16:
	adrp	x8, _VP56_SIZE_CHANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VP56_SIZE_CHANGE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VP56_FRAME_CURRENT,8,3         ; @VP56_FRAME_CURRENT
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interlacing"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid size %dx%d\n"

	.comm	_VP56_SIZE_CHANGE,4,2           ; @VP56_SIZE_CHANGE
	.no_dead_strip	_vp5_parse_header
.subsections_via_symbols
