	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_reuse_rx_agg_bufs
_bnxt_reuse_rx_agg_bufs:                ## @bnxt_reuse_rx_agg_bufs
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	8(%rax), %rdx
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r12
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	testl	%ecx, (%rdx)
	setne	%cl
	testl	%r8d, %r8d
	setne	%dl
	testq	%r15, %r15
	jle	LBB0_9
## %bb.1:
	andb	%cl, %dl
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_bnxt_find_next_agg_idx
	movq	%rax, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r13), %esi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	___set_bit
	movq	24(%r13), %r15
	shlq	$4, %r14
	movq	8(%r15,%r14), %rax
	movq	$0, 8(%r15,%r14)
	shlq	$4, %rbx
	movq	%rax, 8(%r15,%rbx)
	movl	4(%r15,%r14), %eax
	movl	%eax, 4(%r15,%rbx)
	movl	(%r15,%r14), %eax
	movl	%eax, (%r15,%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_RX_RING
	movq	(%r13,%rax,8), %r12
	movq	%rbx, %rdi
	callq	_RX_IDX
	movq	%rax, %r13
	movl	(%r15,%r14), %edi
	callq	_cpu_to_le64
	shlq	$4, %r13
	movl	%eax, 8(%r12,%r13)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%r12,%r13)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_NEXT_RX_AGG
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_NEXT_RX_AGG
	movq	%rax, %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	decq	%r15
	movzbl	-41(%rbp), %edx                 ## 1-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	%dl, %dl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_bnxt_get_tpa_agg_p5
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_bnxt_get_agg
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %r14
	movl	32(%r13), %esi
	movq	%r14, %rdi
	callq	___clear_bit
	movl	32(%r13), %esi
	movq	%r12, %rdi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	jmp	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%r13)
	movq	%r12, 8(%r13)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.no_dead_strip	_bnxt_reuse_rx_agg_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_reuse_rx_agg_bufs
_bnxt_reuse_rx_agg_bufs:                ; @bnxt_reuse_rx_agg_bufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
	ldr	x8, [x0]
	ldp	x19, x25, [x8]
	ldp	x24, x26, [x19]
Lloh0:
	adrp	x8, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	ccmp	w4, #0, #4, ne
	cset	w28, ne
	cmp	x3, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x19, #32]
	mov	x0, x26
	bl	___set_bit
	ldp	x23, x8, [x19, #16]
	add	x22, x8, x27, lsl #4
	ldr	x9, [x22, #8]
	str	xzr, [x22, #8]
	add	x8, x8, x26, lsl #4
	str	x9, [x8, #8]
	ldr	d0, [x22]
	str	d0, [x8]
	mov	x0, x24
	bl	_RX_RING
	ldr	x23, [x23, x0, lsl #3]
	mov	x0, x24
	bl	_RX_IDX
	mov	x27, x0
	ldr	w0, [x22]
	bl	_cpu_to_le64
	add	x8, x23, x27, lsl #4
	str	w0, [x8, #8]
	str	x26, [x8]
	mov	x0, x24
	bl	_NEXT_RX_AGG
	mov	x24, x0
	mov	x0, x26
	bl	_NEXT_RX_AGG
	mov	x26, x0
	add	x21, x21, #1
	subs	x20, x20, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	cbz	w28, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x21
	bl	_bnxt_get_tpa_agg_p5
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x1, x2, [sp]                    ; 16-byte Folded Reload
	mov	x3, x21
	bl	_bnxt_get_agg
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [x0]
	ldr	w1, [x19, #32]
	mov	x0, x27
	bl	___clear_bit
	ldr	w1, [x19, #32]
	mov	x0, x26
	bl	_test_bit
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_bnxt_find_next_agg_idx
	mov	x26, x0
	b	LBB0_2
LBB0_8:
	stp	x24, x26, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.no_dead_strip	_bnxt_reuse_rx_agg_bufs
.subsections_via_symbols
