	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_next_page_sgl
_bnx2x_set_next_page_sgl:               ## @bnx2x_set_next_page_sgl
	.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	_NUM_RX_SGE_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	8(%r15), %r14
	movq	_RX_SGE_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movslq	%ebx, %r12
	imulq	%r12, %r13
	shlq	$4, %r13
	movq	_BCM_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movslq	%edx, %rdi
	imulq	%rsi, %rdi
	addq	(%r15), %rdi
	callq	_U64_HI
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -24(%r13,%r14)
	movq	_BCM_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movl	%r12d, %eax
	cltd
	movq	_NUM_RX_SGE_PAGES@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	movslq	%edx, %rdi
	imulq	%rcx, %rdi
	addq	(%r15), %rdi
	callq	_U64_LO
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -32(%r13,%r14)
	movq	_NUM_RX_SGE_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r12d
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_RX_SGE_PAGES,4,2           ## @NUM_RX_SGE_PAGES
	.comm	_RX_SGE_CNT,4,2                 ## @RX_SGE_CNT
	.comm	_BCM_PAGE_SIZE,4,2              ## @BCM_PAGE_SIZE
	.no_dead_strip	_bnx2x_set_next_page_sgl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_next_page_sgl
_bnx2x_set_next_page_sgl:               ; @bnx2x_set_next_page_sgl
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x20, _NUM_RX_SGE_PAGES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUM_RX_SGE_PAGES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w21, #0
Lloh2:
	adrp	x22, _RX_SGE_CNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RX_SGE_CNT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _BCM_PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BCM_PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	ldrsw	x9, [x22]
	sxtw	x10, w21
	mul	x24, x9, x10
	ldp	x9, x25, [x19]
	ldrsw	x10, [x23]
	sdiv	w11, w21, w8
	msub	w8, w11, w8, w21
	sxtw	x8, w8
	madd	x0, x8, x10, x9
	bl	_U64_HI
	bl	_cpu_to_le32
	add	x24, x25, x24, lsl #4
	stur	x0, [x24, #-24]
	ldr	x8, [x19]
	ldrsw	x9, [x23]
	ldr	w10, [x20]
	sdiv	w11, w21, w10
	msub	w10, w11, w10, w21
	sxtw	x10, w10
	madd	x0, x10, x9, x8
	bl	_U64_LO
	bl	_cpu_to_le32
	stur	x0, [x24, #-32]
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_RX_SGE_PAGES,4,2           ; @NUM_RX_SGE_PAGES
	.comm	_RX_SGE_CNT,4,2                 ; @RX_SGE_CNT
	.comm	_BCM_PAGE_SIZE,4,2              ; @BCM_PAGE_SIZE
	.no_dead_strip	_bnx2x_set_next_page_sgl
.subsections_via_symbols
