	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acer_wmi_notify
_acer_wmi_notify:                       ## @acer_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	$0, -40(%rbp)
	leaq	-56(%rbp), %rsi
	callq	_wmi_get_event_data
	movq	_AE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.4:
	movq	(%rbx), %rsi
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_5
## %bb.6:
	movl	(%rbx), %esi
	cmpl	$8, %esi
	jne	LBB0_7
## %bb.9:
	movq	8(%rbx), %rax
	movl	(%rax), %r12d
	movl	4(%rax), %r14d
	movl	8(%rax), %r15d
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	$129, %r12d
	je	LBB0_27
## %bb.10:
	cmpl	$128, %r12d
	jne	LBB0_28
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_debug
	movq	_acer_wmi_input_dev@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_sparse_keymap_entry_from_scancode
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	(%rax), %eax
	cmpl	$132, %eax
	je	LBB0_16
## %bb.14:
	cmpl	$131, %eax
	je	LBB0_22
## %bb.15:
	cmpl	$130, %eax
	jne	LBB0_26
LBB0_16:
	movq	_ACER_CAP_WIRELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_has_cap
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_wireless_rfkill@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACER_WMID3_GDS_WIRELESS@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	andl	%r14d, %eax
	sete	%sil
	callq	_rfkill_set_sw_state
LBB0_18:
	movq	_ACER_CAP_THREEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_has_cap
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	_threeg_rfkill@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACER_WMID3_GDS_THREEG@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	andl	%r14d, %eax
	sete	%sil
	callq	_rfkill_set_sw_state
LBB0_20:
	movq	_ACER_CAP_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_has_cap
	testl	%eax, %eax
	je	LBB0_26
## %bb.21:
	movq	_bluetooth_rfkill@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACER_WMID3_GDS_BLUETOOTH@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	andl	(%rax), %r14d
	sete	%sil
	callq	_rfkill_set_sw_state
	jmp	LBB0_26
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
LBB0_2:
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_29
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	xorl	%eax, %eax
	callq	_pr_warn
	movq	%rbx, %rdi
	callq	_kfree
LBB0_29:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	xorl	%eax, %eax
	callq	_acer_gsensor_event
	jmp	LBB0_29
