	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_host_register          ## -- Begin function msm_dsi_host_register
	.p2align	4, 0x90
_msm_dsi_host_register:                 ## @msm_dsi_host_register
	.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, %r14d
	movq	%rdi, %rbx
	callq	_to_msm_dsi_host
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_dsi_host_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_mipi_dsi_host_register
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, (%r15)
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.5:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.6:
	callq	_of_drm_find_panel
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	8(%r15), %rdi
	callq	_of_drm_find_bridge
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.8:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_dsi_host_ops,4,2               ## @dsi_host_ops
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_host_register          ; -- Begin function msm_dsi_host_register
	.p2align	2
_msm_dsi_host_register:                 ; @msm_dsi_host_register
	.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	x20, x1
	mov	x21, x0
	bl	_to_msm_dsi_host
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _dsi_host_ops@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dsi_host_ops@GOTPAGEOFF]
	stp	x9, x8, [x21]
	mov	x0, x21
	bl	_mipi_dsi_host_register
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
	cbz	w20, LBB0_1
; %bb.5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.6:
	bl	_of_drm_find_panel
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.7:
	ldr	x0, [x19, #8]
	bl	_of_drm_find_bridge
	cbnz	w0, LBB0_1
; %bb.8:
Lloh2:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dsi_host_ops,4,2               ; @dsi_host_ops
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
.subsections_via_symbols
