	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ldb_panel_ddc
_imx_ldb_panel_ddc:                     ## @imx_ldb_panel_ddc
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_i2c_adapter_by_node
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpl	$0, 24(%r15)
	jne	LBB0_9
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_3:
	cmpl	$0, 24(%r15)
	jne	LBB0_9
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	leaq	16(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	16(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_kmemdup
	movl	%eax, 20(%r15)
	jmp	LBB0_9
LBB0_6:
	cmpl	$0, 12(%r15)
	jne	LBB0_9
## %bb.7:
	leaq	8(%r15), %rsi
	leaq	4(%r15), %rdx
	movq	_OF_USE_NATIVE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_of_get_drm_display_mode
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, (%r15)
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ddc-i2c-bus"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get ddc i2c adapter\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"no ddc available\n"

L_.str.3:                               ## @.str.3
	.asciz	"edid"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_OF_USE_NATIVE_MODE,4,2         ## @OF_USE_NATIVE_MODE
	.no_dead_strip	_imx_ldb_panel_ddc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ldb_panel_ddc
_imx_ldb_panel_ddc:                     ; @imx_ldb_panel_ddc
	.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, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	bl	_of_find_i2c_adapter_by_node
	str	w0, [x19, #24]
	mov	x0, x22
	bl	_of_node_put
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
Lloh4:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	add	x2, x19, #16
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_get_property
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x19, #16]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_kmemdup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #20]
	b	LBB0_5
LBB0_8:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_4
; %bb.9:
	add	x1, x19, #8
	add	x2, x19, #4
Lloh14:
	adrp	x8, _OF_USE_NATIVE_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OF_USE_NATIVE_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_of_get_drm_display_mode
	cbnz	w0, LBB0_4
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ddc-i2c-bus"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get ddc i2c adapter\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"no ddc available\n"

l_.str.3:                               ; @.str.3
	.asciz	"edid"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_OF_USE_NATIVE_MODE,4,2         ; @OF_USE_NATIVE_MODE
	.no_dead_strip	_imx_ldb_panel_ddc
.subsections_via_symbols
