	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alienware_update_led
_alienware_update_led:                  ## @alienware_update_led
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_interface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_WMAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movb	(%rdi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, -40(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -20(%rbp)
	movq	_lighting_control_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_WMAX_CONTROL_GUID@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_WMAX_METHOD_ZONE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movl	4(%rdi), %eax
	movl	%eax, -20(%rbp)
	movq	_global_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_lighting_control_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LEGACY_BOOTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_LEGACY_SUSPEND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	_LEGACY_CONTROL_GUID@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_6
LBB0_4:
	movq	_LEGACY_POWER_CONTROL_GUID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	%rax, -32(%rbp)
LBB0_6:
	movl	(%rdi), %ebx
	incl	%ebx
LBB0_7:
	movq	$24, -48(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_pr_debug
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	_wmi_evaluate_method
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_9:
	movl	%ebx, %edi
	callq	_ACPI_FAILURE
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_interface,8,3                  ## @interface
	.comm	_WMAX,8,3                       ## @WMAX
	.comm	_lighting_control_state,8,3     ## @lighting_control_state
	.comm	_WMAX_CONTROL_GUID,8,3          ## @WMAX_CONTROL_GUID
	.comm	_WMAX_METHOD_ZONE_CONTROL,4,2   ## @WMAX_METHOD_ZONE_CONTROL
	.comm	_global_brightness,4,2          ## @global_brightness
	.comm	_LEGACY_BOOTING,8,3             ## @LEGACY_BOOTING
	.comm	_LEGACY_SUSPEND,8,3             ## @LEGACY_SUSPEND
	.comm	_LEGACY_POWER_CONTROL_GUID,8,3  ## @LEGACY_POWER_CONTROL_GUID
	.comm	_LEGACY_CONTROL_GUID,8,3        ## @LEGACY_CONTROL_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alienware-wmi: guid %s method %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"alienware-wmi: zone set failure: %u\n"

	.no_dead_strip	_alienware_update_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alienware_update_led
_alienware_update_led:                  ; @alienware_update_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _interface@GOTPAGE
Lloh1:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WMAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WMAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	ldp	w9, w10, [x0]
	lsl	w8, w8, w9
	str	w8, [sp, #8]
	str	w10, [sp, #28]
Lloh6:
	adrp	x8, _lighting_control_state@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lighting_control_state@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh9:
	adrp	x8, _WMAX_CONTROL_GUID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMAX_CONTROL_GUID@GOTPAGEOFF]
Lloh11:
	adrp	x9, _WMAX_METHOD_ZONE_CONTROL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WMAX_METHOD_ZONE_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	x19, [x8]
Lloh14:
	ldr	w20, [x9]
	b	LBB0_6
LBB0_2:
	ldr	w8, [x0, #4]
Lloh15:
	adrp	x9, _global_brightness@GOTPAGE
Lloh16:
	ldr	x9, [x9, _global_brightness@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh18:
	adrp	x8, _lighting_control_state@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lighting_control_state@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _LEGACY_BOOTING@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LEGACY_BOOTING@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _LEGACY_SUSPEND@GOTPAGE
Lloh25:
	ldr	x10, [x10, _LEGACY_SUSPEND@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh27:
	adrp	x9, _LEGACY_POWER_CONTROL_GUID@GOTPAGE
Lloh28:
	ldr	x9, [x9, _LEGACY_POWER_CONTROL_GUID@GOTPAGEOFF]
Lloh29:
	ldr	x19, [x9]
	str	x8, [sp, #16]
	b	LBB0_5
LBB0_4:
Lloh30:
	adrp	x8, _LEGACY_CONTROL_GUID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LEGACY_CONTROL_GUID@GOTPAGEOFF]
Lloh32:
	ldr	x19, [x8]
LBB0_5:
	ldr	w8, [x0]
	add	w20, w8, #1
LBB0_6:
	mov	w8, #24
	add	x9, sp, #8
	stp	x9, x8, [sp, #32]
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_pr_debug
	add	x3, sp, #32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x4, #0
	bl	_wmi_evaluate_method
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	w0, LBB0_8
; %bb.7:
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_8:
	mov	x0, x19
	bl	_ACPI_FAILURE
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_interface,8,3                  ; @interface
	.comm	_WMAX,8,3                       ; @WMAX
	.comm	_lighting_control_state,8,3     ; @lighting_control_state
	.comm	_WMAX_CONTROL_GUID,8,3          ; @WMAX_CONTROL_GUID
	.comm	_WMAX_METHOD_ZONE_CONTROL,4,2   ; @WMAX_METHOD_ZONE_CONTROL
	.comm	_global_brightness,4,2          ; @global_brightness
	.comm	_LEGACY_BOOTING,8,3             ; @LEGACY_BOOTING
	.comm	_LEGACY_SUSPEND,8,3             ; @LEGACY_SUSPEND
	.comm	_LEGACY_POWER_CONTROL_GUID,8,3  ; @LEGACY_POWER_CONTROL_GUID
	.comm	_LEGACY_CONTROL_GUID,8,3        ; @LEGACY_CONTROL_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alienware-wmi: guid %s method %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"alienware-wmi: zone set failure: %u\n"

	.no_dead_strip	_alienware_update_led
.subsections_via_symbols
