	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function notify_handler
_notify_handler:                        ## @notify_handler
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movl	%r15d, %ebx
	andl	$1, %ebx
	movl	%ebx, %r12d
	xorl	$1, %r12d
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_sparse_keymap_entry_from_scancode
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pm_wakeup_hard_event
	movq	(%rbx), %rax
	movq	_KE_SW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movl	(%r13), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sparse_keymap_report_event     ## TAILCALL
LBB0_4:
	movl	(%r13), %edi
	movl	%r15d, %esi
	orl	$1, %esi
	callq	_sparse_keymap_entry_from_scancode
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.5:
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rax), %rax
	movq	_KE_IGNORE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	sete	%cl
	jmp	LBB0_8
LBB0_6:
	movl	$1, %ecx
LBB0_8:
	movl	(%r13), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_sparse_keymap_report_event
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KE_SW,8,3                      ## @KE_SW
	.comm	_KE_IGNORE,8,3                  ## @KE_IGNORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown event index 0x%x\n"

	.no_dead_strip	_notify_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function notify_handler
_notify_handler:                        ; @notify_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x0, x2
	bl	_dev_get_drvdata
	mov	x22, x0
	and	w23, w19, #0x1
	eor	w21, w23, #0x1
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_sparse_keymap_entry_from_scancode
	cbz	x0, LBB0_11
; %bb.2:
	mov	x23, x0
	mov	x0, x20
	bl	_pm_wakeup_hard_event
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _KE_SW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KE_SW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sparse_keymap_report_event
LBB0_4:
	ldr	w0, [x22]
	orr	w1, w19, #0x1
	bl	_sparse_keymap_entry_from_scancode
	cbnz	w23, LBB0_7
; %bb.5:
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _KE_IGNORE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KE_IGNORE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w3, eq
	b	LBB0_9
LBB0_7:
	mov	w3, #0
	b	LBB0_9
LBB0_8:
	mov	w3, #1
LBB0_9:
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x21
	bl	_sparse_keymap_report_event
	cbz	x0, LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KE_SW,8,3                      ; @KE_SW
	.comm	_KE_IGNORE,8,3                  ; @KE_IGNORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown event index 0x%x\n"

	.no_dead_strip	_notify_handler
.subsections_via_symbols
