	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_brightness_max
_read_brightness_max:                   ## @read_brightness_max
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_ASUS_WMI_DEVID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_asus_wmi_get_devstate
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_ASUS_WMI_DSTS_MAX_BRIGTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-4(%rbp), %eax
	cmpl	$255, %eax
	ja	LBB0_2
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	sarl	$8, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_BRIGHTNESS,4,2  ## @ASUS_WMI_DEVID_BRIGHTNESS
	.comm	_ASUS_WMI_DSTS_MAX_BRIGTH_MASK,4,2 ## @ASUS_WMI_DSTS_MAX_BRIGTH_MASK
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_read_brightness_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_brightness_max
_read_brightness_max:                   ; @read_brightness_max
	.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
Lloh0:
	adrp	x8, _ASUS_WMI_DEVID_BRIGHTNESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_DEVID_BRIGHTNESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_asus_wmi_get_devstate
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _ASUS_WMI_DSTS_MAX_BRIGTH_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASUS_WMI_DSTS_MAX_BRIGTH_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #255
	b.hi	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	asr	w0, w8, #8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_BRIGHTNESS,4,2  ; @ASUS_WMI_DEVID_BRIGHTNESS
	.comm	_ASUS_WMI_DSTS_MAX_BRIGTH_MASK,4,2 ; @ASUS_WMI_DSTS_MAX_BRIGTH_MASK
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_read_brightness_max
.subsections_via_symbols
