	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_initial_config
_dsi_vc_initial_config:                 ## @dsi_vc_initial_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DSSDBG
	movl	%r15d, %edi
	callq	_DSI_VC_CTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dsi_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$15, %esi
	movl	$15, %edx
	callq	_FLD_GET
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DSSERR
LBB0_2:
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$2, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$3, %edx
	movl	$3, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$7, %edx
	movl	$7, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$9, %edx
	movl	$9, %ecx
	callq	_FLD_MOD
	movq	8(%r14), %rcx
	movq	_DSI_QUIRK_VC_OCP_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	movl	$3, %esi
	movl	$11, %edx
	movl	$10, %ecx
	callq	_FLD_MOD
LBB0_4:
	movl	%eax, %edi
	movl	$4, %esi
	movl	$29, %edx
	movl	$27, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$4, %esi
	movl	$23, %edx
	movl	$21, %ecx
	callq	_FLD_MOD
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_DSI_VC_CTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_dsi_write_reg
	movq	_DSI_VC_SOURCE_L4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movslq	%r15d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initial config of virtual channel %d"

L_.str.1:                               ## @.str.1
	.asciz	"VC(%d) busy when trying to configure it!\n"

	.comm	_DSI_QUIRK_VC_OCP_WIDTH,4,2     ## @DSI_QUIRK_VC_OCP_WIDTH
	.comm	_DSI_VC_SOURCE_L4,4,2           ## @DSI_VC_SOURCE_L4
	.no_dead_strip	_dsi_vc_initial_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vc_initial_config
_dsi_vc_initial_config:                 ; @dsi_vc_initial_config
	.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
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	mov	x0, x19
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x20
	bl	_dsi_read_reg
	mov	x21, x0
	mov	w1, #15
	mov	w2, #15
	bl	_FLD_GET
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DSSERR
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_FLD_MOD
	mov	w1, #0
	mov	w2, #2
	mov	w3, #2
	bl	_FLD_MOD
	mov	w1, #0
	mov	w2, #3
	mov	w3, #3
	bl	_FLD_MOD
	mov	w1, #0
	mov	w2, #4
	mov	w3, #4
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #7
	mov	w3, #7
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #8
	mov	w3, #8
	bl	_FLD_MOD
	mov	w1, #0
	mov	w2, #9
	mov	w3, #9
	bl	_FLD_MOD
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _DSI_QUIRK_VC_OCP_WIDTH@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DSI_QUIRK_VC_OCP_WIDTH@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w1, #3
	mov	w2, #11
	mov	w3, #10
	bl	_FLD_MOD
LBB0_4:
	mov	w1, #4
	mov	w2, #29
	mov	w3, #27
	bl	_FLD_MOD
	mov	w1, #4
	mov	w2, #23
	mov	w3, #21
	bl	_FLD_MOD
	mov	x21, x0
	mov	x0, x19
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_dsi_write_reg
Lloh7:
	adrp	x8, _DSI_VC_SOURCE_L4@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DSI_VC_SOURCE_L4@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, w19, sxtw #2]
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initial config of virtual channel %d"

l_.str.1:                               ; @.str.1
	.asciz	"VC(%d) busy when trying to configure it!\n"

	.comm	_DSI_QUIRK_VC_OCP_WIDTH,4,2     ; @DSI_QUIRK_VC_OCP_WIDTH
	.comm	_DSI_VC_SOURCE_L4,4,2           ; @DSI_VC_SOURCE_L4
	.no_dead_strip	_dsi_vc_initial_config
.subsections_via_symbols
