	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_new_window           ## -- Begin function omap_vout_new_window
	.p2align	4, 0x90
_omap_vout_new_window:                  ## @omap_vout_new_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	movq	%rcx, %rsi
	callq	_omap_vout_try_window
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	movl	12(%rbx), %eax
	movl	%eax, 12(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap24xx
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	(%r14), %ecx
	movl	(%r12), %edi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	leal	(%rdi,%rdi), %ecx
	movl	%ecx, (%r14)
LBB0_4:
	movl	4(%r14), %esi
	movl	4(%r12), %ebx
	movl	%esi, %eax
	cltd
	idivl	%ebx
	addl	%ebx, %ebx
	cmpl	$2, %eax
	cmovll	%esi, %ebx
	cmpl	$769, %ebx                      ## imm = 0x301
	setl	%dl
	cmpl	%edi, %ecx
	sete	%cl
	orb	%dl, %cl
	cmpl	$1, %eax
	jg	LBB0_6
## %bb.5:
	testb	%cl, %cl
	jne	LBB0_12
LBB0_6:
	testb	%cl, %cl
	movl	$768, %eax                      ## imm = 0x300
	cmovnel	%ebx, %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_12
LBB0_7:
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap34xx
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	(%r14), %eax
	movl	(%r12), %ecx
	cltd
	idivl	%ecx
	cmpl	$4, %eax
	jl	LBB0_10
## %bb.9:
	shll	$2, %ecx
	movl	%ecx, (%r14)
LBB0_10:
	movl	4(%r14), %eax
	movl	4(%r12), %ecx
	cltd
	idivl	%ecx
	cmpl	$4, %eax
	jl	LBB0_12
## %bb.11:
	shll	$2, %ecx
	movl	%ecx, 4(%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_new_window           ; -- Begin function omap_vout_new_window
	.p2align	2
_omap_vout_new_window:                  ; @omap_vout_new_window
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	mov	x1, x3
	bl	_omap_vout_try_window
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x22]
	str	x8, [x21]
	ldr	d0, [x22, #8]
	str	d0, [x21, #8]
	bl	_omap_vout_dss_omap24xx
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x19]
	ldr	w9, [x21]
	sdiv	w10, w8, w9
	cmp	w10, #2
	b.lt	LBB0_4
; %bb.3:
	lsl	w8, w9, #1
	str	w8, [x19]
LBB0_4:
	ldr	w10, [x19, #4]
	ldr	w11, [x21, #4]
	sdiv	w12, w10, w11
	lsl	w11, w11, #1
	cmp	w12, #1
	csel	w10, w11, w10, gt
	cmp	w10, #769
	ccmp	w8, w9, #4, ge
	cset	w8, eq
	cmp	w12, #1
	b.gt	LBB0_6
; %bb.5:
	cbnz	w8, LBB0_13
LBB0_6:
	mov	w9, #768
	cmp	w8, #0
	csel	w8, w10, w9, ne
	b	LBB0_12
LBB0_7:
	bl	_omap_vout_dss_omap34xx
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w9, [x19]
	ldr	w8, [x21]
	sdiv	w9, w9, w8
	cmp	w9, #4
	b.lt	LBB0_10
; %bb.9:
	lsl	w8, w8, #2
	str	w8, [x19]
LBB0_10:
	ldr	w9, [x19, #4]
	ldr	w8, [x21, #4]
	sdiv	w9, w9, w8
	cmp	w9, #4
	b.lt	LBB0_13
; %bb.11:
	lsl	w8, w8, #2
LBB0_12:
	str	w8, [x19, #4]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
