	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hid_init_dsm
_intel_hid_init_dsm:                    ## @intel_hid_init_dsm
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_HID_EVENT_FILTER_UUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_intel_dsm_guid@GOTPCREL(%rip), %r14
	movq	%r14, %rsi
	callq	_guid_parse
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_acpi_evaluate_dsm_typed
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	movq	_intel_hid_dsm_fn_mask@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	%rax, %rdi
	callq	_ACPI_FREE
LBB0_2:
	movq	_intel_hid_dsm_fn_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_acpi_handle_debug              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_EVENT_FILTER_UUID,4,2      ## @HID_EVENT_FILTER_UUID
	.comm	_intel_dsm_guid,4,2             ## @intel_dsm_guid
	.comm	_ACPI_TYPE_BUFFER,4,2           ## @ACPI_TYPE_BUFFER
	.comm	_intel_hid_dsm_fn_mask,4,2      ## @intel_hid_dsm_fn_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intel_hid_dsm_fn_mask = %llx\n"

	.no_dead_strip	_intel_hid_init_dsm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hid_init_dsm
_intel_hid_init_dsm:                    ; @intel_hid_init_dsm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _HID_EVENT_FILTER_UUID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_EVENT_FILTER_UUID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _intel_dsm_guid@GOTPAGE
Lloh4:
	ldr	x20, [x20, _intel_dsm_guid@GOTPAGEOFF]
	mov	x1, x20
	bl	_guid_parse
Lloh5:
	adrp	x8, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	mov	x4, #0
	bl	_acpi_evaluate_dsm_typed
Lloh8:
	adrp	x20, _intel_hid_dsm_fn_mask@GOTPAGE
Lloh9:
	ldr	x20, [x20, _intel_hid_dsm_fn_mask@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x20]
	bl	_ACPI_FREE
LBB0_2:
	ldr	w2, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_acpi_handle_debug
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_EVENT_FILTER_UUID,4,2      ; @HID_EVENT_FILTER_UUID
	.comm	_intel_dsm_guid,4,2             ; @intel_dsm_guid
	.comm	_ACPI_TYPE_BUFFER,4,2           ; @ACPI_TYPE_BUFFER
	.comm	_intel_hid_dsm_fn_mask,4,2      ; @intel_hid_dsm_fn_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intel_hid_dsm_fn_mask = %llx\n"

	.no_dead_strip	_intel_hid_init_dsm
.subsections_via_symbols
