	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_control_state
_store_control_state:                   ## @store_control_state
	.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	%rcx, %r14
	movq	%rdx, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_interface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_LEGACY_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_LEGACY_BOOTING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_LEGACY_SUSPEND@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_WMAX_RUNNING@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rsi
	movq	_lighting_control_state@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"booting\n"

	.comm	_LEGACY_BOOTING,8,3             ## @LEGACY_BOOTING
L_.str.1:                               ## @.str.1
	.asciz	"suspend\n"

	.comm	_LEGACY_SUSPEND,8,3             ## @LEGACY_SUSPEND
	.comm	_interface,8,3                  ## @interface
	.comm	_LEGACY,8,3                     ## @LEGACY
	.comm	_LEGACY_RUNNING,8,3             ## @LEGACY_RUNNING
	.comm	_WMAX_RUNNING,8,3               ## @WMAX_RUNNING
	.comm	_lighting_control_state,8,3     ## @lighting_control_state
L_.str.2:                               ## @.str.2
	.asciz	"alienware-wmi: updated control state to %d\n"

	.no_dead_strip	_store_control_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_control_state
_store_control_state:                   ; @store_control_state
	.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, x3
	mov	x20, x2
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _interface@GOTPAGE
Lloh5:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _LEGACY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LEGACY@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _WMAX_RUNNING@GOTPAGE
Lloh11:
	ldr	x10, [x10, _WMAX_RUNNING@GOTPAGEOFF]
Lloh12:
	adrp	x11, _LEGACY_RUNNING@GOTPAGE
Lloh13:
	ldr	x11, [x11, _LEGACY_RUNNING@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _LEGACY_BOOTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LEGACY_BOOTING@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _LEGACY_SUSPEND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LEGACY_SUSPEND@GOTPAGEOFF]
LBB0_5:
	ldr	x1, [x8]
Lloh18:
	adrp	x8, _lighting_control_state@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lighting_control_state@GOTPAGEOFF]
Lloh20:
	str	x1, [x8]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"booting\n"

	.comm	_LEGACY_BOOTING,8,3             ; @LEGACY_BOOTING
l_.str.1:                               ; @.str.1
	.asciz	"suspend\n"

	.comm	_LEGACY_SUSPEND,8,3             ; @LEGACY_SUSPEND
	.comm	_interface,8,3                  ; @interface
	.comm	_LEGACY,8,3                     ; @LEGACY
	.comm	_LEGACY_RUNNING,8,3             ; @LEGACY_RUNNING
	.comm	_WMAX_RUNNING,8,3               ; @WMAX_RUNNING
	.comm	_lighting_control_state,8,3     ; @lighting_control_state
l_.str.2:                               ; @.str.2
	.asciz	"alienware-wmi: updated control state to %d\n"

	.no_dead_strip	_store_control_state
.subsections_via_symbols
