	.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_single_pg_to_cos_params
_bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params: ## @bnx2x_dcbx_2cos_limit_cee_single_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdi, %r12
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movq	%rdx, %rsi
LBB0_2:
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_dcbx_ets_disabled_entry_data ## TAILCALL
LBB0_3:
	movl	%r8d, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	(%rax), %r13
	movq	_DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_IS_DCBX_PFC_PRI_MIX_PAUSE
	cmpq	%r14, %r13
	jge	LBB0_14
## %bb.4:
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.5:
	movq	(%r14), %rax
	movl	$1, (%rax)
	movl	$0, 24(%rax)
	cmpl	$3, %ebx
	je	LBB0_8
## %bb.6:
	cmpl	$2, %ebx
	jne	LBB0_27
## %bb.7:
	movl	$50, 4(%rax)
	movl	$50, 28(%rax)
	jmp	LBB0_27
LBB0_14:
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	je	LBB0_19
## %bb.15:
	callq	_DCBX_PFC_PRI_GET_PAUSE
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_DCBX_PFC_PRI_GET_NON_PAUSE
	movq	_BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	cmpq	%rax, %rbx
	jle	LBB0_17
## %bb.16:
	movq	(%r14), %rax
	movq	%rdi, 16(%rax)
	callq	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	movq	(%r14), %rcx
	jmp	LBB0_18
LBB0_11:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_IS_DCBX_PFC_PRI_ONLY_PAUSE
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	cmpl	$2, %ebx
	movl	$50, %eax
	movl	$67, %ecx
	cmovel	%eax, %ecx
	movl	$33, %edx
	cmovel	%eax, %edx
	movq	(%r14), %rax
	movl	%ecx, 4(%rax)
	movl	%edx, 28(%rax)
	movl	$1, 24(%rax)
	movl	$1, (%rax)
	movq	_LLFC_TRAFFIC_TYPE_FCOE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movb	(%rsi,%rcx,4), %dl
	btrl	%edx, %r15d
	movl	%r15d, 8(%rax)
	movb	(%rsi,%rcx,4), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 32(%rax)
	jmp	LBB0_27
LBB0_19:
	callq	_IS_DCBX_PFC_PRI_ONLY_PAUSE
	movq	(%r14), %rdx
	movl	%eax, 24(%rdx)
	movl	%eax, (%rdx)
	movq	_LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.22:
	movq	(%r12), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rsi,4), %ecx
	movl	$1, %r12d
	shll	%cl, %r12d
	movl	%r15d, %ebx
	btrl	%ecx, %ebx
	cmpl	%r12d, %ebx
	jl	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_23
	jmp	LBB0_25
LBB0_17:
	callq	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r15), %rax
LBB0_18:
	movq	%rax, 40(%rcx)
	movl	$1, (%rcx)
	movl	$0, 24(%rcx)
	jmp	LBB0_27
LBB0_8:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_DCBX_PFC_PRI_GET_PAUSE
	movq	%rax, %rdi
	callq	_POWER_OF_2
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$33, 4(%rcx)
	movl	$67, 28(%rcx)
	jmp	LBB0_27
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	jmp	LBB0_2
LBB0_20:
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_21:
	cmpl	%eax, %esi
	jne	LBB0_26
LBB0_25:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	(%r14), %rdx
LBB0_26:
	movl	%ebx, 8(%rdx)
	movl	%r12d, 32(%rdx)
	movq	_BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	(%rbx), %rax
	movq	%rax, 40(%rcx)
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$67, 4(%rcx)
	movl	$33, 28(%rcx)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_DCBX_MAX_NUM_PG_BW_ENTRIES,8,3 ## @DCBX_MAX_NUM_PG_BW_ENTRIES
	.comm	_LLFC_TRAFFIC_TYPE_FCOE,8,3     ## @LLFC_TRAFFIC_TYPE_FCOE
	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,8,3 ## @BNX2X_DCBX_STRICT_COS_HIGHEST
	.comm	_LLFC_DRIVER_TRAFFIC_TYPE_MAX,4,2 ## @LLFC_DRIVER_TRAFFIC_TYPE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid value for pri_join_mask - could not find a priority\n"

	.no_dead_strip	_bnx2x_dcbx_2cos_limit_cee_single_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_single_pg_to_cos_params
_bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params: ; @bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	cmp	w4, #1
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bnx2x_dcbx_ets_disabled_entry_data
LBB0_2:
	mov	x22, x4
	ldr	x23, [x21]
	ldr	x8, [x1]
	ldr	x24, [x8]
