	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_new_crop             ## -- Begin function omap_vout_new_crop
	.p2align	4, 0x90
_omap_vout_new_crop:                    ## @omap_vout_new_crop
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%r8), %r13
	movq	16(%r8), %r15
	movq	%r13, %r9
	sarq	$63, %r9
	andq	%r13, %r9
	addq	8(%r8), %r9
	xorl	%eax, %eax
	testq	%r13, %r13
	cmovleq	%rax, %r13
	movq	%r15, %rbx
	sarq	$63, %rbx
	andl	%r15d, %ebx
	addl	24(%r8), %ebx
	testq	%r15, %r15
	cmovleq	%rax, %r15
	movq	(%rdi), %r10
	cmpq	%r10, %r9
	cmovgeq	%r10, %r9
	movslq	8(%rdi), %rdi
	cmpl	%edi, %ebx
	cmovgel	%edi, %ebx
	leaq	(%r9,%r13), %r11
	movq	%r10, %r12
	subq	%r13, %r12
	cmpq	%r10, %r11
	cmovleq	%r9, %r12
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r14
	leaq	(%r15,%r14), %rbx
	movl	%edi, %edx
	subl	%r15d, %edx
	cmpq	%rdi, %rbx
	cmovgl	%edx, %r14d
	andq	$-2, %r12
	jle	LBB0_2
## %bb.1:
	andl	$-2, %r14d
	jle	LBB0_2
## %bb.3:
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	28(%r8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap24xx
	cmpq	$769, %r12                      ## imm = 0x301
	movl	$768, %edx                      ## imm = 0x300
	cmovbq	%r12, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	cmpl	%ecx, %r14d
	cmoveq	%r12, %rdx
	testq	%rax, %rax
	cmoveq	%r12, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ebx
	shll	$10, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap24xx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$2048, %ecx                     ## imm = 0x800
	cmpl	$2048, %r12d                    ## imm = 0x800
	ja	LBB0_6
LBB0_5:
	movslq	%r12d, %r12
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap34xx
	cmpl	$4097, %r12d                    ## imm = 0x1001
	movl	$4096, %ecx                     ## imm = 0x1000
	cmovbq	%r12, %rcx
	testq	%rax, %rax
	cmoveq	%r12, %rcx
LBB0_6:
	movslq	%ebx, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jmp	LBB0_37
LBB0_7:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	andl	$-2, %eax
	movl	$2, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%rsi)
	movslq	%ecx, %rdx
	movq	8(%rsi), %rax
	addq	%rax, %rdx
	movq	(%rdi), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_11
## %bb.10:
	subl	%eax, %ecx
	andl	$-2, %ecx
	movl	%ecx, (%rsi)
LBB0_11:
	shlq	$10, %r12
	movslq	16(%rsi), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.13:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_14
LBB0_12:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_14:
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap24xx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$2048, %ecx                     ## imm = 0x800
	cmpq	$2048, %rbx                     ## imm = 0x800
	ja	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap34xx
	cmpq	$4097, %rbx                     ## imm = 0x1001
	movl	$4096, %ecx                     ## imm = 0x1000
	cmovbq	%rbx, %rcx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
LBB0_17:
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_18
## %bb.19:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_20
LBB0_18:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_20:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	andl	$-2, %eax
	movl	$2, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 16(%rbx)
	movslq	%ecx, %rdx
	movq	24(%rbx), %rax
	addq	%rax, %rdx
	movq	8(%rsi), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_22
## %bb.21:
	subl	%eax, %ecx
	andl	$-2, %ecx
	movl	%ecx, 16(%rbx)
LBB0_22:
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap24xx
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:
	movl	(%rbx), %esi
	movl	%r14d, %eax
	cltd
	idivl	%esi
	leal	(%rsi,%rsi), %ecx
	cmpl	$2, %eax
	cmovll	%r14d, %ecx
	movslq	16(%rbx), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_24
## %bb.25:
	movq	%rbx, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_26
LBB0_28:
	xorl	%eax, %eax
	callq	_omap_vout_dss_omap34xx
	testq	%rax, %rax
	je	LBB0_29
## %bb.30:
	movl	(%rbx), %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	shll	$2, %ecx
	cmpl	$4, %eax
	cmovll	%r14d, %ecx
	movslq	16(%rbx), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_31
## %bb.32:
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	cmpq	$4, %rax
	jge	LBB0_34
	jmp	LBB0_35
LBB0_24:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_26:
	addl	%edi, %edi
	cmpq	$2, %rax
	movslq	%edi, %rax
	cmovgeq	%rax, %rbx
	cmpq	$769, %rbx                      ## imm = 0x301
	jl	LBB0_35
## %bb.27:
	cmpl	%esi, %ecx
	movl	$768, %eax                      ## imm = 0x300
	cmovneq	%rax, %rbx
	jmp	LBB0_35
LBB0_29:
	movl	%r14d, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_31:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	$4, %rax
	jl	LBB0_35
LBB0_34:
	shll	$2, %esi
	movslq	%esi, %rbx
LBB0_35:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_36:
	movq	%r13, (%rax)
	movq	%rbx, 8(%rax)
	movq	%r15, 16(%rax)
	movl	%ecx, 24(%rax)
	movl	%edx, 28(%rax)
	xorl	%eax, %eax