LBB0_28:
	leaq	L_.str.5(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_29
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	jmp	LBB0_2
LBB0_22:
	movq	_ACER_WMID3_GDS_TOUCHPAD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_23
## %bb.24:
	movq	_KEY_TOUCHPAD_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	movq	_KEY_TOUCHPAD_ON@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %r15d
LBB0_26:
	movl	(%rbx), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_sparse_keymap_report_event
	jmp	LBB0_29
	.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_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"Unknown response received %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown buffer length %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"device state: 0x%x\n"

	.comm	_acer_wmi_input_dev,4,2         ## @acer_wmi_input_dev
L_.str.4:                               ## @.str.4
	.asciz	"Unknown key number - 0x%x\n"

	.comm	_ACER_CAP_WIRELESS,4,2          ## @ACER_CAP_WIRELESS
	.comm	_wireless_rfkill,4,2            ## @wireless_rfkill
	.comm	_ACER_WMID3_GDS_WIRELESS,4,2    ## @ACER_WMID3_GDS_WIRELESS
	.comm	_ACER_CAP_THREEG,4,2            ## @ACER_CAP_THREEG
	.comm	_threeg_rfkill,4,2              ## @threeg_rfkill
	.comm	_ACER_WMID3_GDS_THREEG,4,2      ## @ACER_WMID3_GDS_THREEG
	.comm	_ACER_CAP_BLUETOOTH,4,2         ## @ACER_CAP_BLUETOOTH
	.comm	_bluetooth_rfkill,4,2           ## @bluetooth_rfkill
	.comm	_ACER_WMID3_GDS_BLUETOOTH,4,2   ## @ACER_WMID3_GDS_BLUETOOTH
	.comm	_ACER_WMID3_GDS_TOUCHPAD,4,2    ## @ACER_WMID3_GDS_TOUCHPAD
	.comm	_KEY_TOUCHPAD_ON,4,2            ## @KEY_TOUCHPAD_ON
	.comm	_KEY_TOUCHPAD_OFF,4,2           ## @KEY_TOUCHPAD_OFF
L_.str.5:                               ## @.str.5
	.asciz	"Unknown function number - %d - %d\n"

	.no_dead_strip	_acer_wmi_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acer_wmi_notify
_acer_wmi_notify:                       ; @acer_wmi_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
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_16
; %bb.1:
	ldr	x21, [sp, #8]
	cbz	x21, LBB0_21
; %bb.2:
	ldr	x1, [x21]
Lloh6:
	adrp	x8, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_18
; %bb.3:
	ldr	w1, [x21]
	cmp	w1, #8
	b.ne	LBB0_19
; %bb.4:
	ldr	x8, [x21, #8]
	ldp	w22, w20, [x8]
	ldr	w19, [x8, #8]
	mov	x0, x21
	bl	_kfree
	cmp	w22, #129
	b.eq	LBB0_22
; %bb.5:
	cmp	w22, #128
	b.ne	LBB0_23
; %bb.6:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh11:
	adrp	x21, _acer_wmi_input_dev@GOTPAGE
Lloh12:
	ldr	x21, [x21, _acer_wmi_input_dev@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_sparse_keymap_entry_from_scancode
	cbz	x0, LBB0_24
; %bb.7:
	ldr	w8, [x0]
	cmp	w8, #132
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #131
	b.eq	LBB0_25
; %bb.9:
	cmp	w8, #130
	b.ne	LBB0_26
LBB0_10:
Lloh13:
	adrp	x8, _ACER_CAP_WIRELESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACER_CAP_WIRELESS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_has_cap
	cbz	w0, LBB0_12
; %bb.11:
Lloh16:
	adrp	x8, _wireless_rfkill@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wireless_rfkill@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ACER_WMID3_GDS_WIRELESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ACER_WMID3_GDS_WIRELESS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, eq
	bl	_rfkill_set_sw_state
LBB0_12:
Lloh22:
	adrp	x8, _ACER_CAP_THREEG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ACER_CAP_THREEG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_has_cap
	cbz	w0, LBB0_14
; %bb.13:
Lloh25:
	adrp	x8, _threeg_rfkill@GOTPAGE
Lloh26:
	ldr	x8, [x8, _threeg_rfkill@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _ACER_WMID3_GDS_THREEG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ACER_WMID3_GDS_THREEG@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, eq
	bl	_rfkill_set_sw_state
LBB0_14:
Lloh31:
	adrp	x8, _ACER_CAP_BLUETOOTH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ACER_CAP_BLUETOOTH@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_has_cap
	cbz	w0, LBB0_26
; %bb.15:
Lloh34:
	adrp	x8, _bluetooth_rfkill@GOTPAGE
Lloh35:
	ldr	x8, [x8, _bluetooth_rfkill@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _ACER_WMID3_GDS_BLUETOOTH@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ACER_WMID3_GDS_BLUETOOTH@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, eq
	bl	_rfkill_set_sw_state
	b	LBB0_26
LBB0_16:
	mov	x1, x0
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_17:
	bl	_pr_warn
	b	LBB0_21
LBB0_18:
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_20
LBB0_19:
Lloh44:
	adrp	x0, l_.str.2@PAGE
Lloh45:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_20:
	bl	_pr_warn
	mov	x0, x21
	bl	_kfree
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	bl	_acer_gsensor_event
	b	LBB0_21
LBB0_23:
	str	x19, [sp]
Lloh46:
	adrp	x0, l_.str.5@PAGE
Lloh47:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	b	LBB0_17
LBB0_24:
Lloh48:
	adrp	x0, l_.str.4@PAGE
Lloh49:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	b	LBB0_17
LBB0_25:
Lloh50:
	adrp	x8, _ACER_WMID3_GDS_TOUCHPAD@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ACER_WMID3_GDS_TOUCHPAD@GOTPAGEOFF]
Lloh52:
	adrp	x9, _KEY_TOUCHPAD_ON@GOTPAGE
Lloh53:
	ldr	x9, [x9, _KEY_TOUCHPAD_ON@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x10, _KEY_TOUCHPAD_OFF@GOTPAGE
Lloh56:
	ldr	x10, [x10, _KEY_TOUCHPAD_OFF@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w19, [x8]
LBB0_26:
	ldr	w0, [x21]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #1
	bl	_sparse_keymap_report_event
	b	LBB0_21
	.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 AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh54
	.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_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"Unknown response received %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown buffer length %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"device state: 0x%x\n"

	.comm	_acer_wmi_input_dev,4,2         ; @acer_wmi_input_dev
l_.str.4:                               ; @.str.4
	.asciz	"Unknown key number - 0x%x\n"

	.comm	_ACER_CAP_WIRELESS,4,2          ; @ACER_CAP_WIRELESS
	.comm	_wireless_rfkill,4,2            ; @wireless_rfkill
	.comm	_ACER_WMID3_GDS_WIRELESS,4,2    ; @ACER_WMID3_GDS_WIRELESS
	.comm	_ACER_CAP_THREEG,4,2            ; @ACER_CAP_THREEG
	.comm	_threeg_rfkill,4,2              ; @threeg_rfkill
	.comm	_ACER_WMID3_GDS_THREEG,4,2      ; @ACER_WMID3_GDS_THREEG
	.comm	_ACER_CAP_BLUETOOTH,4,2         ; @ACER_CAP_BLUETOOTH
	.comm	_bluetooth_rfkill,4,2           ; @bluetooth_rfkill
	.comm	_ACER_WMID3_GDS_BLUETOOTH,4,2   ; @ACER_WMID3_GDS_BLUETOOTH
	.comm	_ACER_WMID3_GDS_TOUCHPAD,4,2    ; @ACER_WMID3_GDS_TOUCHPAD
	.comm	_KEY_TOUCHPAD_ON,4,2            ; @KEY_TOUCHPAD_ON
	.comm	_KEY_TOUCHPAD_OFF,4,2           ; @KEY_TOUCHPAD_OFF
l_.str.5:                               ; @.str.5
	.asciz	"Unknown function number - %d - %d\n"

	.no_dead_strip	_acer_wmi_notify
.subsections_via_symbols
