	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_init_bnx2x_rx_ring
_cnic_init_bnx2x_rx_ring:               ## @cnic_init_bnx2x_rx_ring
	.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	%rsi, %r12
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	callq	_netdev_priv
	movq	40(%r13), %r15
	movq	8(%r15), %rdx
	movq	_BNX2_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rcx), %r14
	movq	24(%r13), %rcx
	movq	32(%r13), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_BNX2X_CL_QZONE_ID
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, 88(%r12)
	movl	$1, 92(%r12)
	movl	%ebx, 96(%r12)
	movl	(%r13), %edi
	addl	$-14, %edi
	callq	_cpu_to_le16
	movq	%r13, %rcx
	movq	%rax, 104(%r12)
	movl	20(%r13), %eax
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	%eax, 100(%r12)
	movq	_BNX2X_MAX_RX_DESC_CNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	cltd
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	idivl	4(%rcx)
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %ebx
	imull	(%rcx), %ebx
	addl	4(%r13), %ebx
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	incl	%r12d
	addq	$16, %r14
	cmpl	(%r15), %r12d
	jl	LBB0_2
LBB0_3:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,2), %r15
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	callq	_cpu_to_le32
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%rax, 80(%r12)
	movq	_BNX2_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	addl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 72(%r12)
	movq	_BNX2X_MAX_RCQ_DESC_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	callq	_cpu_to_le32
	shlq	$4, %rbx
	movq	%rax, 8(%rbx,%r15)
	callq	_cpu_to_le32
	movq	%rax, 64(%r12)
	movq	_BNX2_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r13,%rax,2), %r14d
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%rbx,%r15)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	_HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 8(%r12)
	movq	_BNX2X_DEF_SB_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_L1_CACHE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r12)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r12)
	movq	$0, 32(%r12)
	movl	$65535, 24(%r12)                ## imm = 0xFFFF
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%rdx, 8(%rbx)
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 16(%rbx)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PAGE_SIZE,4,2             ## @BNX2_PAGE_SIZE
	.comm	_BNX2X_MAX_RX_DESC_CNT,4,2      ## @BNX2X_MAX_RX_DESC_CNT
	.comm	_BNX2X_MAX_RCQ_DESC_CNT,4,2     ## @BNX2X_MAX_RCQ_DESC_CNT
	.comm	_HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS,8,3 ## @HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS
	.comm	_BNX2X_DEF_SB_ID,4,2            ## @BNX2X_DEF_SB_ID
	.comm	_L1_CACHE_SHIFT,4,2             ## @L1_CACHE_SHIFT
	.no_dead_strip	_cnic_init_bnx2x_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_init_bnx2x_rx_ring
_cnic_init_bnx2x_rx_ring:               ; @cnic_init_bnx2x_rx_ring
	.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
	mov	x19, x1
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	bl	_netdev_priv
	ldr	x23, [x22, #40]
Lloh0:
	adrp	x8, _BNX2_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_PAGE_SIZE@GOTPAGEOFF]
	ldr	x27, [x23, #8]
Lloh2:
	ldrsw	x28, [x8]
	add	x26, x27, x28
	ldr	x8, [x22, #32]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x22, #24]
	ldr	w21, [x8]
	mov	x1, x21
	bl	_BNX2X_CL_QZONE_ID
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w25, [x23]
	mov	w8, #1
	stp	w21, w8, [x19, #88]
	str	w21, [x19, #96]
	ldr	w8, [x22]
	sub	w0, w8, #14
	bl	_cpu_to_le16
	str	x0, [x19, #104]
	ldr	w8, [x22, #20]
	str	w8, [x19, #100]
Lloh3:
	adrp	x20, _BNX2X_MAX_RX_DESC_CNT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BNX2X_MAX_RX_DESC_CNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w8, [x22]
	sdiv	w10, w24, w8
	msub	w8, w10, w8, w24
	ldr	w10, [x23, #4]
	madd	w8, w9, w8, w9
	add	w21, w8, w10
	bl	_cpu_to_le32
	str	x0, [x26, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x26], #16
	add	w24, w24, #1
	ldr	w8, [x20]
	cmp	w24, w8
	b.lt	LBB0_2
LBB0_3:
	add	x20, x27, x28, lsl #1
	bl	_cpu_to_le32
	str	x0, [x26, #8]
	bl	_cpu_to_le32
	str	x0, [x19, #80]
Lloh5:
	adrp	x23, _BNX2_PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BNX2_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w21, w8, w25
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x26]
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x19, #72]
Lloh7:
	adrp	x8, _BNX2X_MAX_RCQ_DESC_CNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2X_MAX_RCQ_DESC_CNT@GOTPAGEOFF]
Lloh9:
	ldrsw	x21, [x8]
	bl	_cpu_to_le32
	add	x20, x20, x21, lsl #4
	str	x0, [x20, #8]
	bl	_cpu_to_le32
	str	x0, [x19, #64]
	ldr	w8, [x23]
	add	w21, w25, w8, lsl #1
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x20]
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x19, #56]
Lloh10:
	adrp	x20, _HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS@GOTPAGE
Lloh11:
	ldr	x20, [x20, _HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS@GOTPAGEOFF]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	str	w8, [x19]
	ldr	x8, [x20]
	str	x8, [x19, #8]
Lloh12:
	adrp	x8, _BNX2X_DEF_SB_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_DEF_SB_ID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _L1_CACHE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _L1_CACHE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	ldr	w0, [x22]
	bl	_cpu_to_le16
	movi.2s	v0, #1
	str	d0, [x19, #16]
	stp	xzr, x0, [x19, #32]
	mov	w8, #65535
	str	w8, [x19, #24]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #2
	str	x8, [x22, #8]
	ldr	w8, [x8]
	str	w8, [x22, #16]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PAGE_SIZE,4,2             ; @BNX2_PAGE_SIZE
	.comm	_BNX2X_MAX_RX_DESC_CNT,4,2      ; @BNX2X_MAX_RX_DESC_CNT
	.comm	_BNX2X_MAX_RCQ_DESC_CNT,4,2     ; @BNX2X_MAX_RCQ_DESC_CNT
	.comm	_HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS,8,3 ; @HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS
	.comm	_BNX2X_DEF_SB_ID,4,2            ; @BNX2X_DEF_SB_ID
	.comm	_L1_CACHE_SHIFT,4,2             ; @L1_CACHE_SHIFT
	.no_dead_strip	_cnic_init_bnx2x_rx_ring
.subsections_via_symbols
