	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_input_destroy
_wmi_input_destroy:                     ## @wmi_input_destroy
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_inited@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_INIT_INPUT_WMI_2@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_WMI_EVENT_GUID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wmi_remove_notify_handler
	movl	(%r12), %eax
LBB0_2:
	movq	_INIT_INPUT_WMI_0@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_WMI_EVENT_GUID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wmi_remove_notify_handler
	movl	(%r12), %eax
LBB0_4:
	movq	_INIT_SPARSE_KEYMAP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movq	_wmi_input_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_input_unregister_device
	movl	(%rbx), %ecx
	movl	(%r12), %eax
LBB0_6:
	movl	(%r14), %edx
	orl	(%r15), %edx
	orl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inited,4,2                     ## @inited
	.comm	_INIT_INPUT_WMI_2,4,2           ## @INIT_INPUT_WMI_2
	.comm	_WMI_EVENT_GUID2,4,2            ## @WMI_EVENT_GUID2
	.comm	_INIT_INPUT_WMI_0,4,2           ## @INIT_INPUT_WMI_0
	.comm	_WMI_EVENT_GUID0,4,2            ## @WMI_EVENT_GUID0
	.comm	_INIT_SPARSE_KEYMAP,4,2         ## @INIT_SPARSE_KEYMAP
	.comm	_wmi_input_dev,4,2              ## @wmi_input_dev
	.no_dead_strip	_wmi_input_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmi_input_destroy
_wmi_input_destroy:                     ; @wmi_input_destroy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, _inited@GOTPAGE
Lloh1:
	ldr	x19, [x19, _inited@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _INIT_INPUT_WMI_2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _INIT_INPUT_WMI_2@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _WMI_EVENT_GUID2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WMI_EVENT_GUID2@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_wmi_remove_notify_handler
	ldr	w8, [x19]
LBB0_2:
Lloh7:
	adrp	x21, _INIT_INPUT_WMI_0@GOTPAGE
Lloh8:
	ldr	x21, [x21, _INIT_INPUT_WMI_0@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _WMI_EVENT_GUID0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_EVENT_GUID0@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_wmi_remove_notify_handler
	ldr	w8, [x19]
LBB0_4:
Lloh12:
	adrp	x22, _INIT_SPARSE_KEYMAP@GOTPAGE
Lloh13:
	ldr	x22, [x22, _INIT_SPARSE_KEYMAP@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _wmi_input_dev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wmi_input_dev@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_input_unregister_device
	ldr	w9, [x22]
	ldr	w8, [x19]
LBB0_6:
	ldr	w10, [x21]
	ldr	w11, [x20]
	orr	w10, w11, w10
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_inited,4,2                     ; @inited
	.comm	_INIT_INPUT_WMI_2,4,2           ; @INIT_INPUT_WMI_2
	.comm	_WMI_EVENT_GUID2,4,2            ; @WMI_EVENT_GUID2
	.comm	_INIT_INPUT_WMI_0,4,2           ; @INIT_INPUT_WMI_0
	.comm	_WMI_EVENT_GUID0,4,2            ; @WMI_EVENT_GUID0
	.comm	_INIT_SPARSE_KEYMAP,4,2         ; @INIT_SPARSE_KEYMAP
	.comm	_wmi_input_dev,4,2              ; @wmi_input_dev
	.no_dead_strip	_wmi_input_destroy
.subsections_via_symbols
