	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_display_hub_probe
_tegra_display_hub_probe:               ## @tegra_display_hub_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 56(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 80(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	80(%rbx), %rdi
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	56(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 72(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	72(%rbx), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 64(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	64(%rbx), %rdi
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	32(%rbx), %rdi
	jmp	LBB0_3
LBB0_12:
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_devm_kcalloc
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.13:
	movq	%rax, %r12
	movq	56(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.14:
	movl	$24, %r13d
	xorl	%r15d, %r15d
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rdi
	movl	$8, %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	leaq	(%r12,%r13), %rdi
	callq	_mutex_init
	movq	$0, -8(%r12,%r13)
	movl	%r15d, -24(%r12,%r13)
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	callq	_devm_reset_control_get
	movq	%rax, -16(%r12,%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	-16(%r12,%r13), %rdi
	testq	%rax, %rax
	jne	LBB0_37
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	callq	_reset_control_assert
	testl	%eax, %eax
	js	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r15
	movq	56(%rbx), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	48(%rbx), %r12
	addq	$32, %r13
	jmp	LBB0_15
LBB0_19:
	movl	(%r14), %edi
	callq	_of_get_child_count
	movl	%eax, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	cmpl	$0, (%rbx)
	je	LBB0_30
## %bb.21:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_of_get_next_child
	testq	%rax, %rax
	je	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	leaq	L_.str.6(%rip), %rdx
	callq	_devm_get_clk_from_child
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_36
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	40(%rbx), %rax
	movq	%r13, (%rax,%r15,8)
	incq	%r15
	movl	(%rbx), %eax
	cmpq	%rax, %r15
	jb	LBB0_22
	jmp	LBB0_31
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.28:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	xorl	%r12d, %r12d
LBB0_31:
	movq	%r12, %rdi
	callq	_of_node_put
	movq	32(%rbx), %rdi
	callq	_reset_control_assert
	testl	%eax, %eax
	js	LBB0_29
## %bb.32:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	_tegra_display_hub_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	%r15, %rdi
	callq	_host1x_client_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_27
## %bb.33:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_27
LBB0_29:
	movl	%eax, %r12d
	jmp	LBB0_27
LBB0_35:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_36:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_of_node_put
	movq	%r13, %rdi
LBB0_37:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_27
LBB0_38:
	callq	___stack_chk_fail
	.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	"disp"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"misc"

L_.str.4:                               ## @.str.4
	.asciz	"wgrp%u"

L_.str.5:                               ## @.str.5
	.asciz	"failed to find node for head %u\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.6:                               ## @.str.6
	.asciz	"dc"

L_.str.7:                               ## @.str.7
	.asciz	"failed to get clock for head %u\n"

	.comm	_tegra_display_hub_ops,4,2      ## @tegra_display_hub_ops
L_.str.8:                               ## @.str.8
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_tegra_display_hub_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_display_hub_probe
_tegra_display_hub_probe:               ; @tegra_display_hub_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_25
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #56]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #80]
LBB0_3:
	ldr	x8, [sp, #8]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_5:
	ldr	x8, [x20, #56]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #72]
	b	LBB0_3
LBB0_8:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x20, #64]
	b	LBB0_3
LBB0_10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #32]
	b	LBB0_3
LBB0_12:
	ldr	x8, [x20, #56]
	ldr	w1, [x8]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #32
	bl	_devm_kcalloc
	str	x0, [x20, #48]
	cbz	x0, LBB0_25
; %bb.13:
	ldr	x8, [x20, #56]
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.14:
	mov	x23, x0
	mov	x25, #0
	mov	x21, #0
Lloh16:
	adrp	x22, l_.str.4@PAGE
Lloh17:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	w1, #8
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	add	x23, x23, x25
	add	x0, x23, #24
	bl	_mutex_init
	str	xzr, [x23, #16]
	str	w21, [x23]
	mov	x1, sp
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x23, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x23, #8]
	cbnz	x8, LBB0_36
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_reset_control_assert
	tbnz	w0, #31, LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #56]
	ldr	w8, [x8]
	cmp	x21, x8
	b.hs	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x23, [x20, #48]
	add	x25, x25, #32
	b	LBB0_15
LBB0_19:
	ldr	w0, [x19]
	bl	_of_get_child_count
	mov	x1, x0
	str	w0, [x20]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_25
; %bb.20:
	ldr	w8, [x20]
	cbz	w8, LBB0_29
; %bb.21:
	mov	x21, #0
	mov	x22, #0
Lloh18:
	adrp	x23, l_.str.6@PAGE
Lloh19:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_of_get_next_child
	cbz	x0, LBB0_34
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_devm_get_clk_from_child
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x20, #40]
	str	x24, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.lo	LBB0_22
	b	LBB0_30
LBB0_25:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_27:
	ldr	x8, [sp, #8]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.28:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_29:
	mov	x22, #0
LBB0_30:
	mov	x0, x22
	bl	_of_node_put
	ldr	x0, [x20, #32]
	bl	_reset_control_assert
	tbnz	w0, #31, LBB0_33
; %bb.31:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_enable
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
Lloh25:
	adrp	x8, _tegra_display_hub_ops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tegra_display_hub_ops@GOTPAGEOFF]
	stp	x19, x8, [x20, #8]!
	mov	x0, x20
	bl	_host1x_client_register
	mov	x23, x0
	tbz	w0, #31, LBB0_27
; %bb.32:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_27
LBB0_33:
	mov	x23, x0
	b	LBB0_27
LBB0_34:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_26
LBB0_35:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	mov	x0, x22
	bl	_of_node_put
	mov	x0, x24
LBB0_36:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_27
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.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	"disp"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"misc"

l_.str.4:                               ; @.str.4
	.asciz	"wgrp%u"

l_.str.5:                               ; @.str.5
	.asciz	"failed to find node for head %u\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.6:                               ; @.str.6
	.asciz	"dc"

l_.str.7:                               ; @.str.7
	.asciz	"failed to get clock for head %u\n"

	.comm	_tegra_display_hub_ops,4,2      ; @tegra_display_hub_ops
l_.str.8:                               ; @.str.8
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_tegra_display_hub_probe
.subsections_via_symbols
