	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kovaplus_send_control
_kovaplus_send_control:                 ## @kovaplus_send_control
	.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	_KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.4:
	cmpl	$5, %esi
	jge	LBB0_5
	jmp	LBB0_3
LBB0_1:
	cmpl	$5, %esi
	jl	LBB0_3
## %bb.2:
	movq	_KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_3
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ROCCAT_COMMON_COMMAND_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	%esi, -16(%rbp)
	movl	%edx, -12(%rbp)
	leaq	-16(%rbp), %rdx
	movl	%eax, %esi
	movl	$12, %ecx
	callq	_roccat_common2_send
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS,4,2 ## @KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS
	.comm	_KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS,4,2 ## @KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ROCCAT_COMMON_COMMAND_CONTROL,4,2 ## @ROCCAT_COMMON_COMMAND_CONTROL
	.no_dead_strip	_kovaplus_send_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kovaplus_send_control
_kovaplus_send_control:                 ; @kovaplus_send_control
	.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
Lloh0:
	adrp	x8, _KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	cmp	w1, #5
	b.ge	LBB0_4
	b	LBB0_5
LBB0_2:
	cmp	w1, #5
	b.lt	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ROCCAT_COMMON_COMMAND_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ROCCAT_COMMON_COMMAND_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w2, w8, [sp, #4]
	str	w1, [sp]
	mov	x2, sp
	mov	x1, x8
	mov	w3, #12
	bl	_roccat_common2_send
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS,4,2 ; @KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS
	.comm	_KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS,4,2 ; @KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ROCCAT_COMMON_COMMAND_CONTROL,4,2 ; @ROCCAT_COMMON_COMMAND_CONTROL
	.no_dead_strip	_kovaplus_send_control
.subsections_via_symbols
