	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uclogic_raw_event
_uclogic_raw_event:                     ## @uclogic_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	%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, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %r12
	cmpl	$0, 48(%rax)
	jne	LBB0_14
## %bb.1:
	movq	(%rbx), %rax
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	cmpl	$2, %r15d
	jl	LBB0_14
## %bb.3:
	movl	24(%r12), %eax
	cmpl	%eax, 8(%rbx)
	jne	LBB0_14
## %bb.4:
	movl	12(%r12), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	8(%r12), %ecx
	testl	%ecx, 4(%r14)
	je	LBB0_7
## %bb.6:
	movl	%eax, (%r14)
	jmp	LBB0_27
LBB0_7:
	movq	32(%r12), %rax
	movq	_UCLOGIC_PARAMS_PEN_INRANGE_INVERTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	xorb	$64, 4(%r14)
LBB0_9:
	cmpl	$10, %r15d
	jb	LBB0_12
## %bb.10:
	cmpq	$0, 40(%r12)
	je	LBB0_12
## %bb.11:
	movl	24(%r14), %ecx
	movl	28(%r14), %edx
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	movl	%edi, 24(%r14)
	movl	%esi, 20(%r14)
	movl	32(%r14), %esi
	movl	%esi, 16(%r14)
	movl	36(%r14), %esi
	movl	%esi, 28(%r14)
	movl	%ecx, 32(%r14)
	movl	%edx, 36(%r14)
LBB0_12:
	movq	_UCLOGIC_PARAMS_PEN_INRANGE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	orb	$64, 4(%r14)
	movq	%r12, %rax
	addq	$4, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$100, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mod_timer
LBB0_14:
	movq	(%rbx), %rax
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.15:
	movl	8(%rbx), %eax
	cmpl	12(%r12), %eax
	jne	LBB0_27
