	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wmv2_encode_mb              ## -- Begin function ff_wmv2_encode_mb
	.p2align	4, 0x90
_ff_wmv2_encode_mb:                     ## @ff_wmv2_encode_mb
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ff_msmpeg4_handle_slices
	cmpq	$0, 32(%rbx)
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	je	LBB0_1
## %bb.2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testl	%ecx, %ecx
	setg	%r12b
	leaq	-48(%rbp), %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_ff_msmpeg4_coded_block_pred
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movl	%r12d, (%rax)
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rax)
	setg	%r14b
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_ff_msmpeg4_coded_block_pred
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movl	%r14d, (%rax)
	movq	(%rbx), %rax
	xorl	%r15d, %r15d
	cmpl	$0, 8(%rax)
	setg	%r15b
	movq	%rbx, %rdi
	movl	$2, %esi
	movq	%r13, %rdx
	callq	_ff_msmpeg4_coded_block_pred
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movl	%r15d, (%rax)
	movq	(%rbx), %rax
	xorl	%r13d, %r13d
	cmpl	$0, 12(%rax)
	setg	%r13b
	movq	%rbx, %rdi
	movl	$3, %esi
	leaq	-48(%rbp), %rdx
	callq	_ff_msmpeg4_coded_block_pred
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rcx
	movl	%r13d, (%rcx)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	xorl	%ecx, %ecx
	cmpl	$0, 16(%rsi)
	setg	%cl
	xorl	%edx, %edx
	cmpl	$0, 20(%rsi)
	setg	%dl
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %r8
	leaq	44(%rbx), %r9
	cmpq	(%r8), %rdi
	jne	LBB0_3
