	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_disable_ipp
_niu_disable_ipp:                       ## @niu_disable_ipp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IPP_DFIFO_RD_PTR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_nr64_ipp
	movq	%rax, %rbx
	movq	_IPP_DFIFO_WR_PTR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_nr64_ipp
	cmpq	%rax, %rbx
	je	LBB0_8
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$100, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r14d
	leal	-1(%r14), %r15d
	movl	(%r12), %edi
	callq	_nr64_ipp
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_nr64_ipp
	cmpl	$1, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %rbx
	jne	LBB0_2
LBB0_4:
	testl	%r15d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	cmpq	$1, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r14), %r15d
	movl	(%r12), %edi
	callq	_nr64_ipp
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_nr64_ipp
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_netdev_err
LBB0_8:
	movq	_IPP_CFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nr64_ipp
	movq	_IPP_CFIG_IPP_ENABLE@GOTPCREL(%rip), %rcx
	movq	_IPP_CFIG_DFIFO_ECC_EN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	orq	(%rcx), %rsi
	movq	_IPP_CFIG_DROP_BAD_CRC@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rsi
	movq	_IPP_CFIG_CKSUM_EN@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rsi
	notq	%rsi
	andq	%rax, %rsi
	movl	(%rbx), %edi
	callq	_nw64_ipp
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_niu_ipp_reset                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPP_DFIFO_RD_PTR,4,2           ## @IPP_DFIFO_RD_PTR
	.comm	_IPP_DFIFO_WR_PTR,4,2           ## @IPP_DFIFO_WR_PTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPP would not quiesce, rd_ptr[%llx] wr_ptr[%llx]\n"

	.comm	_IPP_CFIG,4,2                   ## @IPP_CFIG
	.comm	_IPP_CFIG_IPP_ENABLE,8,3        ## @IPP_CFIG_IPP_ENABLE
	.comm	_IPP_CFIG_DFIFO_ECC_EN,8,3      ## @IPP_CFIG_DFIFO_ECC_EN
	.comm	_IPP_CFIG_DROP_BAD_CRC,8,3      ## @IPP_CFIG_DROP_BAD_CRC
	.comm	_IPP_CFIG_CKSUM_EN,8,3          ## @IPP_CFIG_CKSUM_EN
	.no_dead_strip	_niu_disable_ipp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_disable_ipp
_niu_disable_ipp:                       ; @niu_disable_ipp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _IPP_DFIFO_RD_PTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IPP_DFIFO_RD_PTR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_nr64_ipp
	mov	x20, x0
Lloh2:
	adrp	x22, _IPP_DFIFO_WR_PTR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IPP_DFIFO_WR_PTR@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_nr64_ipp
	cmp	x20, x0
	b.eq	LBB0_7
; %bb.1:
	mov	w23, #100
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_nr64_ipp
	mov	x20, x0
	ldr	w0, [x22]
	bl	_nr64_ipp
	subs	w23, w23, #1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, x0
	b.ne	LBB0_2
LBB0_4:
	cbnz	w23, LBB0_7
; %bb.5:
	cmp	x20, #0
	ccmp	x0, #1, #4, ne
	b.eq	LBB0_7
; %bb.6:
	ldr	w20, [x19]
	ldr	w0, [x21]
	bl	_nr64_ipp
	mov	x21, x0
	ldr	w0, [x22]
	bl	_nr64_ipp
	mov	x3, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_err
LBB0_7:
Lloh6:
	adrp	x20, _IPP_CFIG@GOTPAGE
Lloh7:
	ldr	x20, [x20, _IPP_CFIG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_nr64_ipp
Lloh8:
	adrp	x8, _IPP_CFIG_IPP_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPP_CFIG_IPP_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _IPP_CFIG_DFIFO_ECC_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IPP_CFIG_DFIFO_ECC_EN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh14:
	adrp	x9, _IPP_CFIG_DROP_BAD_CRC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPP_CFIG_DROP_BAD_CRC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh17:
	adrp	x9, _IPP_CFIG_CKSUM_EN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPP_CFIG_CKSUM_EN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	orr	x8, x8, x9
	bic	x1, x0, x8
	ldr	w0, [x20]
	bl	_nw64_ipp
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_niu_ipp_reset
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IPP_DFIFO_RD_PTR,4,2           ; @IPP_DFIFO_RD_PTR
	.comm	_IPP_DFIFO_WR_PTR,4,2           ; @IPP_DFIFO_WR_PTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPP would not quiesce, rd_ptr[%llx] wr_ptr[%llx]\n"

	.comm	_IPP_CFIG,4,2                   ; @IPP_CFIG
	.comm	_IPP_CFIG_IPP_ENABLE,8,3        ; @IPP_CFIG_IPP_ENABLE
	.comm	_IPP_CFIG_DFIFO_ECC_EN,8,3      ; @IPP_CFIG_DFIFO_ECC_EN
	.comm	_IPP_CFIG_DROP_BAD_CRC,8,3      ; @IPP_CFIG_DROP_BAD_CRC
	.comm	_IPP_CFIG_CKSUM_EN,8,3          ; @IPP_CFIG_CKSUM_EN
	.no_dead_strip	_niu_disable_ipp
.subsections_via_symbols
