	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stih_cec_probe
_stih_cec_probe:                        ## @stih_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, %rbx
	callq	_cec_notifier_parse_hdmi_phandle
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %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	%rbx, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rbx, 32(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	24(%r14), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %r12
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_18
## %bb.8:
	movq	_stih_cec_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stih_cec_irq_handler_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rbx), %r9d
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%r8d, %r8d
	callq	_devm_request_threaded_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	16(%r14), %rdi
	jmp	LBB0_2
LBB0_11:
	movq	_CEC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CEC_CAP_DEFAULTS@GOTPCREL(%rip), %rax
	movq	_CEC_CAP_CONNECTOR_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CEC_MAX_LOG_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_sti_cec_adap_ops@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_cec_allocate_adapter
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movl	8(%r14), %edx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cec_notifier_cec_adap_register
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_cec_register_adapter
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r12d
	movl	12(%r14), %edi
	callq	_cec_notifier_cec_adap_unregister
	jmp	LBB0_17
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_17:
	movl	8(%r14), %edi
	callq	_cec_delete_adapter
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_stih_cec_irq_handler,4,2       ## @stih_cec_irq_handler
	.comm	_stih_cec_irq_handler_thread,4,2 ## @stih_cec_irq_handler_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cec-clk"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot get cec clock\n"

	.comm	_sti_cec_adap_ops,4,2           ## @sti_cec_adap_ops
	.comm	_CEC_NAME,4,2                   ## @CEC_NAME
	.comm	_CEC_CAP_DEFAULTS,4,2           ## @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ## @CEC_CAP_CONNECTOR_INFO
	.comm	_CEC_MAX_LOG_ADDRS,4,2          ## @CEC_MAX_LOG_ADDRS
	.no_dead_strip	_stih_cec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stih_cec_probe
_stih_cec_probe:                        ; @stih_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	x20, 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, x20
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
	str	x20, [x0, #32]
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
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x0, [x19, #24]
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	str	x0, [x19]
	tbnz	x0, #63, LBB0_7
; %bb.9:
Lloh9:
	adrp	x8, _stih_cec_irq_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stih_cec_irq_handler@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _stih_cec_irq_handler_thread@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stih_cec_irq_handler_thread@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	ldr	w5, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	mov	w4, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.10:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	b	LBB0_2
LBB0_12:
Lloh19:
	adrp	x8, _CEC_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CEC_NAME@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _CEC_CAP_DEFAULTS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CEC_CAP_DEFAULTS@GOTPAGEOFF]
Lloh24:
	adrp	x9, _CEC_CAP_CONNECTOR_INFO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CEC_CAP_CONNECTOR_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh28:
	adrp	x8, _CEC_MAX_LOG_ADDRS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CEC_MAX_LOG_ADDRS@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
Lloh31:
	adrp	x0, _sti_cec_adap_ops@GOTPAGE
Lloh32:
	ldr	x0, [x0, _sti_cec_adap_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_cec_allocate_adapter
	str	w0, [x19, #8]
	bl	_PTR_ERR_OR_ZERO
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.13:
	ldr	w2, [x19, #8]
	mov	x0, x21
	mov	x1, #0
	bl	_cec_notifier_cec_adap_register
	str	w0, [x19, #12]
	cbz	w0, LBB0_16
; %bb.14:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_cec_register_adapter
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.15:
	ldr	w0, [x19, #12]
	bl	_cec_notifier_cec_adap_unregister
	b	LBB0_17
LBB0_16:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	ldr	w0, [x19, #8]
	bl	_cec_delete_adapter
	b	LBB0_7
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_stih_cec_irq_handler,4,2       ; @stih_cec_irq_handler
	.comm	_stih_cec_irq_handler_thread,4,2 ; @stih_cec_irq_handler_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cec-clk"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot get cec clock\n"

	.comm	_sti_cec_adap_ops,4,2           ; @sti_cec_adap_ops
	.comm	_CEC_NAME,4,2                   ; @CEC_NAME
	.comm	_CEC_CAP_DEFAULTS,4,2           ; @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ; @CEC_CAP_CONNECTOR_INFO
	.comm	_CEC_MAX_LOG_ADDRS,4,2          ; @CEC_MAX_LOG_ADDRS
	.no_dead_strip	_stih_cec_probe
.subsections_via_symbols
