	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps8622_backlight_update
_ps8622_backlight_update:               ## @ps8622_backlight_update
	.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	%rdi, %rbx
	addq	$24, %rdi
	callq	_dev_get_drvdata
	movq	8(%rbx), %rcx
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_BL_CORE_SUSPENDED@GOTPCREL(%rip), %rcx
	movq	_BL_CORE_FBBLANK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 16(%rbx)
	je	LBB0_2
LBB0_3:
	xorl	%ecx, %ecx
	cmpl	$0, 4(%rax)
	je	LBB0_5
LBB0_6:
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$167, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ps8622_set                     ## TAILCALL
LBB0_2:
	movl	(%rbx), %ecx
	cmpl	$0, 4(%rax)
	jne	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FB_BLANK_UNBLANK,8,3           ## @FB_BLANK_UNBLANK
	.comm	_BL_CORE_SUSPENDED,4,2          ## @BL_CORE_SUSPENDED
	.comm	_BL_CORE_FBBLANK,4,2            ## @BL_CORE_FBBLANK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ps8622_backlight_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps8622_backlight_update
_ps8622_backlight_update:               ; @ps8622_backlight_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #24
	bl	_dev_get_drvdata
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _FB_BLANK_UNBLANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
Lloh3:
	adrp	x9, _BL_CORE_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BL_CORE_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _BL_CORE_FBBLANK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BL_CORE_FBBLANK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
	mov	w3, #0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
LBB0_3:
	ldr	w0, [x0]
	mov	w1, #1
	mov	w2, #167
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ps8622_set
LBB0_4:
	ldr	w3, [x19]
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_3
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FB_BLANK_UNBLANK,8,3           ; @FB_BLANK_UNBLANK
	.comm	_BL_CORE_SUSPENDED,4,2          ; @BL_CORE_SUSPENDED
	.comm	_BL_CORE_FBBLANK,4,2            ; @BL_CORE_FBBLANK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ps8622_backlight_update
.subsections_via_symbols
