	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_update_sge_prod
_bnx2x_update_sge_prod:                 ## @bnx2x_update_sge_prod
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r13
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_RX_SGE
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_BIT_VEC64_CLEAR_BIT
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
## %bb.3:
	movq	_NETIF_MSG_RX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-1(%r12), %r13
	movq	(%r15), %rax
	movl	-4(%rax,%r12,4), %edi
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_DP
	movq	16(%r14), %rdi
	callq	_prefetch
	movq	(%r15), %rax
	movl	-4(%rax,%r12,4), %edi
	callq	_le16_to_cpu
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bnx2x_update_last_max_sge
	movq	(%r14), %rdi
	callq	_RX_SGE
	movq	%rax, %r15
	movq	_BIT_VEC64_ELEM_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shrq	%cl, %r15
	movq	8(%r14), %rdi
	callq	_RX_SGE
	movq	%rax, %rbx
	movb	(%r12), %cl
	shrq	%cl, %rbx
	leaq	1(%r15), %rax
	cmpq	%rbx, %rax
	cmovneq	%rax, %r15
	cmpq	%r15, %rbx
	je	LBB0_9
## %bb.4:
	xorl	%r12d, %r12d
	movq	_BIT_VEC64_ELEM_SZ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_BIT_VEC64_ELEM_ONE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	addq	(%r13), %r12
	movq	%rbx, %rdi
	callq	_NEXT_SGE_MASK_ELEM
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jne	LBB0_5
LBB0_7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	addq	%r12, 8(%r14)
	movq	%r14, %rdi
	callq	_bnx2x_clear_sge_mask_next_elems
LBB0_9:
	movq	_NETIF_MSG_RX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_10:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_RX_STATUS,4,2        ## @NETIF_MSG_RX_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fp_cqe->sgl[%d] = %d\n"

	.comm	_BIT_VEC64_ELEM_SHIFT,8,3       ## @BIT_VEC64_ELEM_SHIFT
	.comm	_BIT_VEC64_ELEM_ONE_MASK,4,2    ## @BIT_VEC64_ELEM_ONE_MASK
	.comm	_BIT_VEC64_ELEM_SZ,8,3          ## @BIT_VEC64_ELEM_SZ
L_.str.1:                               ## @.str.1
	.asciz	"fp->last_max_sge = %d  fp->rx_sge_prod = %d\n"

	.no_dead_strip	_bnx2x_update_sge_prod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_update_sge_prod
_bnx2x_update_sge_prod:                 ; @bnx2x_update_sge_prod
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_10
; %bb.1:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #16]
	ldr	x8, [x20]
	ldr	w0, [x8, x23, lsl #2]
	bl	_le16_to_cpu
	bl	_RX_SGE
	mov	x1, x0
	mov	x0, x22
	bl	_BIT_VEC64_CLEAR_BIT
	add	x23, x23, #1
	cmp	x21, x23
	b.ne	LBB0_2
; %bb.3:
Lloh0:
	adrp	x23, _NETIF_MSG_RX_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETIF_MSG_RX_STATUS@GOTPAGEOFF]
	ldr	w22, [x23]
	sub	x21, x21, #1
	ldr	x8, [x20]
	lsl	x24, x21, #2
	ldr	w0, [x8, x24]
	bl	_le16_to_cpu
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_DP
	ldr	x0, [x19, #16]
	bl	_prefetch
	ldr	x8, [x20]
	ldr	w0, [x8, x24]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_bnx2x_update_last_max_sge
	ldr	x0, [x19]
	bl	_RX_SGE
Lloh4:
	adrp	x20, _BIT_VEC64_ELEM_SHIFT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _BIT_VEC64_ELEM_SHIFT@GOTPAGEOFF]
	ldr	x8, [x20]
	lsr	x21, x0, x8
	ldr	x0, [x19, #8]
	bl	_RX_SGE
	ldr	x8, [x20]
	lsr	x20, x0, x8
	add	x8, x21, #1
	cmp	x8, x20
	cinc	x22, x21, ne
	cmp	x20, x22
	b.eq	LBB0_9
; %bb.4:
	mov	x21, #0
Lloh6:
	adrp	x24, _BIT_VEC64_ELEM_ONE_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BIT_VEC64_ELEM_ONE_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x25, _BIT_VEC64_ELEM_SZ@GOTPAGE
Lloh9:
	ldr	x25, [x25, _BIT_VEC64_ELEM_SZ@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x20, lsl #2]
	bl	_likely
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	ldr	x9, [x19, #16]
	str	w8, [x9, x20, lsl #2]
	ldr	x8, [x25]
	add	x21, x8, x21
	mov	x0, x20
	bl	_NEXT_SGE_MASK_ELEM
	mov	x20, x0
	cmp	x0, x22
	b.ne	LBB0_5
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_bnx2x_clear_sge_mask_next_elems
LBB0_9:
	ldr	w0, [x23]
	ldp	x2, x3, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DP
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_RX_STATUS,4,2        ; @NETIF_MSG_RX_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fp_cqe->sgl[%d] = %d\n"

	.comm	_BIT_VEC64_ELEM_SHIFT,8,3       ; @BIT_VEC64_ELEM_SHIFT
	.comm	_BIT_VEC64_ELEM_ONE_MASK,4,2    ; @BIT_VEC64_ELEM_ONE_MASK
	.comm	_BIT_VEC64_ELEM_SZ,8,3          ; @BIT_VEC64_ELEM_SZ
l_.str.1:                               ; @.str.1
	.asciz	"fp->last_max_sge = %d  fp->rx_sge_prod = %d\n"

	.no_dead_strip	_bnx2x_update_sge_prod
.subsections_via_symbols
