	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wmv2_decode_picture_header  ## -- Begin function ff_wmv2_decode_picture_header
	.p2align	4, 0x90
_ff_wmv2_decode_picture_header:         ## @ff_wmv2_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, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_decode_ext_header
LBB0_2:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_get_bits1
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_get_bits
	movl	36(%rbx), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
LBB0_4:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, 20(%rbx)
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_show_bits
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	32(%rbx), %eax
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	_SKIP_TYPE_COL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setne	%dl
	movl	24(%rbx,%rdx,4), %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	movl	$25, %esi
	callq	_FFMIN
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_get_bits
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	incl	%eax
	subl	%r15d, %ebx
	cmpl	%edx, %eax
	je	LBB0_9
	jmp	LBB0_11
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_12:
	je	LBB0_13
LBB0_11:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_FRAME_SKIPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I7:%X/\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SKIP_TYPE_COL,4,2              ## @SKIP_TYPE_COL
	.comm	_FRAME_SKIPPED,4,2              ## @FRAME_SKIPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wmv2_decode_picture_header  ; -- Begin function ff_wmv2_decode_picture_header
	.p2align	2
_ff_wmv2_decode_picture_header:         ; @ff_wmv2_decode_picture_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	x19, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_decode_ext_header
LBB0_2:
	add	x20, x19, #32
	mov	x0, x20
	bl	_get_bits1
	add	x8, x0, #1
	str	x8, [x19, #8]
Lloh0:
	adrp	x21, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #7
	bl	_get_bits
	mov	x3, x0
	ldr	w0, [x19, #36]
Lloh2:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_4:
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	stp	w0, w0, [x19, #16]
	cmp	w0, #0
	b.le	LBB0_10
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.6:
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_show_bits
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w8, [x19, #32]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
Lloh7:
	adrp	x8, _SKIP_TYPE_COL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SKIP_TYPE_COL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #28
	mov	w9, #24
	csel	x8, x9, x8, eq
	ldr	w19, [x19, x8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	w1, #25
	bl	_FFMIN
	mov	x20, x0
	add	x0, sp, #12
	mov	x1, x20
	bl	_get_bits
	add	w8, w0, #1
	lsl	w9, w21, w20
	sub	w19, w19, w20
	cmp	w8, w9
	b.eq	LBB0_8
	b	LBB0_13
LBB0_10:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_12:
	cbz	w19, LBB0_15
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_15:
Lloh12:
	adrp	x8, _FRAME_SKIPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FRAME_SKIPPED@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I7:%X/\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SKIP_TYPE_COL,4,2              ; @SKIP_TYPE_COL
	.comm	_FRAME_SKIPPED,4,2              ; @FRAME_SKIPPED
.subsections_via_symbols
