	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_setup_common
_dispc_ovl_setup_common:                ## @dispc_ovl_setup_common
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -112(%rbp)                ## 4-byte Spill
	movq	%r8, -184(%rbp)                 ## 8-byte Spill
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	120(%rbp), %r14
	movq	64(%rbp), %r15
	movl	$1, -132(%rbp)
	movl	$1, -84(%rbp)
	movl	$1, -80(%rbp)
	movq	_DISPLAY_FLAGS_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%r14), %r12d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	callq	_dispc_plane_pclk_rate
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dispc_plane_lclk_rate
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_drm_format_info
	movq	_OMAP_DSS_WB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%r13d, %edi
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
LBB0_2:
	movl	104(%rbp), %edx
	cmpq	$0, -152(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.3:
	movq	_OMAP_DSS_ROT_TILER@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_24
LBB0_4:
	movl	32(%rbp), %r14d
	testb	$1, %r14b
	je	LBB0_7
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DSSERR
	jmp	LBB0_24
LBB0_7:
	movl	56(%rbp), %edx
	movl	48(%rbp), %ecx
	movl	40(%rbp), %esi
	movl	24(%rbp), %r8d
	testl	%ecx, %ecx
	cmovel	%r14d, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	testl	%edx, %edx
	cmovel	%esi, %edx
	cmpl	%r13d, %edi
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	je	LBB0_10
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	%r13d, -164(%rbp)               ## 4-byte Spill
	movl	%esi, %r13d
	shrl	$31, %r13d
	addl	%esi, %r13d
	sarl	%r13d
	xorl	%eax, %eax
	cmpl	%esi, %edx
	sete	%al
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmovnel	%esi, %r13d
	movl	%r8d, %r15d
	shrl	$31, %r15d
	addl	%r8d, %r15d
	sarl	%r15d
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DSSDBG
	movl	%ebx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movl	%r13d, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	-164(%rbp), %r13d               ## 4-byte Reload
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	64(%rbp), %r15
	jmp	LBB0_11
LBB0_10:
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
LBB0_11:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_dispc_ovl_color_mode_supported
	testl	%eax, %eax
	je	LBB0_24
## %bb.12:
	movl	128(%rbp), %eax
	subq	$8, %rsp
	movq	%r15, %r10
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rbx
	leaq	-84(%rbp), %r15
	leaq	-132(%rbp), %r11
	movl	%r13d, %esi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movq	120(%rbp), %r9
	pushq	%rax
	movl	104(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r15
	pushq	%r11
	pushq	%r10
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	movq	%r14, %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	pushq	%r14
	movq	-120(%rbp), %r15                ## 8-byte Reload
	pushq	%r15
	pushq	%rax
	callq	_dispc_ovl_calc_scaling
	addq	$96, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.13:
	movl	-84(%rbp), %esi
	movl	32(%rbp), %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movl	-80(%rbp), %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	cmpl	$1, %esi
	jg	LBB0_15
## %bb.14:
	cmpl	$2, %ecx
	jl	LBB0_16
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	movl	%ecx, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_DSSDBG
LBB0_16:
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movl	%ebx, %ecx
	andl	$1, %ecx
	je	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	movl	%ebx, %r15d
	callq	_DSSDBG
	andl	$-2, %ebx
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DSSDBG
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
LBB0_19:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	_OMAP_DSS_WB@GOTPCREL(%rip), %r9
	movq	-104(%rbp), %r10                ## 8-byte Reload
	testq	%rax, %rax
	setne	%al
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	movb	%al, -120(%rbp)                 ## 1-byte Spill
	jne	LBB0_28
## %bb.20:
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.21:
	testl	%r14d, %r14d
	je	LBB0_28
## %bb.22:
	cmpl	%esi, %r14d
	movl	-112(%rbp), %edi                ## 4-byte Reload
	je	LBB0_29
## %bb.23:
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	jmp	LBB0_29
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	-112(%rbp), %edi                ## 4-byte Reload
LBB0_29:
	movl	%r14d, -128(%rbp)               ## 4-byte Spill
	testl	%r15d, %r15d
	movl	$1, %r8d
	cmovel	%ecx, %r8d
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -64(%rbp)
	cmpl	%r13d, (%r9)
	movl	%ebx, -144(%rbp)                ## 4-byte Spill
	movl	%ebx, %esi
	cmovel	%r10d, %esi
	movl	-84(%rbp), %r10d
	movl	-80(%rbp), %ebx
	subq	$8, %rsp
	leaq	-48(%rbp), %r11
	leaq	-52(%rbp), %r14
	leaq	-56(%rbp), %r9
	movq	%r15, %rcx
	movq	64(%rbp), %r12
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	72(%rbp), %eax
	pushq	%rax
	movl	104(%rbp), %r15d
	pushq	%r15
	pushq	%rbx
	pushq	%r10
	leaq	-64(%rbp), %rax
	pushq	%rax
	pushq	%r11
	pushq	%r14
	callq	_calc_offset
	addq	$64, %rsp
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %ecx
	movl	-64(%rbp), %r8d
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DSSDBG
	movq	-160(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_dispc_ovl_set_color_mode
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	104(%rbp), %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dispc_ovl_configure_burst_type
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_31
## %bb.30:
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %esi
	callq	_swap
LBB0_31:
	movl	-56(%rbp), %edx
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	addq	%rbx, %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dispc_ovl_set_ba0
	movl	-52(%rbp), %edx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dispc_ovl_set_ba1
	movq	_DRM_FORMAT_NV12@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_33
## %bb.32:
	movl	-56(%rbp), %edx
	movq	-184(%rbp), %r14                ## 8-byte Reload
	addq	%r14, %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dispc_ovl_set_ba0_uv
	movl	-52(%rbp), %edx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_dispc_ovl_set_ba1_uv
LBB0_33:
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.34:
	movl	%r13d, %r14d
	movl	-64(%rbp), %eax
	movl	-48(%rbp), %ecx
	leal	(%rax,%rcx), %edx
	decl	%edx
	movl	%edx, -48(%rbp)
	jmp	LBB0_36
LBB0_35:
	movl	%r13d, %r14d
	movl	-48(%rbp), %edx
LBB0_36:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dispc_ovl_set_row_inc
	movl	-64(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dispc_ovl_set_pix_inc
	subq	$8, %rsp
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %r12
	xorl	%ebx, %ebx
	movl	16(%rbp), %eax
	movq	%rax, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-144(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-128(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %r8d
	movq	-104(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_DSSDBG
	addq	$16, %rsp
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	16(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_dispc_ovl_set_pos
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	movq	%rdi, %r13
	movl	%r15d, %ecx
	callq	_dispc_ovl_set_input_size
	movq	_OMAP_DSS_OVL_CAP_SCALE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	64(%rbp), %rax
	movl	72(%rbp), %r15d
	movq	%r15, %rdx
	je	LBB0_38
## %bb.37:
	xorl	%r11d, %r11d
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r11b
	xorl	%edx, %edx
	movb	-120(%rbp), %cl                 ## 1-byte Reload
	movb	%cl, %dl
	movl	%edx, -152(%rbp)                ## 4-byte Spill
	movl	-132(%rbp), %ecx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	-144(%rbp), %edx                ## 4-byte Reload
	movl	-128(%rbp), %ecx                ## 4-byte Reload
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	%r12d, %r8d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %r9d
	movl	72(%rbp), %r10d
	pushq	%r10
	pushq	%rax
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%r11
	callq	_dispc_ovl_set_scaling
	addq	$48, %rsp
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_dispc_ovl_set_output_size
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	-152(%rbp), %edx                ## 4-byte Reload
	callq	_dispc_ovl_set_vid_color_conv
	movl	72(%rbp), %edx
	movq	64(%rbp), %rax
LBB0_38:
	movq	%r13, %rdi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	104(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rax, %r8
	callq	_dispc_ovl_set_rotation_attrs
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	80(%rbp), %ecx
	callq	_dispc_ovl_set_zorder
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	88(%rbp), %ecx
	callq	_dispc_ovl_set_pre_mult_alpha
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	96(%rbp), %ecx
	callq	_dispc_ovl_setup_global_alpha
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	112(%rbp), %ecx
	callq	_dispc_ovl_enable_replication
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPLAY_FLAGS_INTERLACED,4,2   ## @DISPLAY_FLAGS_INTERLACED
	.comm	_OMAP_DSS_WB,4,2                ## @OMAP_DSS_WB
	.comm	_OMAP_DSS_ROT_TILER,4,2         ## @OMAP_DSS_ROT_TILER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input width %d is not even for YUV format\n"

L_.str.1:                               ## @.str.1
	.asciz	"adjusting for ilace: height %d, pos_y %d, out_height %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"predecimation %d x %x, new input size %d x %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"predecimated input width is not even for YUV format\n"

L_.str.4:                               ## @.str.4
	.asciz	"adjusting input width %d -> %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"offset0 %u, offset1 %u, row_inc %d, pix_inc %d\n"

	.comm	_DRM_FORMAT_NV12,8,3            ## @DRM_FORMAT_NV12
L_.str.6:                               ## @.str.6
	.asciz	"%d,%d %dx%d -> %dx%d\n"

	.comm	_OMAP_DSS_OVL_CAP_SCALE,4,2     ## @OMAP_DSS_OVL_CAP_SCALE
	.no_dead_strip	_dispc_ovl_setup_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_setup_common
_dispc_ovl_setup_common:                ; @dispc_ovl_setup_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	str	x7, [sp, #128]                  ; 8-byte Folded Spill
	mov	x23, x6
	str	w5, [sp, #120]                  ; 4-byte Folded Spill
	str	x4, [sp, #112]                  ; 8-byte Folded Spill
	mov	x28, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x25, [x29, #64]
	ldr	x24, [x29, #32]
	mov	w8, #1
	stur	w8, [x29, #-92]
	stur	w8, [x29, #-112]
	stp	w2, w8, [x29, #-120]            ; 4-byte Folded Spill
	ldr	w8, [x25]
Lloh0:
	adrp	x9, _DISPLAY_FLAGS_INTERLACED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DISPLAY_FLAGS_INTERLACED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w8, w9, w8
	str	w8, [sp, #124]                  ; 4-byte Folded Spill
	cset	w22, ne
	bl	_dispc_plane_pclk_rate
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_plane_lclk_rate
	mov	x26, x0
	mov	x0, x24
	bl	_drm_format_info
	mov	x27, x0
Lloh3:
	adrp	x8, _OMAP_DSS_WB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_DSS_WB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	x19, [x25, #8]
LBB0_2:
	ldr	w11, [x29, #56]
	cbnz	x28, LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _OMAP_DSS_ROT_TILER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OMAP_DSS_ROT_TILER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w11
	b.ne	LBB0_30
LBB0_4:
	str	x23, [sp, #104]                 ; 8-byte Folded Spill
	ldr	w23, [x29, #16]
	tbz	w23, #0, LBB0_7
; %bb.5:
	ldr	x9, [x27]
	cbz	x9, LBB0_7
; %bb.6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_DSSERR
	b	LBB0_30
LBB0_7:
	str	x24, [sp, #96]                  ; 8-byte Folded Spill
	ldp	w10, w9, [x29, #24]
	ldr	w24, [x29, #20]
	cmp	w10, #0
	csel	w10, w23, w10, eq
	str	x10, [sp, #72]                  ; 8-byte Folded Spill
	cmp	w9, #0
	csel	w9, w24, w9, eq
	cmp	w8, w20
	str	w11, [sp, #92]                  ; 4-byte Folded Spill
	str	w22, [sp, #64]                  ; 4-byte Folded Spill
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [sp, #124]                  ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.9:
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w8, w8, #1
	cmp	w9, w24
	csel	w24, w8, w24, eq
	cset	w8, eq
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w10, w8, #1
	str	x10, [sp, #128]                 ; 8-byte Folded Spill
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w22, w8, #1
	stp	x10, x22, [sp, #8]
	str	x24, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSDBG
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp, #80]                  ; 8-byte Folded Spill
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp, #128]                  ; 8-byte Folded Spill
	b	LBB0_11
LBB0_10:
	str	x9, [sp, #80]                   ; 8-byte Folded Spill
	str	wzr, [sp, #68]                  ; 4-byte Folded Spill
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	ldr	x22, [sp, #96]                  ; 8-byte Folded Reload
	mov	x2, x22
	bl	_dispc_ovl_color_mode_supported
	cbz	w0, LBB0_30
; %bb.12:
	ldr	w9, [x29, #72]
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #44]
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	str	w8, [sp, #40]
	sub	x8, x29, #116
	sub	x9, x29, #112
	sub	x10, x29, #92
	stp	x9, x8, [sp, #24]
	stp	x22, x10, [sp, #8]
	ldp	x22, x8, [sp, #72]              ; 16-byte Folded Reload
	stp	w22, w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x26
	ldur	w4, [x29, #-120]                ; 4-byte Folded Reload
	mov	x5, x25
	mov	x6, x23
	mov	x7, x24
	bl	_dispc_ovl_calc_scaling
	cbnz	w0, LBB0_31
; %bb.13:
	ldp	w9, w8, [x29, #-116]
	sdiv	w26, w23, w8
	sdiv	w25, w24, w9
	cmp	w8, #1
	b.gt	LBB0_15
; %bb.14:
	cmp	w9, #2
	b.lt	LBB0_16
LBB0_15:
	mov	x10, x25
	mov	x11, x26
	stp	x11, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DSSDBG
LBB0_16:
	ldr	x9, [x27]
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	cbz	x9, LBB0_19
; %bb.17:
	tbz	w26, #0, LBB0_19
; %bb.18:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DSSDBG
	and	w19, w26, #0xfffffffe
	mov	x8, x26
	stp	x8, x19, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DSSDBG
	ldr	x9, [x27]
	mov	x26, x19
LBB0_19:
	mov	w8, #0
	ldr	w23, [x29, #40]
	cmp	x9, #0
	cset	w9, ne
	str	w9, [sp, #56]                   ; 4-byte Folded Spill
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	cbnz	w9, LBB0_24
; %bb.20:
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w10, [sp, #124]                 ; 4-byte Folded Reload
	cbz	w10, LBB0_24
; %bb.21:
	mov	w8, #0
	cbz	w25, LBB0_24
; %bb.22:
	cmp	w25, w9
	b.eq	LBB0_24
; %bb.23:
	sdiv	w8, w25, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
LBB0_24:
	ldr	w3, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w3, #0
	csinc	w4, w8, wzr, eq
	stur	xzr, [x29, #-100]
	stur	xzr, [x29, #-108]
Lloh19:
	adrp	x8, _OMAP_DSS_WB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OMAP_DSS_WB@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w20
	csel	w1, w22, w26, eq
	ldp	w9, w8, [x29, #-116]
	ldr	w19, [sp, #92]                  ; 4-byte Folded Reload
	stp	w19, w23, [sp, #16]
	sub	x10, x29, #108
	sub	x5, x29, #96
	sub	x6, x29, #100
	sub	x7, x29, #104
	stp	w8, w9, [sp, #8]
	str	x10, [sp]
	ldr	w0, [sp, #120]                  ; 4-byte Folded Reload
	mov	x2, x24
	bl	_calc_offset
	ldp	w9, w8, [x29, #-100]
	ldp	w11, w10, [x29, #-108]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DSSDBG
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_dispc_ovl_set_color_mode
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_dispc_ovl_configure_burst_type
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_26
; %bb.25:
	ldp	w1, w0, [x29, #-100]
	bl	_swap
LBB0_26:
	ldur	w8, [x29, #-96]
	add	x2, x8, x28
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_ovl_set_ba0
	ldur	w8, [x29, #-100]
	add	x2, x8, x28
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_ovl_set_ba1
Lloh24:
	adrp	x8, _DRM_FORMAT_NV12@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRM_FORMAT_NV12@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_28
; %bb.27:
	ldur	w8, [x29, #-96]
	ldr	x19, [sp, #112]                 ; 8-byte Folded Reload
	add	x2, x8, x19
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_ovl_set_ba0_uv
	ldur	w8, [x29, #-100]
	add	x2, x8, x19
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_ovl_set_ba1_uv
LBB0_28:
	ldr	w8, [x29, #60]
	str	w8, [sp, #124]                  ; 4-byte Folded Spill
	ldr	w8, [x29, #52]
	str	w8, [sp, #120]                  ; 4-byte Folded Spill
	ldr	w8, [x29, #48]
	str	w8, [sp, #112]                  ; 4-byte Folded Spill
	ldr	w8, [x29, #44]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_32
; %bb.29:
	mov	x24, x23
	ldp	w8, w9, [x29, #-108]
	add	w8, w8, w9
	sub	w2, w8, #1
	stur	w2, [x29, #-104]
	b	LBB0_33
LBB0_30:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_31:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_32:
	mov	x24, x23
	ldur	w2, [x29, #-104]
LBB0_33:
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_ovl_set_row_inc
	ldur	w2, [x29, #-108]
	mov	x0, x21
	mov	x1, x20
	bl	_dispc_ovl_set_pix_inc
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	stp	x22, x19, [sp, #32]
	stp	x26, x25, [sp, #16]
	ldr	x28, [sp, #128]                 ; 8-byte Folded Reload
	ldr	x27, [sp, #104]                 ; 8-byte Folded Reload
	stp	x27, x28, [sp]
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DSSDBG
	mov	x0, x21
	mov	x1, x20
	mov	x23, x22
	ldur	w22, [x29, #-120]               ; 4-byte Folded Reload
	mov	x2, x22
	mov	x3, x27
	mov	x4, x28
	bl	_dispc_ovl_set_pos
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	bl	_dispc_ovl_set_input_size
Lloh32:
	adrp	x8, _OMAP_DSS_OVL_CAP_SCALE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OMAP_DSS_OVL_CAP_SCALE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w22
	mov	x22, x24
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	b.eq	LBB0_35
; %bb.34:
	ldur	w7, [x29, #-92]
	str	w22, [sp, #16]
	str	x24, [sp, #8]
	ldp	w6, w8, [sp, #64]               ; 8-byte Folded Reload
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	mov	x4, x23
	mov	x5, x19
	bl	_dispc_ovl_set_scaling
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	bl	_dispc_ovl_set_output_size
	mov	x0, x21
	mov	x1, x20
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_dispc_ovl_set_vid_color_conv
LBB0_35:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	ldr	w3, [sp, #92]                   ; 4-byte Folded Reload
	mov	x4, x24
	bl	_dispc_ovl_set_rotation_attrs
	mov	x0, x21
	mov	x1, x20
	ldur	w22, [x29, #-120]               ; 4-byte Folded Reload
	mov	x2, x22
	ldr	w3, [sp, #60]                   ; 4-byte Folded Reload
	bl	_dispc_ovl_set_zorder
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	ldr	w3, [sp, #112]                  ; 4-byte Folded Reload
	bl	_dispc_ovl_set_pre_mult_alpha
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	ldr	w3, [sp, #120]                  ; 4-byte Folded Reload
	bl	_dispc_ovl_setup_global_alpha
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	ldr	w3, [sp, #124]                  ; 4-byte Folded Reload
	bl	_dispc_ovl_enable_replication
	mov	w0, #0
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPLAY_FLAGS_INTERLACED,4,2   ; @DISPLAY_FLAGS_INTERLACED
	.comm	_OMAP_DSS_WB,4,2                ; @OMAP_DSS_WB
	.comm	_OMAP_DSS_ROT_TILER,4,2         ; @OMAP_DSS_ROT_TILER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input width %d is not even for YUV format\n"

l_.str.1:                               ; @.str.1
	.asciz	"adjusting for ilace: height %d, pos_y %d, out_height %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"predecimation %d x %x, new input size %d x %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"predecimated input width is not even for YUV format\n"

l_.str.4:                               ; @.str.4
	.asciz	"adjusting input width %d -> %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"offset0 %u, offset1 %u, row_inc %d, pix_inc %d\n"

	.comm	_DRM_FORMAT_NV12,8,3            ; @DRM_FORMAT_NV12
l_.str.6:                               ; @.str.6
	.asciz	"%d,%d %dx%d -> %dx%d\n"

	.comm	_OMAP_DSS_OVL_CAP_SCALE,4,2     ; @OMAP_DSS_OVL_CAP_SCALE
	.no_dead_strip	_dispc_ovl_setup_common
.subsections_via_symbols
