	.file	"extr_hid-core.c_hid_submit_ctrl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Set_Report"
.LC1:
	.string	"Get_Report"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"submitting ctrl urb: %s wValue=0x%04x wIndex=0x%04x wLength=%u\n"
	.align 8
.LC3:
	.string	"usb_submit_urb(ctrl) failed: %d\n"
	.text
	.p2align 4
	.type	hid_submit_ctrl, @function
hid_submit_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	ecx, ecx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rbx]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 40[rbx]
	lea	rdx, [rax+rdx*8]
	mov	r14, QWORD PTR 16[rdx]
	movzx	r13d, BYTE PTR 8[rdx]
	mov	eax, DWORD PTR [r14]
	mov	esi, DWORD PTR 4[r14]
	sub	eax, 1
	sar	eax, 3
	test	esi, esi
	setg	cl
	cmp	BYTE PTR USB_DIR_OUT[rip], r13b
	lea	r12d, 1[rax+rcx]
	je	.L17
	call	hid_to_usb_dev@PLT
	mov	r15, QWORD PTR 24[rbx]
	xor	esi, esi
	mov	edi, eax
	call	usb_rcvctrlpipe@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[r15], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	r15d, DWORD PTR 8[rax]
	call	hid_to_usb_dev@PLT
	xor	edx, edx
	mov	esi, r15d
	mov	edi, eax
	call	usb_maxpacket@PLT
	mov	r15d, eax
	xor	eax, eax
	test	r15d, r15d
	jg	.L18
.L4:
	mov	r15, QWORD PTR 24[rbx]
	mov	DWORD PTR [r15], eax
.L3:
	mov	rdi, rbp
	call	hid_to_usb_dev@PLT
	mov	DWORD PTR 4[r15], eax
	movzx	eax, BYTE PTR USB_TYPE_CLASS[rip]
	mov	r15, QWORD PTR 32[rbx]
	or	al, BYTE PTR USB_RECIP_INTERFACE[rip]
	or	eax, r13d
	mov	BYTE PTR [r15], al
	cmp	BYTE PTR USB_DIR_OUT[rip], r13b
	mov	rax, QWORD PTR HID_REQ_GET_REPORT[rip]
	jne	.L6
	mov	rax, QWORD PTR HID_REQ_SET_REPORT[rip]
.L6:
	mov	QWORD PTR 8[r15], rax
	mov	eax, DWORD PTR 8[r14]
	lea	edi, 1[rax]
	sal	edi, 8
	or	edi, DWORD PTR 4[r14]
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r13, QWORD PTR 32[rbx]
	mov	QWORD PTR 32[r15], rax
	call	cpu_to_le16@PLT
	mov	edi, r12d
	mov	QWORD PTR 24[r13], rax
	mov	r13, QWORD PTR 32[rbx]
	call	cpu_to_le16@PLT
	mov	rsi, QWORD PTR HID_REQ_SET_REPORT[rip]
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 16[r13], rax
	mov	rax, QWORD PTR 32[rbx]
	cmp	QWORD PTR 8[rax], rsi
	lea	rsi, .LC0[rip]
	mov	rcx, QWORD PTR 24[rax]
	cmovne	rsi, rdi
	mov	rdx, QWORD PTR 32[rax]
	mov	r8, QWORD PTR 16[rax]
	lea	rdi, .LC2[rip]
	call	dbg_hid@PLT
	mov	rdi, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	call	usb_submit_urb@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L19
	mov	eax, DWORD PTR jiffies[rip]
	xor	r12d, r12d
	mov	DWORD PTR 16[rbx], eax
.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
.L18:
	.cfi_restore_state
	mov	esi, r15d
	mov	edi, r12d
	call	DIV_ROUND_UP@PLT
	imul	r15d, eax
	cmp	DWORD PTR 8[rbx], r15d
	mov	eax, r15d
	cmovle	eax, DWORD PTR 8[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r8, QWORD PTR [rdx]
	mov	QWORD PTR 8[rsp], r8
	call	hid_to_usb_dev@PLT
	mov	r15, QWORD PTR 24[rbx]
	xor	esi, esi
	mov	edi, eax
	call	usb_sndctrlpipe@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	DWORD PTR 8[r15], eax
	mov	r15, QWORD PTR 24[rbx]
	mov	DWORD PTR [r15], r12d
	test	r8, r8
	je	.L3
	mov	edi, DWORD PTR 48[rbx]
	mov	edx, r12d
	mov	rsi, r8
	call	memcpy@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, r8
	call	kfree@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 40[rbx]
	mov	r15, QWORD PTR 24[rbx]
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*8]
	mov	QWORD PTR [rax], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	hid_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hid_submit_ctrl, .-hid_submit_ctrl
	.comm	jiffies,4,4
	.comm	USB_TYPE_CLASS,1,1
	.comm	USB_RECIP_INTERFACE,1,1
	.comm	USB_DIR_OUT,1,1
	.comm	HID_REQ_SET_REPORT,8,8
	.comm	HID_REQ_GET_REPORT,8,8
	.comm	GFP_ATOMIC,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-core.c_hid_submit_ctrl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Set_Report\000"
	.align	2
