	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pre_estimate_motion_thread
_pre_estimate_motion_thread:            ## @pre_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rbx
	movl	$1, 48(%rbx)
	movq	56(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	$1, (%rbx)
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rax
	leaq	-1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	cmpq	%rax, %rcx
	jg	LBB0_1
LBB0_5:
	movl	$0, 48(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%rbx)
	leaq	-1(%rdx), %rcx
	movq	%rcx, 8(%rbx)
	cmpq	%rax, %rdx
	movq	%rcx, %rdx
	jle	LBB0_5
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	40(%rbx), %rcx
	leaq	-1(%rcx), %rsi
	movq	%rsi, 32(%rbx)
	testq	%rcx, %rcx
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_ff_pre_estimate_p_frame_motion
	movq	8(%rbx), %rdx
	movq	32(%rbx), %rax
	leaq	-1(%rax), %rsi
	movq	%rsi, 32(%rbx)
	testq	%rax, %rax
	jg	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pre_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 pre_estimate_motion_thread
_pre_estimate_motion_thread:            ; @pre_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]
	mov	w8, #1
	ldr	x9, [x19, #56]
	ldr	w9, [x9]
	stp	w8, w9, [x19, #48]
	str	w8, [x19]
	ldp	x9, x8, [x19, #16]
	sub	x2, x9, #1
	str	x2, [x19, #8]
	cmp	x9, x8
	b.gt	LBB0_3
LBB0_1:
	str	wzr, [x19, #48]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x19]
	sub	x9, x2, #1
	str	x9, [x19, #8]
	cmp	x2, x8
	mov	x2, x9
	b.le	LBB0_1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x9, [x19, #40]
	subs	x1, x9, #1
	str	x1, [x19, #32]
	b.lt	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_ff_pre_estimate_p_frame_motion
	ldr	x8, [x19, #32]
	sub	x1, x8, #1
	str	x1, [x19, #32]
	ldr	x2, [x19, #8]
	cmp	x8, #0
	b.gt	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pre_estimate_motion_thread
.subsections_via_symbols
