	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_sp_ring
_bnx2x_init_sp_ring:                    ## @bnx2x_init_sp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$44, %rdi
	callq	_spin_lock_init
	leaq	40(%rbx), %rdi
	movq	_MAX_SPQ_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	$0, 32(%rbx)
	movq	_BNX2X_SP_DSB_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, (%rbx)
	movq	_MAX_SP_DESC_CNT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SPQ_PENDING,4,2            ## @MAX_SPQ_PENDING
	.comm	_BNX2X_SP_DSB_INDEX,4,2         ## @BNX2X_SP_DSB_INDEX
	.comm	_MAX_SP_DESC_CNT,8,3            ## @MAX_SP_DESC_CNT
	.no_dead_strip	_bnx2x_init_sp_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_init_sp_ring
_bnx2x_init_sp_ring:                    ; @bnx2x_init_sp_ring
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #44
	bl	_spin_lock_init
	add	x0, x19, #40
Lloh0:
	adrp	x8, _MAX_SPQ_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SPQ_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_atomic_set
	str	xzr, [x19, #32]
Lloh3:
	adrp	x8, _BNX2X_SP_DSB_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_SP_DSB_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	str	x8, [x19]
Lloh6:
	adrp	x9, _MAX_SP_DESC_CNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_SP_DESC_CNT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SPQ_PENDING,4,2            ; @MAX_SPQ_PENDING
	.comm	_BNX2X_SP_DSB_INDEX,4,2         ; @BNX2X_SP_DSB_INDEX
	.comm	_MAX_SP_DESC_CNT,8,3            ; @MAX_SP_DESC_CNT
	.no_dead_strip	_bnx2x_init_sp_ring
.subsections_via_symbols
