	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_try_window           ## -- Begin function omap_vout_try_window
	.p2align	4, 0x90
_omap_vout_try_window:                  ## @omap_vout_try_window
	.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
	.cfi_offset %rbx, -24
	movq	32(%rsi), %r9
	movq	48(%rsi), %r8
	movq	%r9, %rdx
	sarq	$63, %rdx
	andq	%r9, %rdx
	addq	40(%rsi), %rdx
	xorl	%eax, %eax
	testq	%r9, %r9
	cmovleq	%rax, %r9
	movq	%r8, %rcx
	sarq	$63, %rcx
	andl	%r8d, %ecx
	addl	56(%rsi), %ecx
	testq	%r8, %r8
	cmovleq	%rax, %r8
	movq	(%rdi), %r10
	cmpq	%r10, %rdx
	cmovgeq	%r10, %rdx
	movslq	8(%rdi), %r11
	cmpl	%r11d, %ecx
	cmovgel	%r11d, %ecx
	leaq	(%rdx,%r9), %rbx
	movq	%r10, %rdi
	subq	%r9, %rdi
	cmpq	%r10, %rbx
	cmovleq	%rdx, %rdi
	movslq	%ecx, %rdx
	leaq	(%r8,%rdx), %rcx
	movl	%r11d, %ebx
	subl	%r8d, %ebx
	cmpq	%r11, %rcx
	cmovgl	%ebx, %edx
	andq	$-2, %rdi
	jle	LBB0_2
## %bb.1:
	andl	$-2, %edx
	jle	LBB0_2
## %bb.3:
	movq	%r9, 32(%rsi)
	movq	%rdi, 40(%rsi)
	movq	%r8, 48(%rsi)
	movl	%edx, 56(%rsi)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsi)
	movq	$0, 16(%rsi)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_try_window           ; -- Begin function omap_vout_try_window
	.p2align	2
_omap_vout_try_window:                  ; @omap_vout_try_window
	.cfi_startproc
; %bb.0:
	ldp	x8, x10, [x1, #32]
	ldr	x9, [x1, #48]
	ldr	w11, [x1, #56]
	cmp	x8, #0
	csel	x12, x8, xzr, lt
	csel	x8, x8, xzr, gt
	cmp	x9, #0
	csel	x13, x9, xzr, lt
	csel	x9, x9, xzr, gt
	ldr	x14, [x0]
	add	x10, x10, x12
	cmp	x10, x14
	csel	x10, x10, x14, lt
	ldrsw	x12, [x0, #8]
	add	w11, w11, w13
	cmp	w11, w12
	csel	w11, w11, w12, lt
	sub	x13, x14, x8
	add	x15, x10, x8
	cmp	x15, x14
	csel	x10, x13, x10, gt
	add	x13, x9, w11, sxtw
	sub	w14, w12, w9
	cmp	x13, x12
	csel	w12, w14, w11, gt
	and	x11, x10, #0xfffffffffffffffe
	and	w10, w12, #0xfffffffe
	cmp	x11, #1
	ccmp	w10, #0, #4, ge
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	w0, #0
	stp	x8, x11, [x1, #32]
	str	x9, [x1, #48]
Lloh3:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
	str	w10, [x1, #56]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #24]
	stp	xzr, xzr, [x1, #8]
	str	xzr, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
.subsections_via_symbols
