	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_cec_probe
_tegra_cec_probe:                       ## @tegra_cec_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, %r13
	callq	_cec_notifier_parse_hdmi_phandle
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %rbx
	movl	(%rax), %r12d
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r13), %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	jle	LBB0_11
## %bb.6:
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_resource_size
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_devm_ioremap_nocache
	movl	%eax, 40(%r14)
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_11:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	subl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	8(%r14), %edi
	callq	_clk_prepare_enable
	movq	%r13, 32(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	(%r14), %rsi
	movq	_tegra_cec_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tegra_cec_irq_thread_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, (%rsp)
	leaq	L_.str.5(%rip), %r9
	movq	%r13, %rdi
	xorl	%r8d, %r8d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_22
LBB0_20:
	movq	_TEGRA_CEC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CEC_CAP_DEFAULTS@GOTPCREL(%rip), %rax
	movq	_CEC_CAP_MONITOR_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CEC_CAP_CONNECTOR_INFO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CEC_MAX_LOG_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_tegra_cec_ops@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_cec_allocate_adapter
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str.7(%rip), %rsi
LBB0_22:
	movq	%r13, %rdi
	callq	_dev_err
LBB0_23:
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_17
LBB0_24:
	movq	16(%r14), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cec_notifier_cec_adap_register
	movl	%eax, 24(%r14)
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movq	16(%r14), %rdi
	movq	%r13, %rsi
	callq	_cec_register_adapter
	testl	%eax, %eax
	je	LBB0_17
## %bb.26:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	24(%r14), %edi
	callq	_cec_notifier_cec_adap_unregister
	movl	%ebx, %r12d
	jmp	LBB0_28
LBB0_27:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_28:
	movq	16(%r14), %rdi
	callq	_cec_delete_adapter
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate resources for device\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Unable to request mem region for device\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to grab IOs for device\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Can't get clock for CEC\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_tegra_cec_irq_handler,4,2      ## @tegra_cec_irq_handler
	.comm	_tegra_cec_irq_thread_handler,4,2 ## @tegra_cec_irq_thread_handler
L_.str.5:                               ## @.str.5
	.asciz	"cec_irq"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to request interrupt for device\n"

	.comm	_tegra_cec_ops,4,2              ## @tegra_cec_ops
	.comm	_TEGRA_CEC_NAME,4,2             ## @TEGRA_CEC_NAME
	.comm	_CEC_CAP_DEFAULTS,4,2           ## @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ## @CEC_CAP_MONITOR_ALL
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ## @CEC_CAP_CONNECTOR_INFO
	.comm	_CEC_MAX_LOG_ADDRS,4,2          ## @CEC_MAX_LOG_ADDRS
L_.str.7:                               ## @.str.7
	.asciz	"Couldn't create cec adapter\n"

L_.str.8:                               ## @.str.8
	.asciz	"Couldn't register device\n"

	.no_dead_strip	_tegra_cec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_cec_probe
_tegra_cec_probe:                       ; @tegra_cec_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_cec_notifier_parse_hdmi_phandle
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.4:
	mov	x22, x0
	ldr	w23, [x0]
	bl	_resource_size
	mov	x2, x0
	ldr	w3, [x20, #4]
	mov	x0, x20
	mov	x1, x23
	bl	_devm_request_mem_region
	cbz	w0, LBB0_11
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	cmp	x0, #0
	b.le	LBB0_14
; %bb.6:
	ldr	w23, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_devm_ioremap_nocache
	str	w0, [x19, #40]
	cbz	w0, LBB0_12
; %bb.7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_17
; %bb.8:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_dev_err
LBB0_14:
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	str	x20, [x19, #32]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x1, [x19]
Lloh22:
	adrp	x8, _tegra_cec_irq_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tegra_cec_irq_handler@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _tegra_cec_irq_thread_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tegra_cec_irq_thread_handler@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x5, l_.str.5@PAGE
Lloh29:
	add	x5, x5, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w4, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_19
; %bb.18:
	mov	x22, x0
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh32:
	adrp	x8, _TEGRA_CEC_NAME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TEGRA_CEC_NAME@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _CEC_CAP_DEFAULTS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CEC_CAP_DEFAULTS@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _CEC_CAP_MONITOR_ALL@GOTPAGE
Lloh39:
	ldr	x9, [x9, _CEC_CAP_MONITOR_ALL@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	adrp	x10, _CEC_CAP_CONNECTOR_INFO@GOTPAGE
Lloh42:
	ldr	x10, [x10, _CEC_CAP_CONNECTOR_INFO@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh43:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh44:
	adrp	x8, _CEC_MAX_LOG_ADDRS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CEC_MAX_LOG_ADDRS@GOTPAGEOFF]
Lloh46:
	ldr	w4, [x8]
Lloh47:
	adrp	x0, _tegra_cec_ops@GOTPAGE
Lloh48:
	ldr	x0, [x0, _tegra_cec_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_cec_allocate_adapter
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.20:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w22, w8
Lloh52:
	adrp	x1, l_.str.7@PAGE
Lloh53:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_21:
	mov	x0, x20
	bl	_dev_err
LBB0_22:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_16
LBB0_23:
	ldr	x2, [x19, #16]
	mov	x0, x21
	mov	x1, #0
	bl	_cec_notifier_cec_adap_register
	str	w0, [x19, #24]
	cbz	w0, LBB0_26
; %bb.24:
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_cec_register_adapter
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.25:
Lloh54:
	adrp	x1, l_.str.8@PAGE
Lloh55:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #24]
	bl	_cec_notifier_cec_adap_unregister
	b	LBB0_27
LBB0_26:
Lloh56:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_27:
	ldr	x0, [x19, #16]
	bl	_cec_delete_adapter
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate resources for device\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Unable to request mem region for device\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to grab IOs for device\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Can't get clock for CEC\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_tegra_cec_irq_handler,4,2      ; @tegra_cec_irq_handler
	.comm	_tegra_cec_irq_thread_handler,4,2 ; @tegra_cec_irq_thread_handler
l_.str.5:                               ; @.str.5
	.asciz	"cec_irq"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to request interrupt for device\n"

	.comm	_tegra_cec_ops,4,2              ; @tegra_cec_ops
	.comm	_TEGRA_CEC_NAME,4,2             ; @TEGRA_CEC_NAME
	.comm	_CEC_CAP_DEFAULTS,4,2           ; @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ; @CEC_CAP_MONITOR_ALL
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ; @CEC_CAP_CONNECTOR_INFO
	.comm	_CEC_MAX_LOG_ADDRS,4,2          ; @CEC_MAX_LOG_ADDRS
l_.str.7:                               ; @.str.7
	.asciz	"Couldn't create cec adapter\n"

l_.str.8:                               ; @.str.8
	.asciz	"Couldn't register device\n"

	.no_dead_strip	_tegra_cec_probe
.subsections_via_symbols