## %bb.16:
	movl	16(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.17:
	cmpl	%r15d, %eax
	jge	LBB0_19
## %bb.18:
	movl	$15, (%r14,%rax,4)
LBB0_19:
	movl	20(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.20:
	movq	%rcx, %rax
	shrq	$3, %rax
	cmpl	%r15d, %eax
	jge	LBB0_27
## %bb.21:
	andl	$7, %ecx
	movl	(%r14,%rax,4), %edx
	movl	%edx, %esi
	sarl	%cl, %esi
	movl	(%r12), %ebx
	andl	$3, %esi
	movl	$1, %edi
	cmpl	$1, %ebx
	jne	LBB0_23
## %bb.22:
	testl	%esi, %esi
	je	LBB0_26
LBB0_23:
	cmpl	$2, %ebx
	jne	LBB0_25
## %bb.24:
	cmpl	$3, %esi
	je	LBB0_26
LBB0_25:
	movl	%esi, %r8d
	xorl	$3, %r8d
	movl	%ebx, %edi
	xorl	$2, %edi
	xorl	$1, %ebx
	orl	%esi, %edi
	sete	%dil
	orl	%r8d, %ebx
	sete	%bl
	orb	%dil, %bl
	movzbl	%bl, %edi
	leal	(%rdi,%rdi,2), %edi
LBB0_26:
	movl	$3, %ebx
	shll	%cl, %ebx
	notl	%ebx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edi
	andl	%ebx, %edx
	orl	%edx, %edi
	movl	%edi, (%r14,%rax,4)
	movl	%esi, (%r12)
LBB0_27:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_INPUT_REPORT,8,3           ## @HID_INPUT_REPORT
	.comm	_UCLOGIC_PARAMS_PEN_INRANGE_INVERTED,8,3 ## @UCLOGIC_PARAMS_PEN_INRANGE_INVERTED
	.comm	_UCLOGIC_PARAMS_PEN_INRANGE_NONE,8,3 ## @UCLOGIC_PARAMS_PEN_INRANGE_NONE
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_uclogic_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uclogic_raw_event
_uclogic_raw_event:                     ; @uclogic_raw_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	bl	_hid_get_drvdata
	mov	x20, x0
	ldr	w8, [x0, #48]
Lloh0:
	adrp	x24, _HID_INPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HID_INPUT_REPORT@GOTPAGEOFF]
	cbnz	w8, LBB0_14
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.2:
	cmp	w21, #2
	b.lt	LBB0_14
; %bb.3:
	ldr	w8, [x22, #8]
	ldr	w9, [x20, #24]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.4:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w9, [x19, #4]
	ldr	w10, [x20, #8]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	str	w8, [x19]
	b	LBB0_27
LBB0_7:
	ldr	x8, [x20, #32]
Lloh2:
	adrp	x9, _UCLOGIC_PARAMS_PEN_INRANGE_INVERTED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UCLOGIC_PARAMS_PEN_INRANGE_INVERTED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w9, [x19, #4]
	eor	w9, w9, #0x40
	str	w9, [x19, #4]
LBB0_9:
	cmp	w21, #10
	b.lo	LBB0_12
; %bb.10:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_12
; %bb.11:
	ldp	w9, w10, [x19, #32]
	ldp	d0, d1, [x19, #16]
	str	w9, [x19, #16]
	stur	d0, [x19, #20]
	str	w10, [x19, #28]
	str	d1, [x19, #32]
LBB0_12:
Lloh5:
	adrp	x9, _UCLOGIC_PARAMS_PEN_INRANGE_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UCLOGIC_PARAMS_PEN_INRANGE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x19, #4]
	orr	w8, w8, #0x40
	str	w8, [x19, #4]
	add	x23, x20, #4
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x25, [x8]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x1, x0, x25
	mov	x0, x23
	bl	_mod_timer
LBB0_14:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.15:
	ldr	w8, [x22, #8]
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.16:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	ccmp	w8, w21, #0, ge
	b.ge	LBB0_18
; %bb.17:
	mov	w9, #15
	str	w9, [x19, x8, lsl #2]
LBB0_18:
	ldr	w9, [x20, #20]
	cmp	w9, #1
	b.lt	LBB0_27
; %bb.19:
	lsr	x8, x9, #3
	cmp	w8, w21
	b.ge	LBB0_27
; %bb.20:
	and	w9, w9, #0x7
	ldr	w12, [x20]
	ldr	w11, [x19, x8, lsl #2]
	asr	w10, w11, w9
	and	w10, w10, #0x3
	cmp	w12, #1
	b.ne	LBB0_22
; %bb.21:
	cbz	w10, LBB0_24
LBB0_22:
	cmp	w12, #2
	b.ne	LBB0_25
; %bb.23:
	cmp	w10, #3
	b.ne	LBB0_25
LBB0_24:
	mov	w12, #1
	b	LBB0_26
LBB0_25:
	cmp	w12, #2
	ccmp	w10, #0, #0, eq
	cset	w13, eq
	cmp	w12, #1
	ccmp	w10, #3, #0, eq
	cset	w12, eq
	orr	w12, w13, w12
	mov	w13, #3
	cmp	w12, #0
	csel	w12, w13, wzr, ne
LBB0_26:
	mov	w13, #3
	lsl	w13, w13, w9
	bic	w11, w11, w13
	lsl	w9, w12, w9
	orr	w9, w9, w11
	str	w9, [x19, x8, lsl #2]
	str	w10, [x20]
LBB0_27:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_INPUT_REPORT,8,3           ; @HID_INPUT_REPORT
	.comm	_UCLOGIC_PARAMS_PEN_INRANGE_INVERTED,8,3 ; @UCLOGIC_PARAMS_PEN_INRANGE_INVERTED
	.comm	_UCLOGIC_PARAMS_PEN_INRANGE_NONE,8,3 ; @UCLOGIC_PARAMS_PEN_INRANGE_NONE
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_uclogic_raw_event
.subsections_via_symbols
