	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msi_wmi_notify
_msi_wmi_notify:                        ## @msi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -48(%rbp)
	leaq	-64(%rbp), %rsi
	callq	_wmi_get_event_data
	movq	_AE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	(%rax), %rcx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.4:
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_msi_wmi_input_dev@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_sparse_keymap_entry_from_scancode
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	_event_wmi@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %r15d
	movq	_last_pressed@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_ktime_sub
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ktime_to_us
	cmpl	$49999, %eax                    ## imm = 0xC34F
	jg	LBB0_9
## %bb.8:
	movl	12(%r14), %r14d
	movl	%ebx, %edi
	callq	_ktime_to_us
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_16:
	movq	-64(%rbp), %rdi
	callq	_kfree
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_16
LBB0_9:
	movl	%r15d, (%r13)
LBB0_10:
	movq	(%r14), %rax
	movq	_KE_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.11:
	movq	_backlight@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	12(%r14), %esi
	jne	LBB0_14
## %bb.12:
	movq	_MSI_KEY_BRIGHTNESSUP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_16
## %bb.13:
	movq	_MSI_KEY_BRIGHTNESSDOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_16
LBB0_14:
	movl	8(%r14), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_sparse_keymap_report_entry
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_AE_OK,8,3                      ## @AE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad event status 0x%x\n"

	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
L_.str.1:                               ## @.str.1
	.asciz	"Eventcode: 0x%x\n"

	.comm	_msi_wmi_input_dev,4,2          ## @msi_wmi_input_dev
L_.str.2:                               ## @.str.2
	.asciz	"Unknown key pressed - %x\n"

	.comm	_event_wmi,8,3                  ## @event_wmi
	.comm	_last_pressed,4,2               ## @last_pressed
L_.str.3:                               ## @.str.3
	.asciz	"Suppressed key event 0x%X - Last press was %lld us ago\n"

	.comm	_KE_KEY,8,3                     ## @KE_KEY
	.comm	_backlight,8,3                  ## @backlight
	.comm	_MSI_KEY_BRIGHTNESSUP,4,2       ## @MSI_KEY_BRIGHTNESSUP
	.comm	_MSI_KEY_BRIGHTNESSDOWN,4,2     ## @MSI_KEY_BRIGHTNESSDOWN
L_.str.4:                               ## @.str.4
	.asciz	"Send key: 0x%X - Input layer keycode: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unknown event received\n"

	.no_dead_strip	_msi_wmi_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msi_wmi_notify
_msi_wmi_notify:                        ; @msi_wmi_notify
	.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, _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]
	add	x1, sp, #8
	bl	_wmi_get_event_data
Lloh3:
	adrp	x8, _AE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x9, [x8]
Lloh6:
	adrp	x10, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.3:
	ldr	w20, [x8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh11:
	adrp	x22, _msi_wmi_input_dev@GOTPAGE
Lloh12:
	ldr	x22, [x22, _msi_wmi_input_dev@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_sparse_keymap_entry_from_scancode
	cbz	x0, LBB0_12
; %bb.4:
	mov	x19, x0
Lloh13:
	adrp	x8, _event_wmi@GOTPAGE
Lloh14:
	ldr	x8, [x8, _event_wmi@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.5:
	bl	_ktime_get_real
	mov	x20, x0
Lloh16:
	adrp	x23, _last_pressed@GOTPAGE
Lloh17:
	ldr	x23, [x23, _last_pressed@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ktime_sub
	mov	x21, x0
	bl	_ktime_to_us
	mov	w8, #49999
	cmp	w0, w8
	b.gt	LBB0_13
; %bb.6:
	ldr	w19, [x19, #12]
	mov	x0, x21
	bl	_ktime_to_us
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	b	LBB0_10
LBB0_7:
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_11
LBB0_8:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_9:
	bl	_pr_info
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_kfree
LBB0_11:
	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
LBB0_12:
	str	x20, [sp]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_13:
	str	w20, [x23]
LBB0_14:
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _KE_KEY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _KE_KEY@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.15:
Lloh29:
	adrp	x8, _backlight@GOTPAGE
Lloh30:
	ldr	x8, [x8, _backlight@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w1, [x19, #12]
	cbnz	x8, LBB0_17
; %bb.16:
Lloh32:
	adrp	x8, _MSI_KEY_BRIGHTNESSUP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MSI_KEY_BRIGHTNESSUP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _MSI_KEY_BRIGHTNESSDOWN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MSI_KEY_BRIGHTNESSDOWN@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	b.eq	LBB0_10
LBB0_17:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	w0, [x22]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #1
	bl	_sparse_keymap_report_entry
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_AE_OK,8,3                      ; @AE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad event status 0x%x\n"

	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
l_.str.1:                               ; @.str.1
	.asciz	"Eventcode: 0x%x\n"

	.comm	_msi_wmi_input_dev,4,2          ; @msi_wmi_input_dev
l_.str.2:                               ; @.str.2
	.asciz	"Unknown key pressed - %x\n"

	.comm	_event_wmi,8,3                  ; @event_wmi
	.comm	_last_pressed,4,2               ; @last_pressed
l_.str.3:                               ; @.str.3
	.asciz	"Suppressed key event 0x%X - Last press was %lld us ago\n"

	.comm	_KE_KEY,8,3                     ; @KE_KEY
	.comm	_backlight,8,3                  ; @backlight
	.comm	_MSI_KEY_BRIGHTNESSUP,4,2       ; @MSI_KEY_BRIGHTNESSUP
	.comm	_MSI_KEY_BRIGHTNESSDOWN,4,2     ; @MSI_KEY_BRIGHTNESSDOWN
l_.str.4:                               ; @.str.4
	.asciz	"Send key: 0x%X - Input layer keycode: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unknown event received\n"

	.no_dead_strip	_msi_wmi_notify
.subsections_via_symbols
