	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmax_brightness
_wmax_brightness:                       ## @wmax_brightness
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	$255, -16(%rbp)
	movl	%edi, -12(%rbp)
	movq	$8, -24(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	_WMAX_CONTROL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WMAX_METHOD_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_wmi_evaluate_method
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_2:
	movl	%ebx, %edi
	callq	_ACPI_FAILURE
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMAX_CONTROL_GUID,4,2          ## @WMAX_CONTROL_GUID
	.comm	_WMAX_METHOD_BRIGHTNESS,4,2     ## @WMAX_METHOD_BRIGHTNESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alienware-wmi: brightness set failure: %u\n"

	.no_dead_strip	_wmax_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmax_brightness
_wmax_brightness:                       ; @wmax_brightness
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #255
	stp	w8, w0, [sp, #8]
	mov	w8, #8
	add	x9, sp, #8
	stp	x9, x8, [sp, #16]
Lloh0:
	adrp	x8, _WMAX_CONTROL_GUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMAX_CONTROL_GUID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _WMAX_METHOD_BRIGHTNESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMAX_METHOD_BRIGHTNESS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	w1, #0
	mov	x4, #0
	bl	_wmi_evaluate_method
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_2:
	mov	x0, x19
	bl	_ACPI_FAILURE
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WMAX_CONTROL_GUID,4,2          ; @WMAX_CONTROL_GUID
	.comm	_WMAX_METHOD_BRIGHTNESS,4,2     ; @WMAX_METHOD_BRIGHTNESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alienware-wmi: brightness set failure: %u\n"

	.no_dead_strip	_wmax_brightness
.subsections_via_symbols
