	.file	"extr_zd_chip.c_zd_iowrite16a_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error zd_usb_iowrite16v. Error number %d\n"
	.text
	.p2align 4
	.globl	zd_iowrite16a_locked
	.type	zd_iowrite16a_locked, @function
zd_iowrite16a_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	add	rdi, 4
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	mutex_is_locked@PLT
	mov	edi, eax
	call	ZD_ASSERT@PLT
	mov	rdi, r15
	call	zd_usb_iowrite16v_async_start@PLT
	test	r12d, r12d
	je	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ebx, r12d
	sub	ebx, ebp
	cmp	DWORD PTR USB_MAX_IOWRITE16_COUNT[rip], ebx
	cmovbe	ebx, DWORD PTR USB_MAX_IOWRITE16_COUNT[rip]
	test	ebx, ebx
	je	.L8
	xor	eax, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	add	eax, 1
	cmp	ebx, eax
	je	.L8
.L4:
	lea	edx, [rax+rbp]
	mov	edx, DWORD PTR 0[r13+rdx*4]
	test	edx, edx
	jne	.L19
	mov	DWORD PTR 12[rsp], 1
	mov	ebx, eax
.L3:
	mov	eax, ebp
	mov	edx, ebx
	mov	rdi, r15
	lea	rsi, 0[r13+rax*4]
	call	zd_usb_iowrite16v_async@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L16
	add	ebx, DWORD PTR 12[rsp]
	add	ebp, ebx
	cmp	r12d, ebp
	ja	.L7
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	mov	esi, 50
	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
	jmp	zd_usb_iowrite16v_async_end@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	DWORD PTR 12[rsp], 0
	jmp	.L3
.L16:
	xor	esi, esi
	mov	rdi, r15
	call	zd_usb_iowrite16v_async_end@PLT
	mov	rdi, r15
	call	zd_chip_dev@PLT
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_dbg_f@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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	zd_iowrite16a_locked, .-zd_iowrite16a_locked
	.comm	USB_MAX_IOWRITE16_COUNT,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_zd_chip.c_zd_iowrite16a_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error zd_usb_iowrite16v. Error number %d\012\000"
	.text
	.align	2
	.global	zd_iowrite16a_locked
	.syntax unified
	.arm
	.fpu softvfp
	.type	zd_iowrite16a_locked, %function
zd_iowrite16a_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r5, r2
	add	r0, r0, #4
	mov	r6, r1
	bl	mutex_is_locked
	bl	ZD_ASSERT
	mov	r0, r7
	bl	zd_usb_iowrite16v_async_start
	cmp	r5, #0
	beq	.L2
	mov	r4, #0
	ldr	r8, .L21
.L7:
	ldr	r2, [r8]
	sub	r9, r5, r4
	cmp	r9, r2
	movcs	r9, r2
	cmp	r9, #0
	beq	.L8
	lsl	r1, r4, #2
	sub	ip, r1, #4
	mov	r3, #0
	add	ip, r6, ip
	b	.L4
.L20:
	add	r3, r3, #1
	cmp	r9, r3
	beq	.L19
.L4:
	ldr	lr, [ip, #4]!
	cmp	lr, #0
	bne	.L20
	mov	r9, r3
	mov	r10, #1
.L3:
	mov	r2, r9
	mov	r0, r7
	add	r1, r6, r1
	bl	zd_usb_iowrite16v_async
	subs	fp, r0, #0
	bne	.L16
	add	r9, r10, r9
	add	r4, r4, r9
	cmp	r5, r4
	bhi	.L7
.L2:
	mov	r0, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, #50
	b	zd_usb_iowrite16v_async_end
.L19:
	mov	r10, #0
	b	.L3
.L8:
	mov	r10, r9
	lsl	r1, r4, #2
	b	.L3
.L16:
	mov	r1, #0
	mov	r0, r7
	bl	zd_usb_iowrite16v_async_end
	mov	r0, r7
	bl	zd_chip_dev
	mov	r2, fp
	ldr	r1, .L21+4
	bl	dev_dbg_f
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	USB_MAX_IOWRITE16_COUNT
	.word	.LC0
	.size	zd_iowrite16a_locked, .-zd_iowrite16a_locked
	.comm	USB_MAX_IOWRITE16_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
