	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_notify
_wmi_notify:                            ## @wmi_notify
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_wmi_get_event_data
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	jmp	LBB0_8
LBB0_2:
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movl	(%rbx), %esi
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_7
## %bb.4:
	movq	_wmi_input_dev@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_sparse_keymap_entry_from_scancode
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rcx
	movq	_KE_KEY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movq	%rax, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_sparse_keymap_report_entry
LBB0_7:
	movl	(%rbx), %eax
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%rdx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	-40(%rbp), %rdi
	callq	_kfree
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event guid %li\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad event status 0x%x\n"

	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_wmi_input_dev,4,2              ## @wmi_input_dev
	.comm	_KE_KEY,8,3                     ## @KE_KEY
L_.str.2:                               ## @.str.2
	.asciz	"Type: %i    Eventcode: 0x%llx\n"

	.no_dead_strip	_wmi_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmi_notify
_wmi_notify:                            ; @wmi_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	add	x1, sp, #8
	mov	x0, x19
	bl	_wmi_get_event_data
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	b	LBB0_8
LBB0_2:
	ldr	x19, [sp, #8]
	cbz	x19, LBB0_8
; %bb.3:
	ldr	w1, [x19]
Lloh7:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_7
; %bb.4:
Lloh10:
	adrp	x20, _wmi_input_dev@GOTPAGE
Lloh11:
	ldr	x20, [x20, _wmi_input_dev@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_sparse_keymap_entry_from_scancode
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _KE_KEY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KE_KEY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	mov	w2, #1
	mov	w3, #1
	bl	_sparse_keymap_report_entry
LBB0_7:
	ldrsw	x1, [x19]
	str	x1, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	ldr	x0, [sp, #8]
	bl	_kfree
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event guid %li\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad event status 0x%x\n"

	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_wmi_input_dev,4,2              ; @wmi_input_dev
	.comm	_KE_KEY,8,3                     ; @KE_KEY
l_.str.2:                               ; @.str.2
	.asciz	"Type: %i    Eventcode: 0x%llx\n"

	.no_dead_strip	_wmi_notify
.subsections_via_symbols
