	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pmu_backlight_update_status
___pmu_backlight_update_status:         ## @__pmu_backlight_update_status
	.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), %rcx
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rdx
	movq	_PMU_POW_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	cmpq	%rcx, 16(%rdi)
	jne	LBB0_4
## %bb.2:
	movl	(%rdi), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.3:
	callq	_pmu_backlight_get_level_brightness
	movq	_PMU_BACKLIGHT_BRIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%eax, %r8d
	callq	_pmu_request
	movq	%rbx, %rdi
	callq	_pmu_wait_complete
	movq	_PMU_POW_ON@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_PMU_POWER_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PMU_POW_BACKLIGHT@GOTPCREL(%rip), %rdx
	movl	(%rax), %r8d
	orl	(%rdx), %r8d
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_pmu_request
	movq	%rbx, %rdi
	callq	_pmu_wait_complete
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FB_BLANK_UNBLANK,8,3           ## @FB_BLANK_UNBLANK
	.comm	_PMU_BACKLIGHT_BRIGHT,4,2       ## @PMU_BACKLIGHT_BRIGHT
	.comm	_PMU_POWER_CTRL,4,2             ## @PMU_POWER_CTRL
	.comm	_PMU_POW_BACKLIGHT,4,2          ## @PMU_POW_BACKLIGHT
	.comm	_PMU_POW_ON,4,2                 ## @PMU_POW_ON
	.comm	_PMU_POW_OFF,4,2                ## @PMU_POW_OFF
	.no_dead_strip	___pmu_backlight_update_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pmu_backlight_update_status
___pmu_backlight_update_status:         ; @__pmu_backlight_update_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x8, _FB_BLANK_UNBLANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x0]
	ldr	x10, [x0, #16]
	cmp	x10, x9
	ccmp	w8, #1, #8, eq
	b.ge	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _PMU_POW_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMU_POW_OFF@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x0, x8
	bl	_pmu_backlight_get_level_brightness
	mov	x4, x0
Lloh5:
	adrp	x8, _PMU_BACKLIGHT_BRIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PMU_BACKLIGHT_BRIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #2
	bl	_pmu_request
	add	x0, sp, #8
	bl	_pmu_wait_complete
Lloh8:
	adrp	x8, _PMU_POW_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMU_POW_ON@GOTPAGEOFF]
LBB0_4:
Lloh10:
	adrp	x9, _PMU_POWER_CTRL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PMU_POWER_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x9]
Lloh13:
	adrp	x9, _PMU_POW_BACKLIGHT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PMU_POW_BACKLIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w4, w8, w9
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #2
	bl	_pmu_request
	add	x0, sp, #8
	bl	_pmu_wait_complete
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FB_BLANK_UNBLANK,8,3           ; @FB_BLANK_UNBLANK
	.comm	_PMU_BACKLIGHT_BRIGHT,4,2       ; @PMU_BACKLIGHT_BRIGHT
	.comm	_PMU_POWER_CTRL,4,2             ; @PMU_POWER_CTRL
	.comm	_PMU_POW_BACKLIGHT,4,2          ; @PMU_POW_BACKLIGHT
	.comm	_PMU_POW_ON,4,2                 ; @PMU_POW_ON
	.comm	_PMU_POW_OFF,4,2                ; @PMU_POW_OFF
	.no_dead_strip	___pmu_backlight_update_status
.subsections_via_symbols
