	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_init_all_rings
_bnx2_init_all_rings:                   ## @bnx2_init_all_rings
	.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, %r14
	callq	_bnx2_clear_ring_states
	movq	_BNX2_TSCH_TSS_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_BNX2_WR
	cmpl	$0, (%r14)
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bnx2_init_tx_ring
	incl	%ebx
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_1
## %bb.2:
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	shll	$24, %eax
	addl	$-16777216, %eax                ## imm = 0xFF000000
	movq	_TX_TSS_CID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$7, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	callq	_BNX2_WR
LBB0_4:
	movq	_BNX2_RLUP_RSS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_BNX2_WR
	movq	_BNX2_RXP_SCRATCH_RSS_TBL_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bnx2_reg_wr_ind
	cmpl	$0, 4(%r14)
	jle	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bnx2_init_rx_ring
	incl	%ebx
	movl	4(%r14), %edi
	cmpl	%edi, %ebx
	jl	LBB0_5
## %bb.6:
	cmpl	$2, %edi
	jl	LBB0_14
## %bb.7:
	movq	_BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_13
## %bb.8:
	xorl	%edx, %edx
	movl	$1, %r13d
	movq	_BNX2_RLUP_RSS_COMMAND_HASH_MASK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %r9d
	leal	-1(%r13), %ebx
	movl	%ebx, %esi
	andl	$7, %esi
	leal	(,%rsi,4), %ecx
	decl	%edi
	movl	%ebx, %eax
	cltd
	idivl	%edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%r9d, %edx
	cmpl	$7, %esi
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_BNX2_RLUP_RSS_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BNX2_WR
	movq	_BNX2_RLUP_RSS_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$3, %ebx
	movq	_BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BNX2_RLUP_RSS_COMMAND_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r15), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_BNX2_WR
	movl	(%r12), %r8d
	xorl	%edx, %edx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r8d, %r13d
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%r14), %edi
	incl	%r13d
	jmp	LBB0_9
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI@GOTPCREL(%rip), %rax
	movq	_BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_BNX2_RLUP_RSS_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNX2_WR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_TSCH_TSS_CFG,4,2          ## @BNX2_TSCH_TSS_CFG
	.comm	_TX_TSS_CID,4,2                 ## @TX_TSS_CID
	.comm	_BNX2_RLUP_RSS_CONFIG,4,2       ## @BNX2_RLUP_RSS_CONFIG
	.comm	_BNX2_RXP_SCRATCH_RSS_TBL_SZ,4,2 ## @BNX2_RXP_SCRATCH_RSS_TBL_SZ
	.comm	_BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES,4,2 ## @BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES
	.comm	_BNX2_RLUP_RSS_DATA,4,2         ## @BNX2_RLUP_RSS_DATA
	.comm	_BNX2_RLUP_RSS_COMMAND,4,2      ## @BNX2_RLUP_RSS_COMMAND
	.comm	_BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK,4,2 ## @BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK
	.comm	_BNX2_RLUP_RSS_COMMAND_WRITE,4,2 ## @BNX2_RLUP_RSS_COMMAND_WRITE
	.comm	_BNX2_RLUP_RSS_COMMAND_HASH_MASK,4,2 ## @BNX2_RLUP_RSS_COMMAND_HASH_MASK
	.comm	_BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI,4,2 ## @BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI
	.comm	_BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI,4,2 ## @BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI
	.no_dead_strip	_bnx2_init_all_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_init_all_rings
_bnx2_init_all_rings:                   ; @bnx2_init_all_rings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	bl	_bnx2_clear_ring_states
Lloh0:
	adrp	x21, _BNX2_TSCH_TSS_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BNX2_TSCH_TSS_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_BNX2_WR
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2_init_tx_ring
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.le	LBB0_5
; %bb.4:
	ldr	w1, [x21]
	mov	w9, #-16777216
	add	w8, w9, w8, lsl #24
Lloh2:
	adrp	x9, _TX_TSS_CID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TX_TSS_CID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w2, w8, w9, lsl #7
	mov	x0, x19
	bl	_BNX2_WR
LBB0_5:
Lloh5:
	adrp	x21, _BNX2_RLUP_RSS_CONFIG@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BNX2_RLUP_RSS_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_BNX2_WR
