	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lenovo_event_cptkbd
_lenovo_event_cptkbd:                   ## @lenovo_event_cptkbd
	.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
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movq	(%rbx), %rsi
	movq	_EV_REL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_REL_WHEEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_4:
	movq	%r14, %rax
	movq	_EV_KEY@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	cmpq	(%r14), %rsi
	jne	LBB0_12
## %bb.5:
	movq	8(%rbx), %rdx
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jne	LBB0_12
## %bb.6:
	movl	$1, %r13d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.7:
	cmpl	$1, %r12d
	jne	LBB0_12
## %bb.8:
	movl	$1, (%r15)
	jmp	LBB0_12
LBB0_3:
	movl	$2, (%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_9:
	cmpl	$1, (%r15)
	jne	LBB0_11
## %bb.10:
	movq	%rax, %r12
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	$1, %ecx
	callq	_input_event
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_input_sync
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movq	(%rbx), %rdx
	xorl	%ecx, %ecx
	callq	_input_event
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_input_sync
LBB0_11:
	movl	$0, (%r15)
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_REL_WHEEL,8,3                  ## @REL_WHEEL
	.comm	_REL_HWHEEL,8,3                 ## @REL_HWHEEL
	.comm	_EV_KEY,8,3                     ## @EV_KEY
	.comm	_BTN_MIDDLE,8,3                 ## @BTN_MIDDLE
	.no_dead_strip	_lenovo_event_cptkbd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lenovo_event_cptkbd
_lenovo_event_cptkbd:                   ; @lenovo_event_cptkbd
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	bl	_hid_get_drvdata
	mov	x19, x0
	ldr	x1, [x22]
Lloh0:
	adrp	x8, _EV_REL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _REL_WHEEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REL_WHEEL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _REL_HWHEEL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REL_HWHEEL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	mov	w8, #2
	str	w8, [x19]
	b	LBB0_9
LBB0_3:
Lloh9:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x1, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	x2, [x22, #8]
Lloh11:
	adrp	x22, _BTN_MIDDLE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _BTN_MIDDLE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.5:
	cbz	w21, LBB0_10
; %bb.6:
	cmp	w21, #1
	b.ne	LBB0_13
; %bb.7:
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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_10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w3, #1
	bl	_input_event
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_input_sync
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x1, [x23]
	ldr	x2, [x22]
	mov	w3, #0
	bl	_input_event
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_input_sync
LBB0_12:
	str	wzr, [x19]
LBB0_13:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_REL_WHEEL,8,3                  ; @REL_WHEEL
	.comm	_REL_HWHEEL,8,3                 ; @REL_HWHEEL
	.comm	_EV_KEY,8,3                     ; @EV_KEY
	.comm	_BTN_MIDDLE,8,3                 ; @BTN_MIDDLE
	.no_dead_strip	_lenovo_event_cptkbd
.subsections_via_symbols
