	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toggle_deepsleep
_toggle_deepsleep:                      ## @toggle_deepsleep
	.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	$16, %rsp
	.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:
	movl	$2, -24(%rbp)
	movl	$2, %esi
	jmp	LBB0_5
LBB0_1:
	movl	$0, -24(%rbp)
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movl	$1, -24(%rbp)
	movl	$1, %esi
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	callq	_pr_debug
	movq	_WMAX_METHOD_DEEP_SLEEP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdi
	xorl	%edx, %edx
	callq	_alienware_wmax_command
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_7:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"s5\n"

L_.str.2:                               ## @.str.2
	.asciz	"alienware-wmi: setting deep sleep to %d : %s"

	.comm	_WMAX_METHOD_DEEP_SLEEP_CONTROL,4,2 ## @WMAX_METHOD_DEEP_SLEEP_CONTROL
L_.str.3:                               ## @.str.3
	.asciz	"alienware-wmi: deep sleep control failed: results: %u\n"

	.no_dead_strip	_toggle_deepsleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toggle_deepsleep
_toggle_deepsleep:                      ; @toggle_deepsleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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:
	mov	w1, #2
	b	LBB0_5
LBB0_3:
	mov	w1, #0
	str	wzr, [sp, #8]
	b	LBB0_6
LBB0_4:
	mov	w1, #1
LBB0_5:
	str	w1, [sp, #8]
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
Lloh6:
	adrp	x8, _WMAX_METHOD_DEEP_SLEEP_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMAX_METHOD_DEEP_SLEEP_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, #0
	bl	_alienware_wmax_command
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_pr_err
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"s5\n"

l_.str.2:                               ; @.str.2
	.asciz	"alienware-wmi: setting deep sleep to %d : %s"

	.comm	_WMAX_METHOD_DEEP_SLEEP_CONTROL,4,2 ; @WMAX_METHOD_DEEP_SLEEP_CONTROL
l_.str.3:                               ; @.str.3
	.asciz	"alienware-wmi: deep sleep control failed: results: %u\n"

	.no_dead_strip	_toggle_deepsleep
.subsections_via_symbols
