	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_host_attach
_dw_mipi_dsi_host_attach:               ## @dw_mipi_dsi_host_attach
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_host_to_dsi
	movq	%rax, %r15
	movq	40(%rax), %r12
	movq	(%r14), %rdx
	cmpq	(%r12), %rdx
	jle	LBB0_2
## %bb.1:
	movl	36(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rdx, (%r15)
	movl	16(%r14), %eax
	movl	%eax, 32(%r15)
	movl	12(%r14), %eax
	movl	%eax, 28(%r15)
	movl	8(%r14), %eax
	movl	%eax, 24(%r15)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_drm_of_find_panel_or_bridge
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	_DRM_MODE_CONNECTOR_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_panel_bridge_add
	movq	%rax, -40(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rdi
	callq	_PTR_ERR
	jmp	LBB0_10
LBB0_6:
	movq	-40(%rbp), %rax
	movq	%rax, 16(%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_drm_bridge_add
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	8(%r12), %edi
	movq	%r14, %rsi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"the number of data lanes(%u) is too many\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ## @DRM_MODE_CONNECTOR_DSI
	.no_dead_strip	_dw_mipi_dsi_host_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mipi_dsi_host_attach
_dw_mipi_dsi_host_attach:               ; @dw_mipi_dsi_host_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_host_to_dsi
	mov	x20, x0
	ldr	x22, [x0, #40]
	ldr	x2, [x19]
	ldr	x8, [x22]
	cmp	x2, x8
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x20, #36]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	str	x2, [x20]
	ldr	w8, [x19, #16]
	str	w8, [x20, #32]
	ldr	d0, [x19, #8]
	str	d0, [x20, #24]
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x3, sp
	add	x4, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_drm_of_find_panel_or_bridge
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	x0, [sp]
	cbz	x0, LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_drm_panel_bridge_add
	str	x0, [sp, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_PTR_ERR
	b	LBB0_10
LBB0_6:
	ldr	x8, [sp, #8]
	str	x8, [x20, #16]
	add	x0, x20, #8
	bl	_drm_bridge_add
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x22, #8]
	mov	x1, x19
	blr	x8
	tbnz	w0, #31, LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"the number of data lanes(%u) is too many\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ; @DRM_MODE_CONNECTOR_DSI
	.no_dead_strip	_dw_mipi_dsi_host_attach
.subsections_via_symbols
