	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lvds_encoder_probe
_lvds_encoder_probe:                    ## @lvds_encoder_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_19
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_of_graph_get_port_by_id
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_get_child_by_name
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	callq	_of_graph_get_remote_port_parent
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_of_node_put
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	callq	_of_drm_find_panel
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_of_node_put
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%r15, %rdi
	jmp	LBB0_17
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_8
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_drm_panel_bridge_add
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	16(%rbx), %rdi
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_18:
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_drm_bridge_add
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.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	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"powerdown GPIO failure: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"port 1 not found\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"endpoint"

L_.str.4:                               ## @.str.4
	.asciz	"no endpoint for port 1\n"

L_.str.5:                               ## @.str.5
	.asciz	"no remote endpoint for port 1\n"

L_.str.6:                               ## @.str.6
	.asciz	"panel not found, deferring probe\n"

	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_funcs,4,2                      ## @funcs
	.no_dead_strip	_lvds_encoder_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lvds_encoder_probe
_lvds_encoder_probe:                    ; @lvds_encoder_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x20, x0
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_15
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_of_graph_get_port_by_id
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_get_child_by_name
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x21, LBB0_11
; %bb.7:
	mov	x0, x21
	bl	_of_graph_get_remote_port_parent
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x22, LBB0_12
; %bb.8:
	mov	x0, x22
	bl	_of_drm_find_panel
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.9:
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x21
	b	LBB0_18
LBB0_10:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_dbg
Lloh25:
	adrp	x8, _ENXIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	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
	ret
LBB0_16:
Lloh27:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_drm_panel_bridge_add
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x0, [x20, #16]
LBB0_18:
	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_19:
	ldr	w8, [x19]
	str	w8, [x20, #8]
Lloh30:
	adrp	x8, _funcs@GOTPAGE
Lloh31:
	ldr	x8, [x8, _funcs@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x20
	bl	_drm_bridge_add
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w20, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.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	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"powerdown GPIO failure: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"port 1 not found\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"endpoint"

l_.str.4:                               ; @.str.4
	.asciz	"no endpoint for port 1\n"

l_.str.5:                               ; @.str.5
	.asciz	"no remote endpoint for port 1\n"

l_.str.6:                               ; @.str.6
	.asciz	"panel not found, deferring probe\n"

	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_funcs,4,2                      ; @funcs
	.no_dead_strip	_lvds_encoder_probe
.subsections_via_symbols
