	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_alloc_stats_blk
_bnx2_alloc_stats_blk:                  ## @bnx2_alloc_stats_blk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_L1_CACHE_ALIGN
	movl	%eax, %r14d
	movq	_BNX2_FLAG_MSIX_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_BNX2_MAX_MSIX_HW_VEC@GOTPCREL(%rip), %rax
	movq	_BNX2_SBLK_MSIX_ALIGN_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	(%rax), %edi
	callq	_L1_CACHE_ALIGN
	movl	%eax, %r14d
LBB0_2:
	leal	4(%r14), %esi
	movl	%esi, 4(%rbx)
	movq	40(%rbx), %rdi
	movq	%rbx, %rdx
	addq	$8, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movslq	%r14d, %rcx
	movq	%rax, 32(%rbx)
	addq	%rcx, %rax
	movq	%rax, 24(%rbx)
	addq	8(%rbx), %rcx
	movq	%rcx, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_FLAG_MSIX_CAP,4,2         ## @BNX2_FLAG_MSIX_CAP
	.comm	_BNX2_MAX_MSIX_HW_VEC,4,2       ## @BNX2_MAX_MSIX_HW_VEC
	.comm	_BNX2_SBLK_MSIX_ALIGN_SIZE,4,2  ## @BNX2_SBLK_MSIX_ALIGN_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_bnx2_alloc_stats_blk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_alloc_stats_blk
_bnx2_alloc_stats_blk:                  ; @bnx2_alloc_stats_blk
	.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
	bl	_netdev_priv
	mov	x19, x0
	mov	w0, #4
	bl	_L1_CACHE_ALIGN
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BNX2_FLAG_MSIX_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_FLAG_MSIX_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BNX2_MAX_MSIX_HW_VEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_MAX_MSIX_HW_VEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BNX2_SBLK_MSIX_ALIGN_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNX2_SBLK_MSIX_ALIGN_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w0, w9, w8
	bl	_L1_CACHE_ALIGN
LBB0_2:
	mov	x20, x0
	add	w1, w0, #4
	str	w1, [x19, #4]
	ldr	x0, [x19, #40]
	add	x2, x19, #8
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	sxtw	x9, w20
	str	x8, [x19, #32]
	add	x8, x8, x9
	ldr	x10, [x19, #8]
	add	x9, x10, x9
	stp	x9, x8, [x19, #16]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_FLAG_MSIX_CAP,4,2         ; @BNX2_FLAG_MSIX_CAP
	.comm	_BNX2_MAX_MSIX_HW_VEC,4,2       ; @BNX2_MAX_MSIX_HW_VEC
	.comm	_BNX2_SBLK_MSIX_ALIGN_SIZE,4,2  ; @BNX2_SBLK_MSIX_ALIGN_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_bnx2_alloc_stats_blk
.subsections_via_symbols
