	.file	"extr_hid-roccat-koneplus.c_koneplus_send_control.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	koneplus_send_control, @function
koneplus_send_control:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR KONEPLUS_CONTROL_REQUEST_PROFILE_SETTINGS[rip], edx
	je	.L2
	cmp	DWORD PTR KONEPLUS_CONTROL_REQUEST_PROFILE_BUTTONS[rip], edx
	je	.L2
.L3:
	mov	r8d, DWORD PTR ROCCAT_COMMON_COMMAND_CONTROL[rip]
	mov	DWORD PTR 12[rsp], esi
	mov	ecx, 12
	mov	DWORD PTR 16[rsp], edx
	lea	rdx, 12[rsp]
	mov	esi, r8d
	mov	DWORD PTR 20[rsp], r8d
	call	roccat_common2_send_with_status@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	esi, 4
	jle	.L3
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	koneplus_send_control, .-koneplus_send_control
	.comm	ROCCAT_COMMON_COMMAND_CONTROL,4,4
	.comm	KONEPLUS_CONTROL_REQUEST_PROFILE_SETTINGS,4,4
	.comm	KONEPLUS_CONTROL_REQUEST_PROFILE_BUTTONS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hid-roccat-koneplus.c_koneplus_send_control.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	koneplus_send_control, %function
koneplus_send_control:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	str	lr, [sp, #-4]!
	ldr	r3, .L9
	sub	sp, sp, #20
	ldr	r3, [r3]
	mov	r2, r1
	cmp	r3, ip
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, ip
	beq	.L2
.L3:
	ldr	r3, .L9+12
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r2, sp
	mov	r3, #12
	str	ip, [sp, #4]
	str	r1, [sp, #8]
	bl	roccat_common2_send_with_status
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	cmp	r2, #4
	ble	.L3
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	KONEPLUS_CONTROL_REQUEST_PROFILE_SETTINGS
	.word	.LC0
	.word	KONEPLUS_CONTROL_REQUEST_PROFILE_BUTTONS
	.word	ROCCAT_COMMON_COMMAND_CONTROL
	.word	EINVAL
	.size	koneplus_send_control, .-koneplus_send_control
	.comm	ROCCAT_COMMON_COMMAND_CONTROL,4,4
	.comm	KONEPLUS_CONTROL_REQUEST_PROFILE_SETTINGS,4,4
	.comm	KONEPLUS_CONTROL_REQUEST_PROFILE_BUTTONS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
