	.file	"extr_niu.c_niu_zcp_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	niu_zcp_write, @function
niu_zcp_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR [rdx]
	mov	edi, DWORD PTR ZCP_RAM_DATA0[rip]
	call	nw64@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR ZCP_RAM_DATA1[rip]
	call	nw64@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR ZCP_RAM_DATA2[rip]
	call	nw64@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR ZCP_RAM_DATA3[rip]
	call	nw64@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR ZCP_RAM_DATA4[rip]
	call	nw64@PLT
	mov	esi, DWORD PTR ZCP_RAM_BE_VAL[rip]
	mov	edi, DWORD PTR ZCP_RAM_BE[rip]
	call	nw64@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	ZCP_RAM_SEL_CFIFO@PLT
	mov	ecx, DWORD PTR ZCP_RAM_ACC_RAM_SEL_SHIFT[rip]
	mov	edi, DWORD PTR ZCP_RAM_ACC[rip]
	sal	eax, cl
	or	eax, DWORD PTR ZCP_RAM_ACC_WRITE[rip]
	mov	esi, eax
	call	nw64@PLT
	mov	edx, DWORD PTR ZCP_RAM_ACC_BUSY[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR ZCP_RAM_ACC[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	r8d, 100
	mov	ecx, 1000
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	niu_wait_bits_clear@PLT
	.cfi_endproc
.LFE0:
	.size	niu_zcp_write, .-niu_zcp_write
	.comm	ZCP_RAM_DATA4,4,4
	.comm	ZCP_RAM_DATA3,4,4
	.comm	ZCP_RAM_DATA2,4,4
	.comm	ZCP_RAM_DATA1,4,4
	.comm	ZCP_RAM_DATA0,4,4
	.comm	ZCP_RAM_BE_VAL,4,4
	.comm	ZCP_RAM_BE,4,4
	.comm	ZCP_RAM_ACC_ZFCID_SHIFT,4,4
	.comm	ZCP_RAM_ACC_WRITE,4,4
	.comm	ZCP_RAM_ACC_RAM_SEL_SHIFT,4,4
	.comm	ZCP_RAM_ACC_BUSY,4,4
	.comm	ZCP_RAM_ACC,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_niu.c_niu_zcp_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	niu_zcp_write, %function
niu_zcp_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, r0
	ldr	r3, .L4
	sub	sp, sp, #8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	nw64
	ldr	r3, .L4+4
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	bl	nw64
	ldr	r3, .L4+8
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	nw64
	ldr	r3, .L4+12
	ldr	r1, [r4, #12]
	ldr	r0, [r3]
	bl	nw64
	ldr	r3, .L4+16
	ldr	r1, [r4, #16]
	ldr	r0, [r3]
	bl	nw64
	ldr	r2, .L4+20
	ldr	r3, .L4+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r4, .L4+28
	bl	nw64
	ldr	r0, [r5]
	ldr	r6, [r4]
	bl	ZCP_RAM_SEL_CFIFO
	mov	r1, r0
	ldr	r2, .L4+32
	ldr	r3, .L4+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	orr	r1, r3, r1, lsl r2
	bl	nw64
	mov	r2, #100
	ldr	r3, .L4+40
	ldr	r1, [r4]
	str	r2, [sp]
	ldr	r2, [r3]
	mov	r0, r5
	mov	r3, #1000
	bl	niu_wait_bits_clear
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	ZCP_RAM_DATA0
	.word	ZCP_RAM_DATA1
	.word	ZCP_RAM_DATA2
	.word	ZCP_RAM_DATA3
	.word	ZCP_RAM_DATA4
	.word	ZCP_RAM_BE_VAL
	.word	ZCP_RAM_BE
	.word	ZCP_RAM_ACC
	.word	ZCP_RAM_ACC_RAM_SEL_SHIFT
	.word	ZCP_RAM_ACC_WRITE
	.word	ZCP_RAM_ACC_BUSY
	.size	niu_zcp_write, .-niu_zcp_write
	.comm	ZCP_RAM_DATA4,4,4
	.comm	ZCP_RAM_DATA3,4,4
	.comm	ZCP_RAM_DATA2,4,4
	.comm	ZCP_RAM_DATA1,4,4
	.comm	ZCP_RAM_DATA0,4,4
	.comm	ZCP_RAM_BE_VAL,4,4
	.comm	ZCP_RAM_BE,4,4
	.comm	ZCP_RAM_ACC_ZFCID_SHIFT,4,4
	.comm	ZCP_RAM_ACC_WRITE,4,4
	.comm	ZCP_RAM_ACC_RAM_SEL_SHIFT,4,4
	.comm	ZCP_RAM_ACC_BUSY,4,4
	.comm	ZCP_RAM_ACC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
