	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov772x_select_win
_ov772x_select_win:                     ## @ov772x_select_win
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ov772x_win_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ov772x_win_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rax
	subq	(%rdi,%r12), %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovsq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	8(%rdi,%r12), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovsq	%rax, %rdx
	addq	%rcx, %rdx
	cmpq	%rbx, %rdx
	cmovlq	%rdx, %rbx
	leaq	(%rdi,%r12), %rax
	cmovlq	%rax, %r13
	incq	%r14
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %r12
	cmpq	%rax, %r14
	jb	LBB0_2
LBB0_3:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ov772x_win_sizes,8,3           ## @ov772x_win_sizes
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.no_dead_strip	_ov772x_select_win
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov772x_select_win
_ov772x_select_win:                     ; @ov772x_select_win
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _ov772x_win_sizes@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ov772x_win_sizes@GOTPAGEOFF]
	ldr	x19, [x22]
Lloh2:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	fmov	d0, x21
	mov.d	v0[1], x20
	str	q0, [sp]                        ; 16-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	add	x8, x0, x24
	ldr	q0, [x8]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	sub.2d	v0, v1, v0
	abs.2d	v0, v0
	addp.2d	d0, v0
	fmov	x9, d0
	cmp	x9, x23
	csel	x23, x9, x23, lt
	csel	x19, x8, x19, lt
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x25, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ov772x_win_sizes,8,3           ; @ov772x_win_sizes
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.no_dead_strip	_ov772x_select_win
.subsections_via_symbols
