	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_dcbx_fill_cos_params
_bnx2x_dcbx_fill_cos_params:            ## @bnx2x_dcbx_fill_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%rbx), %rax
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_DCBX_STRICT_PRIORITY@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	orl	16(%rcx,%r12), %r13d
	addq	8(%rcx,%r12), %r15
	incq	%r14
	addq	$24, %r12
	cmpq	%rax, %r14
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%r12), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPCREL(%rip), %rdi
	cmpq	%rdx, (%rdi)
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%rsi, %rbx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	%rbx, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movl	$1, -56(%rbp)
	movq	-48(%rbp), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	$24, %ebx
	xorl	%r14d, %r14d
	movq	_DCBX_INVALID_COS_BW@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movq	$0, -24(%rdi,%rbx)
	movl	$0, -16(%rdi,%rbx)
	movq	_BNX2X_DCBX_STRICT_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rdi,%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rdi,%rbx)
	incq	%r14
	callq	_ARRAY_SIZE
	addq	$32, %rbx
	cmpq	%rax, %r14
	jb	LBB0_9
LBB0_10:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_CHIP_IS_E3B0
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %r8d
	callq	_bnx2x_dcbx_cee_fill_cos_params
	cmpl	$0, -56(%rbp)
	je	LBB0_14
LBB0_15:
	leaq	L_.str.4(%rip), %r15
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 24(%r12,%r14)
	movq	%r15, %rsi
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rsi
LBB0_29:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_BNX2X_MSG_DCB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax
	movq	(%rax,%r14), %rcx
	movq	%rbx, %rdx
	callq	_DP
	incq	%rbx
	movslq	-56(%rbp), %rax
	addq	$32, %r14
	cmpq	%rax, %rbx
	jae	LBB0_30
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r12
	movq	-48(%rbp), %rdx
	movq	16(%rdx,%r14), %rcx
	movq	%rcx, (%r12,%r14)
	movq	24(%rdx,%r14), %rsi
	movq	%rsi, 8(%r12,%r14)
	movq	(%rdx,%r14), %rax
	movq	%rax, 16(%r12,%r14)
	movl	8(%rdx,%r14), %edx
	movl	%edx, 24(%r12,%r14)
	movq	_DCBX_INVALID_COS_BW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_BNX2X_DCBX_STRICT_INVALID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_28
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	callq	_CHIP_IS_E3A0
	testq	%rax, %rax
	je	LBB0_28
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 24(%r12,%r14)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r12,%r14), %rsi
	movq	%r13, %rdi
	callq	_DCBX_PFC_PRI_GET_NON_PAUSE
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 24(%r12,%r14)
	movq	%r15, %rsi
	jne	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r12,%r14), %rsi
	movq	%r13, %rdi
	callq	_DCBX_PFC_PRI_GET_PAUSE
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_28
LBB0_12:
	movq	%r15, (%rsp)
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	callq	_bnx2x_dcbx_2cos_limit_cee_fill_cos_params
	cmpl	$0, -56(%rbp)
	jne	LBB0_15
LBB0_14:
	xorl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_30:
	movq	%rax, (%r13)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCBX_STRICT_PRIORITY,8,3       ## @DCBX_STRICT_PRIORITY
	.comm	_DCBX_MAX_NUM_PG_BW_ENTRIES,8,3 ## @DCBX_MAX_NUM_PG_BW_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pg[%d] data %x\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	"Invalid pri_bitmask for %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Inconsistent config for pausable COS %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Inconsistent config for nonpausable COS %d\n"

	.comm	_BNX2X_MSG_DCB,4,2              ## @BNX2X_MSG_DCB
L_.str.4:                               ## @.str.4
	.asciz	"COS %d PAUSABLE prijoinmask 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"COS %d NONPAUSABLE prijoinmask 0x%x\n"

	.no_dead_strip	_bnx2x_dcbx_fill_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_fill_cos_params
_bnx2x_dcbx_fill_cos_params:            ; @bnx2x_dcbx_fill_cos_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x27, #0
	mov	x25, #0
	mov	x24, #0
	mov	w23, #0
	ldr	x9, [x21, #8]
Lloh0:
	adrp	x28, _DCBX_STRICT_PRIORITY@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DCBX_STRICT_PRIORITY@GOTPAGEOFF]
Lloh2:
	adrp	x22, _DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DCBX_MAX_NUM_PG_BW_ENTRIES@GOTPAGEOFF]
Lloh4:
	adrp	x26, l_.str@PAGE
