	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alienware_wmax_command
_alienware_wmax_command:                ## @alienware_wmax_command
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	$4, -40(%rbp)
	movq	%rdi, -48(%rbp)
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_WMAX_CONTROL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	leaq	-32(%rbp), %r8
	xorl	%esi, %esi
	callq	_wmi_evaluate_method
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	movq	(%rdi), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_6:
	movq	_WMAX_CONTROL_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_wmi_evaluate_method
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	-32(%rbp), %rdi
LBB0_8:
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,8,3       ## @ACPI_ALLOCATE_BUFFER
	.comm	_WMAX_CONTROL_GUID,4,2          ## @WMAX_CONTROL_GUID
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.no_dead_strip	_alienware_wmax_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alienware_wmax_command
_alienware_wmax_command:                ; @alienware_wmax_command
	.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	x19, x2
	mov	x2, x1
	mov	w8, #4
	stp	x0, x8, [sp, #16]
	cbz	x19, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	xzr, x8, [sp]
Lloh3:
	adrp	x8, _WMAX_CONTROL_GUID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMAX_CONTROL_GUID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x3, sp, #16
	mov	x4, sp
	mov	w1, #0
	bl	_wmi_evaluate_method
	mov	x20, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [sp]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _WMAX_CONTROL_GUID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMAX_CONTROL_GUID@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x3, sp, #16
	mov	w1, #0
	mov	x4, #0
	bl	_wmi_evaluate_method
	mov	x20, x0
	b	LBB0_8
LBB0_6:
	ldr	x0, [sp]
LBB0_7:
	bl	_kfree
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,8,3       ; @ACPI_ALLOCATE_BUFFER
	.comm	_WMAX_CONTROL_GUID,4,2          ; @WMAX_CONTROL_GUID
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.no_dead_strip	_alienware_wmax_command
.subsections_via_symbols
