	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_encoder_enable
_dw_mipi_dsi_encoder_enable:            ## @dw_mipi_dsi_encoder_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_dsi
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_drm_of_encoder_active_endpoint_id
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	callq	_pm_runtime_get_sync
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	16(%rax), %rdi
	callq	_pm_runtime_get_sync
LBB0_3:
	movl	(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEV_ERROR                  ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dw_mipi_dsi_rockchip_config
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	%r14d, %esi
	callq	_dw_mipi_dsi_rockchip_config
LBB0_6:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_disable_unprepare          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable grf_clk: %d\n"

	.no_dead_strip	_dw_mipi_dsi_encoder_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mipi_dsi_encoder_enable
_dw_mipi_dsi_encoder_enable:            ; @dw_mipi_dsi_encoder_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_dsi
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_drm_of_encoder_active_endpoint_id
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_pm_runtime_get_sync
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x8, #16]
	bl	_pm_runtime_get_sync
LBB0_3:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_6
; %bb.4:
	mov	x2, x0
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEV_ERROR
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mipi_dsi_rockchip_config
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x20
	bl	_dw_mipi_dsi_rockchip_config
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_disable_unprepare
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable grf_clk: %d\n"

	.no_dead_strip	_dw_mipi_dsi_encoder_enable
.subsections_via_symbols
