	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dc_probe
_tegra_dc_probe:                        ## @tegra_dc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 48(%r15)
	leaq	72(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 64(%r15)
	movq	%r15, %rdi
	callq	_tegra_dc_parse_dt
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	_tegra_dc_couple
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 56(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	56(%r15), %edi
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movl	%eax, 60(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	60(%r15), %edi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movl	56(%r15), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_7
## %bb.13:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movl	60(%r15), %edi
	callq	_reset_control_assert
	testl	%eax, %eax
	js	LBB0_7
## %bb.14:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movl	56(%r15), %edi
	callq	_clk_disable_unprepare
	movq	48(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.15:
	cmpq	$0, (%r15)
	jne	LBB0_19
## %bb.16:
	movq	_TEGRA_POWERGATE_DIS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_TEGRA_POWERGATE_DISB@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %edi
	movl	%edi, 44(%r15)
	callq	_tegra_powergate_power_off
LBB0_21:
	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
	movl	%eax, 40(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	40(%r15), %edi
	jmp	LBB0_11
LBB0_23:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	js	LBB0_28
## %bb.24:
	movq	%r15, %rdi
	callq	_tegra_dc_rgb_probe
	testl	%eax, %eax
	jns	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_29
LBB0_26:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	leaq	16(%r15), %rbx
	movq	%r15, %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	movq	_dc_client_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	%r14, 16(%r15)
	movq	%rbx, %rdi
	callq	_host1x_client_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.27:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_8
LBB0_28:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_29:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get clock\n"

L_.str.1:                               ## @.str.1
	.asciz	"dc"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get reset\n"

	.comm	_TEGRA_POWERGATE_DIS,4,2        ## @TEGRA_POWERGATE_DIS
	.comm	_TEGRA_POWERGATE_DISB,4,2       ## @TEGRA_POWERGATE_DISB
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.3:                               ## @.str.3
	.asciz	"failed to get IRQ\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"failed to probe RGB output: %d\n"

	.comm	_dc_client_ops,4,2              ## @dc_client_ops
L_.str.5:                               ## @.str.5
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_tegra_dc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dc_probe
_tegra_dc_probe:                        ; @tegra_dc_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #48]
	add	x0, x20, #72
	bl	_INIT_LIST_HEAD
	str	x19, [x20, #64]
	mov	x0, x20
	bl	_tegra_dc_parse_dt
	tbnz	w0, #31, LBB0_16
; %bb.2:
	mov	x0, x20
	bl	_tegra_dc_couple
	tbnz	w0, #31, LBB0_16
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #56]
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #60]
LBB0_9:
	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_10:
	ldr	w0, [x20, #56]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_16
; %bb.11:
	mov	w0, #2000
	mov	w1, #4000
	bl	_usleep_range
	ldr	w0, [x20, #60]
	bl	_reset_control_assert
	tbnz	w0, #31, LBB0_16
; %bb.12:
	mov	w0, #2000
	mov	w1, #4000
	bl	_usleep_range
	ldr	w0, [x20, #56]
	bl	_clk_disable_unprepare
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _TEGRA_POWERGATE_DIS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TEGRA_POWERGATE_DIS@GOTPAGEOFF]
Lloh13:
	adrp	x10, _TEGRA_POWERGATE_DISB@GOTPAGE
Lloh14:
	ldr	x10, [x10, _TEGRA_POWERGATE_DISB@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	str	w0, [x20, #44]
	bl	_tegra_powergate_power_off
LBB0_14:
Lloh15:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w0, [x20, #40]
	b	LBB0_9
LBB0_16:
	mov	x21, x0
LBB0_17:
	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_18:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20, #8]
	tbnz	x0, #63, LBB0_23
; %bb.19:
	mov	x0, x20
	bl	_tegra_dc_rgb_probe
	tbz	w0, #31, LBB0_21
; %bb.20:
	mov	x21, x0
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_25
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_enable
	add	x0, x20, #32
	bl	_INIT_LIST_HEAD
Lloh21:
	adrp	x8, _dc_client_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dc_client_ops@GOTPAGEOFF]
	stp	x19, x8, [x20, #16]!
	mov	x0, x20
	bl	_host1x_client_register
	tbnz	w0, #31, LBB0_24
; %bb.22:
	mov	w21, #0
	b	LBB0_17
LBB0_23:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh25:
	adrp	x8, _ENXIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_24:
	mov	x21, x0
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_17
LBB0_25:
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get clock\n"

l_.str.1:                               ; @.str.1
	.asciz	"dc"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get reset\n"

	.comm	_TEGRA_POWERGATE_DIS,4,2        ; @TEGRA_POWERGATE_DIS
	.comm	_TEGRA_POWERGATE_DISB,4,2       ; @TEGRA_POWERGATE_DISB
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.3:                               ; @.str.3
	.asciz	"failed to get IRQ\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"failed to probe RGB output: %d\n"

	.comm	_dc_client_ops,4,2              ; @dc_client_ops
l_.str.5:                               ; @.str.5
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_tegra_dc_probe
.subsections_via_symbols
