	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmv2_pred_motion
_wmv2_pred_motion:                      ## @wmv2_pred_motion
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r8
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	48(%rdi), %rcx
	movslq	(%rax), %rax
	movq	(%rcx), %rcx
	movq	-8(%rcx,%rax,8), %r13
	movq	(%rcx,%rax,8), %rsi
	movl	8(%rdi), %edx
	subl	%edx, %eax
	cltq
	movq	(%rcx,%rax,8), %r14
	addl	$2, %eax
	cltq
	movq	(%rcx,%rax,8), %r15
	cmpq	$0, 40(%rdi)
	je	LBB0_9
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_9
## %bb.2:
	cmpl	$0, 36(%rbx)
	je	LBB0_3
LBB0_9:
	cmpq	$0, 24(%rbx)
	movl	(%r13), %edi
	je	LBB0_11
## %bb.10:
	movl	%edi, (%r12)
	movl	4(%r13), %eax
	jmp	LBB0_12
LBB0_11:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%r8, %rbx
	callq	_mid_pred
	movl	%eax, (%r12)
	movl	4(%r13), %edi
	movl	4(%r14), %esi
	movl	4(%r15), %edx
	callq	_mid_pred
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %r8
LBB0_12:
	movl	%eax, (%r8)
	movq	%rsi, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.4:
	movl	(%r13), %edi
	subl	(%r14), %edi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_FFABS
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edi
	subl	4(%r14), %edi
	callq	_FFABS
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_FFMAX
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	cmpl	$8, %eax
	jl	LBB0_9
## %bb.5:
	leaq	32(%rbx), %rdi
	callq	_get_bits1
	cmpl	$1, %eax
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_9
## %bb.7:
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movl	4(%r13), %eax
	jmp	LBB0_12
LBB0_8:
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movl	4(%r14), %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wmv2_pred_motion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmv2_pred_motion
_wmv2_pred_motion:                      ; @wmv2_pred_motion
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w8, [x0, #8]
	ldr	x9, [x0, #16]
	ldrsw	x9, [x9]
	ldp	x11, x10, [x0, #40]
	ldr	x10, [x10]
	ldr	x20, [x10, x9, lsl #3]
	sub	w12, w9, #1
	ldr	x24, [x10, w12, sxtw #3]
	sub	w8, w9, w8
	ldr	x25, [x10, w8, sxtw #3]
	add	w8, w8, #2
	ldr	x26, [x10, w8, sxtw #3]
	cbz	x11, LBB0_3
; %bb.1:
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x22, #36]
	cbz	w8, LBB0_7
LBB0_3:
	ldr	x8, [x22, #24]
	ldr	w0, [x24]
	cbz	x8, LBB0_5
; %bb.4:
	str	w0, [x21]
	ldr	w0, [x24, #4]
	b	LBB0_6
LBB0_5:
	ldr	w1, [x25]
	ldr	w2, [x26]
	bl	_mid_pred
	str	w0, [x21]
	ldr	w0, [x24, #4]
	ldr	w1, [x25, #4]
	ldr	w2, [x26, #4]
	bl	_mid_pred
LBB0_6:
	str	w0, [x19]
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.8:
	ldr	w8, [x24]
	ldr	w9, [x25]
	sub	w0, w8, w9
	bl	_FFABS
	mov	x23, x0
	ldr	w8, [x24, #4]
	ldr	w9, [x25, #4]
	sub	w0, w8, w9
	bl	_FFABS
	mov	x1, x0
	mov	x0, x23
	bl	_FFMAX
	cmp	w0, #8
	b.lt	LBB0_3
; %bb.9:
	add	x0, x22, #32
	bl	_get_bits1
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.10:
	cbnz	w0, LBB0_3
; %bb.11:
	ldr	w8, [x24]
	str	w8, [x21]
	ldr	w0, [x24, #4]
	b	LBB0_6
LBB0_12:
	ldr	w8, [x25]
	str	w8, [x21]
	ldr	w0, [x25, #4]
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wmv2_pred_motion
.subsections_via_symbols
