	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_wmv9
_decode_wmv9:                           ## @decode_wmv9
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	callq	_ff_mpeg_flush
	leaq	84(%r14), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setl	%dl
	movl	%edx, 40(%r14)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ff_vc1_parse_frame_header
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movq	48(%r14), %rax
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %r12
	leaq	40(%r14), %rbx
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_mpv_frame_start
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movl	16(%rbp), %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_ff_mpeg_er_frame_start
	shll	$3, %r13d
	movl	%r13d, (%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r15
	leal	15(%rax), %ecx
	sarl	$4, %ecx
	movl	%ecx, 4(%r14)
	leal	15(%rbx), %eax
	sarl	$4, %eax
	movl	%eax, 56(%r14)
	movl	8(%r14), %edx
	testb	$1, %dl
	je	LBB0_11
## %bb.10:
	incl	%ecx
	sarl	%ecx
	movl	%ecx, 4(%r14)
LBB0_11:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	testb	$2, %dl
	je	LBB0_13
## %bb.12:
	incl	%eax
	sarl	%eax
	movl	%eax, 56(%r14)
LBB0_13:
	movq	%r14, %rdi
	callq	_ff_vc1_decode_blocks
	movl	4(%r14), %ecx
	movl	56(%r14), %r8d
	movl	60(%r14), %r9d
	movl	64(%r14), %ebx
	cmpl	%r9d, %ecx
	jne	LBB0_16
## %bb.14:
	cmpl	%ebx, %r8d
	jne	LBB0_16
## %bb.15:
	leaq	80(%r14), %rdi
	callq	_ff_er_frame_end
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_25
LBB0_3:
	movl	68(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_6:
	movl	68(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_25
LBB0_8:
	movl	%eax, %r15d
	movl	68(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_25
LBB0_16:
	movl	68(%r14), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	pushq	%rbx
	callq	_av_log
	addq	$16, %rsp
LBB0_17:
	movl	24(%rbp), %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_mpv_frame_end
	movq	72(%r14), %rbx
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	cmpl	$3, %eax
	jne	LBB0_20
## %bb.19:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rsi
	movl	%r15d, %edx
	movl	16(%rbp), %r13d
	movl	%r13d, %ecx
	callq	*32(%r14)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	4(%rcx), %edi
	movq	8(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r15d
	sarl	%r15d
	leal	1(%r13), %r12d
	sarl	%r12d
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	*32(%r14)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	8(%rcx), %edi
	movq	16(%rax), %rsi
	movl	%r15d, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	24(%rbp), %r13d
	callq	*32(%r14)
	jmp	LBB0_21
LBB0_20:
	movl	68(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_avpriv_request_sample
LBB0_21:
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	xorl	%edi, %edi
	cmpq	16(%rax), %rcx
	sete	%dil
	callq	_av_assert0
	cmpl	$-1, %r13d
	je	LBB0_23
## %bb.22:
	movl	88(%r14), %esi
	movl	92(%r14), %r8d
	movl	%esi, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %eax
	movslq	%eax, %r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %ecx
	movslq	%ecx, %rdi
	addq	96(%r14), %rdi
	addq	%r9, %rdi
	imull	%r8d, %edx
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	addq	104(%r14), %rcx
	addq	%rdx, %rcx
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	movl	(%rdx), %r9d
	movl	4(%rdx), %r10d
	movl	8(%rdx), %r11d
	movl	%r13d, %edx
	movl	16(%rbp), %ebx
	pushq	%rbx
	pushq	%r15
	pushq	8(%rax)
	pushq	%r11
	pushq	%r10
	pushq	(%rax)
	callq	*24(%r14)
	addq	$48, %rsp
	jmp	LBB0_24
LBB0_23:
	movl	88(%r14), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	imull	%esi, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %eax
	movslq	%eax, %rdi
	addq	96(%r14), %rdi
	movslq	%ecx, %rax
	addq	%rax, %rdi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %r8d
	movl	8(%rcx), %r9d
	movq	(%rax), %rcx
	subq	$8, %rsp
	movl	16(%rbp), %ebx
	pushq	%rbx
	pushq	%r15
	pushq	8(%rax)
	callq	*16(%r14)
	addq	$32, %rsp
LBB0_24:
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	xorl	%r15d, %r15d
LBB0_25:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header error\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
L_.str.1:                               ## @.str.1
	.asciz	"expected I-frame\n"

	.comm	_AV_PIX_FMT_YUV420P,8,3         ## @AV_PIX_FMT_YUV420P
L_.str.2:                               ## @.str.2
	.asciz	"ff_mpv_frame_start error\n"

	.comm	_AV_PIX_FMT_RGB24,8,3           ## @AV_PIX_FMT_RGB24
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"disabling error correction due to block count mismatch %dx%d != %dx%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Asymmetric WMV9 rectangle subsampling"

	.no_dead_strip	_decode_wmv9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_wmv9
_decode_wmv9:                           ; @decode_wmv9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x21, x6
	mov	x20, x5
	mov	x24, x4
	mov	x23, x3
	mov	x27, x2
	mov	x28, x1
	mov	x19, x0
	ldr	x25, [x0, #16]
	bl	_ff_mpeg_flush
	add	x26, x25, #84
	mov	x0, x26
	mov	x1, x28
	mov	x2, x27
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AVDISCARD_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, lt
	str	w8, [x25, #40]
	mov	x0, x25
	mov	x1, x26
	bl	_ff_vc1_parse_frame_header
	tbnz	x0, #63, LBB0_12
; %bb.2:
	ldr	x8, [x25, #48]
Lloh3:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	add	x26, x25, #40
Lloh6:
	adrp	x8, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x26
	mov	x1, x19
	bl	_ff_mpv_frame_start
	tbnz	w0, #31, LBB0_15
; %bb.4:
	mov	x0, x26
	bl	_ff_mpeg_er_frame_start
	lsl	w8, w27, #3
	add	w9, w20, #15
	asr	w9, w9, #4
	stp	w8, w9, [x25]
	add	w8, w21, #15
	asr	w8, w8, #4
	str	w8, [x25, #56]
	ldr	w10, [x25, #8]
	tbz	w10, #0, LBB0_6
; %bb.5:
	add	w9, w9, #1
	asr	w9, w9, #1
	str	w9, [x25, #4]
LBB0_6:
	tbz	w10, #1, LBB0_8
; %bb.7:
	add	w8, w8, #1
	asr	w8, w8, #1
	str	w8, [x25, #56]
LBB0_8:
	mov	x0, x25
	bl	_ff_vc1_decode_blocks
	ldr	w8, [x25, #4]
	ldp	w9, w10, [x25, #56]
	ldr	w11, [x25, #64]
	cmp	w8, w10
	b.ne	LBB0_16
; %bb.9:
	cmp	w9, w11
	b.ne	LBB0_16
; %bb.10:
	add	x0, x25, #80
	bl	_ff_er_frame_end
	b	LBB0_17
LBB0_11:
	mov	x28, x0
	b	LBB0_26
LBB0_12:
	ldr	w0, [x25, #68]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	w0, [x25, #68]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	bl	_av_log
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w28, [x8]
	b	LBB0_26
LBB0_15:
	mov	x28, x0
	ldr	w0, [x25, #68]
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	b	LBB0_25
LBB0_16:
	ldr	w0, [x25, #68]
Lloh27:
	adrp	x12, _AV_LOG_WARNING@GOTPAGE
Lloh28:
	ldr	x12, [x12, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x12]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
LBB0_17:
	mov	x0, x26
	bl	_ff_mpv_frame_end
	ldr	x28, [x25, #72]
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_21
; %bb.18:
	cmp	w8, #3
	b.ne	LBB0_20
; %bb.19:
	ldr	x8, [x25, #32]
	ldp	x10, x9, [x28]
	ldr	w0, [x9]
	ldr	x1, [x10]
	mov	x2, x20
	mov	x3, x21
	blr	x8
	ldr	x8, [x25, #32]
	ldp	x10, x9, [x28]
	ldr	w0, [x9, #4]
	ldr	x1, [x10, #8]
	add	w9, w20, #1
	asr	w26, w9, #1
	add	w9, w21, #1
	asr	w27, w9, #1
	mov	x2, x26
	mov	x3, x27
	blr	x8
	ldr	x8, [x25, #32]
	ldp	x10, x9, [x28]
	ldr	w0, [x9, #8]
	ldr	x1, [x10, #16]
	mov	x2, x26
	mov	x3, x27
	blr	x8
	b	LBB0_21
LBB0_20:
	ldr	w0, [x25, #68]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_avpriv_request_sample
LBB0_21:
	ldr	x8, [x28]
	ldp	x9, x8, [x8, #8]
	cmp	x9, x8
	cset	w0, eq
	bl	_av_assert0
	cmn	w22, #1
	b.eq	LBB0_23
; %bb.22:
	ldr	x8, [x25, #24]
	ldp	w1, w4, [x25, #88]
	mul	w9, w1, w24
	add	w10, w23, w23, lsl #1
	ldp	x11, x12, [x25, #96]
	add	x10, x11, w10, sxtw
	add	x0, x10, w9, sxtw
	mul	w9, w4, w24
	add	x10, x12, w23, sxtw
	add	x3, x10, w9, sxtw
	ldp	x10, x9, [x28]
	ldp	w5, w7, [x9]
	ldr	w9, [x9, #8]
	ldp	x6, x10, [x10]
	stp	w20, w21, [sp, #16]
	str	x10, [sp, #8]
	str	w9, [sp]
	mov	x2, x22
	b	LBB0_24
LBB0_23:
	ldr	x8, [x25, #16]
	ldr	x9, [x25, #96]
	ldr	w1, [x25, #88]
	mul	w10, w1, w24
	add	w11, w23, w23, lsl #1
	add	x9, x9, w11, sxtw
	add	x0, x9, w10, sxtw
	ldp	x10, x9, [x28]
	ldp	w2, w4, [x9]
	ldr	w5, [x9, #8]
	ldp	x3, x6, [x10]
	str	w21, [sp]
	mov	x7, x20
LBB0_24:
	blr	x8
	mov	w28, #0
LBB0_25:
Lloh34:
	adrp	x8, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_26:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header error\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
l_.str.1:                               ; @.str.1
	.asciz	"expected I-frame\n"

	.comm	_AV_PIX_FMT_YUV420P,8,3         ; @AV_PIX_FMT_YUV420P
l_.str.2:                               ; @.str.2
	.asciz	"ff_mpv_frame_start error\n"

	.comm	_AV_PIX_FMT_RGB24,8,3           ; @AV_PIX_FMT_RGB24
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"disabling error correction due to block count mismatch %dx%d != %dx%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Asymmetric WMV9 rectangle subsampling"

	.no_dead_strip	_decode_wmv9
.subsections_via_symbols
