	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_cec_probe
_cros_ec_cec_probe:                     ## @cros_ec_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
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	(%rax), %r15
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_cros_ec_cec_find_hdmi_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
LBB0_2:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r15, 16(%r14)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_7:
	movq	_DRV_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	_cros_ec_cec_ops@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	movl	$1, %r8d
	callq	_cec_allocate_adapter
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rdi
	jmp	LBB0_2
LBB0_9:
	movq	-48(%rbp), %rsi
	movq	(%r14), %rdx
	movq	%r12, %rdi
	callq	_cec_notifier_cec_adap_register
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	_cros_ec_cec_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rsi
	addq	$12, %rsi
	movl	%eax, 12(%r14)
	movq	%r15, %rdi
	callq	_blocking_notifier_chain_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_15:
	movl	8(%r14), %edi
	callq	_cec_notifier_cec_adap_unregister
	jmp	LBB0_16
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	(%r14), %rdi
	callq	_cec_delete_adapter
	jmp	LBB0_17
LBB0_13:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_cec_register_adapter
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_17
## %bb.14:
	movl	%eax, %ebx
	jmp	LBB0_15
	.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 initialize wakeup\n"

	.comm	_cros_ec_cec_ops,4,2            ## @cros_ec_cec_ops
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_CEC_CAP_DEFAULTS,4,2           ## @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ## @CEC_CAP_CONNECTOR_INFO
	.comm	_cros_ec_cec_event,4,2          ## @cros_ec_cec_event
L_.str.1:                               ## @.str.1
	.asciz	"failed to register notifier\n"

	.no_dead_strip	_cros_ec_cec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_cec_probe
_cros_ec_cec_probe:                     ; @cros_ec_cec_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	ldr	x21, [x0]
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_cros_ec_cec_find_hdmi_dev
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
LBB0_2:
	bl	_PTR_ERR
	mov	x23, x0
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	str	x21, [x20, #16]
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	cbz	w0, LBB0_8
; %bb.6:
	mov	x23, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_3
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_3
LBB0_8:
Lloh8:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh10:
	adrp	x9, _CEC_CAP_DEFAULTS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CEC_CAP_DEFAULTS@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _CEC_CAP_CONNECTOR_INFO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CEC_CAP_CONNECTOR_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh17:
	adrp	x0, _cros_ec_cec_ops@GOTPAGE
Lloh18:
	ldr	x0, [x0, _cros_ec_cec_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	w4, #1
	bl	_cec_allocate_adapter
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x20]
	b	LBB0_2
LBB0_10:
	ldr	x1, [sp, #8]
	ldr	x2, [x20]
	mov	x0, x22
	bl	_cec_notifier_cec_adap_register
	str	w0, [x20, #8]
	cbz	w0, LBB0_14
; %bb.11:
Lloh19:
	adrp	x8, _cros_ec_cec_event@GOTPAGE
Lloh20:
	ldr	x8, [x8, _cros_ec_cec_event@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	x1, x20
	str	w8, [x1, #12]!
	mov	x0, x21
	bl	_blocking_notifier_chain_register
	cbz	w0, LBB0_16
; %bb.12:
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	ldr	w0, [x20, #8]
	bl	_cec_notifier_cec_adap_unregister
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	ldr	x0, [x20]
	bl	_cec_delete_adapter
	b	LBB0_3
LBB0_16:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_cec_register_adapter
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	w23, #0
	b	LBB0_3
LBB0_18:
	mov	x23, x0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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 initialize wakeup\n"

	.comm	_cros_ec_cec_ops,4,2            ; @cros_ec_cec_ops
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_CEC_CAP_DEFAULTS,4,2           ; @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_CONNECTOR_INFO,4,2     ; @CEC_CAP_CONNECTOR_INFO
	.comm	_cros_ec_cec_event,4,2          ; @cros_ec_cec_event
l_.str.1:                               ; @.str.1
	.asciz	"failed to register notifier\n"

	.no_dead_strip	_cros_ec_cec_probe
.subsections_via_symbols
