	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pyra_report_to_chrdev
_pyra_report_to_chrdev:                 ## @pyra_report_to_chrdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rsi), %rax
	movq	_PYRA_MOUSE_REPORT_NUMBER_BUTTON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	leal	-128(%rax), %edx
	cmpl	$4, %edx
	ja	LBB0_7
## %bb.2:
	movq	%rax, %r8
	shrq	$32, %r8
	movl	$11, %ecx
	btl	%edx, %ecx
	jae	LBB0_3
## %bb.4:
	movl	8(%rsi), %ecx
	movq	_PYRA_MOUSE_EVENT_BUTTON_PRESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.5:
	movl	%eax, -16(%rbp)
	movl	%r8d, -8(%rbp)
	movl	4(%rdi), %eax
	incl	%eax
	movl	%eax, -12(%rbp)
	jmp	LBB0_6
LBB0_3:
	movl	%eax, -16(%rbp)
	movl	%r8d, -12(%rbp)
	movl	$0, -8(%rbp)
LBB0_6:
	movl	(%rdi), %edi
	leaq	-16(%rbp), %rsi
	callq	_roccat_report_event
LBB0_7:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PYRA_MOUSE_REPORT_NUMBER_BUTTON,8,3 ## @PYRA_MOUSE_REPORT_NUMBER_BUTTON
	.comm	_PYRA_MOUSE_EVENT_BUTTON_PRESS,4,2 ## @PYRA_MOUSE_EVENT_BUTTON_PRESS
	.no_dead_strip	_pyra_report_to_chrdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pyra_report_to_chrdev
_pyra_report_to_chrdev:                 ; @pyra_report_to_chrdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PYRA_MOUSE_REPORT_NUMBER_BUTTON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PYRA_MOUSE_REPORT_NUMBER_BUTTON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	sub	w10, w8, #128
	cmp	w10, #4
	b.hi	LBB0_7
; %bb.2:
	lsr	x9, x8, #32
	mov	w11, #1
	lsl	w10, w11, w10
	mov	w11, #11
	tst	w10, w11
	b.eq	LBB0_5
; %bb.3:
	ldr	w10, [x1, #8]
Lloh3:
	adrp	x11, _PYRA_MOUSE_EVENT_BUTTON_PRESS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PYRA_MOUSE_EVENT_BUTTON_PRESS@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.4:
	str	w9, [sp, #8]
	ldr	w9, [x0, #4]
	add	w9, w9, #1
	stp	w8, w9, [sp]
	b	LBB0_6
LBB0_5:
	stp	w8, w9, [sp]
	str	wzr, [sp, #8]
LBB0_6:
	ldr	w0, [x0]
	mov	x1, sp
	bl	_roccat_report_event
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PYRA_MOUSE_REPORT_NUMBER_BUTTON,8,3 ; @PYRA_MOUSE_REPORT_NUMBER_BUTTON
	.comm	_PYRA_MOUSE_EVENT_BUTTON_PRESS,4,2 ; @PYRA_MOUSE_EVENT_BUTTON_PRESS
	.no_dead_strip	_pyra_report_to_chrdev
.subsections_via_symbols
