	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hid_execute_method
_intel_hid_execute_method:              ## @intel_hid_execute_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
	subq	$40, %rsp
	.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	%r14d, %r14d
	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, %r12
	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	%r12, -72(%rbp)
	movl	$1, -56(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	_intel_dsm_guid@GOTPCREL(%rip), %rsi
	movl	$1, %r14d
	leaq	-56(%rbp), %r8
	movl	%r15d, %edi
	movl	$1, %edx
	movq	%rcx, %r13
	movl	%ebx, %ecx
	callq	_acpi_evaluate_dsm
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r13
	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
	movq	%r12, %rdx
	callq	_acpi_execute_simple_method
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %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	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_TYPE_PACKAGE,4,2          ## @ACPI_TYPE_PACKAGE
	.comm	_intel_dsm_guid,4,2             ## @intel_dsm_guid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exec DSM Fn code: %d[%s] success\n"

	.no_dead_strip	_intel_hid_execute_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_execute_method
_intel_hid_execute_method:              ; @intel_hid_execute_method
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, 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:
	str	x21, [sp]
	mov	w8, #1
	str	w8, [sp, #16]
	mov	x8, sp
	str	x8, [sp, #24]
Lloh12:
	adrp	x1, _intel_dsm_guid@GOTPAGE
Lloh13:
	ldr	x1, [x1, _intel_dsm_guid@GOTPAGEOFF]
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #1
	mov	x3, x19
	bl	_acpi_evaluate_dsm
	cbz	x0, LBB0_5
; %bb.4:
	mov	x23, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	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, x21
	bl	_acpi_execute_simple_method
	bl	_ACPI_SUCCESS
	cmp	x0, #0
	cset	w0, ne
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.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	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_TYPE_PACKAGE,4,2          ; @ACPI_TYPE_PACKAGE
	.comm	_intel_dsm_guid,4,2             ; @intel_dsm_guid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exec DSM Fn code: %d[%s] success\n"

	.no_dead_strip	_intel_hid_execute_method
.subsections_via_symbols
