	.file	"extr_zd_chip.c__zd_iowrite32v_async_locked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_zd_iowrite32v_async_locked, @function
_zd_iowrite32v_async_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rsi
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR USB_MAX_IOWRITE32_COUNT[rip]
	mov	rsi, rsp
	lea	r12d, [rax+rax]
	movsx	r12, r12d
	sal	r12, 3
	mov	rcx, r12
	mov	rax, r12
	and	rcx, -4096
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L17
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L18
.L4:
	lea	rdi, 4[r13]
	mov	DWORD PTR -68[rbp], edx
	mov	r14, rsp
	call	mutex_is_locked@PLT
	mov	edi, eax
	call	ZD_ASSERT@PLT
	mov	edx, DWORD PTR -68[rbp]
	xor	eax, eax
	test	edx, edx
	je	.L1
	cmp	DWORD PTR USB_MAX_IOWRITE32_COUNT[rip], edx
	jnb	.L6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	eax, [rdx+rdx]
	xor	edi, edi
	mov	DWORD PTR -72[rbp], edx
	mov	rbx, r14
	mov	DWORD PTR -68[rbp], eax
	sal	rax, 3
	cmp	rax, r12
	seta	dil
	call	BUG_ON@PLT
	mov	edx, DWORD PTR -72[rbp]
	lea	r12d, -1[rdx]
	add	r12, 1
	sal	r12, 4
	add	r12, r14
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR [r15]
	mov	edi, DWORD PTR 4[r15]
	add	rbx, 16
	add	r15, 8
	sar	eax, 16
	mov	DWORD PTR -16[rbx], eax
	call	inc_addr@PLT
	mov	DWORD PTR -12[rbx], eax
	mov	eax, DWORD PTR -8[r15]
	mov	DWORD PTR -8[rbx], eax
	mov	eax, DWORD PTR -4[r15]
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, r12
	jne	.L7
	mov	edx, DWORD PTR -68[rbp]
	mov	rsi, r14
	mov	rdi, r13
	call	zd_usb_iowrite16v_async@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rax], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_zd_iowrite32v_async_locked, .-_zd_iowrite32v_async_locked
	.comm	USB_MAX_IOWRITE32_COUNT,4,4
	.comm	EINVAL,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_iowrite32v_async_locked.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_zd_iowrite32v_async_locked, %function
_zd_iowrite32v_async_locked:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r6, r2
	mov	r2, sp
	ldr	r5, .L11
	mov	r7, r0
	ldr	r3, [r5]
	add	r0, r0, #4
	sub	r2, r2, r3, lsl #4
	mov	sp, r2
	ldr	r2, .L11+4
	mov	r10, r1
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	lsl	r4, r3, #4
	bl	mutex_is_locked
	bl	ZD_ASSERT
	cmp	r6, #0
	moveq	r0, r6
	beq	.L1
	ldr	r3, [r5]
	cmp	r3, r6
	bcs	.L3
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r8, sp
	cmp	r4, r6, lsl #4
	mov	r5, r8
	mov	r4, #0
	movcc	r0, #1
	movcs	r0, #0
	bl	BUG_ON
	lsl	r3, r6, #1
	str	r3, [fp, #-48]
	add	r9, r10, #4
.L4:
	ldr	r3, [r10, r4, lsl #3]
	ldr	r0, [r9, r4, lsl #3]
	asr	r3, r3, #16
	str	r3, [r5]
	bl	inc_addr
	ldr	r1, [r10, r4, lsl #3]
	ldr	r3, [r9, r4, lsl #3]
	add	r4, r4, #1
	cmp	r4, r6
	stmib	r5, {r0, r1, r3}
	add	r5, r5, #16
	bne	.L4
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [fp, #-48]
	bl	zd_usb_iowrite16v_async
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	USB_MAX_IOWRITE32_COUNT
	.word	.LC0
	.word	EINVAL
	.size	_zd_iowrite32v_async_locked, .-_zd_iowrite32v_async_locked
	.comm	USB_MAX_IOWRITE32_COUNT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
