	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_tx_ring_one
_bnx2x_init_tx_ring_one:                ## @bnx2x_init_tx_ring_one
	.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, %r15
	movq	_NUM_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	80(%r15), %r14
	movq	_TX_DESC_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	72(%r15), %rdi
	callq	_U64_HI
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -8(%r13,%r14)
	movq	_BCM_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movl	%r12d, %eax
	cltd
	movq	_NUM_TX_RINGS@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	movslq	%edx, %rdi
	imulq	%rcx, %rdi
	addq	72(%r15), %rdi
	callq	_U64_LO
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -16(%r13,%r14)
	movq	_NUM_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r12d
	jl	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	64(%r15), %rcx
	movl	%eax, (%rcx)
	movl	56(%r15), %edi
	movq	_DOORBELL_HDR_DB_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_SET_FLAG
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movups	%xmm0, 16(%r15)
	movups	%xmm0, 32(%r15)
	movq	$0, 48(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_RINGS,4,2               ## @NUM_TX_RINGS
	.comm	_TX_DESC_CNT,4,2                ## @TX_DESC_CNT
	.comm	_BCM_PAGE_SIZE,4,2              ## @BCM_PAGE_SIZE
	.comm	_DOORBELL_HDR_DB_TYPE,4,2       ## @DOORBELL_HDR_DB_TYPE
	.no_dead_strip	_bnx2x_init_tx_ring_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_init_tx_ring_one
_bnx2x_init_tx_ring_one:                ; @bnx2x_init_tx_ring_one
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _NUM_TX_RINGS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUM_TX_RINGS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
Lloh2:
	adrp	x22, _TX_DESC_CNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TX_DESC_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, #72]
	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, #-8]
	ldr	x8, [x19, #72]
	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, #-16]
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	bl	_cpu_to_le16
	ldr	x8, [x19, #64]
	str	w0, [x8]
	ldr	w0, [x19, #56]
Lloh6:
	adrp	x8, _DOORBELL_HDR_DB_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOORBELL_HDR_DB_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_SET_FLAG
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	str	q0, [x19, #32]
	str	xzr, [x19, #48]
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_RINGS,4,2               ; @NUM_TX_RINGS
	.comm	_TX_DESC_CNT,4,2                ; @TX_DESC_CNT
	.comm	_BCM_PAGE_SIZE,4,2              ; @BCM_PAGE_SIZE
	.comm	_DOORBELL_HDR_DB_TYPE,4,2       ; @DOORBELL_HDR_DB_TYPE
	.no_dead_strip	_bnx2x_init_tx_ring_one
.subsections_via_symbols
