	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hid_evaluate_method
_intel_hid_evaluate_method:             ## @intel_hid_evaluate_method
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_INTEL_HID_DSM_FN_INVALID@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%esi, (%rax)
	jae	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	_INTEL_HID_DSM_FN_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	movl	%edi, %r15d
	movq	_intel_hid_dsm_fn_to_method@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rcx
	movq	_intel_hid_dsm_fn_mask@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_intel_dsm_guid@GOTPCREL(%rip), %rsi
	movl	$1, %r12d
	movl	%r15d, %edi
	movl	$1, %edx
	movq	%rcx, %r13
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_acpi_evaluate_dsm_typed
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r13
	movq	(%rax), %r8
	movq	%r8, (%r14)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_acpi_handle_debug
	movq	%r13, %rdi
	callq	_ACPI_FREE
	jmp	LBB0_6
LBB0_5:
	movl	%r15d, %edi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_HID_DSM_FN_INVALID,4,2   ## @INTEL_HID_DSM_FN_INVALID
	.comm	_INTEL_HID_DSM_FN_MAX,4,2       ## @INTEL_HID_DSM_FN_MAX
	.comm	_intel_hid_dsm_fn_to_method,8,3 ## @intel_hid_dsm_fn_to_method
	.comm	_intel_hid_dsm_fn_mask,4,2      ## @intel_hid_dsm_fn_mask
	.comm	_intel_dsm_guid,4,2             ## @intel_dsm_guid
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Eval DSM Fn code: %d[%s] results: 0x%llx\n"

	.no_dead_strip	_intel_hid_evaluate_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hid_evaluate_method
_intel_hid_evaluate_method:             ; @intel_hid_evaluate_method
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _INTEL_HID_DSM_FN_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_HID_DSM_FN_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _INTEL_HID_DSM_FN_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTEL_HID_DSM_FN_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, lo
	b.hi	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh6:
	adrp	x8, _intel_hid_dsm_fn_to_method@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_hid_dsm_fn_to_method@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x22, [x8, w1, uxtw #3]
Lloh9:
	adrp	x8, _intel_hid_dsm_fn_mask@GOTPAGE
Lloh10:
	ldr	x8, [x8, _intel_hid_dsm_fn_mask@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
Lloh15:
	adrp	x1, _intel_dsm_guid@GOTPAGE
Lloh16:
	ldr	x1, [x1, _intel_dsm_guid@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	x4, #0
	bl	_acpi_evaluate_dsm_typed
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
	ldr	x4, [x0]
	str	x4, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_acpi_handle_debug
	mov	x0, x23
	bl	_ACPI_FREE
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	mov	x3, x19
	bl	_acpi_evaluate_integer
	bl	_ACPI_SUCCESS
	cmp	x0, #0
	cset	w0, ne
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_HID_DSM_FN_INVALID,4,2   ; @INTEL_HID_DSM_FN_INVALID
	.comm	_INTEL_HID_DSM_FN_MAX,4,2       ; @INTEL_HID_DSM_FN_MAX
	.comm	_intel_hid_dsm_fn_to_method,8,3 ; @intel_hid_dsm_fn_to_method
	.comm	_intel_hid_dsm_fn_mask,4,2      ; @intel_hid_dsm_fn_mask
	.comm	_intel_dsm_guid,4,2             ; @intel_dsm_guid
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Eval DSM Fn code: %d[%s] results: 0x%llx\n"

	.no_dead_strip	_intel_hid_evaluate_method
.subsections_via_symbols