Lloh7:
	adrp	x8, _BNX2_RXP_SCRATCH_RSS_TBL_SZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2_RXP_SCRATCH_RSS_TBL_SZ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2_reg_wr_ind
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	w20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2_init_rx_ring
	add	w20, w20, #1
	ldr	w9, [x19, #4]
	cmp	w20, w9
	b.lt	LBB0_7
; %bb.8:
	cmp	w9, #2
	b.lt	LBB0_15
; %bb.9:
Lloh10:
	adrp	x20, _BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES@GOTPAGE
Lloh11:
	ldr	x20, [x20, _BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	w2, #0
	mov	w22, #1
Lloh12:
	adrp	x23, _BNX2_RLUP_RSS_DATA@GOTPAGE
Lloh13:
	ldr	x23, [x23, _BNX2_RLUP_RSS_DATA@GOTPAGEOFF]
Lloh14:
	adrp	x24, _BNX2_RLUP_RSS_COMMAND@GOTPAGE
Lloh15:
	ldr	x24, [x24, _BNX2_RLUP_RSS_COMMAND@GOTPAGEOFF]
Lloh16:
	adrp	x25, _BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK@GOTPAGEOFF]
Lloh18:
	adrp	x26, _BNX2_RLUP_RSS_COMMAND_WRITE@GOTPAGE
Lloh19:
	ldr	x26, [x26, _BNX2_RLUP_RSS_COMMAND_WRITE@GOTPAGEOFF]
Lloh20:
	adrp	x27, _BNX2_RLUP_RSS_COMMAND_HASH_MASK@GOTPAGE
Lloh21:
	ldr	x27, [x27, _BNX2_RLUP_RSS_COMMAND_HASH_MASK@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w28, w22, #1
	and	w10, w28, #0x7
	lsl	w11, w10, #2
	sub	w9, w9, #1
	sdiv	w12, w28, w9
	msub	w9, w12, w9, w28
	lsl	w9, w9, w11
	orr	w2, w9, w2
	cmp	w10, #7
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_BNX2_WR
	ldr	w1, [x24]
	ldr	w8, [x25]
	orr	w8, w8, w28, lsr #3
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_BNX2_WR
	mov	w2, #0
	ldr	w8, [x20]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w22, w8
	b.ge	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x19, #4]
	add	w22, w22, #1
	b	LBB0_11
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh22:
	adrp	x8, _BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_BNX2_WR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_TSCH_TSS_CFG,4,2          ; @BNX2_TSCH_TSS_CFG
	.comm	_TX_TSS_CID,4,2                 ; @TX_TSS_CID
	.comm	_BNX2_RLUP_RSS_CONFIG,4,2       ; @BNX2_RLUP_RSS_CONFIG
	.comm	_BNX2_RXP_SCRATCH_RSS_TBL_SZ,4,2 ; @BNX2_RXP_SCRATCH_RSS_TBL_SZ
	.comm	_BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES,4,2 ; @BNX2_RXP_SCRATCH_RSS_TBL_MAX_ENTRIES
	.comm	_BNX2_RLUP_RSS_DATA,4,2         ; @BNX2_RLUP_RSS_DATA
	.comm	_BNX2_RLUP_RSS_COMMAND,4,2      ; @BNX2_RLUP_RSS_COMMAND
	.comm	_BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK,4,2 ; @BNX2_RLUP_RSS_COMMAND_RSS_WRITE_MASK
	.comm	_BNX2_RLUP_RSS_COMMAND_WRITE,4,2 ; @BNX2_RLUP_RSS_COMMAND_WRITE
	.comm	_BNX2_RLUP_RSS_COMMAND_HASH_MASK,4,2 ; @BNX2_RLUP_RSS_COMMAND_HASH_MASK
	.comm	_BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI,4,2 ; @BNX2_RLUP_RSS_CONFIG_IPV4_RSS_TYPE_ALL_XI
	.comm	_BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI,4,2 ; @BNX2_RLUP_RSS_CONFIG_IPV6_RSS_TYPE_ALL_XI
	.no_dead_strip	_bnx2_init_all_rings
.subsections_via_symbols
