	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_enable_video_output
_dsi_enable_video_output:               ## @dsi_enable_video_output
	.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, %r14d
	callq	_to_dsi_data
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_dsi_get_pixel_size
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_dsi_display_init_dispc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	8(%r12), %rax
	movq	_OMAP_DSS_DSI_VIDEO_MODE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.2:
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.dsi_enable_video_output(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dsi_if_enable
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_dsi_vc_enable
	movl	%r14d, %edi
	callq	_DSI_VC_CTRL
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$4, %ecx
	movl	$4, %r8d
	callq	_REG_FLD_MOD
	imull	20(%r12), %r15d
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_dsi_vc_write_long_header
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_dsi_vc_enable
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dsi_if_enable
LBB0_5:
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_dss_mgr_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	8(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dsi_if_enable
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_dsi_vc_enable
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_dsi_display_uninit_dispc
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_DSI_VIDEO_MODE,8,3    ## @OMAP_DSS_DSI_VIDEO_MODE
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_24,4,2 ## @MIPI_DSI_PACKED_PIXEL_STREAM_24
	.comm	_MIPI_DSI_PIXEL_STREAM_3BYTE_18,4,2 ## @MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_18,4,2 ## @MIPI_DSI_PACKED_PIXEL_STREAM_18
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_16,4,2 ## @MIPI_DSI_PACKED_PIXEL_STREAM_16
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dsi_enable_video_output
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.dsi_enable_video_output
l_switch.table.dsi_enable_video_output:
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_24
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_18
	.quad	_MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_16

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_enable_video_output
_dsi_enable_video_output:               ; @dsi_enable_video_output
	.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, x1
	bl	_to_dsi_data
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dsi_get_pixel_size
	mov	x21, x0
	mov	x0, x19
	bl	_dsi_display_init_dispc
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x23, _OMAP_DSS_DSI_VIDEO_MODE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OMAP_DSS_DSI_VIDEO_MODE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_7
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.dsi_enable_video_output@PAGE
Lloh3:
	add	x9, x9, l_switch.table.dsi_enable_video_output@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w22, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_dsi_if_enable
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_dsi_vc_enable
	mov	x0, x20
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	mov	w3, #4
	mov	w4, #4
	bl	_REG_FLD_MOD
	ldr	w8, [x19, #20]
	mul	w0, w8, w21
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w4, #0
	bl	_dsi_vc_write_long_header
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_dsi_vc_enable
	mov	x0, x19
	mov	w1, #1
	bl	_dsi_if_enable
LBB0_4:
	add	x0, x19, #16
	bl	_dss_mgr_enable
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_dsi_if_enable
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_dsi_vc_enable
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x19
	bl	_dsi_display_uninit_dispc
LBB0_9:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_DSI_VIDEO_MODE,8,3    ; @OMAP_DSS_DSI_VIDEO_MODE
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_24,4,2 ; @MIPI_DSI_PACKED_PIXEL_STREAM_24
	.comm	_MIPI_DSI_PIXEL_STREAM_3BYTE_18,4,2 ; @MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_18,4,2 ; @MIPI_DSI_PACKED_PIXEL_STREAM_18
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_16,4,2 ; @MIPI_DSI_PACKED_PIXEL_STREAM_16
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dsi_enable_video_output
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.dsi_enable_video_output
l_switch.table.dsi_enable_video_output:
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_24
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_18
	.quad	_MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_16

.subsections_via_symbols
