	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dsi_phy_timconfig
_mtk_dsi_phy_timconfig:                 ## @mtk_dsi_phy_timconfig
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	movl	$1000, %eax                     ## imm = 0x3E8
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$8000, %eax                     ## imm = 0x1F40
	xorl	%edx, %edx
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	movq	_T_LPX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_T_HS_PREP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	movq	_T_HS_ZERO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$16, %edx
	movq	_T_HS_TRAIL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
	shll	$24, %r13d
	orl	%edx, %r13d
	orl	%ecx, %r13d
	leal	(,%rax,4), %ecx
	leal	(%rax,%rax,2), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	andl	$-2, %esi
	shll	$7, %esi
	shll	$16, %eax
	leal	(%rax,%rax,4), %eax
	orl	%ecx, %eax
	movq	_T_HS_EXIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	shll	$24, %r12d
	orl	%eax, %r12d
	orl	%esi, %r12d
	movl	$100, %edi
	movl	%ebx, %esi
	callq	_NS_TO_CYCLE
                                        ## kill: def $eax killed $eax def $rax
	shll	$24, %eax
	leal	167772160(%rax), %r14d
	movl	$336, %edi                      ## imm = 0x150
	movl	%ebx, %esi
	callq	_NS_TO_CYCLE
	shll	$16, %eax
	orl	%eax, %r14d
	movl	$64, %edi
	movl	%ebx, %esi
	callq	_NS_TO_CYCLE
	movl	(%r15), %r15d
	shll	$17, %r15d
	orl	%eax, %r15d
	imull	$52, -44(%rbp), %edi            ## 4-byte Folded Reload
	addl	$132, %edi
	movl	%ebx, %esi
	callq	_NS_TO_CYCLE
	shll	$8, %eax
	orl	%eax, %r15d
	movq	_DSI_PHY_TIMECON0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	8(%rbx), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	_DSI_PHY_TIMECON1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	_DSI_PHY_TIMECON2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_DSI_PHY_TIMECON3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_T_LPX,4,2                      ## @T_LPX
	.comm	_T_HS_PREP,4,2                  ## @T_HS_PREP
	.comm	_T_HS_ZERO,4,2                  ## @T_HS_ZERO
	.comm	_T_HS_TRAIL,4,2                 ## @T_HS_TRAIL
	.comm	_T_HS_EXIT,4,2                  ## @T_HS_EXIT
	.comm	_DSI_PHY_TIMECON0,8,3           ## @DSI_PHY_TIMECON0
	.comm	_DSI_PHY_TIMECON1,8,3           ## @DSI_PHY_TIMECON1
	.comm	_DSI_PHY_TIMECON2,8,3           ## @DSI_PHY_TIMECON2
	.comm	_DSI_PHY_TIMECON3,8,3           ## @DSI_PHY_TIMECON3
	.no_dead_strip	_mtk_dsi_phy_timconfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dsi_phy_timconfig
_mtk_dsi_phy_timconfig:                 ; @mtk_dsi_phy_timconfig
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #1000
	mov	w10, #8000
	sdiv	w10, w10, w8
	add	w20, w10, #1
Lloh0:
	adrp	x24, _T_LPX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _T_LPX@GOTPAGEOFF]
	ldr	w10, [x24]
Lloh2:
	adrp	x11, _T_HS_PREP@GOTPAGE
Lloh3:
	ldr	x11, [x11, _T_HS_PREP@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	orr	w11, w10, w11, lsl #8
Lloh5:
	adrp	x12, _T_HS_ZERO@GOTPAGE
Lloh6:
	ldr	x12, [x12, _T_HS_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	orr	w11, w11, w12, lsl #16
Lloh8:
	adrp	x12, _T_HS_TRAIL@GOTPAGE
Lloh9:
	ldr	x12, [x12, _T_HS_TRAIL@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	orr	w21, w11, w12, lsl #24
	lsl	w11, w10, #2
	add	w12, w10, w10, lsl #1
	cmp	w12, #0
	cinc	w12, w12, lt
	lsl	w12, w12, #7
	and	w12, w12, #0xffffff00
	add	w10, w11, w10
	orr	w10, w11, w10, lsl #16
Lloh11:
	adrp	x11, _T_HS_EXIT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _T_HS_EXIT@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w10, w10, w12
	orr	w22, w10, w11, lsl #24
	sdiv	w25, w9, w8
	mov	w0, #100
	mov	x1, x20
	bl	_NS_TO_CYCLE
	mov	w8, #167772160
	add	w23, w8, w0, lsl #24
	mov	w0, #336
	mov	x1, x20
	bl	_NS_TO_CYCLE
	orr	w23, w23, w0, lsl #16
	mov	w0, #64
	mov	x1, x20
	bl	_NS_TO_CYCLE
	ldr	w8, [x24]
	orr	w24, w0, w8, lsl #17
	mov	w8, #52
	mul	w8, w25, w8
	add	w0, w8, #132
	mov	x1, x20
	bl	_NS_TO_CYCLE
	orr	w20, w24, w0, lsl #8
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _DSI_PHY_TIMECON0@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DSI_PHY_TIMECON0@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _DSI_PHY_TIMECON1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DSI_PHY_TIMECON1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _DSI_PHY_TIMECON2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DSI_PHY_TIMECON2@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _DSI_PHY_TIMECON3@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DSI_PHY_TIMECON3@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_T_LPX,4,2                      ; @T_LPX
	.comm	_T_HS_PREP,4,2                  ; @T_HS_PREP
	.comm	_T_HS_ZERO,4,2                  ; @T_HS_ZERO
	.comm	_T_HS_TRAIL,4,2                 ; @T_HS_TRAIL
	.comm	_T_HS_EXIT,4,2                  ; @T_HS_EXIT
	.comm	_DSI_PHY_TIMECON0,8,3           ; @DSI_PHY_TIMECON0
	.comm	_DSI_PHY_TIMECON1,8,3           ; @DSI_PHY_TIMECON1
	.comm	_DSI_PHY_TIMECON2,8,3           ; @DSI_PHY_TIMECON2
	.comm	_DSI_PHY_TIMECON3,8,3           ; @DSI_PHY_TIMECON3
	.no_dead_strip	_mtk_dsi_phy_timconfig
.subsections_via_symbols