Lloh0:
	adrp	x8, _DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_IS_DCBX_PFC_PRI_MIX_PAUSE
	cmp	x24, x25
	b.ge	LBB0_7
; %bb.3:
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	str	wzr, [x8, #24]
	cmp	w22, #3
	b.eq	LBB0_18
; %bb.5:
	cmp	w22, #2
	b.ne	LBB0_24
; %bb.6:
	mov	w9, #50
	str	w9, [x8, #4]
	str	w9, [x8, #28]
	b	LBB0_24
LBB0_7:
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_DCBX_PFC_PRI_GET_PAUSE
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_DCBX_PFC_PRI_GET_NON_PAUSE
	mov	x8, x0
Lloh3:
	adrp	x20, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGEOFF]
	ldr	x0, [x20]
	cmp	x22, x8
	b.le	LBB0_16
; %bb.9:
	ldr	x8, [x19]
	str	x0, [x8, #16]
	bl	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	ldr	x8, [x19]
	b	LBB0_17
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	bl	_IS_DCBX_PFC_PRI_ONLY_PAUSE
	cbz	w0, LBB0_1
; %bb.11:
	ldr	x8, [x19]
	mov	w9, #67
	mov	w10, #50
	cmp	w22, #2
	csel	w9, w10, w9, eq
	mov	w11, #33
	csel	w10, w10, w11, eq
	mov	w11, #1
	stp	w11, w10, [x8, #24]
Lloh5:
	adrp	x10, _LLFC_TRAFFIC_TYPE_FCOE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LLFC_TRAFFIC_TYPE_FCOE@GOTPAGEOFF]
	stp	w11, w9, [x8]
Lloh7:
	ldr	x9, [x10]
	lsl	x9, x9, #2
	ldr	w10, [x23, x9]
	lsl	w10, w11, w10
	bic	w10, w20, w10
	str	w10, [x8, #8]
	ldr	w9, [x23, x9]
	lsl	w9, w11, w9
	str	w9, [x8, #32]
	b	LBB0_24
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_IS_DCBX_PFC_PRI_ONLY_PAUSE
	ldr	x8, [x19]
	str	w0, [x8, #24]
	str	w0, [x8]
Lloh8:
	adrp	x9, _LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.13:
	mov	x10, #0
	ldr	x11, [x21]
	mov	w12, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11, x10, lsl #2]
	lsl	w21, w12, w13
	bic	w22, w20, w21
	cmp	w22, w21
	b.lt	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_14
	b	LBB0_22
LBB0_16:
	bl	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x0, [x20]
LBB0_17:
	str	x0, [x8, #40]
	mov	w9, #1
	str	w9, [x8]
	str	wzr, [x8, #24]
	b	LBB0_24
LBB0_18:
	mov	x0, x21
	mov	x1, x20
	bl	_DCBX_PFC_PRI_GET_PAUSE
	bl	_POWER_OF_2
	ldr	x8, [x19]
	cbz	x0, LBB0_25
; %bb.19:
	mov	w9, #33
	str	w9, [x8, #4]
	mov	w9, #67
	str	w9, [x8, #28]
	b	LBB0_24
LBB0_20:
	mov	w10, #0
	mov	w21, #0
	mov	w22, #0
LBB0_21:
	cmp	w10, w9
	b.ne	LBB0_23
LBB0_22:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	ldr	x8, [x19]
LBB0_23:
	str	w22, [x8, #8]
	str	w21, [x8, #32]
Lloh13:
	adrp	x20, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGE
Lloh14:
	ldr	x20, [x20, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_BNX2X_DCBX_STRICT_COS_NEXT_LOWER_PRI
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x9, [x20]
	str	x9, [x8, #40]
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	w9, #67
	str	w9, [x8, #4]
	mov	w9, #33
	str	w9, [x8, #28]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DCBX_MAX_NUM_PG_BW_ENTRIES,8,3 ; @DCBX_MAX_NUM_PG_BW_ENTRIES
	.comm	_LLFC_TRAFFIC_TYPE_FCOE,8,3     ; @LLFC_TRAFFIC_TYPE_FCOE
	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,8,3 ; @BNX2X_DCBX_STRICT_COS_HIGHEST
	.comm	_LLFC_DRIVER_TRAFFIC_TYPE_MAX,4,2 ; @LLFC_DRIVER_TRAFFIC_TYPE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid value for pri_join_mask - could not find a priority\n"

	.no_dead_strip	_bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params
.subsections_via_symbols
