	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp4_dsi_encoder_enable
_mdp4_dsi_encoder_enable:               ## @mdp4_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
	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, %r13
	callq	_to_mdp4_dsi_encoder
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_get_kms
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MDP4_DMA_CONFIG_PACK_ALIGN_MSB@GOTPCREL(%rip), %rax
	movq	_MDP4_DMA_CONFIG_DEFLKR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_MDP4_DMA_CONFIG_DITHER_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BPC8@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MDP4_DMA_CONFIG_R_BPC
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_MDP4_DMA_CONFIG_G_BPC
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movl	(%r12), %edi
	callq	_MDP4_DMA_CONFIG_B_BPC
	movl	%eax, %r12d
	movl	$33, %edi
	callq	_MDP4_DMA_CONFIG_PACK
	orl	%eax, %r12d
	orl	%r14d, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_mdp4_crtc_set_config
	movl	(%r13), %edi
	movq	_INTF_DSI_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_mdp4_crtc_set_intf
	movq	_REG_MDP4_DSI_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_mdp4_write
	movl	$1, (%r15)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDP4_DMA_CONFIG_PACK_ALIGN_MSB,4,2 ## @MDP4_DMA_CONFIG_PACK_ALIGN_MSB
	.comm	_MDP4_DMA_CONFIG_DEFLKR_EN,4,2  ## @MDP4_DMA_CONFIG_DEFLKR_EN
	.comm	_MDP4_DMA_CONFIG_DITHER_EN,4,2  ## @MDP4_DMA_CONFIG_DITHER_EN
	.comm	_BPC8,4,2                       ## @BPC8
	.comm	_INTF_DSI_VIDEO,4,2             ## @INTF_DSI_VIDEO
	.comm	_REG_MDP4_DSI_ENABLE,4,2        ## @REG_MDP4_DSI_ENABLE
	.no_dead_strip	_mdp4_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 mdp4_dsi_encoder_enable
_mdp4_dsi_encoder_enable:               ; @mdp4_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	x21, x0
	bl	_to_mdp4_dsi_encoder
	mov	x19, x0
	mov	x0, x21
	bl	_get_kms
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w22, [x21]
Lloh0:
	adrp	x8, _MDP4_DMA_CONFIG_PACK_ALIGN_MSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDP4_DMA_CONFIG_PACK_ALIGN_MSB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MDP4_DMA_CONFIG_DEFLKR_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDP4_DMA_CONFIG_DEFLKR_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MDP4_DMA_CONFIG_DITHER_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MDP4_DMA_CONFIG_DITHER_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w23, w8, w9
Lloh9:
	adrp	x24, _BPC8@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BPC8@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_MDP4_DMA_CONFIG_R_BPC
	orr	w23, w23, w0
	ldr	w0, [x24]
	bl	_MDP4_DMA_CONFIG_G_BPC
	orr	w23, w23, w0
	ldr	w0, [x24]
	bl	_MDP4_DMA_CONFIG_B_BPC
	orr	w23, w23, w0
	mov	w0, #33
	bl	_MDP4_DMA_CONFIG_PACK
	orr	w1, w23, w0
	mov	x0, x22
	bl	_mdp4_crtc_set_config
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _INTF_DSI_VIDEO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTF_DSI_VIDEO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_mdp4_crtc_set_intf
Lloh14:
	adrp	x8, _REG_MDP4_DSI_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_MDP4_DSI_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w21, #1
	mov	x0, x20
	mov	w2, #1
	bl	_mdp4_write
	str	w21, [x19]
LBB0_2:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MDP4_DMA_CONFIG_PACK_ALIGN_MSB,4,2 ; @MDP4_DMA_CONFIG_PACK_ALIGN_MSB
	.comm	_MDP4_DMA_CONFIG_DEFLKR_EN,4,2  ; @MDP4_DMA_CONFIG_DEFLKR_EN
	.comm	_MDP4_DMA_CONFIG_DITHER_EN,4,2  ; @MDP4_DMA_CONFIG_DITHER_EN
	.comm	_BPC8,4,2                       ; @BPC8
	.comm	_INTF_DSI_VIDEO,4,2             ; @INTF_DSI_VIDEO
	.comm	_REG_MDP4_DSI_ENABLE,4,2        ; @REG_MDP4_DSI_ENABLE
	.no_dead_strip	_mdp4_dsi_encoder_enable
.subsections_via_symbols
