	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_reset_clocks           ## -- Begin function bxt_dsi_reset_clocks
	.p2align	4, 0x90
_bxt_dsi_reset_clocks:                  ## @bxt_dsi_reset_clocks
	.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
	movl	%esi, %r15d
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %rdi
	callq	_IS_BROXTON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BXT_MIPI_CLOCK_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_BXT_MIPI_TX_ESCLK_FIXDIV_MASK
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_BXT_MIPI_RX_ESCLK_UPPER_FIXDIV_MASK
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%r15d, %edi
	callq	_BXT_MIPI_8X_BY3_DIVIDER_MASK
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_BXT_MIPI_RX_ESCLK_LOWER_FIXDIV_MASK
	movl	%eax, %esi
	orl	%r12d, %esi
	orl	%ebx, %esi
	jmp	LBB0_3
LBB0_2:
	movq	_MIPIO_TXESC_CLK_DIV1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_GLK_TX_ESC_CLK_DIV1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movq	_MIPIO_TXESC_CLK_DIV2@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_GLK_TX_ESC_CLK_DIV2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	notl	%esi
	andl	%r14d, %esi
	movl	(%r13), %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MIPI_EOT_DISABLE
	movq	_CLOCKSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BXT_MIPI_CLOCK_CTL,4,2         ## @BXT_MIPI_CLOCK_CTL
	.comm	_MIPIO_TXESC_CLK_DIV1,4,2       ## @MIPIO_TXESC_CLK_DIV1
	.comm	_GLK_TX_ESC_CLK_DIV1_MASK,4,2   ## @GLK_TX_ESC_CLK_DIV1_MASK
	.comm	_MIPIO_TXESC_CLK_DIV2,4,2       ## @MIPIO_TXESC_CLK_DIV2
	.comm	_GLK_TX_ESC_CLK_DIV2_MASK,4,2   ## @GLK_TX_ESC_CLK_DIV2_MASK
	.comm	_CLOCKSTOP,4,2                  ## @CLOCKSTOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_reset_clocks           ; -- Begin function bxt_dsi_reset_clocks
	.p2align	2
_bxt_dsi_reset_clocks:                  ; @bxt_dsi_reset_clocks
	.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
	ldr	x0, [x0]
	bl	_to_i915
	bl	_IS_BROXTON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x22, _BXT_MIPI_CLOCK_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BXT_MIPI_CLOCK_CTL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x20, x0
	mov	x0, x19
	bl	_BXT_MIPI_TX_ESCLK_FIXDIV_MASK
	mov	x21, x0
	mov	x0, x19
	bl	_BXT_MIPI_RX_ESCLK_UPPER_FIXDIV_MASK
	orr	w21, w0, w21
	mov	x0, x19
	bl	_BXT_MIPI_8X_BY3_DIVIDER_MASK
	orr	w21, w21, w0
	mov	x0, x19
	bl	_BXT_MIPI_RX_ESCLK_LOWER_FIXDIV_MASK
	orr	w8, w21, w0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x20, _MIPIO_TXESC_CLK_DIV1@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MIPIO_TXESC_CLK_DIV1@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh4:
	adrp	x8, _GLK_TX_ESC_CLK_DIV1_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GLK_TX_ESC_CLK_DIV1_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_I915_WRITE
Lloh7:
	adrp	x22, _MIPIO_TXESC_CLK_DIV2@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MIPIO_TXESC_CLK_DIV2@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x20, x0
Lloh9:
	adrp	x8, _GLK_TX_ESC_CLK_DIV2_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GLK_TX_ESC_CLK_DIV2_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
LBB0_3:
	bic	w1, w20, w8
	ldr	w0, [x22]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MIPI_EOT_DISABLE
Lloh12:
	adrp	x8, _CLOCKSTOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLOCKSTOP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [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
	b	_I915_WRITE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BXT_MIPI_CLOCK_CTL,4,2         ; @BXT_MIPI_CLOCK_CTL
	.comm	_MIPIO_TXESC_CLK_DIV1,4,2       ; @MIPIO_TXESC_CLK_DIV1
	.comm	_GLK_TX_ESC_CLK_DIV1_MASK,4,2   ; @GLK_TX_ESC_CLK_DIV1_MASK
	.comm	_MIPIO_TXESC_CLK_DIV2,4,2       ; @MIPIO_TXESC_CLK_DIV2
	.comm	_GLK_TX_ESC_CLK_DIV2_MASK,4,2   ; @GLK_TX_ESC_CLK_DIV2_MASK
	.comm	_CLOCKSTOP,4,2                  ; @CLOCKSTOP
.subsections_via_symbols
