	.file	"extr_i2c-hid-core.c_i2c_hid_output_raw_report.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	i2c_hid_output_raw_report, @function
i2c_hid_output_raw_report:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR [rdi]
	mov	rdi, r15
	call	i2c_get_clientdata@PLT
	cmp	BYTE PTR HID_INPUT_REPORT[rip], bl
	je	.L11
	mov	edx, DWORD PTR [r12]
	mov	rdi, rax
	mov	rbp, rax
	mov	DWORD PTR 12[rsp], edx
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	jne	.L12
	xor	edx, edx
	cmp	bl, BYTE PTR HID_FEATURE_REPORT[rip]
	mov	r9d, r14d
	mov	r8, r13
	mov	rcx, r12
	je	.L7
	mov	esi, 2
	mov	rdi, r15
	call	i2c_hid_set_or_send_report@PLT
	mov	r12d, eax
.L6:
	mov	rdi, rbp
	call	mutex_unlock@PLT
.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
.L12:
	.cfi_restore_state
	xor	esi, esi
	cmp	BYTE PTR HID_FEATURE_REPORT[rip], bl
	lea	rcx, 4[r12]
	mov	r9d, r14d
	sete	sil
	lea	r8, -1[r13]
	mov	rdi, r15
	add	esi, 2
	call	i2c_hid_set_or_send_report@PLT
	mov	r12d, eax
	cmp	eax, -2147483648
	adc	r12d, 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 3
	mov	rdi, r15
	call	i2c_hid_set_or_send_report@PLT
	mov	r12d, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	i2c_hid_output_raw_report, .-i2c_hid_output_raw_report
	.comm	HID_INPUT_REPORT,1,1
	.comm	HID_FEATURE_REPORT,1,1
	.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_i2c-hid-core.c_i2c_hid_output_raw_report.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_hid_output_raw_report, %function
i2c_hid_output_raw_report:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r3
	ldr	r8, [r0]
	sub	sp, sp, #12
	mov	r0, r8
	mov	r7, r1
	mov	r6, r2
	bl	i2c_get_clientdata
	ldr	r3, .L13
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r4
	beq	.L11
	ldr	r9, [r7]
	mov	r5, r0
	bl	mutex_lock
	cmp	r9, #0
	ldr	r3, .L13+4
	bne	.L12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r9
	cmp	r3, r4
	ldr	r3, [sp, #40]
	mov	r0, r8
	str	r3, [sp, #4]
	str	r6, [sp]
	mov	r3, r7
	beq	.L7
	mov	r1, #2
	bl	i2c_hid_set_or_send_report
	mov	r4, r0
.L6:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [sp, #40]
	cmp	r1, r4
	sub	r2, r6, #1
	moveq	r1, #3
	movne	r1, #2
	str	r2, [sp]
	str	r3, [sp, #4]
	mov	r2, r9
	mov	r0, r8
	add	r3, r7, #4
	bl	i2c_hid_set_or_send_report
	subs	r4, r0, #0
	addge	r4, r4, #1
	b	.L6
.L11:
	ldr	r3, .L13+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r1, #3
	bl	i2c_hid_set_or_send_report
	mov	r4, r0
	b	.L6
.L14:
	.align	2
.L13:
	.word	HID_INPUT_REPORT
	.word	HID_FEATURE_REPORT
	.word	EINVAL
	.size	i2c_hid_output_raw_report, .-i2c_hid_output_raw_report
	.comm	HID_INPUT_REPORT,1,1
	.comm	HID_FEATURE_REPORT,1,1
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
