	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_zcp_write
_niu_zcp_write:                         ## @niu_zcp_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_ZCP_RAM_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rdx), %esi
	callq	_nw64
	movq	_ZCP_RAM_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_nw64
	movq	_ZCP_RAM_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_nw64
	movq	_ZCP_RAM_DATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_nw64
	movq	_ZCP_RAM_DATA4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_nw64
	movq	_ZCP_RAM_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ZCP_RAM_BE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nw64
	movq	_ZCP_RAM_ACC@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	_ZCP_RAM_ACC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_ZCP_RAM_SEL_CFIFO
	movq	_ZCP_RAM_ACC_RAM_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_nw64
	movl	(%r12), %esi
	movq	_ZCP_RAM_ACC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$100, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_niu_wait_bits_clear            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ZCP_RAM_DATA0,4,2              ## @ZCP_RAM_DATA0
	.comm	_ZCP_RAM_DATA1,4,2              ## @ZCP_RAM_DATA1
	.comm	_ZCP_RAM_DATA2,4,2              ## @ZCP_RAM_DATA2
	.comm	_ZCP_RAM_DATA3,4,2              ## @ZCP_RAM_DATA3
	.comm	_ZCP_RAM_DATA4,4,2              ## @ZCP_RAM_DATA4
	.comm	_ZCP_RAM_BE,4,2                 ## @ZCP_RAM_BE
	.comm	_ZCP_RAM_BE_VAL,4,2             ## @ZCP_RAM_BE_VAL
	.comm	_ZCP_RAM_ACC,4,2                ## @ZCP_RAM_ACC
	.comm	_ZCP_RAM_ACC_WRITE,4,2          ## @ZCP_RAM_ACC_WRITE
	.comm	_ZCP_RAM_ACC_ZFCID_SHIFT,4,2    ## @ZCP_RAM_ACC_ZFCID_SHIFT
	.comm	_ZCP_RAM_ACC_RAM_SEL_SHIFT,4,2  ## @ZCP_RAM_ACC_RAM_SEL_SHIFT
	.comm	_ZCP_RAM_ACC_BUSY,4,2           ## @ZCP_RAM_ACC_BUSY
	.no_dead_strip	_niu_zcp_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_zcp_write
_niu_zcp_write:                         ; @niu_zcp_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _ZCP_RAM_DATA0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZCP_RAM_DATA0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x2]
	bl	_nw64
Lloh3:
	adrp	x8, _ZCP_RAM_DATA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZCP_RAM_DATA1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_nw64
Lloh6:
	adrp	x8, _ZCP_RAM_DATA2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZCP_RAM_DATA2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_nw64
Lloh9:
	adrp	x8, _ZCP_RAM_DATA3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZCP_RAM_DATA3@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_nw64
Lloh12:
	adrp	x8, _ZCP_RAM_DATA4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZCP_RAM_DATA4@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_nw64
Lloh15:
	adrp	x8, _ZCP_RAM_BE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ZCP_RAM_BE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ZCP_RAM_BE_VAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZCP_RAM_BE_VAL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_nw64
Lloh21:
	adrp	x21, _ZCP_RAM_ACC@GOTPAGE
Lloh22:
	ldr	x21, [x21, _ZCP_RAM_ACC@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh23:
	adrp	x8, _ZCP_RAM_ACC_WRITE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ZCP_RAM_ACC_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_ZCP_RAM_SEL_CFIFO
Lloh26:
	adrp	x8, _ZCP_RAM_ACC_RAM_SEL_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ZCP_RAM_ACC_RAM_SEL_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w1, w8, w22
	mov	x0, x20
	bl	_nw64
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _ZCP_RAM_ACC_BUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ZCP_RAM_ACC_BUSY@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1000
	mov	w4, #100
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_niu_wait_bits_clear
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZCP_RAM_DATA0,4,2              ; @ZCP_RAM_DATA0
	.comm	_ZCP_RAM_DATA1,4,2              ; @ZCP_RAM_DATA1
	.comm	_ZCP_RAM_DATA2,4,2              ; @ZCP_RAM_DATA2
	.comm	_ZCP_RAM_DATA3,4,2              ; @ZCP_RAM_DATA3
	.comm	_ZCP_RAM_DATA4,4,2              ; @ZCP_RAM_DATA4
	.comm	_ZCP_RAM_BE,4,2                 ; @ZCP_RAM_BE
	.comm	_ZCP_RAM_BE_VAL,4,2             ; @ZCP_RAM_BE_VAL
	.comm	_ZCP_RAM_ACC,4,2                ; @ZCP_RAM_ACC
	.comm	_ZCP_RAM_ACC_WRITE,4,2          ; @ZCP_RAM_ACC_WRITE
	.comm	_ZCP_RAM_ACC_ZFCID_SHIFT,4,2    ; @ZCP_RAM_ACC_ZFCID_SHIFT
	.comm	_ZCP_RAM_ACC_RAM_SEL_SHIFT,4,2  ; @ZCP_RAM_ACC_RAM_SEL_SHIFT
	.comm	_ZCP_RAM_ACC_BUSY,4,2           ; @ZCP_RAM_ACC_BUSY
	.no_dead_strip	_niu_zcp_write
.subsections_via_symbols
