	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dsi_encoder_enable
_tegra_dsi_encoder_enable:              ## @tegra_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	%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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r12
	callq	_encoder_to_output
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_to_tegra_dc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_to_dsi
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_tegra_dsi_prepare
	movq	%r13, %rdi
	callq	_tegra_dsi_get_state
	movq	%rax, %rbx
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r13, %rdi
	callq	_tegra_dsi_set_timeout
	movl	(%rbx), %esi
	shll	$3, %esi
	addq	$4, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_tegra_dsi_set_phy_timing
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_drm_panel_prepare
LBB0_2:
	movl	(%r15), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_tegra_dsi_configure
	movq	_DC_DISP_DISP_WIN_OPTIONS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_tegra_dc_readl
	movq	_DSI_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_tegra_dc_writel
	movq	%r15, %rdi
	callq	_tegra_dc_commit
	movq	%r13, %rdi
	callq	_tegra_dsi_enable
	movq	(%r14), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_panel_enable               ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_DISP_DISP_WIN_OPTIONS,4,2   ## @DC_DISP_DISP_WIN_OPTIONS
	.comm	_DSI_ENABLE,4,2                 ## @DSI_ENABLE
	.no_dead_strip	_tegra_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 tegra_dsi_encoder_enable
_tegra_dsi_encoder_enable:              ; @tegra_dsi_encoder_enable
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	bl	_encoder_to_output
	mov	x19, x0
	ldr	x0, [x20]
	bl	_to_tegra_dc
	mov	x20, x0
	mov	x0, x19
	bl	_to_dsi
	mov	x21, x0
	bl	_tegra_dsi_prepare
	mov	x0, x21
	bl	_tegra_dsi_get_state
	mov	x23, x0
	ldp	w2, w1, [x0, #8]
	mov	x0, x21
	bl	_tegra_dsi_set_timeout
	ldr	w8, [x23]
	lsl	w1, w8, #3
	add	x2, x23, #4
	mov	x0, x21
	bl	_tegra_dsi_set_phy_timing
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_drm_panel_prepare
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x22
	bl	_tegra_dsi_configure
Lloh0:
	adrp	x22, _DC_DISP_DISP_WIN_OPTIONS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DC_DISP_DISP_WIN_OPTIONS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_tegra_dc_readl
Lloh2:
	adrp	x8, _DSI_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSI_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_tegra_dc_writel
	mov	x0, x20
	bl	_tegra_dc_commit
	mov	x0, x21
	bl	_tegra_dsi_enable
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	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
	b	_drm_panel_enable
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_DISP_DISP_WIN_OPTIONS,4,2   ; @DC_DISP_DISP_WIN_OPTIONS
	.comm	_DSI_ENABLE,4,2                 ; @DSI_ENABLE
	.no_dead_strip	_tegra_dsi_encoder_enable
.subsections_via_symbols
