	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_compute_transition_wm
_skl_compute_transition_wm:             ## @skl_compute_transition_wm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jl	LBB0_6
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rax
	movl	(%rax), %r13d
	leal	-1(%r13), %r14d
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	movl	$2, %edi
	callq	_mul_round_up_u32_fixed16
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_4:
	movq	_CNL_REVID_A0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_IS_CNL_REVID
	testq	%rax, %rax
	cmovel	%r14d, %r13d
LBB0_5:
	leal	25(%r13), %eax
	addl	$15, %r13d
	cmpl	$11, -44(%rbp)                  ## 4-byte Folded Reload
	cmovll	%eax, %r13d
	movl	%r13d, (%r15)
	movl	$1, 4(%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNL_REVID_A0,4,2               ## @CNL_REVID_A0
	.no_dead_strip	_skl_compute_transition_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_compute_transition_wm
_skl_compute_transition_wm:             ; @skl_compute_transition_wm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_to_i915
	mov	x22, x0
	bl	_INTEL_GEN
	cmp	w0, #10
	b.lt	LBB0_6
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_INTEL_GEN
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w24, [x8]
	sub	w23, w24, #1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	w0, #2
	bl	_mul_round_up_u32_fixed16
	mov	x1, x0
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_max
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _CNL_REVID_A0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNL_REVID_A0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x1
	bl	_IS_CNL_REVID
	cmp	x0, #0
	csel	w0, w23, w24, eq
LBB0_5:
	mov	w8, #25
	mov	w9, #15
	cmp	w20, #10
	csel	w8, w9, w8, gt
	add	w8, w8, w0
	mov	w9, #1
	stp	w8, w9, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CNL_REVID_A0,4,2               ; @CNL_REVID_A0
	.no_dead_strip	_skl_compute_transition_wm
.subsections_via_symbols
