	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_calc_scaling
_dispc_ovl_calc_scaling:                ## @dispc_ovl_calc_scaling
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	40(%rbp), %r10d
	movl	32(%rbp), %ebx
	movl	24(%rbp), %r11d
	movl	16(%rbp), %edx
	movq	(%rdi), %rax
	movl	(%rax), %r13d
	movq	$0, -88(%rbp)
	cmpl	%ebx, %edx
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	cmpl	%r10d, %r11d
	je	LBB0_27
LBB0_2:
	movl	96(%rbp), %r11d
	movl	48(%rbp), %r10d
	movq	_OMAP_DSS_WB@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.3:
	leal	-128(%r10), %eax
	movl	%r13d, %r14d
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.4:
	cltq
	leaq	l_switch.table.dispc_ovl_calc_scaling(%rip), %rsi
	movl	(%rsi,%rax,4), %r13d
	movl	$2, %r14d
	jmp	LBB0_6
LBB0_5:
	movl	%r13d, %r14d
LBB0_6:
	movq	72(%rbp), %rsi
	movq	64(%rbp), %r12
	testl	%r11d, %r11d
	je	LBB0_17
## %bb.7:
	movq	_OMAP_DSS_OVL_CAP_SCALE@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_23
## %bb.8:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, (%rsi)
	movl	$1, (%r12)
LBB0_9:
	movl	%edx, %edi
	movl	%ebx, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	movl	%eax, -60(%rbp)
	movl	24(%rbp), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	40(%rbp), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_DIV_ROUND_UP
	movl	16(%rbp), %r8d
	movl	32(%rbp), %esi
	movl	%eax, -44(%rbp)
	cmpl	(%r12), %ebx
	jg	LBB0_23
## %bb.10:
	leal	(,%r8,8), %ecx
	cmpl	%esi, %ecx
	jl	LBB0_23
## %bb.11:
	movq	%r12, %rdx
	movq	72(%rbp), %r12
	cmpl	(%r12), %eax
	movl	24(%rbp), %ebx
	jg	LBB0_23
## %bb.12:
	leal	(,%rbx,8), %eax
	movl	40(%rbp), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_23
