	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_lvds_probe
_panel_lvds_probe:                      ## @panel_lvds_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, 8(%rax)
	movq	%rax, %rdi
	callq	_panel_lvds_parse_dt
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devm_regulator_get_optional
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	48(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_7
## %bb.9:
	movq	$0, 48(%r14)
LBB0_10:
	movq	8(%r14), %rdi
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	40(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_7:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_21
## %bb.8:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_13:
	movq	8(%r14), %rdi
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
LBB0_12:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_backlight_by_node
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpq	$0, (%r14)
	je	LBB0_17
LBB0_18:
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_drm_panel_init
	movq	8(%r14), %rax
	movq	%rax, 24(%r14)
	movq	_panel_lvds_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	_drm_panel_add
	testl	%eax, %eax
	js	LBB0_20
## %bb.19:
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_put_device
	jmp	LBB0_21
LBB0_17:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.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	"power"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"failed to request regulator: %d\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.5:                               ## @.str.5
	.asciz	"backlight"

	.comm	_panel_lvds_funcs,4,2           ## @panel_lvds_funcs
	.no_dead_strip	_panel_lvds_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_lvds_probe
_panel_lvds_probe:                      ; @panel_lvds_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #8]
	bl	_panel_lvds_parse_dt
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_regulator_get_optional
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #48]
	bl	_PTR_ERR
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.4:
	str	xzr, [x19, #48]
LBB0_5:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x20, l_.str.2@PAGE
Lloh12:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x0, [x19, #40]
	b	LBB0_14
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_9:
	mov	x20, x0
	b	LBB0_15
LBB0_10:
	mov	x20, x0
Lloh15:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.11:
	ldr	x0, [x19, #8]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_12:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x20, l_.str.4@PAGE
Lloh24:
	add	x20, x20, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.13:
	ldr	x0, [x19, #32]
LBB0_14:
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x0, [x19, #8]
	stp	x20, x21, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x20, x21
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_18
; %bb.17:
	mov	x20, x0
	bl	_of_find_backlight_by_node
	str	x0, [x19]
	mov	x0, x20
	bl	_of_node_put
	ldr	x8, [x19]
	cbz	x8, LBB0_21
LBB0_18:
	add	x20, x19, #16
	mov	x0, x20
	bl	_drm_panel_init
	ldr	x8, [x19, #8]
Lloh29:
	adrp	x9, _panel_lvds_funcs@GOTPAGE
Lloh30:
	ldr	x9, [x9, _panel_lvds_funcs@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	mov	x0, x20
	bl	_drm_panel_add
	tbnz	w0, #31, LBB0_20
; %bb.19:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	w20, #0
	b	LBB0_15
LBB0_20:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_put_device
	b	LBB0_15
LBB0_21:
Lloh31:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.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	"power"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"failed to request regulator: %d\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.5:                               ; @.str.5
	.asciz	"backlight"

	.comm	_panel_lvds_funcs,4,2           ; @panel_lvds_funcs
	.no_dead_strip	_panel_lvds_probe
.subsections_via_symbols
