	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dsi_probe
_tegra_dsi_probe:                       ## @tegra_dsi_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$144, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%r14, 136(%rax)
	movq	%r14, 128(%rax)
	movabsq	$274877908864, %rax             ## imm = 0x4000000780
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_tegra_dsi_ganged_probe
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	leaq	120(%r15), %rdi
	callq	_tegra_output_probe
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r15)
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r15)
	movq	_MIPI_DSI_FMT_RGB888@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r15)
	movl	$4, 8(%r15)
	cmpl	$0, (%r14)
	je	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 96(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	96(%r15), %rdi
	jmp	LBB0_18
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 104(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	movq	104(%r15), %rdi
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 88(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	88(%r15), %rdi
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 80(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	80(%r15), %rdi
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	%rax, 72(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	72(%r15), %rdi
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_19:
	movq	%r15, %rdi
	callq	_tegra_dsi_setup_clocks
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 64(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	64(%r15), %rdi
	jmp	LBB0_18
LBB0_22:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_23:
	movq	%r14, %rdi
	callq	_tegra_mipi_request
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	16(%r15), %rdi
	jmp	LBB0_18
LBB0_25:
	leaq	24(%r15), %r12
	movq	_tegra_dsi_host_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r14, 24(%r15)
	movq	%r12, %rdi
	callq	_mipi_dsi_host_register
	testl	%eax, %eax
	js	LBB0_28
## %bb.26:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	leaq	40(%r15), %rbx
	movq	%r15, %rdi
	addq	$56, %rdi
	callq	_INIT_LIST_HEAD
	movq	_dsi_client_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	%r14, 40(%r15)
	movq	%rbx, %rdi
	callq	_host1x_client_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.27:
	movl	%eax, %r13d
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_mipi_dsi_host_unregister
	movl	%r13d, %ebx
	jmp	LBB0_29
LBB0_28:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_29:
	movq	16(%r15), %rdi
	callq	_tegra_mipi_free
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ## @MIPI_DSI_FMT_RGB888
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi"

L_.str.1:                               ## @.str.1
	.asciz	"cannot get DSI clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"lp"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get low-power clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"parent"

L_.str.5:                               ## @.str.5
	.asciz	"cannot get parent clock\n"

L_.str.6:                               ## @.str.6
	.asciz	"avdd-dsi-csi"

L_.str.7:                               ## @.str.7
	.asciz	"cannot get VDD supply\n"

L_.str.8:                               ## @.str.8
	.asciz	"cannot setup clocks\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_tegra_dsi_host_ops,4,2         ## @tegra_dsi_host_ops
L_.str.9:                               ## @.str.9
	.asciz	"failed to register DSI host: %d\n"

	.comm	_dsi_client_ops,4,2             ## @dsi_client_ops
L_.str.10:                              ## @.str.10
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_tegra_dsi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tegra_dsi_probe
lCPI0_0:
	.long	1920                            ; 0x780
	.long	64                              ; 0x40
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tegra_dsi_probe:                       ; @tegra_dsi_probe
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #144
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	stp	x20, x20, [x0, #128]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	bl	_tegra_dsi_ganged_probe
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x0, x19, #120
	bl	_tegra_output_probe
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #120]
Lloh8:
	adrp	x8, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MIPI_DSI_FMT_RGB888@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MIPI_DSI_FMT_RGB888@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #112]
	mov	w8, #4
	str	w8, [x19, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_9
LBB0_4:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.5:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #96]
	b	LBB0_17
LBB0_6:
	mov	x21, x0
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get
	str	x0, [x19, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.10:
	ldr	x0, [x19, #104]
	b	LBB0_17
LBB0_11:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #88]
	b	LBB0_17
LBB0_13:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #80]
	b	LBB0_17
LBB0_15:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.16:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #72]
LBB0_17:
	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
	b	_PTR_ERR
LBB0_18:
	mov	x0, x19
	bl	_tegra_dsi_setup_clocks
	tbnz	w0, #31, LBB0_21
; %bb.19:
Lloh33:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_22
; %bb.20:
	ldr	x0, [x19, #64]
	b	LBB0_17
LBB0_21:
	mov	x21, x0
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_8
LBB0_22:
	mov	x0, x20
	bl	_tegra_mipi_request
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_24
; %bb.23:
	ldr	x0, [x19, #16]
	b	LBB0_17
LBB0_24:
	mov	x22, x19
	str	x20, [x22, #24]!
Lloh38:
	adrp	x8, _tegra_dsi_host_ops@GOTPAGE
Lloh39:
	ldr	x8, [x8, _tegra_dsi_host_ops@GOTPAGEOFF]
	str	x8, [x22, #8]
	mov	x0, x22
	bl	_mipi_dsi_host_register
	tbnz	w0, #31, LBB0_27
; %bb.25:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_pm_runtime_enable
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
Lloh40:
	adrp	x8, _dsi_client_ops@GOTPAGE
Lloh41:
	ldr	x8, [x8, _dsi_client_ops@GOTPAGEOFF]
	mov	x0, x19
	stp	x20, x8, [x0, #40]!
	bl	_host1x_client_register
	tbnz	w0, #31, LBB0_28
; %bb.26:
	mov	w21, #0
	b	LBB0_8
LBB0_27:
	mov	x21, x0
	str	x21, [sp]
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_29
LBB0_28:
	mov	x21, x0
	str	x21, [sp]
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x22
	bl	_mipi_dsi_host_unregister
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_29:
	ldr	x0, [x19, #16]
	bl	_tegra_mipi_free
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_MIPI_DSI_FMT_RGB888,4,2        ; @MIPI_DSI_FMT_RGB888
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi"

l_.str.1:                               ; @.str.1
	.asciz	"cannot get DSI clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"lp"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get low-power clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"parent"

l_.str.5:                               ; @.str.5
	.asciz	"cannot get parent clock\n"

l_.str.6:                               ; @.str.6
	.asciz	"avdd-dsi-csi"

l_.str.7:                               ; @.str.7
	.asciz	"cannot get VDD supply\n"

l_.str.8:                               ; @.str.8
	.asciz	"cannot setup clocks\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_tegra_dsi_host_ops,4,2         ; @tegra_dsi_host_ops
l_.str.9:                               ; @.str.9
	.asciz	"failed to register DSI host: %d\n"

	.comm	_dsi_client_ops,4,2             ; @dsi_client_ops
l_.str.10:                              ; @.str.10
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_tegra_dsi_probe
.subsections_via_symbols
