	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_dsi_manager_panel_init
_msm_dsi_manager_panel_init:            ## @msm_dsi_manager_panel_init
	.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	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_dsi_mgr_get_dsi
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_dsi_mgr_get_other_dsi
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_IS_DUAL_DSI
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_IS_MASTER_DSI_LINK
	movq	%r13, %r15
	movq	%r14, %rcx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movq	%r14, %r15
	movq	%r13, %rcx
LBB0_3:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_msm_dsi_host_get_panel
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	movl	12(%r14), %r14d
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.5:
	xorl	%eax, %eax
	callq	_IS_DUAL_DSI
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	(%r12), %rax
	addq	$8, %r12
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	testq	%r13, %r13
	je	LBB0_10
## %bb.7:
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movl	8(%r15), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r13d
	movq	%r14, %rdi
	callq	_dsi_mgr_is_cmd_mode
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	*%r12
LBB0_10:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not find panel for %u (%ld)\n"

	.no_dead_strip	_msm_dsi_manager_panel_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_dsi_manager_panel_init
_msm_dsi_manager_panel_init:            ; @msm_dsi_manager_panel_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x20, [x8]
	mov	x0, x1
	bl	_dsi_mgr_get_dsi
	mov	x19, x0
	mov	x0, x21
	bl	_dsi_mgr_get_other_dsi
	mov	x23, x0
	bl	_IS_DUAL_DSI
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_IS_MASTER_DSI_LINK
	mov	x24, x23
	mov	x25, x19
	cbz	w0, LBB0_3
LBB0_2:
	mov	x24, x19
	mov	x25, x23
LBB0_3:
	ldr	w0, [x24, #16]
	bl	_msm_dsi_host_get_panel
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w19, [x19, #12]
	mov	x0, x21
	bl	_PTR_ERR
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	cbz	x21, LBB0_11
; %bb.6:
	bl	_IS_DUAL_DSI
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x22], #8
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_drm_object_attach_property
	cbz	x23, LBB0_11
; %bb.8:
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x20]
	ldr	x26, [x8]
	cbz	x26, LBB0_11
; %bb.10:
	ldr	w22, [x24, #8]
	ldr	w23, [x25, #8]
	mov	x0, x19
	bl	_dsi_mgr_is_cmd_mode
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	blr	x26
LBB0_11:
	str	x21, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not find panel for %u (%ld)\n"

	.no_dead_strip	_msm_dsi_manager_panel_init
.subsections_via_symbols
