	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ets_e3b0_sp_pri_to_cos_set
_bnx2x_ets_e3b0_sp_pri_to_cos_set:      ## @bnx2x_ets_e3b0_sp_pri_to_cos_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_DCBX_E3B0_MAX_NUM_COS_PORT0@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jg	LBB0_6
LBB0_4:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	_DCBX_E3B0_MAX_NUM_COS_PORT1@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jle	LBB0_4
LBB0_6:
	movq	(%rsi,%rdx,8), %rax
	movq	_DCBX_INVALID_COS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_7
## %bb.8:
	movq	%rcx, (%rsi,%rdx,8)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT1,8,3 ## @DCBX_E3B0_MAX_NUM_COS_PORT1
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT0,8,3 ## @DCBX_E3B0_MAX_NUM_COS_PORT0
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bnx2x_ets_e3b0_sp_pri_to_cos_set invalid parameter Illegal strict priority\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DCBX_INVALID_COS,8,3           ## @DCBX_INVALID_COS
L_.str.1:                               ## @.str.1
	.asciz	"bnx2x_ets_e3b0_sp_pri_to_cos_set invalid parameter There can't be two COS's with the same strict pri\n"

	.no_dead_strip	_bnx2x_ets_e3b0_sp_pri_to_cos_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_ets_e3b0_sp_pri_to_cos_set
_bnx2x_ets_e3b0_sp_pri_to_cos_set:      ; @bnx2x_ets_e3b0_sp_pri_to_cos_set
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DCBX_E3B0_MAX_NUM_COS_PORT1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCBX_E3B0_MAX_NUM_COS_PORT1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DCBX_E3B0_MAX_NUM_COS_PORT0@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DCBX_E3B0_MAX_NUM_COS_PORT0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
	cmp	x8, x2
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x1, x2, lsl #3]
Lloh4:
	adrp	x9, _DCBX_INVALID_COS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DCBX_INVALID_COS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	str	x3, [x1, x2, lsl #3]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh7:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DP
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT1,8,3 ; @DCBX_E3B0_MAX_NUM_COS_PORT1
	.comm	_DCBX_E3B0_MAX_NUM_COS_PORT0,8,3 ; @DCBX_E3B0_MAX_NUM_COS_PORT0
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bnx2x_ets_e3b0_sp_pri_to_cos_set invalid parameter Illegal strict priority\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DCBX_INVALID_COS,8,3           ; @DCBX_INVALID_COS
l_.str.1:                               ; @.str.1
	.asciz	"bnx2x_ets_e3b0_sp_pri_to_cos_set invalid parameter There can't be two COS's with the same strict pri\n"

	.no_dead_strip	_bnx2x_ets_e3b0_sp_pri_to_cos_set
.subsections_via_symbols
