	.file	"extr_konicawc.c_resubmit_urb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"submitting urb of length %d"
.LC1:
	.string	"usb_submit_urb error (%d)"
	.text
	.p2align 4
	.type	resubmit_urb, @function
resubmit_urb:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR FRAMES_PER_DESC[rip]
	test	edx, edx
	jle	.L2
	mov	rax, QWORD PTR 24[rsi]
	sub	edx, 1
	lea	rcx, [rax+rdx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, rax
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rdx, rcx
	jne	.L3
.L2:
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	DWORD PTR 16[rbx], eax
	call	usb_submit_urb@PLT
	mov	edx, DWORD PTR [rbx]
	mov	edi, 3
	lea	rsi, .LC0[rip]
	mov	ebp, eax
	call	DEBUG@PLT
	test	ebp, ebp
	jne	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	err@PLT
	.cfi_endproc
.LFE0:
	.size	resubmit_urb, .-resubmit_urb
	.comm	GFP_ATOMIC,4,4
	.comm	FRAMES_PER_DESC,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_konicawc.c_resubmit_urb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"submitting urb of length %d\000"
	.align	2
.LC1:
	.ascii	"usb_submit_urb error (%d)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	resubmit_urb, %function
resubmit_urb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r2, [r3]
	mov	r4, r1
	cmp	r2, #0
	ble	.L2
	mov	ip, #0
	ldr	r3, [r1, #12]
	add	r2, r3, r2, lsl #2
	sub	r2, r2, #4
	sub	r3, r3, #4
.L3:
	str	ip, [r3, #4]!
	cmp	r3, r2
	bne	.L3
.L2:
	mov	r2, #0
	ldr	r1, [r0]
	ldr	r3, .L8+4
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	usb_submit_urb
	mov	r5, r0
	ldr	r2, [r4]
	mov	r0, #3
	ldr	r1, .L8+8
	bl	DEBUG
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r0, .L8+12
	b	err
.L9:
	.align	2
.L8:
	.word	FRAMES_PER_DESC
	.word	GFP_ATOMIC
	.word	.LC0
	.word	.LC1
	.size	resubmit_urb, .-resubmit_urb
	.comm	GFP_ATOMIC,4,4
	.comm	FRAMES_PER_DESC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
