	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_dcbx_spread_strict_pri
_bnx2x_dcbx_spread_strict_pri:          ## @bnx2x_dcbx_spread_strict_pri
	.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
	movl	%ecx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	setne	%cl
	je	LBB0_8
## %bb.1:
	movq	_MAX_PFC_PRIORITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.2:
	movl	%edx, %r15d
	movq	_BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r13), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	movzbl	%cl, %eax
	btl	%eax, %r8d
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movslq	%r15d, %r15
	decl	%ebx
	movl	%esi, %eax
	notl	%eax
	cmovel	%r8d, %esi
	movl	$-1, %ecx
	cmovel	%ecx, %eax
	andl	%eax, %r8d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	_DCBX_INVALID_COS_BW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%r15,2), %r14
	movq	%rax, 16(%r12,%r14,8)
	movl	%edi, (%r12,%r14,8)
	movl	%esi, 4(%r12,%r14,8)
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_DCBX_IS_PFC_PRI_SOME_PAUSE
	movq	%rax, 8(%r12,%r14,8)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	movl	%eax, %edi
	incl	%r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	setne	%cl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r13), %eax
	cmpl	$1, %r13d
	movl	%eax, %r13d
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	ja	LBB0_3
LBB0_8:
	xorl	%eax, %eax
	testb	%cl, %cl
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,4,2 ## @BNX2X_DCBX_STRICT_COS_HIGHEST
	.comm	_MAX_PFC_PRIORITIES,4,2         ## @MAX_PFC_PRIORITIES
	.comm	_DCBX_INVALID_COS_BW,8,3        ## @DCBX_INVALID_COS_BW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Didn't succeed to spread strict priorities\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_dcbx_spread_strict_pri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_dcbx_spread_strict_pri
_bnx2x_dcbx_spread_strict_pri:          ; @bnx2x_dcbx_spread_strict_pri
	.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
	cmp	w3, #0
	cset	w8, ne
	cbz	w3, LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, _MAX_PFC_PRIORITIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PFC_PRIORITIES@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x9]
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh3:
	adrp	x8, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	w26, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w28, w25, #1
	lsl	w8, w26, w28
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	subs	w20, w20, #1
	csel	w1, w19, w8, eq
	mov	w10, #-1
	csinv	w8, w10, w8, eq
	and	w19, w19, w8
Lloh6:
	adrp	x8, _DCBX_INVALID_COS_BW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCBX_INVALID_COS_BW@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w10, #24
	smaddl	x27, w21, w10, x9
	str	x8, [x27, #16]
	stp	w24, w1, [x27]
	mov	x0, x23
	bl	_DCBX_IS_PFC_PRI_SOME_PAUSE
	str	x0, [x27, #8]
	mov	x0, x24
	bl	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	mov	x24, x0
	add	w21, w21, #1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #0
	cset	w8, ne
	cbz	w20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, #1
	mov	x25, x28
	b.hi	LBB0_3
LBB0_7:
	cbz	w8, LBB0_9
; %bb.8:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,4,2 ; @BNX2X_DCBX_STRICT_COS_HIGHEST
	.comm	_MAX_PFC_PRIORITIES,4,2         ; @MAX_PFC_PRIORITIES
	.comm	_DCBX_INVALID_COS_BW,8,3        ; @DCBX_INVALID_COS_BW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Didn't succeed to spread strict priorities\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_dcbx_spread_strict_pri
.subsections_via_symbols
