	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_probe
_panel_probe:                           ## @panel_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, %r12
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_backlight_by_node
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
LBB0_9:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 24(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
LBB0_13:
	addq	$16, %r14
	movq	%r14, (%r12)
	leaq	L_.str.6(%rip), %rsi
	movq	_panel_module_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_tilcdc_module_init
	movq	%r12, %rdi
	callq	_devm_pinctrl_get_select_default
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_15:
	movq	%r15, %rdi
	callq	_of_get_display_timings
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	callq	_of_get_panel_info
	movl	%eax, 12(%r13)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r13), %edi
	callq	_display_timings_release
	jmp	LBB0_19
LBB0_7:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	negl	%ebx
	movq	%r14, %rdi
	callq	_tilcdc_module_cleanup
LBB0_20:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_put_device
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device-tree data is missing\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"backlight"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"found backlight\n"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.4:                               ## @.str.4
	.asciz	"failed to request enable GPIO\n"

L_.str.5:                               ## @.str.5
	.asciz	"found enable GPIO\n"

L_.str.6:                               ## @.str.6
	.asciz	"panel"

	.comm	_panel_module_ops,4,2           ## @panel_module_ops
L_.str.7:                               ## @.str.7
	.asciz	"pins are not configured\n"

L_.str.8:                               ## @.str.8
	.asciz	"could not get panel timings\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.9:                               ## @.str.9
	.asciz	"could not get panel info\n"

	.no_dead_strip	_panel_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_probe
_panel_probe:                           ; @panel_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	x20, x0
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	bl	_of_find_backlight_by_node
	str	x0, [x19]
	mov	x0, x22
	bl	_of_node_put
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.4:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_5:
Lloh7:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_9
; %bb.6:
	bl	_PTR_ERR
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
	cbnz	x0, LBB0_22
	b	LBB0_18
LBB0_7:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	cbz	x0, LBB0_11
; %bb.10:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_11:
	add	x22, x19, #16
	str	x22, [x20]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh24:
	adrp	x2, _panel_module_ops@GOTPAGE
Lloh25:
	ldr	x2, [x2, _panel_module_ops@GOTPAGEOFF]
	mov	x0, x22
	bl	_tilcdc_module_init
	mov	x0, x20
	bl	_devm_pinctrl_get_select_default
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_13:
	mov	x0, x21
	bl	_of_get_display_timings
	str	w0, [x19, #8]
	cbz	w0, LBB0_19
; %bb.14:
	mov	x0, x21
	bl	_of_get_panel_info
	str	w0, [x19, #12]
	cbz	w0, LBB0_20
; %bb.15:
	mov	w21, #0
	b	LBB0_18
LBB0_16:
Lloh28:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	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
LBB0_19:
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
	b	LBB0_21
LBB0_20:
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
	ldr	w0, [x19, #8]
	bl	_display_timings_release
LBB0_21:
	neg	w21, w20
	mov	x0, x22
	bl	_tilcdc_module_cleanup
	ldr	x0, [x19]
	cbz	x0, LBB0_18
LBB0_22:
	bl	_put_device
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device-tree data is missing\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"backlight"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"found backlight\n"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.4:                               ; @.str.4
	.asciz	"failed to request enable GPIO\n"

l_.str.5:                               ; @.str.5
	.asciz	"found enable GPIO\n"

l_.str.6:                               ; @.str.6
	.asciz	"panel"

	.comm	_panel_module_ops,4,2           ; @panel_module_ops
l_.str.7:                               ; @.str.7
	.asciz	"pins are not configured\n"

l_.str.8:                               ; @.str.8
	.asciz	"could not get panel timings\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.9:                               ; @.str.9
	.asciz	"could not get panel info\n"

	.no_dead_strip	_panel_probe
.subsections_via_symbols
