	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_pfc_set
_bnx2x_pfc_set:                         ## @bnx2x_pfc_set
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -80(%rbp)
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_DCBX_PFC_PRI_PAUSE_MASK
	incq	%rbx
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_MAX_PFC_PRIORITIES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_DCBX_PFC_PRI_PAUSE_MASK
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	btl	%r15d, %eax
	movl	$0, %ecx
	cmovbl	%ecx, %edx
	orl	%edx, %r12d
	incl	%r15d
	addl	$4, %ebx
	cmpl	(%r13), %r15d
	jl	LBB0_6
	jmp	LBB0_7
LBB0_4:
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, -64(%rbp)
	movq	%r14, %rdi
	callq	_DCBX_PFC_PRI_PAUSE_MASK
	movl	%eax, -60(%rbp)
	movq	$0, -56(%rbp)
	movq	%r14, %rdi
	callq	_bnx2x_acquire_phy_lock
	movq	_FEATURE_CONFIG_PFC_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%r14), %rdi
	orl	%eax, 4(%r14)
	leaq	-80(%rbp), %rdx
	movq	%r14, %rsi
	callq	_bnx2x_update_pfc
	movq	%r14, %rdi
	callq	_bnx2x_release_phy_lock
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PFC_PRIORITIES,4,2         ## @MAX_PFC_PRIORITIES
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ## @FEATURE_CONFIG_PFC_ENABLED
	.no_dead_strip	_bnx2x_pfc_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_pfc_set
_bnx2x_pfc_set:                         ; @bnx2x_pfc_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	movi.2d	v0, #0000000000000000
	str	xzr, [sp, #32]
	stp	q0, q0, [sp]
	ldr	w8, [x0, #8]
	str	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_DCBX_PFC_PRI_PAUSE_MASK
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
Lloh0:
	adrp	x20, _MAX_PFC_PRIORITIES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_PFC_PRIORITIES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w22, #0
	mov	w23, #0
	mov	w21, #0
	mov	w24, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_DCBX_PFC_PRI_PAUSE_MASK
	lsl	w8, w24, w22
	lsr	w9, w0, w23
	tst	w9, #0x1
	csel	w8, w8, wzr, eq
	orr	w21, w8, w21
	add	w23, w23, #1
	ldr	w8, [x20]
	add	w22, w22, #4
	cmp	w23, w8
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	str	w21, [sp, #16]
	mov	x0, x19
	bl	_DCBX_PFC_PRI_PAUSE_MASK
	str	w0, [sp, #20]
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_bnx2x_acquire_phy_lock
Lloh2:
	adrp	x8, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x0, x19
	ldr	w9, [x0, #4]!
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x2, sp
	mov	x1, x19
	bl	_bnx2x_update_pfc
	mov	x0, x19
	bl	_bnx2x_release_phy_lock
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PFC_PRIORITIES,4,2         ; @MAX_PFC_PRIORITIES
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ; @FEATURE_CONFIG_PFC_ENABLED
	.no_dead_strip	_bnx2x_pfc_set
.subsections_via_symbols