## %bb.13:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %r11
	subq	$8, %rsp
	leaq	-88(%rbp), %r10
	leaq	-60(%rbp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rdx, %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%rbx, %r15
	movl	%r15d, %r9d
	movl	96(%rbp), %ebx
	pushq	%rbx
	pushq	%r10
	movl	80(%rbp), %ebx
	pushq	%rbx
	leaq	-44(%rbp), %rbx
	pushq	%rbx
	pushq	%r13
	pushq	%r12
	pushq	%rax
	pushq	56(%rbp)
	movl	48(%rbp), %eax
	pushq	%rax
	movl	40(%rbp), %eax
	movq	%rax, %rbx
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	callq	*8(%r11)
	movl	16(%rbp), %esi
	movl	32(%rbp), %edi
	addq	$96, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.14:
	movl	%edi, %eax
	cltd
	idivl	%esi
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, %r12
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	movq	%rsi, %rbx
	callq	_DIV_FRAC
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	cltd
	idivl	%r14d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_DIV_FRAC
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	-60(%rbp), %ecx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %esi
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movl	%r14d, %eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	32(%rbp), %edi
	movl	%edi, %eax
	cltd
	idivl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r13d, %esi
	callq	_DIV_FRAC
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, %eax
	cltd
	idivl	-44(%rbp)
	movl	%eax, %esi
	movl	%r12d, %eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r12d, %edi
	callq	_DIV_FRAC
	xorl	%ecx, %ecx
	movq	56(%rbp), %rdx
	cmpl	$0, (%rdx)
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	setne	%cl
	leal	(%rcx,%rcx), %ebx
	addl	$3, %ebx
	movq	-88(%rbp), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dispc_core_clk_rate
	leaq	L_.str.1(%rip), %rdi
	movl	16(%rbp), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movl	32(%rbp), %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r12d, %r8d
	movl	-92(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r15
	pushq	%rbx
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	%r13
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	pushq	-152(%rbp)                      ## 8-byte Folded Reload
	pushq	-160(%rbp)                      ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_DSSDBG
	addq	$112, %rsp
	movq	-88(%rbp), %rbx
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r14
	callq	_dispc_core_clk_rate
	cmpq	%rax, %rbx
	jbe	LBB0_30
## %bb.16:
	movq	-88(%rbp), %rbx
	jmp	LBB0_29
LBB0_17:
	testq	%r15, %r15
	je	LBB0_24
## %bb.18:
	cmpq	$0, (%r9)
	je	LBB0_24
## %bb.19:
	movq	_OMAP_DSS_OVL_CAP_SCALE@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_23
## %bb.20:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	88(%rbp), %edi
	movl	$16, (%r12)
	movq	_OMAP_DSS_ROT_TILER@GOTPCREL(%rip), %rcx
	movl	$16, %eax
	cmpl	%edi, (%rcx)
	jne	LBB0_22
## %bb.21:
	movq	_FEAT_BURST_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %r12
	callq	_dispc_has_feature
	movq	%r12, %rdx
	movq	72(%rbp), %rsi
	testq	%rax, %rax
	movl	$16, %ecx
	movl	$2, %eax
	cmovel	%ecx, %eax
LBB0_22:
	movl	%eax, (%rsi)
	movq	64(%rbp), %r12
	jmp	LBB0_9
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DSSERR
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_26:
	subl	(%rax), %r12d
LBB0_27:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	xorl	%ebx, %ebx
LBB0_29:
	movq	%r14, %rdi
	callq	_dispc_core_clk_rate
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DSSERR
	jmp	LBB0_25
LBB0_30:
	movl	-60(%rbp), %eax
	movq	64(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	-44(%rbp), %eax
	movq	72(%rbp), %rcx
	movl	%eax, (%rcx)
	xorl	%r12d, %r12d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_WB,4,2                ## @OMAP_DSS_WB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot calculate scaling settings: pclk is zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP_DSS_OVL_CAP_SCALE,4,2     ## @OMAP_DSS_OVL_CAP_SCALE
	.comm	_OMAP_DSS_ROT_TILER,4,2         ## @OMAP_DSS_ROT_TILER
	.comm	_FEAT_BURST_2D,4,2              ## @FEAT_BURST_2D
L_.str.1:                               ## @.str.1
	.asciz	"%dx%d -> %dx%d (%d.%02d x %d.%02d), decim %dx%d %dx%d (%d.%02d x %d.%02d), taps %d, req clk %lu, cur clk %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to set up scaling, required core clk rate = %lu Hz, current core clk rate = %lu Hz\n"

	.no_dead_strip	_dispc_ovl_calc_scaling
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dispc_ovl_calc_scaling
l_switch.table.dispc_ovl_calc_scaling:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_calc_scaling
_dispc_ovl_calc_scaling:                ; @dispc_ovl_calc_scaling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	mov	x20, x7
	mov	x21, x6
	mov	x26, x2
	mov	x19, x0
	ldp	w23, w22, [x29, #16]
	ldr	x8, [x0]
	ldr	w27, [x8]
	stur	xzr, [x29, #-96]
	cmp	w6, w23
	b.ne	LBB0_3
; %bb.1:
	cmp	w20, w22
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_28
LBB0_3:
	ldr	w25, [x29, #64]
	ldp	x11, x10, [x29, #40]
	ldr	w12, [x29, #24]
Lloh0:
	adrp	x8, _OMAP_DSS_WB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DSS_WB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_18
; %bb.4:
	sub	w8, w12, #128
	mov	x28, x27
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.5:
Lloh3:
	adrp	x9, l_switch.table.dispc_ovl_calc_scaling@PAGE
Lloh4:
	add	x9, x9, l_switch.table.dispc_ovl_calc_scaling@PAGEOFF
	ldr	w27, [x9, w8, sxtw #2]
	mov	w28, #2
LBB0_6:
	cbz	w25, LBB0_19
LBB0_7:
Lloh5:
	adrp	x8, _OMAP_DSS_OVL_CAP_SCALE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMAP_DSS_OVL_CAP_SCALE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_27
; %bb.8:
	str	w12, [sp, #108]                 ; 4-byte Folded Spill
	stp	x3, x5, [sp, #112]              ; 16-byte Folded Spill
	mov	w8, #1
	stur	x10, [x29, #-112]               ; 8-byte Folded Spill
	str	w8, [x10]
	str	w8, [x11]
	mov	x24, x11
LBB0_9:
	mov	x0, x21
	mov	x1, x23
	bl	_DIV_ROUND_UP
	mov	x1, x28
	bl	_DIV_ROUND_UP
	mov	x28, x0
	stur	w0, [x29, #-100]
	mov	x0, x20
	mov	x1, x22
	bl	_DIV_ROUND_UP
	mov	x1, x27
	bl	_DIV_ROUND_UP
	stur	w0, [x29, #-104]
	ldr	w8, [x24]
	cmp	w28, w8
	b.gt	LBB0_27
; %bb.10:
	lsl	w8, w21, #3
	cmp	w8, w23
	b.lt	LBB0_27
; %bb.11:
	ldur	x11, [x29, #-112]               ; 8-byte Folded Reload
	ldr	w8, [x11]
	cmp	w0, w8
	b.gt	LBB0_27
; %bb.12:
	lsl	w8, w20, #3
	cmp	w8, w22
	b.lt	LBB0_27
; %bb.13:
	ldr	x27, [x29, #32]
	ldr	w8, [x29, #56]
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	str	w25, [sp, #64]
	sub	x10, x29, #96
	str	x10, [sp, #56]
	str	w8, [sp, #48]
	sub	x8, x29, #104
	str	x8, [sp, #40]
	sub	x8, x29, #100
	stp	x11, x8, [sp, #24]
	stp	x27, x24, [sp, #8]
	ldr	w8, [sp, #108]                  ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x26
	ldp	x2, x3, [sp, #112]              ; 16-byte Folded Reload
	mov	x4, x21
	mov	x5, x20
	mov	x6, x23
	mov	x7, x22
	blr	x9
	cbnz	w0, LBB0_28
; %bb.14:
	str	x24, [sp, #72]                  ; 8-byte Folded Spill
	sdiv	w8, w23, w21
	str	w8, [sp, #120]                  ; 4-byte Folded Spill
	mov	x0, x23
	mov	x1, x21
	bl	_DIV_FRAC
	sdiv	w8, w22, w20
	stp	w8, w0, [sp, #108]              ; 8-byte Folded Spill
	mov	x0, x22
	mov	x1, x20
	bl	_DIV_FRAC
	ldp	w24, w8, [x29, #-104]
	stp	w8, w0, [sp, #100]              ; 8-byte Folded Spill
	sdiv	w28, w21, w8
	sdiv	w9, w20, w24
	sdiv	w8, w23, w28
	stp	w8, w9, [sp, #92]               ; 8-byte Folded Spill
	mov	x0, x23
	mov	x1, x28
	bl	_DIV_FRAC
	ldur	w8, [x29, #-104]
	sdiv	w1, w20, w8
	sdiv	w8, w22, w1
	stp	w8, w0, [sp, #84]               ; 8-byte Folded Spill
	mov	x0, x22
	bl	_DIV_FRAC
	mov	x25, x0
	ldr	w8, [x27]
	mov	w9, #5
	mov	w10, #3
	cmp	w8, #0
	csel	w27, w10, w9, eq
	ldur	x26, [x29, #-96]
	mov	x0, x19
	bl	_dispc_core_clk_rate
	stp	x26, x0, [sp, #40]
	stp	w25, w27, [sp, #32]
	ldr	w9, [sp, #84]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #24]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	ldr	w9, [sp, #92]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #96]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #16]
	stp	w24, w28, [sp, #8]
	ldr	w9, [sp, #100]                  ; 4-byte Folded Reload
	ldp	w8, w7, [sp, #104]              ; 8-byte Folded Reload
	stp	w8, w9, [sp]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	ldr	w5, [sp, #120]                  ; 4-byte Folded Reload
	ldr	w6, [sp, #112]                  ; 4-byte Folded Reload
	bl	_DSSDBG
	ldur	x20, [x29, #-96]
	cbz	x20, LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_dispc_core_clk_rate
	cmp	x20, x0
	b.ls	LBB0_29
; %bb.16:
	ldur	x20, [x29, #-96]
LBB0_17:
	mov	x0, x19
	bl	_dispc_core_clk_rate
	stp	x20, x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_18:
	mov	x28, x27
	cbnz	w25, LBB0_7
LBB0_19:
	cbz	x26, LBB0_25
; %bb.20:
	ldr	x8, [x5]
	cbz	x8, LBB0_25
; %bb.21:
Lloh12:
	adrp	x8, _OMAP_DSS_OVL_CAP_SCALE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMAP_DSS_OVL_CAP_SCALE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_27
; %bb.22:
	str	w12, [sp, #108]                 ; 4-byte Folded Spill
	stp	x3, x5, [sp, #112]              ; 16-byte Folded Spill
	ldr	w8, [x29, #60]
	mov	w12, #16
	mov	x24, x11
	str	w12, [x11]
Lloh15:
	adrp	x9, _OMAP_DSS_ROT_TILER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OMAP_DSS_ROT_TILER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w9, w8
	stur	x10, [x29, #-112]               ; 8-byte Folded Spill
	b.ne	LBB0_24
; %bb.23:
Lloh18:
	adrp	x8, _FEAT_BURST_2D@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FEAT_BURST_2D@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	mov	w12, #16
	ldur	x10, [x29, #-112]               ; 8-byte Folded Reload
	cmp	x0, #0
	mov	w8, #2
	csel	w12, w12, w8, eq
LBB0_24:
	str	w12, [x10]
	b	LBB0_9
LBB0_25:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
LBB0_26:
	bl	_DSSERR
LBB0_27:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_29:
	mov	w0, #0
	ldur	w8, [x29, #-100]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldur	w8, [x29, #-104]
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_WB,4,2                ; @OMAP_DSS_WB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot calculate scaling settings: pclk is zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP_DSS_OVL_CAP_SCALE,4,2     ; @OMAP_DSS_OVL_CAP_SCALE
	.comm	_OMAP_DSS_ROT_TILER,4,2         ; @OMAP_DSS_ROT_TILER
	.comm	_FEAT_BURST_2D,4,2              ; @FEAT_BURST_2D
l_.str.1:                               ; @.str.1
	.asciz	"%dx%d -> %dx%d (%d.%02d x %d.%02d), decim %dx%d %dx%d (%d.%02d x %d.%02d), taps %d, req clk %lu, cur clk %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to set up scaling, required core clk rate = %lu Hz, current core clk rate = %lu Hz\n"

	.no_dead_strip	_dispc_ovl_calc_scaling
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dispc_ovl_calc_scaling
l_switch.table.dispc_ovl_calc_scaling:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	2                               ; 0x2

.subsections_via_symbols
