	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_hfb_clear
_bcmgenet_hfb_clear:                    ## @bcmgenet_hfb_clear
	.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	%rdi, %r14
	movq	_HFB_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_bcmgenet_hfb_reg_writel
	movq	_HFB_FLT_ENABLE_V3PLUS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bcmgenet_hfb_reg_writel
	movq	(%rbx), %rdx
	addq	$4, %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bcmgenet_hfb_reg_writel
	movq	_DMA_INDEX2RING_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DMA_INDEX2RING_7@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jg	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_bcmgenet_rdma_writel
	leal	1(%rbx), %eax
	cmpl	(%r15), %ebx
	movl	%eax, %ebx
	jl	LBB0_8
LBB0_1:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$4, %ecx
	jl	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	movq	_HFB_FLT_LEN_V3PLUS@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	addq	%r12, %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bcmgenet_hfb_reg_writel
	incq	%rbx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	addq	$4, %r12
	cmpq	%rdx, %rbx
	jl	LBB0_3
LBB0_4:
	imull	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_bcmgenet_hfb_writel
	incl	%ebx
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	imull	(%rax), %ecx
	addl	$4, %r15d
	cmpl	%ecx, %ebx
	jl	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFB_CTRL,8,3                   ## @HFB_CTRL
	.comm	_HFB_FLT_ENABLE_V3PLUS,8,3      ## @HFB_FLT_ENABLE_V3PLUS
	.comm	_DMA_INDEX2RING_0,4,2           ## @DMA_INDEX2RING_0
	.comm	_DMA_INDEX2RING_7,4,2           ## @DMA_INDEX2RING_7
	.comm	_HFB_FLT_LEN_V3PLUS,8,3         ## @HFB_FLT_LEN_V3PLUS
	.no_dead_strip	_bcmgenet_hfb_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_hfb_clear
_bcmgenet_hfb_clear:                    ; @bcmgenet_hfb_clear
	.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	x19, x0
Lloh0:
	adrp	x8, _HFB_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFB_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	mov	w1, #0
	bl	_bcmgenet_hfb_reg_writel
Lloh3:
	adrp	x20, _HFB_FLT_ENABLE_V3PLUS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HFB_FLT_ENABLE_V3PLUS@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_bcmgenet_hfb_reg_writel
	ldr	x8, [x20]
	add	x2, x8, #4
	mov	x0, x19
	mov	w1, #0
	bl	_bcmgenet_hfb_reg_writel
Lloh5:
	adrp	x8, _DMA_INDEX2RING_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_INDEX2RING_0@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x21, _DMA_INDEX2RING_7@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DMA_INDEX2RING_7@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_bcmgenet_rdma_writel
	add	w8, w20, #1
	ldr	w9, [x21]
	cmp	w20, w9
	mov	x20, x8
	b.lt	LBB0_1
LBB0_2:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #4
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	x21, #0
Lloh10:
	adrp	x22, _HFB_FLT_LEN_V3PLUS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _HFB_FLT_LEN_V3PLUS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x2, x20, x8
	mov	x0, x19
	mov	w1, #0
	bl	_bcmgenet_hfb_reg_writel
	add	x21, x21, #1
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w10, w10, #2
	add	x20, x20, #4
	cmp	x21, w10, sxtw
	b.lt	LBB0_4
LBB0_5:
	ldr	w8, [x8, #4]
	mul	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w20, #0
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_bcmgenet_hfb_writel
	add	w21, w21, #1
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	mul	w8, w8, w9
	add	w20, w20, #4
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_8:
	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
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HFB_CTRL,8,3                   ; @HFB_CTRL
	.comm	_HFB_FLT_ENABLE_V3PLUS,8,3      ; @HFB_FLT_ENABLE_V3PLUS
	.comm	_DMA_INDEX2RING_0,4,2           ; @DMA_INDEX2RING_0
	.comm	_DMA_INDEX2RING_7,4,2           ; @DMA_INDEX2RING_7
	.comm	_HFB_FLT_LEN_V3PLUS,8,3         ; @HFB_FLT_LEN_V3PLUS
	.no_dead_strip	_bcmgenet_hfb_clear
.subsections_via_symbols
