	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_storm_stats_post
_bnx2x_storm_stats_post:                ## @bnx2x_storm_stats_post
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.2:
	movl	24(%rbx), %edi
	leal	1(%rdi), %eax
	movl	%eax, 24(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_BNX2X_MSG_STATS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DP
	movq	%rbx, %rdi
	callq	_bnx2x_iov_adjust_stats_req
	movq	%rbx, %rdi
	callq	_bnx2x_dp_stats
	movq	_RAMROD_CMD_ID_COMMON_STAT_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_U64_HI
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_U64_LO
	movq	_NONE_CONNECTION_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_bnx2x_sp_post
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_STATS,4,2            ## @BNX2X_MSG_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending statistics ramrod %d\n"

	.comm	_RAMROD_CMD_ID_COMMON_STAT_QUERY,4,2 ## @RAMROD_CMD_ID_COMMON_STAT_QUERY
	.comm	_NONE_CONNECTION_TYPE,4,2       ## @NONE_CONNECTION_TYPE
	.no_dead_strip	_bnx2x_storm_stats_post
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_storm_stats_post
_bnx2x_storm_stats_post:                ; @bnx2x_storm_stats_post
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w0, [x19, #24]
	add	w8, w0, #1
	str	w8, [x19, #24]
	bl	_cpu_to_le16
	mov	x2, x0
	ldr	x8, [x19, #16]
	str	w0, [x8]
Lloh0:
	adrp	x8, _BNX2X_MSG_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	x0, x19
	bl	_bnx2x_iov_adjust_stats_req
	mov	x0, x19
	bl	_bnx2x_dp_stats
Lloh5:
	adrp	x8, _RAMROD_CMD_ID_COMMON_STAT_QUERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RAMROD_CMD_ID_COMMON_STAT_QUERY@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_U64_HI
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_U64_LO
	mov	x4, x0
Lloh8:
	adrp	x8, _NONE_CONNECTION_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NONE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_bnx2x_sp_post
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_STATS,4,2            ; @BNX2X_MSG_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending statistics ramrod %d\n"

	.comm	_RAMROD_CMD_ID_COMMON_STAT_QUERY,4,2 ; @RAMROD_CMD_ID_COMMON_STAT_QUERY
	.comm	_NONE_CONNECTION_TYPE,4,2       ; @NONE_CONNECTION_TYPE
	.no_dead_strip	_bnx2x_storm_stats_post
.subsections_via_symbols
