	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp9_raw_reorder_frame_parse
_vp9_raw_reorder_frame_parse:           ## @vp9_raw_reorder_frame_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	40(%rsi), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	shll	$3, %edx
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits
	testl	%eax, %eax
	jne	LBB0_30
## %bb.1:
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_get_bits
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.2:
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_get_bits1
	addl	%eax, %eax
	orl	%ebx, %eax
	movl	%eax, (%r13)
	cmpl	$3, %eax
	jne	LBB0_8
## %bb.3:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_7
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_30
LBB0_8:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %rdi
	movl	$3, %esi
	callq	_get_bits
	movq	%rax, 32(%r13)
	jmp	LBB0_29
LBB0_10:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	%rax, 24(%r13)
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	callq	_get_bits1
	cmpq	$0, 24(%r13)
	je	LBB0_14
## %bb.11:
	movq	%rax, %r15
	xorl	%r12d, %r12d
	cmpq	$0, 16(%r13)
	je	LBB0_16
## %bb.12:
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_13:
	testl	%r12d, %r12d
	jne	LBB0_18
	jmp	LBB0_28
LBB0_14:
	leaq	-44(%rbp), %rdi
	movl	$24, %esi
	callq	_get_bits
	cmpl	$4817730, %eax                  ## imm = 0x498342
	jne	LBB0_24
## %bb.15:
	movl	$255, 8(%r13)
	jmp	LBB0_29
LBB0_16:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
	movq	%rax, %r12
	testl	%r15d, %r15d
	jne	LBB0_13
LBB0_17:
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_skip_bits
	testl	%r12d, %r12d
	je	LBB0_28
LBB0_18:
	leaq	-44(%rbp), %rdi
	movl	$24, %esi
	callq	_get_bits
	cmpl	$4817730, %eax                  ## imm = 0x498342
	jne	LBB0_24
## %bb.19:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_28
## %bb.20:
	cmpl	$1, %eax
	je	LBB0_22
## %bb.21:
	leaq	-44(%rbp), %rdi
	movl	$1, %esi
	callq	_skip_bits
LBB0_22:
	leaq	-44(%rbp), %rdi
	movl	$3, %r14d
	movl	$3, %esi
	callq	_get_bits
	cmpl	$7, %eax
	jne	LBB0_25
## %bb.23:
	movl	(%r13), %eax
	movl	$1, %r14d
	jmp	LBB0_26
LBB0_24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_6
LBB0_25:
	leaq	-44(%rbp), %rdi
	movl	$1, %esi
	callq	_skip_bits
	movl	(%r13), %eax
LBB0_26:
	orl	$2, %eax
	cmpl	$3, %eax
	jne	LBB0_28
## %bb.27:
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	callq	_skip_bits
LBB0_28:
	leaq	-44(%rbp), %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, 8(%r13)
LBB0_29:
	xorl	%eax, %eax
LBB0_30:
	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	"Invalid frame marker: %u.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Profile reserved_zero bit set: unsupported profile or invalid bitstream.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid frame sync code: %06x.\n"

	.no_dead_strip	_vp9_raw_reorder_frame_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp9_raw_reorder_frame_parse
_vp9_raw_reorder_frame_parse:           ; @vp9_raw_reorder_frame_parse
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #40]
	ldp	w8, w1, [x8]
	lsl	w2, w8, #3
	add	x0, sp, #12
	bl	_init_get_bits
	cbnz	w0, LBB0_30
; %bb.1:
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.2:
	add	x0, sp, #12
	bl	_get_bits1
	mov	x21, x0
	add	x0, sp, #12
	bl	_get_bits1
	orr	w8, w21, w0, lsl #1
	str	w8, [x19]
	cmp	w8, #3
	b.ne	LBB0_7
; %bb.3:
	add	x0, sp, #12
	bl	_get_bits1
	cbz	w0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_7:
	add	x0, sp, #12
	bl	_get_bits1
	str	w0, [x19, #4]
	cbz	w0, LBB0_9
; %bb.8:
	add	x0, sp, #12
	mov	w1, #3
	bl	_get_bits
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #32]
	b	LBB0_30
LBB0_9:
	add	x0, sp, #12
	bl	_get_bits1
	str	x0, [x19, #24]
	add	x0, sp, #12
	bl	_get_bits1
	str	x0, [x19, #16]
	add	x0, sp, #12
	bl	_get_bits1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x21, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.11:
	mov	w22, #0
	b	LBB0_15
LBB0_12:
	add	x0, sp, #12
	mov	w1, #24
	bl	_get_bits
	sub	w8, w0, #1176, lsl #12          ; =4816896
	cmp	w8, #834
	b.ne	LBB0_25
; %bb.13:
	mov	w0, #0
	mov	w8, #255
	str	w8, [x19, #8]
	b	LBB0_30
LBB0_14:
	add	x0, sp, #12
	bl	_get_bits1
	mov	x22, x0
LBB0_15:
	cbnz	w21, LBB0_17
; %bb.16:
	add	x0, sp, #12
	mov	w1, #2
	bl	_skip_bits
LBB0_17:
	cbz	w22, LBB0_29
; %bb.18:
	add	x0, sp, #12
	mov	w1, #24
	bl	_get_bits
	sub	w8, w0, #1176, lsl #12          ; =4816896
	cmp	w8, #834
	b.ne	LBB0_25
; %bb.19:
	ldr	w8, [x19]
	cbz	w8, LBB0_29
; %bb.20:
	cmp	w8, #1
	b.eq	LBB0_22
; %bb.21:
	add	x0, sp, #12
	mov	w1, #1
	bl	_skip_bits
LBB0_22:
	add	x0, sp, #12
	mov	w1, #3
	bl	_get_bits
	cmp	w0, #7
	b.ne	LBB0_26
; %bb.23:
	ldr	w8, [x19]
	orr	w8, w8, #0x2
	cmp	w8, #3
	b.ne	LBB0_29
; %bb.24:
	mov	w1, #1
	b	LBB0_28
LBB0_25:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_26:
	add	x0, sp, #12
	mov	w1, #1
	bl	_skip_bits
	ldr	w8, [x19]
	orr	w8, w8, #0x2
	cmp	w8, #3
	b.ne	LBB0_29
; %bb.27:
	mov	w1, #3
LBB0_28:
	add	x0, sp, #12
	bl	_skip_bits
LBB0_29:
	add	x0, sp, #12
	mov	w1, #8
	bl	_get_bits
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
LBB0_30:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame marker: %u.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Profile reserved_zero bit set: unsupported profile or invalid bitstream.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid frame sync code: %06x.\n"

	.no_dead_strip	_vp9_raw_reorder_frame_parse
.subsections_via_symbols
