	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_mgr_setup_components
_dsi_mgr_setup_components:              ## @dsi_mgr_setup_components
	.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
	movl	%edi, %ebx
	callq	_dsi_mgr_get_dsi
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_dsi_mgr_get_other_dsi
	movq	%rax, %r13
	movq	_DSI_CLOCK_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dsi_mgr_get_dsi
	movq	%rax, %r12
	movq	_DSI_CLOCK_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dsi_mgr_get_dsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IS_DUAL_DSI
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_11
## %bb.6:
	movl	%ebx, %edi
	callq	_IS_MASTER_DSI_LINK
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_IS_MASTER_DSI_LINK
	testq	%rax, %rax
	movq	%r13, %rax
	cmoveq	%r14, %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_msm_dsi_host_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	testq	%r12, %r12
	movq	%r14, %rax
	cmoveq	%r13, %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_msm_dsi_host_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	_MSM_DSI_PHY_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_msm_dsi_phy_set_usecase
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_MSM_DSI_PHY_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_msm_dsi_phy_set_usecase
	movl	4(%rbx), %edi
	callq	_msm_dsi_phy_get_pll
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_msm_dsi_host_set_src_pll
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	(%r13), %edi
	jmp	LBB0_4
LBB0_1:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_msm_dsi_host_register
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%r14), %edi
	movq	_MSM_DSI_PHY_STANDALONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_msm_dsi_phy_set_usecase
	movl	4(%r14), %edi
	callq	_msm_dsi_phy_get_pll
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_12:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	(%r14), %edi
LBB0_4:
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msm_dsi_host_set_src_pll       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_CLOCK_MASTER,4,2           ## @DSI_CLOCK_MASTER
	.comm	_DSI_CLOCK_SLAVE,4,2            ## @DSI_CLOCK_SLAVE
	.comm	_MSM_DSI_PHY_STANDALONE,4,2     ## @MSM_DSI_PHY_STANDALONE
	.comm	_MSM_DSI_PHY_MASTER,4,2         ## @MSM_DSI_PHY_MASTER
	.comm	_MSM_DSI_PHY_SLAVE,4,2          ## @MSM_DSI_PHY_SLAVE
	.no_dead_strip	_dsi_mgr_setup_components
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_mgr_setup_components
_dsi_mgr_setup_components:              ; @dsi_mgr_setup_components
	.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	x23, x0
	bl	_dsi_mgr_get_dsi
	mov	x19, x0
	mov	x0, x23
	bl	_dsi_mgr_get_other_dsi
	mov	x20, x0
Lloh0:
	adrp	x8, _DSI_CLOCK_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSI_CLOCK_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dsi_mgr_get_dsi
	mov	x21, x0
Lloh3:
	adrp	x8, _DSI_CLOCK_SLAVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSI_CLOCK_SLAVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_dsi_mgr_get_dsi
	mov	x22, x0
	bl	_IS_DUAL_DSI
	cbz	w0, LBB0_6
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	mov	x0, x23
	bl	_IS_MASTER_DSI_LINK
	mov	x24, x0
	mov	x0, x23
	bl	_IS_MASTER_DSI_LINK
	cmp	x0, #0
	csel	x8, x19, x20, eq
	ldr	w0, [x8]
	mov	w1, #0
	bl	_msm_dsi_host_register
	cbnz	w0, LBB0_11
; %bb.3:
	cmp	x24, #0
	csel	x8, x20, x19, eq
	ldr	w0, [x8]
	mov	w1, #1
	bl	_msm_dsi_host_register
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	w0, [x21, #4]
Lloh6:
	adrp	x8, _MSM_DSI_PHY_MASTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSM_DSI_PHY_MASTER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_msm_dsi_phy_set_usecase
	ldr	w0, [x22, #4]
Lloh9:
	adrp	x8, _MSM_DSI_PHY_SLAVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSM_DSI_PHY_SLAVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_msm_dsi_phy_set_usecase
	ldr	w0, [x21, #4]
	bl	_msm_dsi_phy_get_pll
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.5:
	mov	x0, x21
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_msm_dsi_host_register
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x8, _MSM_DSI_PHY_STANDALONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSM_DSI_PHY_STANDALONE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_msm_dsi_phy_set_usecase
	ldr	w0, [x19, #4]
	bl	_msm_dsi_phy_get_pll
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x20
LBB0_9:
	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	_PTR_ERR
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
	ldr	w0, [x19]
	mov	x1, x20
LBB0_13:
	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	_msm_dsi_host_set_src_pll
LBB0_14:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_msm_dsi_host_set_src_pll
	cbnz	w0, LBB0_11
; %bb.15:
	ldr	w0, [x20]
	mov	x1, x21
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_CLOCK_MASTER,4,2           ; @DSI_CLOCK_MASTER
	.comm	_DSI_CLOCK_SLAVE,4,2            ; @DSI_CLOCK_SLAVE
	.comm	_MSM_DSI_PHY_STANDALONE,4,2     ; @MSM_DSI_PHY_STANDALONE
	.comm	_MSM_DSI_PHY_MASTER,4,2         ; @MSM_DSI_PHY_MASTER
	.comm	_MSM_DSI_PHY_SLAVE,4,2          ; @MSM_DSI_PHY_SLAVE
	.no_dead_strip	_dsi_mgr_setup_components
.subsections_via_symbols