LBB0_37:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_vout_new_crop             ; -- Begin function omap_vout_new_crop
	.p2align	2
_omap_vout_new_crop:                    ; @omap_vout_new_crop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x8, x9, [x4]
	ldr	x10, [x4, #16]
	ldr	w11, [x4, #24]
	cmp	x8, #0
	csel	x12, x8, xzr, lt
	csel	x22, x8, xzr, gt
	cmp	x10, #0
	csel	x8, x10, xzr, lt
	csel	x23, x10, xzr, gt
	ldr	x10, [x0]
	add	x9, x9, x12
	cmp	x9, x10
	csel	x9, x9, x10, lt
	ldrsw	x12, [x0, #8]
	add	w8, w11, w8
	cmp	w8, w12
	csel	w8, w8, w12, lt
	sub	x11, x10, x22
	add	x13, x9, x22
	cmp	x13, x10
	csel	x9, x11, x9, gt
	add	x10, x23, w8, sxtw
	sub	w11, w12, w23
	cmp	x10, x12
	csel	w8, w11, w8, gt
	and	x26, x9, #0xfffffffffffffffe
	and	w24, w8, #0xfffffffe
	cmp	x26, #1
	ccmp	w24, #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
	b	LBB0_21
LBB0_2:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	ldr	w25, [x4, #28]
	bl	_omap_vout_dss_omap24xx
	ldr	w8, [x20]
	cmp	x26, #768
	ccmp	w24, w8, #4, hi
	mov	w9, #768
	csel	x9, x9, x26, ne
	cmp	x0, #0
	csel	x26, x26, x9, eq
	lsl	w27, w24, #10
	sdiv	w28, w27, w8
	bl	_omap_vout_dss_omap24xx
	cbz	x0, LBB0_5
; %bb.3:
	cmp	w28, #2048
	b.ls	LBB0_5
; %bb.4:
	mov	w8, #2048
	b	LBB0_6
LBB0_5:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x21, x25
	sxtw	x25, w28
	bl	_omap_vout_dss_omap34xx
	cmp	w28, #1, lsl #12                ; =4096
	ccmp	x0, #0, #4, hi
	mov	w8, #4096
	csel	x8, x8, x25, ne
	mov	x25, x21
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_6:
	sxtw	x9, w27
	udiv	x8, x9, x8
	ands	w8, w8, #0xfffffffe
	mov	w9, #2
	csel	w9, w9, w8, eq
	str	w9, [x20]
	ldr	x8, [x20, #8]
	add	x10, x8, w9, sxtw
	ldr	x9, [x21]
	cmp	x10, x9
	b.le	LBB0_8
; %bb.7:
	sub	w8, w9, w8
	and	w8, w8, #0xfffffffe
	str	w8, [x20]
LBB0_8:
	lsl	x27, x26, #10
	ldrsw	x8, [x20, #16]
	sdiv	x28, x27, x8
	bl	_omap_vout_dss_omap24xx
	cbz	x0, LBB0_11
; %bb.9:
	cmp	x28, #2048
	b.ls	LBB0_11
; %bb.10:
	mov	w8, #2048
	b	LBB0_12
LBB0_11:
	bl	_omap_vout_dss_omap34xx
	cmp	x28, #1, lsl #12                ; =4096
	ccmp	x0, #0, #4, hi
	mov	w8, #4096
	csel	x8, x8, x28, ne
LBB0_12:
	udiv	x8, x27, x8
	ands	w8, w8, #0xfffffffe
	mov	w9, #2
	csel	w9, w9, w8, eq
	str	w9, [x20, #16]
	ldr	x8, [x20, #24]
	add	x10, x8, w9, sxtw
	ldr	x9, [x21, #8]
	cmp	x10, x9
	b.le	LBB0_14
; %bb.13:
	sub	w8, w9, w8
	and	w8, w8, #0xfffffffe
	str	w8, [x20, #16]
LBB0_14:
	bl	_omap_vout_dss_omap24xx
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w8, [x20]
	sdiv	w9, w24, w8
	lsl	w10, w8, #1
	cmp	w9, #1
	csel	w24, w10, w24, gt
	ldrsw	x9, [x20, #16]
	lsl	x10, x9, #1
	sdiv	x9, x26, x9
	cmp	x9, #1
	csel	x26, x10, x26, gt
	cmp	x26, #769
	b.lt	LBB0_20
; %bb.16:
	cmp	w24, w8
	mov	w8, #768
	csel	x26, x26, x8, eq
	b	LBB0_20
LBB0_17:
	bl	_omap_vout_dss_omap34xx
	cbz	x0, LBB0_20
; %bb.18:
	ldr	w8, [x20]
	sdiv	w9, w24, w8
	lsl	w8, w8, #2
	cmp	w9, #3
	csel	w24, w8, w24, gt
	ldrsw	x8, [x20, #16]
	sdiv	x9, x26, x8
	cmp	x9, #4
	b.lt	LBB0_20
; %bb.19:
	lsl	x26, x8, #2
LBB0_20:
	mov	w0, #0
	stp	x22, x26, [x19]
	str	x23, [x19, #16]
	stp	w24, w25, [x19, #24]
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
