	.file	"extr_topro.c_bulk_w.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bulk write error %d tag=%02x\n"
	.text
	.p2align 4
	.type	bulk_w, @function
bulk_w:
.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
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	js	.L1
	mov	ebx, ecx
	mov	ecx, DWORD PTR BULK_OUT_SIZE[rip]
	mov	r12, QWORD PTR 16[rdi]
	mov	rbp, rdi
	mov	r13d, esi
	mov	r10, rdx
	lea	r14, 36[rsp]
	cmp	ecx, ebx
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	lea	r15d, -1[rcx]
	mov	rsi, r10
	mov	QWORD PTR 16[rsp], r10
	mov	edx, r15d
	mov	DWORD PTR 28[rsp], ecx
	mov	DWORD PTR [rdi], r13d
	add	rdi, 4
	call	memcpy@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, 3
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rdx
	call	usb_sndbulkpipe@PLT
	mov	ecx, DWORD PTR 28[rsp]
	mov	r8, r14
	mov	rdi, r12
	mov	rdx, QWORD PTR 8[rsp]
	mov	esi, eax
	mov	r9d, 500
	call	usb_bulk_msg@PLT
	mov	r10, QWORD PTR 16[rsp]
	test	eax, eax
	mov	ecx, eax
	js	.L7
	sub	ebx, r15d
	test	ebx, ebx
	jle	.L1
	mov	ecx, DWORD PTR BULK_OUT_SIZE[rip]
	movsx	r15, r15d
	lea	r10, [r10+r15*4]
	cmp	ecx, ebx
	jle	.L6
.L3:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r10
	mov	edx, ebx
	mov	DWORD PTR [rdi], r13d
	add	rdi, 4
	call	memcpy@PLT
	mov	r15, QWORD PTR 8[rbp]
	mov	esi, 3
	mov	rdi, r12
	call	usb_sndbulkpipe@PLT
	lea	ecx, 1[rbx]
	mov	r8, r14
	mov	rdi, r12
	mov	esi, eax
	mov	r9d, 500
	mov	rdx, r15
	call	usb_bulk_msg@PLT
	mov	ecx, eax
	test	eax, eax
	jns	.L1
.L7:
	mov	esi, ecx
	mov	edx, r13d
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 8[rsp], ecx
	call	pr_err@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	DWORD PTR 0[rbp], ecx
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 56
	.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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bulk_w, .-bulk_w
	.comm	BULK_OUT_SIZE,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_topro.c_bulk_w.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bulk write error %d tag=%02x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bulk_w, %function
bulk_w:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r0, [r0]
	mov	r4, r3
	ldr	r3, .L16
	sub	sp, sp, #28
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	blt	.L1
	ldr	r10, .L16+4
	mov	r9, r1
	ldr	r3, [r10]
	mov	r5, r2
	cmp	r3, r4
	ldr	r8, [r7, #8]
	add	fp, sp, #16
	bgt	.L3
.L6:
	ldr	r0, [r7, #4]
	sub	r6, r3, #1
	mov	r2, r6
	mov	r1, r5
	str	r9, [r0], #4
	str	r3, [sp, #12]
	bl	memcpy
	mov	r1, #3
	mov	r0, r8
	bl	usb_sndbulkpipe
	mov	r3, #500
	str	fp, [sp]
	str	r3, [sp, #4]
	mov	r1, r0
	ldr	r3, [sp, #12]
	mov	r0, r8
	ldr	r2, [r7, #4]
	bl	usb_bulk_msg
	cmp	r0, #0
	blt	.L14
	sub	r4, r4, r6
	cmp	r4, #0
	ble	.L1
	ldr	r3, [r10]
	add	r5, r5, r6, lsl #2
	cmp	r3, r4
	ble	.L6
.L3:
	ldr	r0, [r7, #4]
	mov	r2, r4
	mov	r1, r5
	str	r9, [r0], #4
	bl	memcpy
	mov	r1, #3
	mov	r0, r8
	bl	usb_sndbulkpipe
	mov	r2, #500
	str	fp, [sp]
	str	r2, [sp, #4]
	mov	r1, r0
	ldr	r2, [r7, #4]
	mov	r0, r8
	add	r3, r4, #1
	bl	usb_bulk_msg
	subs	r1, r0, #0
	bge	.L1
.L7:
	mov	r2, r9
	ldr	r0, .L16+8
	str	r1, [sp, #12]
	bl	pr_err
	ldr	r1, [sp, #12]
	str	r1, [r7]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	bl	__stack_chk_fail
.L14:
	mov	r1, r0
	b	.L7
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	BULK_OUT_SIZE
	.word	.LC0
	.size	bulk_w, .-bulk_w
	.comm	BULK_OUT_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
