	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_get_connector_properties
_tfp410_get_connector_properties:       ## @tfp410_get_connector_properties
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_fwnode_get_named_gpiod
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, 16(%r15)
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_12
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_get_i2c_adapter_by_node
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r12, %rdi
	callq	_of_node_put
LBB0_12:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdmi-connector"

	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ## @DRM_MODE_CONNECTOR_DVID
L_.str.1:                               ## @.str.1
	.asciz	"hpd-gpios"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.2:                               ## @.str.2
	.asciz	"hpd"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"ddc-i2c-bus"

L_.str.4:                               ## @.str.4
	.asciz	"Connector's ddc i2c bus found\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_tfp410_get_connector_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_get_connector_properties
_tfp410_get_connector_properties:       ; @tfp410_get_connector_properties
	.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
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #-1
	bl	_of_graph_get_remote_node
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_device_is_compatible
Lloh2:
	adrp	x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh4:
	adrp	x9, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh6:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh11:
	adrp	x4, l_.str.2@PAGE
Lloh12:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_fwnode_get_named_gpiod
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x21, x0
	str	xzr, [x20, #16]
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_3:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	bl	_of_get_i2c_adapter_by_node
	str	w0, [x20, #8]
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x0, [x20]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	mov	w21, #0
	b	LBB0_9
LBB0_6:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_7:
	mov	w21, #0
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x22
	bl	_of_node_put
LBB0_10:
	mov	x0, x19
	bl	_of_node_put
LBB0_11:
	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 AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdmi-connector"

	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ; @DRM_MODE_CONNECTOR_DVID
l_.str.1:                               ; @.str.1
	.asciz	"hpd-gpios"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.2:                               ; @.str.2
	.asciz	"hpd"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"ddc-i2c-bus"

l_.str.4:                               ; @.str.4
	.asciz	"Connector's ddc i2c bus found\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_tfp410_get_connector_properties
.subsections_via_symbols
