	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_update_pfc               ## -- Begin function bnx2x_update_pfc
	.p2align	4, 0x90
_bnx2x_update_pfc:                      ## @bnx2x_update_pfc
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_LOOPBACK_BMAC@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	movq	16(%rdi), %r15
	sete	%dl
	movq	_FEATURE_CONFIG_PFC_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LINK_STATUS_PFC_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, 8(%rdi)
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	je	LBB0_2
## %bb.1:
	orl	16(%r14), %esi
	jmp	LBB0_3
LBB0_2:
	notl	%esi
	andl	16(%r14), %esi
LBB0_3:
	movl	%esi, 16(%r14)
	movq	%rbx, %rdi
	callq	_bnx2x_update_mng
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_bnx2x_update_pfc_nig
	cmpl	$0, 12(%r14)
	je	LBB0_17
## %bb.4:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	%r15, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	movq	_MAC_TYPE_XMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_update_pfc_xmac
	jmp	LBB0_17
LBB0_7:
	movq	_MISC_REG_RESET_REG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_REG_RD
	movq	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	12(%rbx), %cl
	shll	%cl, %edx
	testl	%eax, %edx
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r12b
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_bnx2x_update_pfc_bmac2
	jmp	LBB0_12
LBB0_8:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_emac_enable
	jmp	LBB0_17
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_update_pfc_bmac1
LBB0_12:
	movq	_FEATURE_CONFIG_PFC_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_15
## %bb.13:
	movq	_BNX2X_FLOW_CTRL_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_14
LBB0_15:
	movl	$1, %edx
LBB0_16:
	movq	_NIG_REG_BMAC0_PAUSE_OUT_EN@GOTPCREL(%rip), %rax
	movslq	12(%rbx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_REG_WR
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%edx, %edx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_LOOPBACK_BMAC,8,3              ## @LOOPBACK_BMAC
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ## @FEATURE_CONFIG_PFC_ENABLED
	.comm	_LINK_STATUS_PFC_ENABLED,4,2    ## @LINK_STATUS_PFC_ENABLED
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"About to update PFC in BMAC\n"

	.comm	_MAC_TYPE_XMAC,8,3              ## @MAC_TYPE_XMAC
	.comm	_MISC_REG_RESET_REG_2,4,2       ## @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ## @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
L_.str.1:                               ## @.str.1
	.asciz	"About to update PFC in EMAC\n"

	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ## @BNX2X_FLOW_CTRL_TX
	.comm	_NIG_REG_BMAC0_PAUSE_OUT_EN,8,3 ## @NIG_REG_BMAC0_PAUSE_OUT_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_update_pfc               ; -- Begin function bnx2x_update_pfc
	.p2align	2
_bnx2x_update_pfc:                      ; @bnx2x_update_pfc
	.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	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _LOOPBACK_BMAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOOPBACK_BMAC@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w22, eq
Lloh3:
	adrp	x24, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FEATURE_CONFIG_PFC_ENABLED@GOTPAGEOFF]
	ldr	w9, [x0, #8]
	ldr	w10, [x24]
Lloh5:
	adrp	x8, _LINK_STATUS_PFC_ENABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LINK_STATUS_PFC_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x20, #16]
	orr	w1, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x20, #16]
	bic	w1, w9, w8
LBB0_3:
	str	w1, [x20, #16]
	mov	x0, x19
	bl	_bnx2x_update_mng
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_bnx2x_update_pfc_nig
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_16
; %bb.4:
Lloh8:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	x0, x21
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _MAC_TYPE_XMAC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAC_TYPE_XMAC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bnx2x_update_pfc_xmac
	b	LBB0_16
LBB0_7:
Lloh15:
	adrp	x8, _MISC_REG_RESET_REG_2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MISC_REG_RESET_REG_2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_REG_RD
Lloh18:
	adrp	x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	lsl	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_CHIP_IS_E2
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_bnx2x_update_pfc_bmac2
	b	LBB0_12
LBB0_10:
	ldr	w0, [x23]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bnx2x_emac_enable
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_update_pfc_bmac1
LBB0_12:
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x20, #8]
Lloh23:
	adrp	x9, _BNX2X_FLOW_CTRL_TX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BNX2X_FLOW_CTRL_TX@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
LBB0_14:
	mov	w2, #1
LBB0_15:
Lloh26:
	adrp	x8, _NIG_REG_BMAC0_PAUSE_OUT_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NIG_REG_BMAC0_PAUSE_OUT_EN@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldrsw	x9, [x19, #12]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	bl	_REG_WR
LBB0_16:
	mov	w0, #0
	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
LBB0_17:
	mov	w2, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LOOPBACK_BMAC,8,3              ; @LOOPBACK_BMAC
	.comm	_FEATURE_CONFIG_PFC_ENABLED,4,2 ; @FEATURE_CONFIG_PFC_ENABLED
	.comm	_LINK_STATUS_PFC_ENABLED,4,2    ; @LINK_STATUS_PFC_ENABLED
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"About to update PFC in BMAC\n"

	.comm	_MAC_TYPE_XMAC,8,3              ; @MAC_TYPE_XMAC
	.comm	_MISC_REG_RESET_REG_2,4,2       ; @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ; @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
l_.str.1:                               ; @.str.1
	.asciz	"About to update PFC in EMAC\n"

	.comm	_BNX2X_FLOW_CTRL_TX,4,2         ; @BNX2X_FLOW_CTRL_TX
	.comm	_NIG_REG_BMAC0_PAUSE_OUT_EN,8,3 ; @NIG_REG_BMAC0_PAUSE_OUT_EN
.subsections_via_symbols
