	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function koneplus_report_to_chrdev
_koneplus_report_to_chrdev:             ## @koneplus_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	$32, %rsp
	movq	(%rsi), %rax
	movq	_KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%dl
	movq	_KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	8(%rsi), %r8
	testb	%cl, %dl
	jne	LBB0_3
## %bb.2:
	movq	_KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jne	LBB0_4
LBB0_3:
	movq	%rax, -32(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -8(%rbp)
	movq	%r8, -24(%rbp)
	movq	8(%rdi), %rax
	incq	%rax
	movq	%rax, -16(%rbp)
	movl	(%rdi), %edi
	leaq	-32(%rbp), %rsi
	callq	_roccat_report_event
LBB0_4:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON,8,3 ## @KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON
	.comm	_KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH,8,3 ## @KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH
	.comm	_KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER,8,3 ## @KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER
	.comm	_KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS,8,3 ## @KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS
	.no_dead_strip	_koneplus_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 koneplus_report_to_chrdev
_koneplus_report_to_chrdev:             ; @koneplus_report_to_chrdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	ldr	x9, [x1, #8]
Lloh9:
	adrp	x10, _KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ccmp	x9, x10, #4, eq
	b.ne	LBB0_3
; %bb.2:
	ldr	w10, [x1, #16]
	str	w10, [sp, #24]
	stp	x8, x9, [sp]
	ldr	x8, [x0, #8]
	add	x8, x8, #1
	str	x8, [sp, #16]
	ldr	w0, [x0]
	mov	x1, sp
	bl	_roccat_report_event
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON,8,3 ; @KONEPLUS_MOUSE_REPORT_NUMBER_BUTTON
	.comm	_KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH,8,3 ; @KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH
	.comm	_KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER,8,3 ; @KONEPLUS_MOUSE_REPORT_BUTTON_TYPE_TIMER
	.comm	_KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS,8,3 ; @KONEPLUS_MOUSE_REPORT_BUTTON_ACTION_PRESS
	.no_dead_strip	_koneplus_report_to_chrdev
.subsections_via_symbols
