	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function estimate_motion_thread
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_estimate_motion_thread:                ## @estimate_motion_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	xorl	%eax, %eax
	callq	_ff_check_alignment
	movq	16(%rbx), %rax
	movq	64(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%rbx)
	movl	$1, (%rbx)
	movq	%rax, 8(%rbx)
	cmpq	24(%rbx), %rax
	jge	LBB0_9
## %bb.1:
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	cmpq	24(%rbx), %rax
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_ff_init_block_index
	movq	$0, 32(%rbx)
	cmpq	$0, 40(%rbx)
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_ff_estimate_p_frame_motion
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%rbx), %rsi
	incq	%rsi
	movq	%rsi, 32(%rbx)
	cmpq	40(%rbx), %rsi
	jge	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	48(%rbx), %rax
	movdqu	(%rax), %xmm0
	paddd	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rax)
	movq	8(%rbx), %rdx
	movq	56(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_ff_estimate_b_frame_motion
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.no_dead_strip	_estimate_motion_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimate_motion_thread
_estimate_motion_thread:                ; @estimate_motion_thread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x1]
	bl	_ff_check_alignment
	ldr	x8, [x19, #64]
	ldr	w8, [x8]
	str	w8, [x19, #72]
	mov	w8, #1
	str	w8, [x19]
	ldp	x8, x9, [x19, #16]
	str	x8, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.1:
Lloh0:
	adrp	x20, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	str	xzr, [x19, #32]
	mov	x0, x19
	bl	_ff_init_block_index
	str	xzr, [x19, #32]
	ldr	x8, [x19, #40]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_ff_estimate_p_frame_motion
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldp	x8, x9, [x19, #32]
	add	x1, x8, #1
	str	x1, [x19, #32]
	cmp	x1, x9
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x19, #48]
	ldr	q0, [x8]
	movi.4s	v1, #2
	add.4s	v0, v0, v1
	str	q0, [x8]
	ldr	x8, [x20]
	ldr	x2, [x19, #8]
	mov	x0, x19
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_ff_estimate_b_frame_motion
	b	LBB0_6
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.no_dead_strip	_estimate_motion_thread
.subsections_via_symbols
