	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_bl_status
_update_bl_status:                      ## @update_bl_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_bl_get_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_read_backlight_power
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_5
## %bb.1:
	movl	(%r14), %ecx
	cmpl	%eax, %ecx
	je	LBB0_5
## %bb.2:
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	(%rax), %ecx
	sete	%sil
	movq	_ASUS_WMI_DEVID_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%edx, %edx
	callq	_asus_wmi_set_devstate
	movq	(%rbx), %rdx
	movq	8(%rdx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	movl	%esi, (%rdx)
LBB0_4:
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_get_scalar_command
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_7:
	movl	4(%r14), %esi
LBB0_8:
	movq	_ASUS_WMI_DEVID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_asus_wmi_set_devstate          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FB_BLANK_UNBLANK,4,2           ## @FB_BLANK_UNBLANK
	.comm	_ASUS_WMI_DEVID_BACKLIGHT,4,2   ## @ASUS_WMI_DEVID_BACKLIGHT
	.comm	_ASUS_WMI_DEVID_BRIGHTNESS,4,2  ## @ASUS_WMI_DEVID_BRIGHTNESS
	.no_dead_strip	_update_bl_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_bl_status
_update_bl_status:                      ; @update_bl_status
	.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
	bl	_bl_get_data
	mov	x20, x0
	bl	_read_backlight_power
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w0
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x9, _FB_BLANK_UNBLANK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, eq
Lloh6:
	adrp	x8, _ASUS_WMI_DEVID_BACKLIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASUS_WMI_DEVID_BACKLIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x2, #0
	bl	_asus_wmi_set_devstate
	ldr	x9, [x20]
	ldr	x8, [x9, #8]
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_4
; %bb.3:
	ldr	w10, [x19]
	str	w10, [x9]
LBB0_4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_get_scalar_command
	mov	x1, x0
	b	LBB0_9
LBB0_8:
	ldr	w1, [x19, #4]
LBB0_9:
Lloh9:
	adrp	x8, _ASUS_WMI_DEVID_BRIGHTNESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASUS_WMI_DEVID_BRIGHTNESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_asus_wmi_set_devstate
	.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	_ENODEV,4,2                     ; @ENODEV
	.comm	_FB_BLANK_UNBLANK,4,2           ; @FB_BLANK_UNBLANK
	.comm	_ASUS_WMI_DEVID_BACKLIGHT,4,2   ; @ASUS_WMI_DEVID_BACKLIGHT
	.comm	_ASUS_WMI_DEVID_BRIGHTNESS,4,2  ; @ASUS_WMI_DEVID_BRIGHTNESS
	.no_dead_strip	_update_bl_status
.subsections_via_symbols
