	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_dphy_param_init
_vlv_dphy_param_init:                   ## @vlv_dphy_param_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	callq	_to_i915
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_intel_dsi_tlpx_ns
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	decl	%eax
	movl	$3, %ecx
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.vlv_dphy_param_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
LBB0_2:
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	_NS_KHZ_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_intel_dsi_bitrate
	movl	%eax, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	imull	%r13d, %edi
	leal	(,%r14,8), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_DIV_ROUND_UP
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rax, 32(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	movl	$2, %eax
	movl	$8, %ebx
	cmovel	%eax, %ebx
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	callq	_max
	movl	%r13d, %edi
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	imull	%eax, %edi
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r12d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	imull	%r14d, %r12d
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	movq	_PREPARE_CNT_MAX@GOTPCREL(%rip), %rbx
	cmpl	%eax, (%rbx)
	jge	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %eax
LBB0_4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	subl	%ebx, %r15d
	imull	%r13d, %r15d
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %rcx
	imull	$55, %r13d, %eax
	cltd
	idivl	-88(%rbp)                       ## 4-byte Folded Reload
	cmpl	$1, %edx
	movl	%ecx, %r15d
	sbbl	$-1, %r15d
	cmpl	%ecx, %eax
	cmovlel	%ecx, %r15d
	movq	_EXIT_ZERO_CNT_MAX@GOTPCREL(%rip), %r14
	cmpl	(%r14), %r15d
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_KMS
	movl	(%r14), %r15d
LBB0_6:
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	subl	%ebx, %edi
	imull	%r13d, %edi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %r14
	movq	_CLK_ZERO_CNT_MAX@GOTPCREL(%rip), %rbx
	cmpl	%r14d, (%rbx)
	jge	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %r14d
LBB0_8:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movl	20(%rax), %esi
	callq	_max
	imull	%eax, %r13d
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %rsi
	movq	_TRAIL_CNT_MAX@GOTPCREL(%rip), %rbx
	cmpl	%esi, (%rbx)
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %esi
LBB0_10:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	shll	$24, %eax
	movl	%esi, %ecx
	shll	$16, %ecx
	movl	%r14d, %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%ecx, %eax
	movq	%rcx, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	orl	%edx, %eax
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	%eax, 4(%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DIV_ROUND_UP
	movq	%rax, %r12
	addl	%ebx, %r15d
	imull	-76(%rbp), %r15d                ## 4-byte Folded Reload
	leal	(%r15,%rax,4), %edi
	addl	$10, %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %r15
	leal	(%r12,%r12), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	20(%rax), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_max
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	addq	%rbx, %rax
	movq	%rax, 24(%r13)
	addl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%r14d, %r14d
	leal	(%r14,%r12,4), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	addq	%rbx, %rax
	movq	%rax, 16(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	leal	(%rax,%rax), %edi
	addl	$8, %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	addq	%rbx, %rax
	movq	%rax, 8(%r13)
	movq	%r13, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_dsi_log_params           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_KHZ_RATIO,4,2               ## @NS_KHZ_RATIO
	.comm	_PREPARE_CNT_MAX,4,2            ## @PREPARE_CNT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prepare count too high %u\n"

	.comm	_EXIT_ZERO_CNT_MAX,4,2          ## @EXIT_ZERO_CNT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"exit zero count too high %u\n"

	.comm	_CLK_ZERO_CNT_MAX,4,2           ## @CLK_ZERO_CNT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"clock zero count too high %u\n"

	.comm	_TRAIL_CNT_MAX,4,2              ## @TRAIL_CNT_MAX
L_.str.3:                               ## @.str.3
	.asciz	"trail count too high %u\n"

	.no_dead_strip	_vlv_dphy_param_init
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.vlv_dphy_param_init
l_switch.table.vlv_dphy_param_init:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.quad	4                               ## 0x4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_dphy_param_init
_vlv_dphy_param_init:                   ; @vlv_dphy_param_init
	.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
	mov	x19, x0
	ldr	x0, [x0, #40]
	bl	_to_i915
	mov	x22, x0
	ldr	x28, [x0]
	mov	x0, x19
	bl	_intel_dsi_tlpx_ns
	mov	x21, x0
	ldr	w8, [x19]
	sub	w8, w8, #1
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.vlv_dphy_param_init@PAGE
Lloh1:
	add	x9, x9, l_switch.table.vlv_dphy_param_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	mov	w8, #3
LBB0_3:
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x8, _NS_KHZ_RATIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NS_KHZ_RATIO@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_intel_dsi_bitrate
	mov	x23, x0
	ldp	w8, w26, [x28]
	mul	w0, w0, w21
	lsl	w1, w20, #3
	stp	w8, w0, [sp]                    ; 8-byte Folded Spill
	bl	_DIV_ROUND_UP
	str	x0, [x19, #32]
	mov	x0, x22
	bl	_IS_GEMINILAKE
	cmp	x0, #0
	mov	w8, #8
	mov	w9, #2
	csel	w27, w9, w8, eq
	ldp	w0, w1, [x28, #8]
	bl	_max
	mov	x25, x0
	mul	w0, w23, w25
	mul	w24, w27, w20
	mov	x1, x24
	bl	_DIV_ROUND_UP
	mov	x22, x0
Lloh5:
	adrp	x21, _PREPARE_CNT_MAX@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PREPARE_CNT_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w22
	b.ge	LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_KMS
	ldr	w22, [x21]
LBB0_5:
	sub	w8, w26, w25
	mul	w0, w8, w23
	mov	x1, x24
	bl	_DIV_ROUND_UP
	mov	w8, #55
	mul	w8, w23, w8
	sdiv	w9, w8, w20
	msub	w8, w9, w20, w8
	cmp	w8, #0
	cinc	w8, w0, ne
	cmp	w9, w0
	csel	w26, w0, w8, le
Lloh9:
	adrp	x21, _EXIT_ZERO_CNT_MAX@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EXIT_ZERO_CNT_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w26, w8
	b.le	LBB0_7
; %bb.6:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	bl	_DRM_DEBUG_KMS
	ldr	w26, [x21]
LBB0_7:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	sub	w8, w8, w25
	mul	w0, w8, w23
	mov	x1, x24
	bl	_DIV_ROUND_UP
	mov	x25, x0
Lloh13:
	adrp	x21, _CLK_ZERO_CNT_MAX@GOTPAGE
Lloh14:
	ldr	x21, [x21, _CLK_ZERO_CNT_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w25
	b.ge	LBB0_9
; %bb.8:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x25
	bl	_DRM_DEBUG_KMS
	ldr	w25, [x21]
LBB0_9:
	ldp	w0, w1, [x28, #16]
	bl	_max
	mul	w0, w23, w0
	mov	x1, x24
	bl	_DIV_ROUND_UP
	mov	x23, x0
Lloh17:
	adrp	x21, _TRAIL_CNT_MAX@GOTPAGE
Lloh18:
	ldr	x21, [x21, _TRAIL_CNT_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w23
	b.ge	LBB0_11
; %bb.10:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_DRM_DEBUG_KMS
	ldr	w23, [x21]
LBB0_11:
	orr	w8, w22, w26, lsl #24
	orr	w8, w8, w25, lsl #8
	orr	w8, w8, w23, lsl #16
	str	w8, [x19, #4]
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	mov	x1, x20
	bl	_DIV_ROUND_UP
	mov	x20, x0
	lsl	w24, w20, #2
	add	w8, w26, w22
	madd	w8, w8, w27, w24
	add	w0, w8, #10
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	x21, x0
	ldr	w8, [x28, #20]
	add	w0, w8, w20, lsl #1
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	x1, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_max
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x0, x21
	str	x8, [x19, #24]
	add	w8, w25, w22
	add	w0, w24, w8, lsl #1
	mov	w1, #8
	bl	_DIV_ROUND_UP
	add	x8, x0, x21
	str	x8, [x19, #16]
	add	w8, w23, w20
	lsl	w8, w8, #1
	add	w0, w8, #8
	mov	w1, #8
	bl	_DIV_ROUND_UP
	add	x8, x0, x21
	str	x8, [x19, #8]
	mov	x0, x19
	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
	b	_intel_dsi_log_params
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_KHZ_RATIO,4,2               ; @NS_KHZ_RATIO
	.comm	_PREPARE_CNT_MAX,4,2            ; @PREPARE_CNT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prepare count too high %u\n"

	.comm	_EXIT_ZERO_CNT_MAX,4,2          ; @EXIT_ZERO_CNT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"exit zero count too high %u\n"

	.comm	_CLK_ZERO_CNT_MAX,4,2           ; @CLK_ZERO_CNT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"clock zero count too high %u\n"

	.comm	_TRAIL_CNT_MAX,4,2              ; @TRAIL_CNT_MAX
l_.str.3:                               ; @.str.3
	.asciz	"trail count too high %u\n"

	.no_dead_strip	_vlv_dphy_param_init
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.vlv_dphy_param_init
l_switch.table.vlv_dphy_param_init:
	.quad	2                               ; 0x2
	.quad	2                               ; 0x2
	.quad	4                               ; 0x4

.subsections_via_symbols
