	.file	"extr_hid-roccat-isku.c_isku_sysfs_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	isku_sysfs_read, @function
isku_sysfs_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	kobj_to_dev@PLT
	mov	rax, QWORD PTR [rax]
	mov	r12, QWORD PTR [rax]
	mov	rdi, r12
	call	dev_get_drvdata@PLT
	mov	edi, eax
	call	hid_get_drvdata@PLT
	mov	rdi, r12
	xor	r12d, r12d
	mov	r14, rax
	call	to_usb_interface@PLT
	mov	edi, eax
	call	interface_to_usbdev@PLT
	cmp	rbx, rbp
	jnb	.L1
	test	rbx, rbx
	jne	.L6
	cmp	rbp, r13
	jb	.L6
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	mutex_lock@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rdx, r15
	mov	esi, DWORD PTR 80[rsp]
	mov	rdi, r8
	call	isku_receive@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	mutex_unlock@PLT
	test	r12d, r12d
	cmove	r12d, r13d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	isku_sysfs_read, .-isku_sysfs_read
	.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-isku.c_isku_sysfs_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isku_sysfs_read, %function
isku_sysfs_read:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, r1
	mov	r7, r2
	mov	r4, r3
	ldr	r9, [sp, #36]
	ldr	r8, [sp, #32]
	bl	kobj_to_dev
	ldr	r3, [r0]
	ldr	r6, [r3]
	mov	r0, r6
	bl	dev_get_drvdata
	bl	hid_get_drvdata
	mov	r5, r0
	mov	r0, r6
	bl	to_usb_interface
	bl	interface_to_usbdev
	cmp	r4, r9
	movcs	r4, #0
	bcs	.L1
	cmp	r9, r8
	cmpcs	r4, #0
	beq	.L3
	ldr	r3, .L7
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r6, r0
	mov	r0, r5
	bl	mutex_lock
	mov	r3, r8
	mov	r2, r7
	ldr	r1, [sp, #40]
	mov	r0, r6
	bl	isku_receive
	mov	r4, r0
	cmp	r4, #0
	moveq	r4, r8
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	EINVAL
	.size	isku_sysfs_read, .-isku_sysfs_read
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
