	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_probe
_meson_ao_cec_probe:                    ## @meson_ao_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_cec_notifier_parse_hdmi_phandle
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	_CEC_CAP_DEFAULTS@GOTPCREL(%rip), %rax
	movq	_CEC_CAP_CONNECTOR_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_meson_ao_cec_ops@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	movl	$1, %r8d
	callq	_cec_allocate_adapter
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rdx, %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_26
LBB0_7:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cec_notifier_cec_adap_register
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	24(%r14), %rdi
LBB0_11:
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_24
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_25
LBB0_12:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_meson_ao_cec_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_meson_ao_cec_irq_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_24:
	movl	8(%r14), %edi
	callq	_cec_notifier_cec_adap_unregister
LBB0_25:
	movq	(%r14), %rdi
	callq	_cec_delete_adapter
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_26:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	16(%r14), %rdi
	jmp	LBB0_11
LBB0_17:
	movq	16(%r14), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_19:
	movq	16(%r14), %rdi
	movq	_CEC_CLK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_23:
	movq	16(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_24
LBB0_21:
	movq	%r12, %rdi
	callq	_device_reset_optional
	movq	%r12, 32(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_cec_register_adapter
	testl	%eax, %eax
	js	LBB0_22
## %bb.27:
	movq	_CEC_GEN_CNTL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CEC_GEN_CNTL_REG@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	24(%r14), %rsi
	callq	_writel_relaxed
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_22:
	movl	%eax, %r15d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_meson_ao_cec_ops,4,2           ## @meson_ao_cec_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"meson_ao_cec"

	.comm	_CEC_CAP_DEFAULTS,4,2           ## @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ## @CEC_CAP_CONNECTOR_INFO
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_meson_ao_cec_irq,4,2           ## @meson_ao_cec_irq
	.comm	_meson_ao_cec_irq_thread,4,2    ## @meson_ao_cec_irq_thread
L_.str.1:                               ## @.str.1
	.asciz	"irq request failed\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"core clock request failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"core clock enable failed\n"

	.comm	_CEC_CLK_RATE,4,2               ## @CEC_CLK_RATE
L_.str.5:                               ## @.str.5
	.asciz	"core clock set rate failed\n"

	.comm	_CEC_GEN_CNTL_RESET,4,2         ## @CEC_GEN_CNTL_RESET
	.comm	_CEC_GEN_CNTL_REG,4,2           ## @CEC_GEN_CNTL_REG
L_.str.6:                               ## @.str.6
	.asciz	"CEC controller registration failed\n"

	.no_dead_strip	_meson_ao_cec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ao_cec_probe
_meson_ao_cec_probe:                    ; @meson_ao_cec_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_cec_notifier_parse_hdmi_phandle
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
	add	x0, x0, #40
	bl	_spin_lock_init
Lloh3:
	adrp	x8, _CEC_CAP_DEFAULTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEC_CAP_DEFAULTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CEC_CAP_CONNECTOR_INFO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CEC_CAP_CONNECTOR_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh9:
	adrp	x0, _meson_ao_cec_ops@GOTPAGE
Lloh10:
	ldr	x0, [x0, _meson_ao_cec_ops@GOTPAGEOFF]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	w4, #1
	bl	_cec_allocate_adapter
	str	x0, [x20]
	bl	_IS_ERR
	ldr	x2, [x20]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x2
	b	LBB0_2
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_7:
	mov	x0, x21
	mov	x1, #0
	bl	_cec_notifier_cec_adap_register
	str	w0, [x20, #8]
	cbz	w0, LBB0_11
; %bb.8:
Lloh16:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
Lloh19:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [x20, #24]
LBB0_10:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_15
LBB0_11:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
Lloh25:
	adrp	x8, _meson_ao_cec_irq@GOTPAGE
Lloh26:
	ldr	x8, [x8, _meson_ao_cec_irq@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _meson_ao_cec_irq_thread@GOTPAGE
Lloh29:
	ldr	x8, [x8, _meson_ao_cec_irq_thread@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	x5, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_18
; %bb.13:
	mov	x21, x0
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
LBB0_15:
	ldr	w0, [x20, #8]
	bl	_cec_notifier_cec_adap_unregister
LBB0_16:
	ldr	x0, [x20]
	bl	_cec_delete_adapter
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
	b	LBB0_10
LBB0_20:
	ldr	x0, [x20, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_22
; %bb.21:
	mov	x21, x0
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_22:
	ldr	x0, [x20, #16]
Lloh41:
	adrp	x8, _CEC_CLK_RATE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CEC_CLK_RATE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_clk_set_rate
	cbz	w0, LBB0_25
; %bb.23:
	mov	x21, x0
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_24:
	ldr	x0, [x20, #16]
	bl	_clk_disable_unprepare
	b	LBB0_15
LBB0_25:
	mov	x0, x19
	bl	_device_reset_optional
	str	x19, [x20, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x0, [x20]
	mov	x1, x19
	bl	_cec_register_adapter
	tbnz	w0, #31, LBB0_27
; %bb.26:
Lloh46:
	adrp	x8, _CEC_GEN_CNTL_RESET@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CEC_GEN_CNTL_RESET@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh49:
	adrp	x9, _CEC_GEN_CNTL_REG@GOTPAGE
Lloh50:
	ldr	x9, [x9, _CEC_GEN_CNTL_REG@GOTPAGEOFF]
Lloh51:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_writel_relaxed
	mov	w21, #0
	b	LBB0_17
LBB0_27:
	mov	x21, x0
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_meson_ao_cec_ops,4,2           ; @meson_ao_cec_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"meson_ao_cec"

	.comm	_CEC_CAP_DEFAULTS,4,2           ; @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ; @CEC_CAP_CONNECTOR_INFO
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_meson_ao_cec_irq,4,2           ; @meson_ao_cec_irq
	.comm	_meson_ao_cec_irq_thread,4,2    ; @meson_ao_cec_irq_thread
l_.str.1:                               ; @.str.1
	.asciz	"irq request failed\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"core clock request failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"core clock enable failed\n"

	.comm	_CEC_CLK_RATE,4,2               ; @CEC_CLK_RATE
l_.str.5:                               ; @.str.5
	.asciz	"core clock set rate failed\n"

	.comm	_CEC_GEN_CNTL_RESET,4,2         ; @CEC_GEN_CNTL_RESET
	.comm	_CEC_GEN_CNTL_REG,4,2           ; @CEC_GEN_CNTL_REG
l_.str.6:                               ; @.str.6
	.asciz	"CEC controller registration failed\n"

	.no_dead_strip	_meson_ao_cec_probe
.subsections_via_symbols
