	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skl_max_scale                  ## -- Begin function skl_max_scale
	.p2align	4, 0x90
_skl_max_scale:                         ## @skl_max_scale
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_to_i915
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	callq	_to_intel_atomic_state
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jl	LBB0_4
LBB0_3:
	addl	%r15d, %r15d
LBB0_4:
	testl	%ebx, %ebx
	sete	%al
	cmpl	%ebx, %r15d
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r14d, %edi
	callq	_is_planar_yuv_format
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	shll	$16, %edi
	addl	$131071, %edi                   ## imm = 0x1FFFF
	shll	$8, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%ebx
	shll	$8, %eax
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skl_max_scale                  ; -- Begin function skl_max_scale
	.p2align	2
_skl_max_scale:                         ; @skl_max_scale
	.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	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #12]
	bl	_to_intel_crtc
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	ldp	w0, w22, [x21]
	bl	_to_intel_atomic_state
	ldr	w21, [x0]
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.lt	LBB0_4
LBB0_3:
	lsl	w21, w21, #1
LBB0_4:
	cmp	w22, #0
	ccmp	w21, w22, #8, ne
	cset	w0, lt
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
LBB0_6:
	mov	x0, x19
	bl	_is_planar_yuv_format
	cmp	x0, #0
	mov	w8, #131071
	mov	w9, #196607
	csel	w0, w9, w8, eq
	lsl	w8, w21, #8
	sdiv	w8, w8, w22
	lsl	w1, w8, #8
	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
	b	_min
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
.subsections_via_symbols
