	.file	"extr_hid-core.c_usbhid_set_raw_report.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usbhid_set_raw_report, @function
usbhid_set_raw_report:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rcx
	call	hid_to_usb_dev@PLT
	cmp	BYTE PTR HID_OUTPUT_REPORT[rip], r15b
	mov	r13, rax
	mov	rax, QWORD PTR [r14]
	mov	rax, QWORD PTR [rax]
	je	.L11
.L2:
	mov	DWORD PTR [rbx], ebp
	movzx	r15d, bpl
	test	ebp, ebp
	je	.L3
	mov	edx, DWORD PTR USB_CTRL_SET_TIMEOUT[rip]
	mov	r9d, DWORD PTR [rax]
	xor	esi, esi
	mov	rdi, r13
	mov	r12d, DWORD PTR USB_DIR_OUT[rip]
	mov	ebp, DWORD PTR HID_REQ_SET_REPORT[rip]
	mov	DWORD PTR 12[rsp], edx
	or	r12d, DWORD PTR USB_TYPE_CLASS[rip]
	mov	DWORD PTR 8[rsp], r9d
	or	r12d, DWORD PTR USB_RECIP_INTERFACE[rip]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8d, r15d
	mov	ecx, r12d
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, eax
	mov	rdi, r13
	push	rdx
	.cfi_def_cfa_offset 96
	mov	edx, ebp
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 104
	push	rbx
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR 40[rsp]
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
.L1:
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR [r12]
	test	DWORD PTR HID_QUIRK_SKIP_OUTPUT_REPORT_ID[rip], edx
	je	.L2
	mov	DWORD PTR [rbx], 0
	movzx	r15d, bpl
.L3:
	mov	edx, DWORD PTR USB_CTRL_SET_TIMEOUT[rip]
	mov	r9d, DWORD PTR [rax]
	xor	esi, esi
	mov	rdi, r13
	mov	r12d, DWORD PTR USB_DIR_OUT[rip]
	mov	ebp, DWORD PTR HID_REQ_SET_REPORT[rip]
	add	rbx, 4
	mov	DWORD PTR 12[rsp], edx
	or	r12d, DWORD PTR USB_TYPE_CLASS[rip]
	mov	DWORD PTR 8[rsp], r9d
	or	r12d, DWORD PTR USB_RECIP_INTERFACE[rip]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8d, r15d
	mov	ecx, r12d
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, eax
	mov	rdi, r13
	push	rdx
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR 16[rsp]
	mov	edx, ebp
	sub	r14, 1
	push	r14
	.cfi_def_cfa_offset 104
	push	rbx
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR 40[rsp]
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	test	eax, eax
	jle	.L1
	add	rsp, 24
	.cfi_def_cfa_offset 56
	add	eax, 1
	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	usbhid_set_raw_report, .-usbhid_set_raw_report
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_CTRL_SET_TIMEOUT,4,4
	.comm	HID_REQ_SET_REPORT,4,4
	.comm	HID_QUIRK_SKIP_OUTPUT_REPORT_ID,4,4
	.comm	HID_OUTPUT_REPORT,1,1
	.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-core.c_usbhid_set_raw_report.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbhid_set_raw_report, %function
usbhid_set_raw_report:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #28
	ldr	r9, [r0, #4]
	ldrb	r6, [sp, #56]	@ zero_extendqisi2
	mov	r5, r2
	mov	r7, r3
	mov	r8, r0
	mov	r4, r1
	bl	hid_to_usb_dev
	ldr	r3, .L12
	ldr	r2, [r9]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r9, [r2]
	cmp	r3, r6
	mov	r6, r0
	beq	.L11
.L2:
	cmp	r4, #0
	str	r4, [r5]
	and	r4, r4, #255
	beq	.L3
	mov	r1, #0
	mov	r0, r6
	bl	usb_sndctrlpipe
	ldr	r3, .L12+4
	mov	r1, r0
	ldr	ip, [r3]
	str	r7, [sp, #12]
	str	ip, [sp, #16]
	str	r5, [sp, #8]
	ldr	r0, .L12+8
	ldr	r2, .L12+12
	ldr	r3, .L12+16
	ldr	r5, [r9]
	ldr	r2, [r2]
	ldr	lr, [r0]
	ldr	r3, [r3]
	stm	sp, {r4, r5}
	ldr	ip, .L12+20
	orr	r3, r2, r3
	mov	r0, r6
	ldr	r2, [ip]
	orr	r3, r3, lr
	bl	usb_control_msg
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	ldr	r3, .L12+24
	ldr	r2, [r8]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	mov	r3, #0
	and	r4, r4, #255
	str	r3, [r5]
.L3:
	mov	r1, #0
	mov	r0, r6
	bl	usb_sndctrlpipe
	ldr	r3, .L12+4
	add	r5, r5, #4
	ldr	lr, [r3]
	sub	r7, r7, #1
	str	r7, [sp, #12]
	str	r5, [sp, #8]
	str	lr, [sp, #16]
	mov	r1, r0
	ldr	ip, .L12+12
	ldr	r0, .L12+8
	ldr	r5, [r9]
	ldr	r3, .L12+16
	ldr	r2, [ip]
	ldr	lr, [r0]
	ldr	r3, [r3]
	stm	sp, {r4, r5}
	ldr	ip, .L12+20
	orr	r3, r2, r3
	mov	r0, r6
	ldr	r2, [ip]
	orr	r3, r3, lr
	bl	usb_control_msg
	cmp	r0, #0
	ble	.L1
	add	r0, r0, #1
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	.align	2
.L12:
	.word	HID_OUTPUT_REPORT
	.word	USB_CTRL_SET_TIMEOUT
	.word	USB_RECIP_INTERFACE
	.word	USB_DIR_OUT
	.word	USB_TYPE_CLASS
	.word	HID_REQ_SET_REPORT
	.word	HID_QUIRK_SKIP_OUTPUT_REPORT_ID
	.size	usbhid_set_raw_report, .-usbhid_set_raw_report
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_CTRL_SET_TIMEOUT,4,4
	.comm	HID_REQ_SET_REPORT,4,4
	.comm	HID_QUIRK_SKIP_OUTPUT_REPORT_ID,4,4
	.comm	HID_OUTPUT_REPORT,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
