	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_dcbx_2cos_limit_update_ets_config
_bnx2x_dcbx_2cos_limit_update_ets_config: ## @bnx2x_dcbx_2cos_limit_update_ets_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_16
## %bb.1:
	movq	_DCBX_COS_MAX_NUM_E2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_16
## %bb.2:
	cmpl	$1, %esi
	jne	LBB0_3
LBB0_15:
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_3:
	movq	_BNX2X_DCBX_STRICT_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%rdi), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
## %bb.4:
	movq	_DCBX_INVALID_COS_BW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	8(%rax), %rdx
	jne	LBB0_6
## %bb.5:
	movq	16(%rax), %rcx
	movq	24(%rax), %r8
	jmp	LBB0_9
LBB0_6:
	movq	16(%rax), %r9
	movq	_DCBX_INVALID_COS_BW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cmpq	%r9, %rcx
	jne	LBB0_10
## %bb.7:
	cmpq	24(%rax), %r8
	jne	LBB0_10
## %bb.8:
	movq	8(%rax), %rdx
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_10:
	movq	8(%rax), %rcx
	cmpq	%rcx, %r8
	je	LBB0_12
## %bb.11:
	movq	24(%rax), %rdx
	cmpq	%rdx, %r8
	jne	LBB0_17
LBB0_12:
	movq	_BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rsi
	je	LBB0_14
## %bb.13:
	movl	$1, %eax
	cmpq	%rcx, %r9
	jne	LBB0_15
LBB0_14:
	movl	%eax, %esi
	callq	_bnx2x_ets_strict
	testl	%eax, %eax
	je	LBB0_15
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_17:
	testl	%edx, %edx
	movl	$99, %r8d
	movl	%ecx, %esi
	cmovel	%r8d, %esi
	movl	$1, %eax
	cmovel	%eax, %edx
	testl	%ecx, %ecx
	cmovel	%eax, %esi
	cmovel	%r8d, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbp
	jmp	_bnx2x_ets_bw_limit             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCBX_COS_MAX_NUM_E2,4,2        ## @DCBX_COS_MAX_NUM_E2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal number of COSes %d\n"

	.comm	_BNX2X_DCBX_STRICT_INVALID,8,3  ## @BNX2X_DCBX_STRICT_INVALID
	.comm	_DCBX_INVALID_COS_BW,8,3        ## @DCBX_INVALID_COS_BW
L_.str.1:                               ## @.str.1
	.asciz	"all COS should have at least bw_limit or strictets->cos_params[0].strict= %xets->cos_params[0].bw_tbl= %xets->cos_params[1].strict= %xets->cos_params[1].bw_tbl= %x"

	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,8,3 ## @BNX2X_DCBX_STRICT_COS_HIGHEST
L_.str.2:                               ## @.str.2
	.asciz	"update_ets_params failed\n"

	.no_dead_strip	_bnx2x_dcbx_2cos_limit_update_ets_config
.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_update_ets_config
_bnx2x_dcbx_2cos_limit_update_ets_config: ; @bnx2x_dcbx_2cos_limit_update_ets_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _DCBX_COS_MAX_NUM_E2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCBX_COS_MAX_NUM_E2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w8, w9, #0, ne
	b.le	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_17
LBB0_2:
	cmp	w8, #1
	b.eq	LBB0_17
; %bb.3:
Lloh5:
	adrp	x8, _BNX2X_DCBX_STRICT_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_DCBX_STRICT_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x8]
	ldr	x10, [x0, #16]
	ldr	x8, [x10]
Lloh8:
	adrp	x11, _DCBX_INVALID_COS_BW@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DCBX_INVALID_COS_BW@GOTPAGEOFF]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x12, [x11]
	ldr	x13, [x10, #8]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.5:
	ldp	x9, x11, [x10, #16]
	b	LBB0_9
LBB0_6:
	ldr	x12, [x10, #16]
	ldr	x11, [x11]
	cmp	x9, x12
	b.ne	LBB0_10
; %bb.7:
	ldr	x13, [x10, #24]
	cmp	x11, x13
	b.ne	LBB0_10
; %bb.8:
	ldr	x12, [x10, #8]
LBB0_9:
	stp	x9, x11, [sp, #16]
	stp	x8, x12, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_17
LBB0_10:
	ldr	x9, [x10, #8]
	cmp	x11, x9
	b.eq	LBB0_12
; %bb.11:
	ldr	x10, [x10, #24]
	cmp	x11, x10
	b.ne	LBB0_18
LBB0_12:
Lloh12:
	adrp	x9, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNX2X_DCBX_STRICT_COS_HIGHEST@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	w1, #0
	bl	_bnx2x_ets_strict
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_14:
	cmp	x12, x9
	b.ne	LBB0_17
; %bb.15:
	mov	w1, #1
	bl	_bnx2x_ets_strict
	cbz	w0, LBB0_17
LBB0_16:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_BNX2X_ERR
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_18:
	mov	w8, #99
	cmp	w10, #0
	csel	w11, w8, w9, eq
	csinc	w10, w10, wzr, ne
	cmp	w9, #0
	csel	w2, w8, w10, eq
	csinc	w1, w11, wzr, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_bnx2x_ets_bw_limit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DCBX_COS_MAX_NUM_E2,4,2        ; @DCBX_COS_MAX_NUM_E2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal number of COSes %d\n"

	.comm	_BNX2X_DCBX_STRICT_INVALID,8,3  ; @BNX2X_DCBX_STRICT_INVALID
	.comm	_DCBX_INVALID_COS_BW,8,3        ; @DCBX_INVALID_COS_BW
l_.str.1:                               ; @.str.1
	.asciz	"all COS should have at least bw_limit or strictets->cos_params[0].strict= %xets->cos_params[0].bw_tbl= %xets->cos_params[1].strict= %xets->cos_params[1].bw_tbl= %x"

	.comm	_BNX2X_DCBX_STRICT_COS_HIGHEST,8,3 ; @BNX2X_DCBX_STRICT_COS_HIGHEST
l_.str.2:                               ; @.str.2
	.asciz	"update_ets_params failed\n"

	.no_dead_strip	_bnx2x_dcbx_2cos_limit_update_ets_config
.subsections_via_symbols
