	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bnx2x_dcbx_map_nw
LCPI0_0:
	.space	4
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
LCPI0_1:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bnx2x_dcbx_map_nw:                     ## @bnx2x_dcbx_map_nw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MAX_PFC_PRIORITIES@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$-1, %r12d
	shll	%cl, %r12d
	notl	%r12d
	movq	8(%rdi), %rax
	movq	_LLFC_TRAFFIC_TYPE_NW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rax,%rcx,4), %cl
	movl	$1, %r13d
	shll	%cl, %r13d
	movq	(%rdi), %r14
	movq	_LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	cmpl	$8, %ecx
	jae	LBB0_4
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_4:
	movl	%ecx, %edx
	andl	$-8, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,4294967295,4294967295,4294967295>
	pinsrd	$0, %r12d, %xmm0
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pcmpeqd	%xmm3, %xmm3
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	%xmm0, %xmm4
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm0
	movdqu	16(%rax,%rdi,4), %xmm1
	movdqu	32(%rax,%rdi,4), %xmm5
	movdqu	48(%rax,%rdi,4), %xmm6
	pslld	$23, %xmm0
	paddd	%xmm8, %xmm0
	cvttps2dq	%xmm0, %xmm7
	pslld	$23, %xmm1
	paddd	%xmm8, %xmm1
	cvttps2dq	%xmm1, %xmm2
	pslld	$23, %xmm5
	paddd	%xmm8, %xmm5
	cvttps2dq	%xmm5, %xmm0
	por	%xmm7, %xmm0
	pandn	%xmm4, %xmm0
	pslld	$23, %xmm6
	paddd	%xmm8, %xmm6
	cvttps2dq	%xmm6, %xmm1
	por	%xmm2, %xmm1
	pandn	%xmm3, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm4
	movdqa	%xmm1, %xmm3
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %bl
	je	LBB0_10
LBB0_9:
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	pslld	$23, %xmm2
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pandn	%xmm0, %xmm2
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pandn	%xmm1, %xmm3
	movdqa	%xmm2, %xmm0
	movdqa	%xmm3, %xmm1
LBB0_10:
	pand	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pand	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pand	%xmm1, %xmm0
	movd	%xmm0, %r12d
	cmpq	%rcx, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax,%rdx,4), %esi
	btrl	%esi, %r12d
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
LBB0_11:
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testl	%r13d, (%r14,%rbx,4)
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_13
	jmp	LBB0_16
LBB0_14:
	movq	_BNX2X_MSG_DCB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_DP
	orl	%r12d, (%r14,%rbx,4)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pcmpeqd	%xmm1, %xmm1
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PFC_PRIORITIES,4,2         ## @MAX_PFC_PRIORITIES
	.comm	_LLFC_TRAFFIC_TYPE_NW,8,3       ## @LLFC_TRAFFIC_TYPE_NW
	.comm	_LLFC_DRIVER_TRAFFIC_TYPE_MAX,4,2 ## @LLFC_DRIVER_TRAFFIC_TYPE_MAX
	.comm	_BNX2X_MSG_DCB,4,2              ## @BNX2X_MSG_DCB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cos %d extended with 0x%08x\n"

	.no_dead_strip	_bnx2x_dcbx_map_nw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_dcbx_map_nw
_bnx2x_dcbx_map_nw:                     ; @bnx2x_dcbx_map_nw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_PFC_PRIORITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PFC_PRIORITIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w21, w8
Lloh3:
	adrp	x8, _LLFC_TRAFFIC_TYPE_NW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LLFC_TRAFFIC_TYPE_NW@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	x19, x9, [x0]
Lloh6:
	adrp	x10, _LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LLFC_DRIVER_TRAFFIC_TYPE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w10, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_6
LBB0_3:
	and	x11, x10, #0xfffffff0
	movi.2d	v0, #0xffffffffffffffff
	mov.s	v0[0], w21
	movi.2d	v1, #0xffffffffffffffff
	add	x12, x9, #32
	movi.4s	v2, #1
	mov	x13, x11
	movi.2d	v3, #0xffffffffffffffff
	movi.2d	v4, #0xffffffffffffffff
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	ushl.4s	v5, v2, v5
	ushl.4s	v6, v2, v6
	ushl.4s	v7, v2, v7
	ushl.4s	v16, v2, v16
	bic.16b	v0, v0, v5
	bic.16b	v1, v1, v6
	bic.16b	v3, v3, v7
	bic.16b	v4, v4, v16
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	and.16b	v0, v1, v0
	and.16b	v0, v3, v0
	and.16b	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	and.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	and	w21, w12, w13
	cmp	x11, x10
	b.eq	LBB0_8
LBB0_6:
	add	x12, x9, x11, lsl #2
	sub	x10, x10, x11
	mov	w11, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12], #4
	lsl	w13, w11, w13
	bic	w21, w21, w13
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w23, [x9, x8, lsl #2]
	mov	x0, x19
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x22, #0
	mov	w8, #1
	lsl	w23, w8, w23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, x22, lsl #2]
	tst	w8, w23
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_10
	b	LBB0_13
LBB0_12:
	lsl	x20, x22, #2
Lloh9:
	adrp	x8, _BNX2X_MSG_DCB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2X_MSG_DCB@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_DP
	ldr	w8, [x19, x20]
	orr	w8, w8, w21
	str	w8, [x19, x20]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PFC_PRIORITIES,4,2         ; @MAX_PFC_PRIORITIES
	.comm	_LLFC_TRAFFIC_TYPE_NW,8,3       ; @LLFC_TRAFFIC_TYPE_NW
	.comm	_LLFC_DRIVER_TRAFFIC_TYPE_MAX,4,2 ; @LLFC_DRIVER_TRAFFIC_TYPE_MAX
	.comm	_BNX2X_MSG_DCB,4,2              ; @BNX2X_MSG_DCB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cos %d extended with 0x%08x\n"

	.no_dead_strip	_bnx2x_dcbx_map_nw
.subsections_via_symbols
