	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm109_input_ev
_cm109_input_ev:                        ## @cm109_input_ev
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	callq	_input_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_dev_dbg
	movq	_EV_SND@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.1:
	andl	$-2, %r12d
	cmpl	$128, %r12d
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r15)
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_cm109_toggle_buzzer_async
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input_ev: type=%u code=%u value=%d\n"

	.comm	_EV_SND,4,2                     ## @EV_SND
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cm109_input_ev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm109_input_ev
_cm109_input_ev:                        ; @cm109_input_ev
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	bl	_input_get_drvdata
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _EV_SND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_SND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.1:
	and	w8, w21, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	cmp	w19, #0
	cset	w8, ne
	str	w8, [x20]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	bl	_cm109_toggle_buzzer_async
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input_ev: type=%u code=%u value=%d\n"

	.comm	_EV_SND,4,2                     ; @EV_SND
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cm109_input_ev
.subsections_via_symbols
