	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lenovo_raw_event
_lenovo_raw_event:                      ## @lenovo_raw_event
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rdi, %rax
	xorl	%edi, %edi
	cmpl	$3, %ecx
	jne	LBB0_5
## %bb.1:
	movq	_USB_DEVICE_ID_LENOVO_CUSBKBD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_5
## %bb.2:
	cmpl	$21, (%rbx)
	jne	LBB0_5
## %bb.3:
	cmpl	$148, 4(%rbx)
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpl	$1, 8(%rbx)
	sete	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 4(%rbx)
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DEVICE_ID_LENOVO_CUSBKBD,8,3 ## @USB_DEVICE_ID_LENOVO_CUSBKBD
	.no_dead_strip	_lenovo_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lenovo_raw_event
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lenovo_raw_event:                      ; @lenovo_raw_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x8, x0
	mov	w0, #0
	cmp	w3, #3
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _USB_DEVICE_ID_LENOVO_CUSBKBD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_DEVICE_ID_LENOVO_CUSBKBD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #21
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, #148
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DEVICE_ID_LENOVO_CUSBKBD,8,3 ; @USB_DEVICE_ID_LENOVO_CUSBKBD
	.no_dead_strip	_lenovo_raw_event
.subsections_via_symbols
