	.file	"extr_hid-roccat-kovaplus.c_kovaplus_sysfs_read_profilex_buttons.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kovaplus_sysfs_read_profilex_buttons, @function
kovaplus_sysfs_read_profilex_buttons:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	kobj_to_dev@PLT
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rax]
	call	to_usb_interface@PLT
	mov	edi, eax
	call	interface_to_usbdev@PLT
	mov	edx, DWORD PTR KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS[rip]
	mov	rdi, rax
	mov	rax, QWORD PTR [r15]
	mov	esi, DWORD PTR [rax]
	call	kovaplus_select_profile@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR KOVAPLUS_COMMAND_PROFILE_BUTTONS[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, r14d
	mov	rdx, r13
	mov	r9d, DWORD PTR KOVAPLUS_SIZE_PROFILE_BUTTONS[rip]
	mov	r8, rbx
	mov	rsi, rbp
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 80
	call	kovaplus_sysfs_read@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kovaplus_sysfs_read_profilex_buttons, .-kovaplus_sysfs_read_profilex_buttons
	.comm	KOVAPLUS_SIZE_PROFILE_BUTTONS,4,4
	.comm	KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS,4,4
	.comm	KOVAPLUS_COMMAND_PROFILE_BUTTONS,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-kovaplus.c_kovaplus_sysfs_read_profilex_buttons.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kovaplus_sysfs_read_profilex_buttons, %function
kovaplus_sysfs_read_profilex_buttons:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	sub	sp, sp, #20
	mov	r0, r1
	mov	r4, r1
	mov	r5, r2
	mov	r7, r3
	bl	kobj_to_dev
	ldr	r3, [r0]
	ldr	r0, [r3]
	bl	to_usb_interface
	bl	interface_to_usbdev
	ldr	r2, [r5]
	ldr	r3, .L5
	ldr	r1, [r2]
	ldr	r2, [r3]
	bl	kovaplus_select_profile
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L5+4
	ldr	r3, .L5+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp, #44]
	stmib	sp, {r3, ip}
	str	r2, [sp]
	mov	r1, r4
	mov	r2, r7
	mov	r0, r6
	ldr	r3, [sp, #40]
	bl	kovaplus_sysfs_read
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	.align	2
.L5:
	.word	KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS
	.word	KOVAPLUS_COMMAND_PROFILE_BUTTONS
	.word	KOVAPLUS_SIZE_PROFILE_BUTTONS
	.size	kovaplus_sysfs_read_profilex_buttons, .-kovaplus_sysfs_read_profilex_buttons
	.comm	KOVAPLUS_SIZE_PROFILE_BUTTONS,4,4
	.comm	KOVAPLUS_CONTROL_REQUEST_PROFILE_BUTTONS,4,4
	.comm	KOVAPLUS_COMMAND_PROFILE_BUTTONS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