Lloh5:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x9, x27
	ldr	w11, [x10, #16]
	orr	w23, w11, w23
	ldr	x10, [x10, #8]
	add	x24, x10, x24
	add	x25, x25, #1
	add	x27, x27, #24
	cmp	x25, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x28]
	ldr	x10, [x9, x27]
	ldr	x12, [x22]
	cmp	x11, x10
	ccmp	x12, x10, #0, ne
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x10, [sp]
	mov	x0, x26
	mov	x1, x25
	bl	_BNX2X_ERR
	ldp	x8, x9, [x21]
	b	LBB0_2
LBB0_5:
	mov	w23, #0
	mov	x24, #0
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	x0, [sp, #24]
	bl	_ARRAY_SIZE
Lloh6:
	adrp	x25, _DCBX_INVALID_COS_BW@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DCBX_INVALID_COS_BW@GOTPAGEOFF]
Lloh8:
	adrp	x26, _BNX2X_DCBX_STRICT_INVALID@GOTPAGE
Lloh9:
	ldr	x26, [x26, _BNX2X_DCBX_STRICT_INVALID@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.7:
	mov	x22, #0
	mov	x27, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #24]
	add	x8, x0, x22
	str	xzr, [x8]
	str	wzr, [x8, #8]
	ldr	x9, [x26]
	str	x9, [x8, #16]
	ldr	x9, [x25]
	str	x9, [x8, #24]
	add	x27, x27, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #32
	cmp	x27, x0
	b.lo	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_CHIP_IS_E3B0
	add	x3, sp, #16
	cbz	x0, LBB0_25
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x4, x23
	bl	_bnx2x_dcbx_cee_fill_cos_params
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_26
LBB0_11:
	mov	x24, #0
	mov	x20, #0
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh12:
	adrp	x27, l_.str.4@PAGE
Lloh13:
	add	x27, x27, l_.str.4@PAGEOFF
Lloh14:
	adrp	x28, _BNX2X_MSG_DCB@GOTPAGE
Lloh15:
	ldr	x28, [x28, _BNX2X_MSG_DCB@GOTPAGEOFF]
Lloh16:
	adrp	x22, l_.str.5@PAGE
Lloh17:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x23, #24]
	cmp	w8, #0
	csel	x1, x22, x27, eq
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x28]
	ldr	x8, [sp, #24]
	ldr	x3, [x8, x24]
	mov	x2, x20
	bl	_DP
	add	x20, x20, #1
	ldrsw	x8, [sp, #16]
	add	x24, x24, #32
	cmp	x20, x8
	b.hs	LBB0_27
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #24]
	add	x9, x9, x24
	ldr	x10, [x9, #16]
	add	x23, x8, x24
	str	x10, [x23]
	ldr	x11, [x9, #24]
	str	x11, [x23, #8]
	ldr	x8, [x9]
	str	x8, [x23, #16]
	ldr	w9, [x9, #8]
	str	w9, [x23, #24]
	ldr	x9, [x25]
	ldr	x12, [x26]
	cmp	x11, x9
	ccmp	x10, x12, #0, eq
	b.eq	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbnz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_CHIP_IS_E2
	cbnz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_CHIP_IS_E3A0
	cbz	x0, LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x23, #24]
	cbz	w8, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x23, #16]
	mov	x0, x19
	bl	_DCBX_PFC_PRI_GET_NON_PAUSE
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x23, #24]
	mov	x1, x27
	cbnz	w8, LBB0_13
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x23, #16]
	mov	x0, x19
	bl	_DCBX_PFC_PRI_GET_PAUSE
	cbz	x0, LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
	b	LBB0_12
LBB0_25:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	mov	x5, x23
	mov	x6, x24
	bl	_bnx2x_dcbx_2cos_limit_cee_fill_cos_params
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_11
LBB0_26:
	mov	x8, #0
LBB0_27:
	str	x8, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DCBX_STRICT_PRIORITY,8,3       ; @DCBX_STRICT_PRIORITY
	.comm	_DCBX_MAX_NUM_PG_BW_ENTRIES,8,3 ; @DCBX_MAX_NUM_PG_BW_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pg[%d] data %x\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	"Invalid pri_bitmask for %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Inconsistent config for pausable COS %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Inconsistent config for nonpausable COS %d\n"

	.comm	_BNX2X_MSG_DCB,4,2              ; @BNX2X_MSG_DCB
l_.str.4:                               ; @.str.4
	.asciz	"COS %d PAUSABLE prijoinmask 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"COS %d NONPAUSABLE prijoinmask 0x%x\n"

	.no_dead_strip	_bnx2x_dcbx_fill_cos_params
.subsections_via_symbols