.LC1:
	.ascii	"Get_Report\000"
	.align	2
.LC2:
	.ascii	"submitting ctrl urb: %s wValue=0x%04x wIndex=0x%04x"
	.ascii	" wLength=%u\012\000"
	.align	2
.LC3:
	.ascii	"usb_submit_urb(ctrl) failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hid_submit_ctrl, %function
hid_submit_ctrl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0]
	ldr	r8, .L20
	ldr	r3, [r4]
	ldr	r2, [r4, #24]
	add	r3, r3, r3, lsl #1
	add	r1, r2, r3, lsl #2
	ldr	r9, [r1, #8]
	ldrb	r7, [r1, #4]	@ zero_extendqisi2
	ldm	r9, {r5, ip}
	sub	r5, r5, #1
	ldrb	r1, [r8]	@ zero_extendqisi2
	asr	r5, r5, #3
	add	r5, r5, #1
	cmp	ip, #0
	addgt	r5, r5, #1
	cmp	r1, r7
	mov	r6, r0
	sub	sp, sp, #20
	beq	.L17
	bl	hid_to_usb_dev
	mov	r1, #0
	ldr	r10, [r4, #16]
	bl	usb_rcvctrlpipe
	mov	r3, r0
	mov	r0, r6
	str	r3, [r10, #8]
	bl	hid_to_usb_dev
	ldr	r3, [r4, #16]
	mov	r2, #0
	ldr	r1, [r3, #8]
	bl	usb_maxpacket
	subs	r10, r0, #0
	movle	r0, #0
	bgt	.L18
.L4:
	ldr	r10, [r4, #16]
	str	r0, [r10]
.L3:
	mov	r0, r6
	bl	hid_to_usb_dev
	ldr	r3, .L20+4
	ldr	r2, .L20+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	str	r0, [r10, #4]
	orr	r3, r3, r2
	ldr	r10, [r4, #20]
	orr	r3, r7, r3
	strb	r3, [r10]
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, r7
	ldreq	r7, .L20+12
	ldrne	r3, .L20+16
	ldreq	r2, [r7]
	ldrne	r2, [r3]
	ldmib	r9, {r0, r3}
	add	r3, r3, #1
	str	r2, [r10, #4]
	orr	r0, r0, r3, lsl #8
	ldrne	r7, .L20+12
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r10, #16]
	ldr	r8, [r4, #20]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r5
	str	r3, [r8, #12]
	ldr	r5, [r4, #20]
	bl	cpu_to_le16
	ldr	r2, [r4, #20]
	ldr	r1, [r7]
	ldr	lr, [r2, #4]
	str	r0, [r5, #8]
	ldr	r0, [r2, #8]
	ldr	ip, .L20+20
	ldr	r3, .L20+24
	cmp	lr, r1
	movne	r1, r3
	moveq	r1, ip
	ldr	r3, [r2, #12]
	ldr	r2, [r2, #16]
	str	r0, [sp]
	ldr	r0, .L20+28
	bl	dbg_hid
	ldr	r3, .L20+32
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	usb_submit_urb
	subs	r5, r0, #0
	blt	.L19
	mov	r5, #0
	mov	r0, r5
	ldr	r3, .L20+36
	ldr	r3, [r3]
	str	r3, [r4, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r1, r10
	mov	r0, r5
	bl	DIV_ROUND_UP
	mul	r0, r10, r0
	ldr	r1, [r4, #4]
	cmp	r0, r1
	movge	r0, r1
	b	.L4
.L17:
	lsl	r3, r3, #2
	ldr	fp, [r2, r3]
	bl	hid_to_usb_dev
	ldr	r3, [r4, #16]
	mov	r1, #0
	str	r3, [sp, #12]
	bl	usb_sndctrlpipe
	ldr	r10, [r4, #16]
	ldr	r3, [sp, #12]
	cmp	fp, #0
	str	r0, [r3, #8]
	str	r5, [r10]
	beq	.L3
	mov	r2, r5
	mov	r1, fp
	ldr	r0, [r4, #28]
	bl	memcpy
	mov	r0, fp
	bl	kfree
	mov	r1, #0
	ldr	r3, [r4]
	ldr	r2, [r4, #24]
	add	r3, r3, r3, lsl #1
	lsl	r3, r3, #2
	ldr	r10, [r4, #16]
	str	r1, [r2, r3]
	b	.L3
.L19:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L20+40
	bl	hid_err
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	USB_DIR_OUT
	.word	USB_TYPE_CLASS
	.word	USB_RECIP_INTERFACE
	.word	HID_REQ_SET_REPORT
	.word	HID_REQ_GET_REPORT
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	GFP_ATOMIC
	.word	jiffies
	.word	.LC3
	.size	hid_submit_ctrl, .-hid_submit_ctrl
	.comm	jiffies,4,4
	.comm	USB_TYPE_CLASS,1,1
	.comm	USB_RECIP_INTERFACE,1,1
	.comm	USB_DIR_OUT,1,1
	.comm	HID_REQ_SET_REPORT,4,4
	.comm	HID_REQ_GET_REPORT,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
