	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_update_pfc_stats_bitmap ## -- Begin function mlx4_en_update_pfc_stats_bitmap
	.p2align	4, 0x90
_mlx4_en_update_pfc_stats_bitmap:       ## @mlx4_en_update_pfc_stats_bitmap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NUM_MAIN_STATS@GOTPCREL(%rip), %rax
	movq	_NUM_PORT_STATS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	addl	(%rax), %ebx
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_NUM_PF_STATS@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	callq	_mlx4_is_slave
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r14), %edi
	movq	_NUM_FLOW_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_bitmap_clear
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	movq	_NUM_FLOW_PRIORITY_STATS_RX@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movl	%ebx, %esi
	callq	_bitmap_set
	addl	(%r15), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_NUM_FLOW_PRIORITY_STATS_RX@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movl	4(%r14), %edi
	movq	_NUM_FLOW_STATS_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%ebx, %esi
	callq	_bitmap_set
LBB0_6:
	movq	_NUM_FLOW_STATS_RX@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	_NUM_FLOW_PRIORITY_STATS_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.9:
	movq	_NUM_FLOW_PRIORITY_STATS_TX@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_NUM_FLOW_STATS_TX@GOTPCREL(%rip), %rax
LBB0_10:
	movl	4(%r14), %edi
	movq	(%rax), %rdx
	movl	%ebx, %esi
	callq	_bitmap_set
LBB0_11:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_MAIN_STATS,4,2             ## @NUM_MAIN_STATS
	.comm	_NUM_PORT_STATS,4,2             ## @NUM_PORT_STATS
	.comm	_NUM_PF_STATS,4,2               ## @NUM_PF_STATS
	.comm	_MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN,4,2 ## @MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN
	.comm	_NUM_FLOW_STATS,4,2             ## @NUM_FLOW_STATS
	.comm	_NUM_FLOW_PRIORITY_STATS_RX,8,3 ## @NUM_FLOW_PRIORITY_STATS_RX
	.comm	_NUM_FLOW_STATS_RX,8,3          ## @NUM_FLOW_STATS_RX
	.comm	_NUM_FLOW_PRIORITY_STATS_TX,8,3 ## @NUM_FLOW_PRIORITY_STATS_TX
	.comm	_NUM_FLOW_STATS_TX,8,3          ## @NUM_FLOW_STATS_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_update_pfc_stats_bitmap ; -- Begin function mlx4_en_update_pfc_stats_bitmap
	.p2align	2
_mlx4_en_update_pfc_stats_bitmap:       ; @mlx4_en_update_pfc_stats_bitmap
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _NUM_MAIN_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_MAIN_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _NUM_PORT_STATS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_PORT_STATS@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _NUM_PF_STATS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_PF_STATS@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	bl	_mlx4_is_slave
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	ldr	w8, [x24]
Lloh9:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	add	w8, w26, w25
	add	w24, w8, w27
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x8, _NUM_FLOW_STATS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NUM_FLOW_STATS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_bitmap_clear
Lloh15:
	adrp	x25, _NUM_FLOW_STATS_RX@GOTPAGE
Lloh16:
	ldr	x25, [x25, _NUM_FLOW_STATS_RX@GOTPAGEOFF]
	cbz	x23, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
Lloh17:
	adrp	x22, _NUM_FLOW_PRIORITY_STATS_RX@GOTPAGE
Lloh18:
	ldr	x22, [x22, _NUM_FLOW_PRIORITY_STATS_RX@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x1, x24
	bl	_bitmap_set
	ldr	w8, [x22]
	add	w23, w24, w8
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _NUM_FLOW_PRIORITY_STATS_RX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NUM_FLOW_PRIORITY_STATS_RX@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	add	w23, w24, w8
	cbz	x22, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	ldr	x2, [x25]
	mov	x1, x23
	bl	_bitmap_set
LBB0_7:
	ldr	w8, [x25]
	add	w1, w23, w8
Lloh22:
	adrp	x8, _NUM_FLOW_PRIORITY_STATS_TX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NUM_FLOW_PRIORITY_STATS_TX@GOTPAGEOFF]
	cbnz	x21, LBB0_10
; %bb.8:
	cbz	x20, LBB0_11
; %bb.9:
	ldr	w8, [x8]
	add	w1, w1, w8
Lloh24:
	adrp	x8, _NUM_FLOW_STATS_TX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NUM_FLOW_STATS_TX@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x19, #4]
	ldr	x2, [x8]
	bl	_bitmap_set
LBB0_11:
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_MAIN_STATS,4,2             ; @NUM_MAIN_STATS
	.comm	_NUM_PORT_STATS,4,2             ; @NUM_PORT_STATS
	.comm	_NUM_PF_STATS,4,2               ; @NUM_PF_STATS
	.comm	_MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN,4,2 ; @MLX4_DEV_CAP_FLAG2_FLOWSTATS_EN
	.comm	_NUM_FLOW_STATS,4,2             ; @NUM_FLOW_STATS
	.comm	_NUM_FLOW_PRIORITY_STATS_RX,8,3 ; @NUM_FLOW_PRIORITY_STATS_RX
	.comm	_NUM_FLOW_STATS_RX,8,3          ; @NUM_FLOW_STATS_RX
	.comm	_NUM_FLOW_PRIORITY_STATS_TX,8,3 ; @NUM_FLOW_PRIORITY_STATS_TX
	.comm	_NUM_FLOW_STATS_TX,8,3          ; @NUM_FLOW_STATS_TX
.subsections_via_symbols
