	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_evaluate_method_agfn
_asus_wmi_evaluate_method_agfn:         ## @asus_wmi_evaluate_method_agfn
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rdi, %r12
	shrq	$32, %r12
	movq	_GFP_DMA@GOTPCREL(%rip), %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r12d, %esi
	callq	_kmemdup
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_virt_to_phys
	movq	_ASUS_WMI_METHODID_AGFN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %rcx
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_asus_wmi_evaluate_method
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%r15d, %edi
	callq	_kfree
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_memcpy
	movl	%r15d, %edi
	callq	_kfree
	movl	-36(%rbp), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_DMA,4,2                    ## @GFP_DMA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASUS_WMI_METHODID_AGFN,4,2     ## @ASUS_WMI_METHODID_AGFN
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_asus_wmi_evaluate_method_agfn
.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_method_agfn
_asus_wmi_evaluate_method_agfn:         ; @asus_wmi_evaluate_method_agfn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_DMA@GOTPAGEOFF]
	lsr	x20, x0, #32
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x1, x20
	bl	_kmemdup
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_virt_to_phys
	mov	x1, x0
Lloh6:
	adrp	x8, _ASUS_WMI_METHODID_AGFN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASUS_WMI_METHODID_AGFN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_asus_wmi_evaluate_method
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_kfree
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x21
	bl	_kfree
	ldr	w0, [sp, #12]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_DMA,4,2                    ; @GFP_DMA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASUS_WMI_METHODID_AGFN,4,2     ; @ASUS_WMI_METHODID_AGFN
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_asus_wmi_evaluate_method_agfn
.subsections_via_symbols
