	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dell_wmi_aio_notify
_dell_wmi_aio_notify:                   ## @dell_wmi_aio_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_wmi_get_event_data
	movq	_AE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.5:
	movl	(%rbx), %esi
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_info
	jmp	LBB0_13
LBB0_6:
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_dell_wmi_aio_event_check
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	(%rax), %rax
LBB0_10:
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_12
LBB0_11:
	movq	_dell_wmi_aio_input_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_sparse_keymap_report_event
LBB0_12:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	cmpl	$0, 8(%rbx)
	jg	LBB0_10
	jmp	LBB0_12
	.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	_dell_wmi_aio_input_dev,4,2     ## @dell_wmi_aio_input_dev
	.no_dead_strip	_dell_wmi_aio_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dell_wmi_aio_notify
_dell_wmi_aio_notify:                   ; @dell_wmi_aio_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
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_5
; %bb.1:
	ldr	x19, [sp, #8]
	cbz	x19, LBB0_10
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.4:
	ldr	w1, [x19]
	b	LBB0_9
LBB0_5:
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_11
LBB0_6:
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_dell_wmi_aio_event_check
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8]
LBB0_8:
	ldr	w1, [x8]
	cbz	w1, LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _dell_wmi_aio_input_dev@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dell_wmi_aio_input_dev@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w2, #1
	mov	w3, #1
	bl	_sparse_keymap_report_event
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.13:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.ge	LBB0_8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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	_dell_wmi_aio_input_dev,4,2     ; @dell_wmi_aio_input_dev
	.no_dead_strip	_dell_wmi_aio_notify
.subsections_via_symbols
