	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ideapad_backlight_notify_power
_ideapad_backlight_notify_power:        ## @ideapad_backlight_notify_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	_VPCCMD_R_BL_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_read_ec_data
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	cmpq	$0, -16(%rbp)
	jne	LBB0_3
## %bb.4:
	movq	_FB_BLANK_POWERDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPCCMD_R_BL_POWER,4,2          ## @VPCCMD_R_BL_POWER
	.comm	_FB_BLANK_UNBLANK,4,2           ## @FB_BLANK_UNBLANK
	.comm	_FB_BLANK_POWERDOWN,4,2         ## @FB_BLANK_POWERDOWN
	.no_dead_strip	_ideapad_backlight_notify_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ideapad_backlight_notify_power
_ideapad_backlight_notify_power:        ; @ideapad_backlight_notify_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _VPCCMD_R_BL_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPCCMD_R_BL_POWER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_read_ec_data
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _FB_BLANK_UNBLANK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh5:
	adrp	x10, _FB_BLANK_POWERDOWN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FB_BLANK_POWERDOWN@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VPCCMD_R_BL_POWER,4,2          ; @VPCCMD_R_BL_POWER
	.comm	_FB_BLANK_UNBLANK,4,2           ; @FB_BLANK_UNBLANK
	.comm	_FB_BLANK_POWERDOWN,4,2         ; @FB_BLANK_POWERDOWN
	.no_dead_strip	_ideapad_backlight_notify_power
.subsections_via_symbols
