	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_extcon_init
_sii8620_extcon_init:                   ## @sii8620_extcon_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_of_graph_get_remote_node
	movq	%rax, %rdi
	callq	_of_get_next_parent
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_extcon_find_edev_by_node
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	%r14, 16(%r15)
	movq	_sii8620_extcon_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%r15), %rbx
	movl	%eax, 8(%r15)
	leaq	12(%r15), %rdi
	movq	_sii8620_extcon_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_EXTCON_DISP_MHL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_extcon_register_notifier
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no extcon found, switching to 'always on' mode\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"Invalid or missing extcon\n"

	.comm	_sii8620_extcon_notifier,4,2    ## @sii8620_extcon_notifier
	.comm	_sii8620_extcon_work,4,2        ## @sii8620_extcon_work
	.comm	_EXTCON_DISP_MHL,4,2            ## @EXTCON_DISP_MHL
L_.str.2:                               ## @.str.2
	.asciz	"failed to register notifier for MHL\n"

	.no_dead_strip	_sii8620_extcon_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_extcon_init
_sii8620_extcon_init:                   ; @sii8620_extcon_init
	.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
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #-1
	bl	_of_graph_get_remote_node
	bl	_of_get_next_parent
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_extcon_find_edev_by_node
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	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_4:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _sii8620_extcon_notifier@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sii8620_extcon_notifier@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	x21, x19
	str	w8, [x21, #8]!
	str	x20, [x21, #8]
	add	x0, x21, #4
Lloh10:
	adrp	x8, _sii8620_extcon_work@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sii8620_extcon_work@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh13:
	adrp	x8, _EXTCON_DISP_MHL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXTCON_DISP_MHL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_extcon_register_notifier
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no extcon found, switching to 'always on' mode\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"Invalid or missing extcon\n"

	.comm	_sii8620_extcon_notifier,4,2    ; @sii8620_extcon_notifier
	.comm	_sii8620_extcon_work,4,2        ; @sii8620_extcon_work
	.comm	_EXTCON_DISP_MHL,4,2            ; @EXTCON_DISP_MHL
l_.str.2:                               ; @.str.2
	.asciz	"failed to register notifier for MHL\n"

	.no_dead_strip	_sii8620_extcon_init
.subsections_via_symbols