## %bb.4:
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	xorl	%r12d, %esi
	shll	$5, %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	xorl	%r14d, %edi
	shll	$4, %edi
	orl	%esi, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%r15d, %esi
	shll	$3, %esi
	xorl	%r13d, %eax
	shll	$2, %eax
	orl	%esi, %eax
	orl	%edi, %eax
	movq	_ff_msmp4_mb_i_table@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	shrl	$26, %ecx
	andl	$-32, %ecx
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	shrl	$27, %edx
	andl	$-16, %edx
	orl	%ecx, %edx
	shrl	$31, %esi
	leal	(%rdx,%rsi,8), %ecx
	movl	12(%rax), %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx,4), %ecx
	movl	16(%rax), %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx,2), %ecx
	movl	20(%rax), %edx
	notl	%edx
	shrl	$31, %edx
	orl	%ecx, %edx
	xorl	$62, %edx
	leaq	44(%rbx), %rdi
	movq	_ff_wmv2_inter_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movslq	%edx, %rcx
	movq	512(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_get_bits_diff
	addl	%eax, 40(%rbx)
	leaq	-48(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ff_h263_pred_motion
	subl	-48(%rbp), %r12d
	subl	-64(%rbp), %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_ff_msmpeg4_encode_motion
	movq	%rbx, %rdi
	callq	_get_bits_diff
	leaq	56(%rbx), %rcx
	jmp	LBB0_8
LBB0_3:
	shll	$5, %r12d
	shll	$4, %r14d
	orl	%r12d, %r14d
	leal	(%r14,%r15,8), %eax
	leal	(%rax,%r13,4), %eax
	movq	_ff_wmv2_inter_table@GOTPCREL(%rip), %rdi
	shlq	$3, %rsi
	addq	(%rdi), %rsi
LBB0_5:
	leal	(%rax,%rcx,2), %eax
	orl	%edx, %eax
	movq	(%rsi), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r9, %r15
	movq	%r9, %rdi
	callq	_put_bits
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	cmpq	$0, 48(%rbx)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	$0, 16(%rbx)
	movq	_ff_table_inter_intra@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_put_bits
LBB0_7:
	movq	%rbx, %rdi
	callq	_get_bits_diff
	leaq	40(%rbx), %rcx
LBB0_8:
	addl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ff_msmpeg4_encode_block
	leaq	256(%r14), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_ff_msmpeg4_encode_block
	leaq	512(%r14), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_ff_msmpeg4_encode_block
	leaq	768(%r14), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_ff_msmpeg4_encode_block
	leaq	1024(%r14), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_ff_msmpeg4_encode_block
	addq	$1280, %r14                     ## imm = 0x500
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$5, %edx
	callq	_ff_msmpeg4_encode_block
	movq	32(%rbx), %r14
	movq	%rbx, %rdi
	callq	_get_bits_diff
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	addl	%eax, 28(%rbx)
	jmp	LBB0_11
LBB0_10:
	addl	%eax, 24(%rbx)
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_wmv2_inter_table,8,3        ## @ff_wmv2_inter_table
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_ff_msmp4_mb_i_table,8,3        ## @ff_msmp4_mb_i_table
	.comm	_ff_table_inter_intra,8,3       ## @ff_table_inter_intra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ff_wmv2_encode_mb
lCPI0_0:
	.long	4294967270                      ; 0xffffffe6
	.long	4294967269                      ; 0xffffffe5
	.long	4294967268                      ; 0xffffffe4
	.long	4294967267                      ; 0xffffffe3
lCPI0_1:
	.long	32                              ; 0x20
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_wmv2_encode_mb
	.p2align	2
_ff_wmv2_encode_mb:                     ; @ff_wmv2_encode_mb
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ff_msmpeg4_handle_slices
	ldr	x10, [x19, #32]
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbz	x10, LBB0_4
; %bb.1:
	cmp	w9, #0
	cset	w21, gt
	lsl	w22, w21, #5
	mov	x2, sp
	mov	x0, x19
	mov	w1, #0
	bl	_ff_msmpeg4_coded_block_pred
	ldr	x8, [sp]
	str	w21, [x8]
	eor	w21, w0, w21
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w23, gt
	bfi	w22, w23, #4, #1
	mov	x2, sp
	mov	x0, x19
	mov	w1, #1
	bl	_ff_msmpeg4_coded_block_pred
	ldr	x8, [sp]
	str	w23, [x8]
	eor	w8, w0, w23
	ldr	x9, [x19]
	ldr	w9, [x9, #8]
	lsl	w8, w8, #4
	cmp	w9, #0
	cset	w23, gt
	orr	w21, w8, w21, lsl #5
	bfi	w22, w23, #3, #1
	mov	x2, sp
	mov	x0, x19
	mov	w1, #2
	bl	_ff_msmpeg4_coded_block_pred
	ldr	x8, [sp]
	str	w23, [x8]
	eor	w8, w0, w23
	ldr	x9, [x19]
	ldr	w9, [x9, #12]
	cmp	w9, #0
	cset	w23, gt
	orr	w21, w21, w8, lsl #3
	bfi	w22, w23, #2, #1
	mov	x2, sp
	mov	x0, x19
	mov	w1, #3
	bl	_ff_msmpeg4_coded_block_pred
	ldr	x8, [sp]
	str	w23, [x8]
	eor	w8, w0, w23
	ldp	x9, x10, [x19]
	ldp	w11, w12, [x9, #16]
	cmp	w11, #0
	cset	w11, gt
	orr	w8, w21, w8, lsl #2
	cmp	w12, #0
	cset	w12, gt
Lloh0:
	adrp	x13, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh1:
	ldr	x13, [x13, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x13]
	add	x21, x19, #44
Lloh3:
	adrp	x14, _ff_wmv2_inter_table@GOTPAGE
Lloh4:
	ldr	x14, [x14, _ff_wmv2_inter_table@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x14]
	add	x9, x14, x9, lsl #3
Lloh6:
	adrp	x14, _ff_msmp4_mb_i_table@GOTPAGE
Lloh7:
	ldr	x14, [x14, _ff_msmp4_mb_i_table@GOTPAGEOFF]
	cmp	x10, x13
	csel	x9, x14, x9, eq
	csel	w8, w8, w22, eq
	bfi	w8, w11, #1, #1
	orr	w8, w8, w12
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_put_bits
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19, #16]
Lloh8:
	adrp	x8, _ff_table_inter_intra@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ff_table_inter_intra@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_put_bits
LBB0_3:
	mov	x0, x19
	bl	_get_bits_diff
	add	x8, x19, #40
	b	LBB0_5
LBB0_4:
	ldur	d0, [x8, #4]
	add	x10, x8, #12
	fmov	s1, w9
	ext.16b	v1, v1, v1, #4
	ext.16b	v0, v1, v0, #12
	ld1.s	{ v0 }[3], [x10]
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
Lloh13:
	adrp	x9, lCPI0_1@PAGE
Lloh14:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	and.16b	v0, v0, v1
	ldp	w9, w10, [x8, #16]
	lsr	w9, w9, #30
	and	w9, w9, #0x2
	mvn	w10, w10
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w11, w12, w11
	orr	w9, w11, w9
	orr	w9, w9, w10, lsr #31
	eor	w9, w9, #0x3e
Lloh15:
	adrp	x10, _ff_wmv2_inter_table@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ff_wmv2_inter_table@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ldr	x8, [x10, x8, lsl #3]
	add	x0, x19, #44
	add	w9, w9, #64
	ldr	x8, [x8, w9, sxtw #3]
	ldp	w2, w1, [x8]
	bl	_put_bits
	mov	x0, x19
	bl	_get_bits_diff
	ldr	w8, [x19, #40]
	add	w8, w8, w0
	str	w8, [x19, #40]
	mov	x3, sp
	add	x4, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ff_h263_pred_motion
	ldr	w8, [sp]
	sub	w1, w22, w8
	ldr	w8, [sp, #12]
	sub	w2, w21, w8
	mov	x0, x19
	bl	_ff_msmpeg4_encode_motion
	mov	x0, x19
	bl	_get_bits_diff
	add	x8, x19, #56
LBB0_5:
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_ff_msmpeg4_encode_block
	add	x1, x20, #256
	mov	x0, x19
	mov	w2, #1
	bl	_ff_msmpeg4_encode_block
	add	x1, x20, #512
	mov	x0, x19
	mov	w2, #2
	bl	_ff_msmpeg4_encode_block
	add	x1, x20, #768
	mov	x0, x19
	mov	w2, #3
	bl	_ff_msmpeg4_encode_block
	add	x1, x20, #1024
	mov	x0, x19
	mov	w2, #4
	bl	_ff_msmpeg4_encode_block
	add	x1, x20, #1280
	mov	x0, x19
	mov	w2, #5
	bl	_ff_msmpeg4_encode_block
	ldr	x20, [x19, #32]
	mov	x0, x19
	bl	_get_bits_diff
	cbz	x20, LBB0_7
; %bb.6:
	ldr	w8, [x19, #28]
	add	w8, w8, w0
	str	w8, [x19, #28]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #24]
	add	w8, w8, w0
	str	w8, [x19, #24]
LBB0_8:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_wmv2_inter_table,8,3        ; @ff_wmv2_inter_table
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_ff_msmp4_mb_i_table,8,3        ; @ff_msmp4_mb_i_table
	.comm	_ff_table_inter_intra,8,3       ; @ff_table_inter_intra
.subsections_via_symbols
