	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_manager_connector_init ## -- Begin function msm_dsi_manager_connector_init
	.p2align	4, 0x90
_msm_dsi_manager_connector_init:        ## @msm_dsi_manager_connector_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_dsi_mgr_get_dsi
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%r15d, 32(%rax)
	movq	8(%r14), %rdi
	movq	_DRM_MODE_CONNECTOR_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dsi_mgr_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rsi
	callq	_drm_connector_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_dsi_mgr_conn_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_drm_connector_attach_encoder
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_msm_dsi_manager_panel_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
	movq	(%r12), %rax
	movl	(%r14), %edi
	callq	*(%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dsi_mgr_connector_funcs,4,2    ## @dsi_mgr_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ## @DRM_MODE_CONNECTOR_DSI
	.comm	_dsi_mgr_conn_helper_funcs,4,2  ## @dsi_mgr_conn_helper_funcs
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init panel failed %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_dsi_manager_connector_init ; -- Begin function msm_dsi_manager_connector_init
	.p2align	2
_msm_dsi_manager_connector_init:        ; @msm_dsi_manager_connector_init
	.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	x21, x0
	bl	_dsi_mgr_get_dsi
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	w21, [x0, #32]
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, _dsi_mgr_connector_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _dsi_mgr_connector_funcs@GOTPAGEOFF]
	mov	x1, x20
	bl	_drm_connector_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x1, _dsi_mgr_conn_helper_funcs@GOTPAGE
Lloh9:
	ldr	x1, [x1, _dsi_mgr_conn_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_connector_helper_add
Lloh10:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	stp	xzr, xzr, [x20, #8]
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_drm_connector_attach_encoder
	mov	x0, x20
	mov	x1, x21
	bl	_msm_dsi_manager_panel_init
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x19]
	blr	x8
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
	b	_ERR_PTR
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dsi_mgr_connector_funcs,4,2    ; @dsi_mgr_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ; @DRM_MODE_CONNECTOR_DSI
	.comm	_dsi_mgr_conn_helper_funcs,4,2  ; @dsi_mgr_conn_helper_funcs
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init panel failed %d\n"

.subsections_via_symbols
