	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_evaluate_method3
_asus_wmi_evaluate_method3:             ## @asus_wmi_evaluate_method3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdi, %rax
	movq	%rsi, -96(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%rcx, -80(%rbp)
	movq	$24, -72(%rbp)
	leaq	-96(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	$0, -32(%rbp)
	movq	_ASUS_WMI_MGMT_GUID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rcx
	leaq	-48(%rbp), %r8
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_wmi_evaluate_method
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movq	(%rdi), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	(%rdi), %r15
	testq	%r14, %r14
	jne	LBB0_7
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_8
LBB0_7:
	movq	%r15, (%r14)
LBB0_8:
	callq	_kfree
	movq	_ASUS_WMI_UNSUPPORTED_METHOD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_ASUS_WMI_MGMT_GUID,4,2         ## @ASUS_WMI_MGMT_GUID
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_ASUS_WMI_UNSUPPORTED_METHOD,8,3 ## @ASUS_WMI_UNSUPPORTED_METHOD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_asus_wmi_evaluate_method3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_evaluate_method3
_asus_wmi_evaluate_method3:             ; @asus_wmi_evaluate_method3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x8, x0
	stp	x1, x2, [x29, #-40]
	stur	x3, [x29, #-24]
	mov	w9, #24
	sub	x10, x29, #40
	stp	x9, x10, [sp, #32]
	str	wzr, [sp, #48]
Lloh0:
	adrp	x9, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	stp	x9, xzr, [sp, #8]
	str	wzr, [sp, #24]
Lloh3:
	adrp	x9, _ASUS_WMI_MGMT_GUID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASUS_WMI_MGMT_GUID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	add	x3, sp, #32
	add	x4, sp, #8
	mov	w1, #0
	mov	x2, x8
	bl	_wmi_evaluate_method
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x20, [x0]
	cbnz	x19, LBB0_6
	b	LBB0_7
LBB0_5:
	mov	x20, #0
	cbz	x19, LBB0_7
LBB0_6:
	str	x20, [x19]
LBB0_7:
	bl	_kfree
Lloh11:
	adrp	x8, _ASUS_WMI_UNSUPPORTED_METHOD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASUS_WMI_UNSUPPORTED_METHOD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_11
; %bb.8:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_ASUS_WMI_MGMT_GUID,4,2         ; @ASUS_WMI_MGMT_GUID
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_ASUS_WMI_UNSUPPORTED_METHOD,8,3 ; @ASUS_WMI_UNSUPPORTED_METHOD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_asus_wmi_evaluate_method3
.subsections_via_symbols
