	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_dsi_bind
_vc4_dsi_bind:                          ## @vc4_dsi_bind
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_to_platform_device
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_vc4_dev
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	_vc4_dsi_dt_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_VC4_ENCODER_TYPE_DSI1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r13, 16(%rax)
	movq	%rax, 32(%r13)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vc4_ioremap_regs
	movq	%rax, 104(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	104(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rdi, 24(%r13)
	cmpq	$0, (%r13)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.10:
	movq	_dsi0_regs@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_dsi1_regs@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rdi
	movq	%rdi, 16(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r13)
	movq	_ID@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_DSI_PORT_READ
	movq	_DSI_ID_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.13:
	cmpq	$1, (%r13)
	jne	LBB0_21
## %bb.14:
	leaq	96(%r13), %rdx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 72(%r13)
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	callq	_dma_cap_zero
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dma_cap_set
	leaq	-68(%rbp), %rdi
	callq	_dma_request_chan_by_mask
	movq	%rax, 88(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	88(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.17:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_8
LBB0_18:
	movl	(%r14), %edi
	movq	%rcx, %rbx
	callq	_DSI_PORT_READ
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_20:
	movl	(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_of_get_address
	movl	%eax, %edi
	callq	_be32_to_cpup
	movl	%eax, 84(%r13)
LBB0_21:
	leaq	80(%r13), %rdi
	callq	_init_completion
	movq	_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_DSI_PORT_WRITE
	movq	_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_DSI_PORT_READ
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_DSI_PORT_WRITE
	movq	72(%r13), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.22:
	movq	_vc4_dsi_irq_defer_to_thread_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_vc4_dsi_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	%r13, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_request_threaded_irq
	jmp	LBB0_24
LBB0_23:
	movq	_vc4_dsi_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r9
	callq	_devm_request_irq
LBB0_24:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_8
## %bb.26:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_36
LBB0_27:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	movq	48(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.29:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_36
LBB0_30:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 64(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	movq	64(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.32:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_36
LBB0_33:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 56(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_37
## %bb.34:
	movq	56(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.35:
	leaq	L_.str.10(%rip), %rsi
LBB0_36:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_37:
	movl	(%r15), %edi
	leaq	40(%r13), %r14
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_drm_of_find_panel_or_bridge
	testl	%eax, %eax
	je	LBB0_39
## %bb.38:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	jmp	LBB0_8
LBB0_39:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_42
## %bb.40:
	movq	_DRM_MODE_CONNECTOR_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_devm_drm_panel_bridge_add
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_42:
	movq	48(%r13), %rdi
	movl	$100000000, %esi                ## imm = 0x5F5E100
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_44
## %bb.43:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_36
LBB0_44:
	movq	%r13, %rdi
	callq	_vc4_dsi_init_phy_clocks
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.45:
	cmpq	$1, (%r13)
	jne	LBB0_47
## %bb.46:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
LBB0_47:
	movq	32(%r13), %rsi
	movq	_DRM_MODE_ENCODER_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vc4_dsi_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	32(%r13), %rdi
	movq	_vc4_dsi_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	callq	_drm_encoder_helper_add
	movq	32(%r13), %rdi
	movq	40(%r13), %rsi
	xorl	%edx, %edx
	callq	_drm_bridge_attach
	testl	%eax, %eax
	je	LBB0_49
## %bb.48:
	movl	%eax, %r12d
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_8
LBB0_49:
	movq	%r13, %rdx
	addq	$8, %rdx
	movq	32(%r13), %rax
	movq	$0, (%rax)
	cmpq	$0, (%r13)
	leaq	L_.str.13(%rip), %rax
	leaq	L_.str.14(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vc4_debugfs_add_regset32
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_vc4_dsi_dt_match,4,2           ## @vc4_dsi_dt_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VC4_ENCODER_TYPE_DSI1,4,2      ## @VC4_ENCODER_TYPE_DSI1
	.comm	_dsi0_regs,8,3                  ## @dsi0_regs
	.comm	_dsi1_regs,8,3                  ## @dsi1_regs
	.comm	_ID,4,2                         ## @ID
	.comm	_DSI_ID_VALUE,8,3               ## @DSI_ID_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port returned 0x%08x for ID instead of 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get DMA memory\n"

	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get DMA channel: %d\n"

	.comm	_INT_EN,4,2                     ## @INT_EN
	.comm	_DSI1_INTERRUPTS_ALWAYS_ENABLED,8,3 ## @DSI1_INTERRUPTS_ALWAYS_ENABLED
	.comm	_INT_STAT,4,2                   ## @INT_STAT
	.comm	_vc4_dsi_irq_defer_to_thread_handler,4,2 ## @vc4_dsi_irq_defer_to_thread_handler
	.comm	_vc4_dsi_irq_handler,4,2        ## @vc4_dsi_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"vc4 dsi"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get interrupt: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"escape"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to get escape clock: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"phy"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to get phy clock: %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"pixel"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to get pixel clock: %d\n"

	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ## @DRM_MODE_CONNECTOR_DSI
L_.str.11:                              ## @.str.11
	.asciz	"Failed to set esc clock: %d\n"

	.comm	_vc4_dsi_encoder_funcs,4,2      ## @vc4_dsi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_DSI,4,2       ## @DRM_MODE_ENCODER_DSI
	.comm	_vc4_dsi_encoder_helper_funcs,4,2 ## @vc4_dsi_encoder_helper_funcs
L_.str.12:                              ## @.str.12
	.asciz	"bridge attach failed: %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"dsi0_regs"

L_.str.14:                              ## @.str.14
	.asciz	"dsi1_regs"

	.no_dead_strip	_vc4_dsi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_dsi_bind
_vc4_dsi_bind:                          ; @vc4_dsi_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_to_platform_device
	mov	x24, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_to_vc4_dev
	mov	x22, x0
	mov	x0, x19
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _vc4_dsi_dt_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vc4_dsi_dt_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x0]
	str	x8, [x21]
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
Lloh5:
	adrp	x8, _VC4_ENCODER_TYPE_DSI1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC4_ENCODER_TYPE_DSI1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x21, [x0, #16]
	str	x0, [x21, #32]
	mov	x0, x24
	mov	w1, #0
	bl	_vc4_ioremap_regs
	str	x0, [x21, #104]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x21, #104]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PTR_ERR
LBB0_4:
	str	x0, [x21, #24]
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _dsi0_regs@GOTPAGE
Lloh9:
	ldr	x9, [x9, _dsi0_regs@GOTPAGEOFF]
Lloh10:
	adrp	x10, _dsi1_regs@GOTPAGE
Lloh11:
	ldr	x10, [x10, _dsi1_regs@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x0, [x8]
	str	x0, [x21, #16]
	bl	_ARRAY_SIZE
	mov	x23, x21
	str	x0, [x23, #8]!
Lloh12:
	adrp	x26, _ID@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ID@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_DSI_PORT_READ
Lloh14:
	adrp	x27, _DSI_ID_VALUE@GOTPAGE
Lloh15:
	ldr	x27, [x27, _DSI_ID_VALUE@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x21]
	cmp	x8, #1
	b.ne	LBB0_17
; %bb.6:
	add	x2, x21, #96
	ldr	w3, [x25]
	mov	x0, x19
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x21, #72]
	cbz	x0, LBB0_12
; %bb.7:
	bl	_dma_cap_zero
Lloh16:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_dma_cap_set
	add	x0, sp, #20
	bl	_dma_request_chan_by_mask
	str	x0, [x21, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.8:
	ldr	x0, [x21, #88]
	bl	_PTR_ERR
	mov	x24, x0
Lloh19:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.9:
	str	x24, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_15
LBB0_10:
	ldr	w0, [x26]
	bl	_DSI_PORT_READ
	mov	x2, x0
	ldr	x8, [x27]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
LBB0_11:
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_13:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	ldr	w0, [x19]
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_of_get_address
	bl	_be32_to_cpup
	str	w0, [x21, #84]
LBB0_17:
	add	x0, x21, #80
	bl	_init_completion
Lloh32:
	adrp	x8, _INT_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INT_EN@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DSI1_INTERRUPTS_ALWAYS_ENABLED@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
	bl	_DSI_PORT_WRITE
Lloh38:
	adrp	x8, _INT_STAT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INT_STAT@GOTPAGEOFF]
Lloh40:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_DSI_PORT_READ
	mov	x1, x0
	mov	x0, x25
	bl	_DSI_PORT_WRITE
	ldr	x25, [x21, #72]
	mov	x0, x24
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	cbz	x25, LBB0_21
; %bb.18:
Lloh41:
	adrp	x8, _vc4_dsi_irq_defer_to_thread_handler@GOTPAGE
Lloh42:
	ldr	x8, [x8, _vc4_dsi_irq_defer_to_thread_handler@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _vc4_dsi_irq_handler@GOTPAGE
Lloh45:
	ldr	x8, [x8, _vc4_dsi_irq_handler@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
Lloh47:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh49:
	ldr	w4, [x8]
Lloh50:
	adrp	x5, l_.str.3@PAGE
Lloh51:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x6, x21
	bl	_devm_request_threaded_irq
	mov	x24, x0
	cbz	w0, LBB0_22
LBB0_19:
Lloh52:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	cmn	w24, w8
	b.eq	LBB0_15
; %bb.20:
Lloh55:
	adrp	x1, l_.str.4@PAGE
Lloh56:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_31
LBB0_21:
Lloh57:
	adrp	x8, _vc4_dsi_irq_handler@GOTPAGE
Lloh58:
	ldr	x8, [x8, _vc4_dsi_irq_handler@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
Lloh60:
	adrp	x4, l_.str.3@PAGE
Lloh61:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	mov	x24, x0
	cbnz	w0, LBB0_19
LBB0_22:
Lloh62:
	adrp	x1, l_.str.5@PAGE
Lloh63:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_25
; %bb.23:
	ldr	x0, [x21, #48]
	bl	_PTR_ERR
	mov	x24, x0
Lloh64:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.24:
Lloh67:
	adrp	x1, l_.str.6@PAGE
Lloh68:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_31
LBB0_25:
Lloh69:
	adrp	x1, l_.str.7@PAGE
Lloh70:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.26:
	ldr	x0, [x21, #64]
	bl	_PTR_ERR
	mov	x24, x0
Lloh71:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh72:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.27:
Lloh74:
	adrp	x1, l_.str.8@PAGE
Lloh75:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_31
LBB0_28:
Lloh76:
	adrp	x1, l_.str.9@PAGE
Lloh77:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_32
; %bb.29:
	ldr	x0, [x21, #56]
	bl	_PTR_ERR
	mov	x24, x0
Lloh78:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh79:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.30:
Lloh81:
	adrp	x1, l_.str.10@PAGE
Lloh82:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_31:
	mov	x0, x19
	mov	x2, x24
	bl	_dev_err
	b	LBB0_15
LBB0_32:
	ldr	w0, [x19]
	add	x24, x21, #40
	add	x3, sp, #24
	mov	w1, #0
	mov	w2, #0
	mov	x4, x24
	bl	_drm_of_find_panel_or_bridge
	cbz	w0, LBB0_34
; %bb.33:
Lloh83:
	adrp	x8, _ENODEV@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w24, wzr, w0, eq
	b	LBB0_15
LBB0_34:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_37
; %bb.35:
Lloh86:
	adrp	x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGE
Lloh87:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DSI@GOTPAGEOFF]
Lloh88:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_drm_panel_bridge_add
	str	x0, [x24]
	bl	_IS_ERR
	cbz	x0, LBB0_37
; %bb.36:
	ldr	x0, [x24]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_15
LBB0_37:
	ldr	x0, [x21, #48]
	mov	w1, #57600
	movk	w1, #1525, lsl #16
	bl	_clk_set_rate
	cbz	w0, LBB0_39
; %bb.38:
	mov	x24, x0
Lloh89:
	adrp	x1, l_.str.11@PAGE
Lloh90:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_31
LBB0_39:
	mov	x0, x21
	bl	_vc4_dsi_init_phy_clocks
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.40:
	ldr	x8, [x21]
	cmp	x8, #1
	b.ne	LBB0_42
; %bb.41:
	str	x21, [x22]
LBB0_42:
	ldr	x1, [x21, #32]
Lloh91:
	adrp	x8, _DRM_MODE_ENCODER_DSI@GOTPAGE
Lloh92:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DSI@GOTPAGEOFF]
Lloh93:
	ldr	w3, [x8]
Lloh94:
	adrp	x2, _vc4_dsi_encoder_funcs@GOTPAGE
Lloh95:
	ldr	x2, [x2, _vc4_dsi_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x4, #0
	bl	_drm_encoder_init
	ldr	x0, [x21, #32]
Lloh96:
	adrp	x1, _vc4_dsi_encoder_helper_funcs@GOTPAGE
Lloh97:
	ldr	x1, [x1, _vc4_dsi_encoder_helper_funcs@GOTPAGEOFF]
	bl	_drm_encoder_helper_add
	ldp	x0, x1, [x21, #32]
	mov	x2, #0
	bl	_drm_bridge_attach
	mov	x24, x0
	cbz	w0, LBB0_44
; %bb.43:
Lloh98:
	adrp	x1, l_.str.12@PAGE
Lloh99:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_31
LBB0_44:
	ldr	x8, [x21, #32]
	str	xzr, [x8]
	ldr	x8, [x21]
Lloh100:
	adrp	x9, l_.str.14@PAGE
Lloh101:
	add	x9, x9, l_.str.14@PAGEOFF
Lloh102:
	adrp	x10, l_.str.13@PAGE
Lloh103:
	add	x10, x10, l_.str.13@PAGEOFF
	cmp	x8, #0
	csel	x1, x10, x9, eq
	mov	x0, x20
	mov	x2, x23
	bl	_vc4_debugfs_add_regset32
	mov	x0, x19
	bl	_pm_runtime_enable
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh100, Lloh101
	.cfi_endproc
                                        ; -- End function
	.comm	_vc4_dsi_dt_match,4,2           ; @vc4_dsi_dt_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VC4_ENCODER_TYPE_DSI1,4,2      ; @VC4_ENCODER_TYPE_DSI1
	.comm	_dsi0_regs,8,3                  ; @dsi0_regs
	.comm	_dsi1_regs,8,3                  ; @dsi1_regs
	.comm	_ID,4,2                         ; @ID
	.comm	_DSI_ID_VALUE,8,3               ; @DSI_ID_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port returned 0x%08x for ID instead of 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get DMA memory\n"

	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get DMA channel: %d\n"

	.comm	_INT_EN,4,2                     ; @INT_EN
	.comm	_DSI1_INTERRUPTS_ALWAYS_ENABLED,8,3 ; @DSI1_INTERRUPTS_ALWAYS_ENABLED
	.comm	_INT_STAT,4,2                   ; @INT_STAT
	.comm	_vc4_dsi_irq_defer_to_thread_handler,4,2 ; @vc4_dsi_irq_defer_to_thread_handler
	.comm	_vc4_dsi_irq_handler,4,2        ; @vc4_dsi_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"vc4 dsi"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get interrupt: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"escape"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to get escape clock: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"phy"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to get phy clock: %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"pixel"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to get pixel clock: %d\n"

	.comm	_DRM_MODE_CONNECTOR_DSI,4,2     ; @DRM_MODE_CONNECTOR_DSI
l_.str.11:                              ; @.str.11
	.asciz	"Failed to set esc clock: %d\n"

	.comm	_vc4_dsi_encoder_funcs,4,2      ; @vc4_dsi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_DSI,4,2       ; @DRM_MODE_ENCODER_DSI
	.comm	_vc4_dsi_encoder_helper_funcs,4,2 ; @vc4_dsi_encoder_helper_funcs
l_.str.12:                              ; @.str.12
	.asciz	"bridge attach failed: %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"dsi0_regs"

l_.str.14:                              ; @.str.14
	.asciz	"dsi1_regs"

	.no_dead_strip	_vc4_dsi_bind
.subsections_via_symbols
