	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params
_bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params: ## @bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	_LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%rcx), %rax
	movl	$0, 12(%rax)
	movl	$0, (%rax)
	movl	%r9d, %esi
	callq	_IS_DCBX_PFC_PRI_MIX_PAUSE
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_dcbx_separate_pauseable_from_non ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_IS_DCBX_PFC_PRI_ONLY_PAUSE
	movq	(%r13), %rcx
	movl	%eax, 20(%rcx)
	movl	%eax, 8(%rcx)
	testq	%r15, %r15
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_7
## %bb.2:
	movq	%r15, %rdx
	leaq	-1(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	orl	%eax, 12(%rcx)
	movq	_BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	$1, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	%r15, %rdx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movslq	(%rax,%r15,4), %rcx
	movl	$1, %eax
	shll	%cl, %eax
	movslq	(%r8,%rcx,4), %rsi
	cmpq	%rsi, (%rdi)
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	sete	%cl
	testl	%ebx, %ebx
	sete	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	movq	(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rdx,%rcx,4), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	orl	%eax, (%rdx,%rcx,4)
	movl	(%r12), %edi
	movq	%r12, %r13
	movq	%r8, %r12
	callq	_DCBX_PG_BW_GET
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_bnx2x_dcbx_add_to_cos_bw
	movq	_DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPCREL(%rip), %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %r8
	movq	%r13, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LLFC_DRIVER_TRAFFIC_TYPE_MAX,8,3 ## @LLFC_DRIVER_TRAFFIC_TYPE_MAX
	.comm	_DCBX_MAX_NUM_PG_BW_ENTRIES,8,3 ## @DCBX_MAX_NUM_PG_BW_ENTRIES
	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,4,2 ## @BNX2X_DCBX_STRICT_COS_HIGHEST
	.no_dead_strip	_bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params
_bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params: ; @bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x5
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x8, [x3]
Lloh0:
	adrp	x9, _LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x9]
	str	wzr, [x8, #12]
	str	wzr, [x8]
	mov	x1, x5
	bl	_IS_DCBX_PFC_PRI_MIX_PAUSE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_bnx2x_dcbx_separate_pauseable_from_non
LBB0_2:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x22
	mov	x1, x23
	bl	_IS_DCBX_PFC_PRI_ONLY_PAUSE
	ldr	x8, [x21]
	str	w0, [x8, #20]
	str	w0, [x8, #8]
	cbz	x24, LBB0_8
; %bb.3:
	mov	x25, #0
	mov	w20, #0
	sub	x26, x24, #1
	mov	w27, #1
Lloh3:
	adrp	x28, _DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPAGE
Lloh4:
	ldr	x28, [x28, _DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21]
	ldr	w10, [x9, #12]
	orr	w8, w10, w8
Lloh5:
	adrp	x10, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w8, w10, [x9, #12]
	mov	w20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	cmp	x24, x25
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldrsw	x9, [x8, x25, lsl #2]
	lsl	w8, w27, w9
	ldrsw	x1, [x19, x9, lsl #2]
	ldr	x9, [x28]
	cmp	x9, x1
	b.ls	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x26, x25
	ccmp	w20, #0, #0, eq
	cset	w9, eq
	ldr	x10, [x21]
	mov	w11, #12
	umaddl	x23, w9, w11, x10
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_DCBX_PG_BW_GET
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_bnx2x_dcbx_add_to_cos_bw
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LLFC_DRIVER_TRAFFIC_TYPE_MAX,8,3 ; @LLFC_DRIVER_TRAFFIC_TYPE_MAX
	.comm	_DCBX_MAX_NUM_PG_BW_ENTRIES,8,3 ; @DCBX_MAX_NUM_PG_BW_ENTRIES
	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,4,2 ; @BNX2X_DCBX_STRICT_COS_HIGHEST
	.no_dead_strip	_bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params
.subsections_via_symbols
